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-Users] Custom MPC8347 Board can't access cache
Date: Tue, 16 Oct 2007 07:32:50 -0400	[thread overview]
Message-ID: <4714A162.9020203@ge.com> (raw)
In-Reply-To: <BAF8B1E0BB28024A90895E746A3B610D1B5306@twx-exch01.twacs.local>

Sparks, Sam wrote:
> Hello All,
> 
> I am trying to bring up a custom MPC8347 board with source based off of
> 1.3-rc1, unfortunately, I am not making it to board_init_f.
> 
> Using an abatron bdi, I've discovered the offending instruction is on
> cpu/mpc83xx/start.S:752 - 
> 
> 752    mtmsr r5   /* r5 is 0x3072 */
> 
> Has anyone else seen this issue?
> 
> For reference, here are some configuration settings that may be of
> value:
> 
> #define CFG_INIT_RAM_ADDR  0x20000000  /* Initial RAM address */
> #define CFG_INIT_RAM_END   0x1000      /* End of used area in RAM*/
> #define CFG_IBAT2L   (CFG_INIT_RAM_ADDR | BATL_PP_10 |
> BATL_MEMCOHERENCE)
> #define CFG_IBAT2U   (CFG_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS |
> BATU_VP)
> 
> Does anyone have any insight? Thanks for the help,
> Sam Sparks

If you decode the value of r5 (assuming your comment is correct - DON'T 
ASSUME THAT, verify it!!!), the mtmsr is enabling caching.  My deduction 
is that caching is messing you up.

If you disable caching, does your board boot (albeit slowly)?

If so, you have two possibilities:
1) Misconfigured hardware
   1a) Memory map, BATs, etc. - look for things that should not be cached
       like I/O but are cached inadvertently.
   1b) Your SDRAM is initialized improperly.

READ THIS PAGE!!!
<http://www.denx.de/wiki/DULG/UBootCrashAfterRelocation>

2) You have a hardware (board layout) problem.

The good news is, odds are pretty good that your problem is 1b).  If it 
isn't 1b, the odds are pretty good that it is 1a).

Good luck,
gvb

  reply	other threads:[~2007-10-16 11:32 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-16  1:04 [U-Boot-Users] Custom MPC8347 Board can't access cache Sparks, Sam
2007-10-16 11:32 ` Jerry Van Baren [this message]
2007-10-16 16:02   ` Sparks, Sam
2007-10-16 18:18     ` Sparks, Sam
2007-10-16 18:27       ` Wolfgang Denk
2007-10-16 18:34         ` Sparks, Sam

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=4714A162.9020203@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