[U-Boot-Users] Using SMC1 UART on MPC852T ( AdderII board )

Hi All,
I am trying to port u-boot on AdderII card( analogue-micro ) hosting MPC852T.
Is this already done this before ??
I am trying to configure SMC1 port as a console to get boot up messages. I have defined
#define CONFIG_8xx_CONS_SMC1 1
I have a assembly listing, I am using BDI to single step. It complets "serial_init" function and calls "display_options" func. This in turn calls ..
printf() -> puts() -> serial_putc().
In the serial_putc func, it goes into an endless loop, here.
while (tbdf->cbd_sc & BD_SC_READY) { WATCHDOG_RESET (); __asm__("eieio"); }
The assembly listing is as,
--------------------------------------------------- fe0145b8: 7c 00 06 ac eieio fe0145bc: a0 0a 00 00 lhz r0,0(r10) fe0145c0: 70 09 80 00 andi. r9,r0,32768 fe0145c4: 40 82 ff f4 bne+ fe0145b8 <serial_putc+0x68>
---------------------------------------------------- Any clues please ??
Warm Regards Raghu.
__________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com

Hello Raghu,
I have a assembly listing, I am using BDI to single step. It complets "serial_init" function and calls "display_options" func. This in turn calls ..
printf() -> puts() -> serial_putc().
In the serial_putc func, it goes into an endless loop, here.
while (tbdf->cbd_sc & BD_SC_READY) { WATCHDOG_RESET (); __asm__("eieio"); }
hmm .. i faced the exact problem before.. if my memory serve me correct.. check :
CONFIG_BAUDRATE
also
#undef CONFIG_CLOCKS_IN_MHZ
other than that it might be the port setting..
I hope this helps, though I am not an expert...
Regards, Mike

In message 1059447369.1041.6.camel@localhost.localdomain you wrote:
check :
CONFIG_BAUDRATE
OK, makes sense.
#undef CONFIG_CLOCKS_IN_MHZ
This has _nothing_ to do with the operation of U-Boot. It is only usef for the interface to the Linux kernel.
other than that it might be the port setting..
+ clock settings.
Best regards,
Wolfgang Denk
participants (3)
-
Mike G.
-
Raghu
-
Wolfgang Denk