All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ralph Siemsen <rsiemsen@rossvideo.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] problem about booting kenrel
Date: Fri, 10 Sep 2004 08:25:03 -0400	[thread overview]
Message-ID: <41419D1F.1060704@rossvideo.com> (raw)
In-Reply-To: <20040910090420.50702FB049@gatekeeper.ncic.ac.cn>

?? 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

  reply	other threads:[~2004-09-10 12:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-10  9:00 [U-Boot-Users] problem about booting kenrel 刘勇
2004-09-10 12:25 ` Ralph Siemsen [this message]
2004-09-10 13:13 ` Travis Sawyer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=41419D1F.1060704@rossvideo.com \
    --to=rsiemsen@rossvideo.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.