[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microblaze-uclinux] uart issue in "fs-boot" - ML505



Hi Michal,
After some probings with the ohm-meter, it came down to the cable I got, painful! The host-to-board path is broken, no wonder the board always saw garbage even when I didn't send anything to it.
Thanks
Tyler

On Nov 19, 2008, at 8:32 AM, Michal Simek wrote:

Hi Tyler,

I tested it last week.
First of all. You should load u-boot.srec instead of u-boot- s.srec(srec format
for relocable u-boot to flash).
There could be a problem (but I am not 100% sure for uartlite) if your
u-boot.srec file contains CR-LF ending.
If is problem there, just call dos2unix u-boot.srec and check it in any hex
editor (or in mc with F3).

Does it work?

Regards,
Michal



Hi all,
I'm experiencing an issue with loading the U-BOOT SREC file over serial
to FS-BOOT. I see FS-BOOT outputs on the kermit console and it just
hangs waiting for the SREC even long after "cat /tftpboot/u-boot- s.srec
/dev/ttyS0" returns.
I then looked at FS-BOOT code and insert debug messages inside of
"get_ch" routine to figure out what kind of data FS-BOOT is getting and
noticed that the function XUartLite_mIsReceiveEmpty(UART_BASEADDR) is
always false, even if I don't send anything to the board from the host,
hinting that there's always data in the receive buffer and these
characters are always FFFFFF.....

So it seems like the setting is incorrect somewhere since the while loop
is not working. Has anybody came across this behavior?

char get_ch(void) {
 while (XUartLite_mIsReceiveEmpty(UART_BASEADDR)) ;
.......
}

Thanks
Tyler
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive :
http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/


___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze- uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/



___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/