All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot-Users] problem about booting kenrel
@ 2004-09-10  9:00 刘勇
  2004-09-10 12:25 ` Ralph Siemsen
  2004-09-10 13:13 ` Travis Sawyer
  0 siblings, 2 replies; 3+ messages in thread
From: 刘勇 @ 2004-09-10  9:00 UTC (permalink / raw)
  To: u-boot

my cpu is 440gx and my board is OCOTEA.

(1)now i use bootm 0x400000, at the same time,
i set bootargs into console=ttyS0,15200n8 or console=ttySICC,15200n8,
but linux kernel always print little infomation.
i don't know which serial name used.

(2)i use ppc_md.progress as my print function.i find after kernel maps io 
address with ioremap64() and visit the address, kernel die.

ocotea_setup_arch() in the DIR arch/ppc/platforms/4xx/ocotea.c

addr = ioremap64(OCOTEA_MAC_BASE, OCOTEA_MAC_SIZE);
for (i=0; i< 4; i++) {
mac64 = simple_strtoull(addr+OCOTEA_MAC_OFFSET*i, 0, 16);
.......
when the 440gx goes into simple_strtoull, it never returns.
????????ly@ncic.ac.cn
??????????2004-09-10

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot-Users] problem about booting kenrel
  2004-09-10  9:00 [U-Boot-Users] problem about booting kenrel 刘勇
@ 2004-09-10 12:25 ` Ralph Siemsen
  2004-09-10 13:13 ` Travis Sawyer
  1 sibling, 0 replies; 3+ messages in thread
From: Ralph Siemsen @ 2004-09-10 12:25 UTC (permalink / raw)
  To: u-boot

?? wrote:
> my cpu is 440gx and my board is OCOTEA.
> 
> (1)now i use bootm 0x400000, at the same time,
> i set bootargs into console=ttyS0,15200n8 or console=ttySICC,15200n8,

That's not a valid serial speed... try 115200 (you are missing a zero).
On Ocotea the ttyS0 port is correct to use.

> (2)i use ppc_md.progress as my print function.i find after kernel maps io 
> address with ioremap64() and visit the address, kernel die.
> .......
> when the 440gx goes into simple_strtoull, it never returns.

This is probably an indirect result of a bug present in 
arch/ppc/kernel/head_44x.S where temporary TLB mappings are created for 
early serial debugging.  Check around line 214, inside an #ifdef 
CONFIG_SERIAL_TEXT_DEBUG section... there are two mappings created:

     li      r0,1                    /* TLB slot 1 */

     tlbwe   r3,r0,PPC44x_TLB_PAGEID /* Load the pageid fields */
     tlbwe   r4,r0,PPC44x_TLB_XLAT   /* Load the translation fields*/
     tlbwe   r5,r0,PPC44x_TLB_ATTRIB /* Load the attrib/access fields */

     ori     r3,r3,PPC44x_TLB_TS     /* Translation state 1 */

     li      r0,2                    /* TLB slot 2 */

     tlbwe   r3,r0,PPC44x_TLB_PAGEID /* Load the pageid fields */
     tlbwe   r4,r0,PPC44x_TLB_XLAT   /* Load the translation fields */
     tlbwe   r5,r0,PPC44x_TLB_ATTRIB /* Load the attrib/access fields */

     /* Force context change */
     isync

The second "li" instruction is shown correctly above, but you will 
probably find in your source that it reads the same as the first one.
In that case, the first attempt to use this TLB (which happens when 
serial operation is done) will cause a fault hang the system.

This is fixed in the current BK linux source tree.

Note you can also turn off CONFIG_SERIAL_TEXT_DEBUG to avoid the problem.

-Ralph

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot-Users] problem about booting kenrel
  2004-09-10  9:00 [U-Boot-Users] problem about booting kenrel 刘勇
  2004-09-10 12:25 ` Ralph Siemsen
@ 2004-09-10 13:13 ` Travis Sawyer
  1 sibling, 0 replies; 3+ messages in thread
From: Travis Sawyer @ 2004-09-10 13:13 UTC (permalink / raw)
  To: u-boot

On Fri, 2004-09-10 at 05:00, >??????????    wrote:
> my cpu is 440gx and my board is OCOTEA.
> 
> (1)now i use bootm 0x400000, at the same time,
> i set bootargs into console=ttyS0,15200n8 or console=ttySICC,15200n8,
> but linux kernel always print little infomation.
> i don't know which serial name used.
> 

console=ttyS0,115200  is all you need.


> ocotea_setup_arch() in the DIR arch/ppc/platforms/4xx/ocotea.c
> 
> addr = ioremap64(OCOTEA_MAC_BASE, OCOTEA_MAC_SIZE);
> for (i=0; i< 4; i++) {
> mac64 = simple_strtoull(addr+OCOTEA_MAC_OFFSET*i, 0, 16);
> .......
> when the 440gx goes into simple_strtoull, it never returns.

Hmmm... Don't know what's going on there.


> ????????ly at ncic.ac.cn
> ??????????2004-09-10

This is an international list.  Please stick to something we all can
read.

-travis

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-09-10 13:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-10  9:00 [U-Boot-Users] problem about booting kenrel 刘勇
2004-09-10 12:25 ` Ralph Siemsen
2004-09-10 13:13 ` Travis Sawyer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.