??: Question about SMC serial port on MPC8270 in u-boot
FCG WANG Baohua
Baohua.WANG at alcatel-sbell.com.cn
Wed Aug 31 18:51:24 EST 2005
Dear Denk:
thanks a lot ! I had found the reason: I use brg7 instead of brg1 in code, but the hardware is use brg1 to UART.
Now the UART can work. But another question comes :
The u-Boot reboot forever when enter
" *((ulong *) addr_sp)-- = 0;
*((ulong *) addr_sp)-- = 0; "
The code is in lib_ppc/board.c line 474-475,function board_init_f. I found the pointer addr_sp is valid.
I erase the *((ulong *) addr_sp)-- = 0 code, but no use.
What's the prblem? can you give me some hints ? thanks !
-----????-----
???: wd at denx.de [mailto:wd at denx.de]
????: 2005?8?31? 15:04
???: FCG WANG Baohua
??: linuxppc-embedded at ozlabs.org; wd at denx.de; Tsi-Chung.Liew at freescale.com; jdl at freescale.com; Jack_liu at usish.com
??: Re: Question about SMC serial port on MPC8270 in u-boot
In message <A9DE2BAF233E444FA9C5E77A5825A01E865067 at ydmail.sbell.com.cn> you wrote:
>
> When i port the u-boot 1.1.3 on my MPC8270 board, the serial port has
Your question is off topic on this list. Please send U-Boot related
questions to the u-boot-users list instead.
> 1. the Dual port ram cannot be revised manually, but can be revised by
> the u-boot code. What's the problem?
You're doing something wrong.
> 2. the serial_putc() in serial_smc.c is loop forever on "while
> (tbdf->cbd_sc & BD_SC_READY);". How to slove the bug?
Make sure your clocks / BRG's are configured correctly.
> 3. the speed.c calc the wrong cpm, cpu, brg_clk, I had hard coded the
> right cpm, cpu, brg_clk values. But the "m8260_cpm_setbrg()" is still
> wrong? Why?
Your system is misconfigured.
> data structures, they all seems right, but the UART cannot work.
> How could I find the problem?
Fix the problems as you encounter them. If the clocks show up wrong
you should fix this problem first. Then all the rest might just fall
into place.
> Content-Type: text/html;
> Content-Transfer-Encoding: quoted-printable
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
> <HTML>
And please don't post HTML.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
A meeting is an event at which the minutes are kept and the hours are
lost.
More information about the Linuxppc-embedded
mailing list