Skip to contentSkip to conversation

Using SMC1 UART on MPC852T ( AdderII board )

U-Boot-Users Raghu 3 participants 3 messages Jul 28, 2003 – Jul 29, 2003

lore
Share & tools
lore

Raghu

author
#0 lore raw

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

#1 lore raw

Hello Raghu,

Quoted 6 lines

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().

Quoted 7 lines

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

#2 lore raw
Quoted 4 lines · In message <[email protected]> you wrote:

check :

CONFIG_BAUDRATE

OK, makes sense.

Quoted 1 line

#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.

Quoted 1 line

other than that it might be the port setting..

+ clock settings.

Best regards,

Wolfgang Denk

Signature · 3 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
Use C++ to confuse your enemies; use C to produce stable code.