public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Jerry Van Baren <gerald.vanbaren@ge.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] U-Boot configuration and latter Linux MMU init failures
Date: Wed, 24 Sep 2008 08:23:00 -0400	[thread overview]
Message-ID: <48DA3124.8000409@ge.com> (raw)
In-Reply-To: <4e0b9cb00809240044j40a75fd5id105e46fc177279c@mail.gmail.com>

Remi Lefevre wrote:
> Hi,
> 
> From your experience, can some incomplete/incorrect U-Boot configuration
> lead to MMU init failures inside Linux ?
> 
> Particularly, my Linux kernel fails during the first Data Cache Block Store
> instruction (dcbst) of the MMU init and I ask myself if this cannot be linked
> to my cache initialization inside U-Boot (HID0 for my MPC8270 board).
> 
> See http://ozlabs.org/pipermail/linuxppc-embedded/2008-September/031398.html
> for more details.
> 
> Regards,
> R?mi

Hi R?mi,

I don't have much advice, sorry.

The linux MMU setup code is the #1 most delicate operation in starting 
linux.  It is extremely easy to get something wrong and extremely hard 
to debug (as you found out).

Questions that may help:
1) Are you enabling dcache? icache? in u-boot?
2) Does linux boot if you don't enable dcache/icache?
3) (really 1a) How are you setting up and/or using cache that is 
different from other 82xx boards?
4) (really 1b?) How are you using DBATs (and IBATs)?  Is it compatible 
with linux's start up code?  Is linux changing your DBATs, for instance, 
causing memory (un)mapping side effects?  IIRC (been a while, may have 
changed), linux uses 3 of the 4 DBATs during start up.

Interestingly enough, dcbst is a *data* cache store, run in the *icache* 
flush routine.  I assume this is intended to flush out any instructions 
that are stuck in the dcache due to writes (self modifying code and/or 
loaded/copied code).  I would *speculate* that the address of the stuff 
in your dcache no longer points to valid memory.

HTH,
gvb

  reply	other threads:[~2008-09-24 12:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-24  7:44 [U-Boot] U-Boot configuration and latter Linux MMU init failures Remi Lefevre
2008-09-24 12:23 ` Jerry Van Baren [this message]
2008-09-24 14:08   ` Wolfgang Denk
2008-09-29 22:58     ` Remi Lefevre
2008-09-29 23:27       ` Scott Wood

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=48DA3124.8000409@ge.com \
    --to=gerald.vanbaren@ge.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox