[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] Question
Hi John,
John McGrath wrote:
> My board has just one 9-pin serial interface - which I am using for
> STDIN / STDOUT (console). I guess I could attach another serial
> interface for the debug - but this could be pretty tricky.
Here's another option you may wish to ocnsider. I'm pretty sure EDK
will let you double up the stdio/out and debug "attribute" on the same
serial port.
Then, what you do is connect to the microblaze xmdstub, upload the
kernel image (with dow -data image.bin 0x80000000), then load the
bootloader (dow microblaze_0/code/executable.elf)
Then, do "run" on XMD, that will launch the bootloader (not the kernel)
Then, close xmd, and open up some terminal software on the same serial
port, press eneter a couple of times, you would see the bootloader
prompt. You will have missed the actual menu items (they probably got
printed out by XMD). But, then you should be able to to launch the
kernel and see all of the bootup output etc.
To do this, you'll have to moddify the serial port driver in the kernel
to point to the correct uartlite - it's set in the top of
linux/arch/microblaze/kernel/xmdserial.c, you should find it ok.
It's a bit fiddly, but will get you going if you dont want to put
another serial port on the board (with associated RS232 line drivers etc).
Regards,
John
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/