From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] PPC440GX TLB setting problem.
Date: Fri, 24 Jul 2009 10:45:27 +0200 [thread overview]
Message-ID: <200907241045.27755.sr@denx.de> (raw)
In-Reply-To: <4CD35CD1F8085945B597F80EEC8942130348D993@exc01.bk.prodrive.nl>
Hi Wouter,
On Friday 24 July 2009 09:48:17 Wouter Eckhardt wrote:
> Yes, I've checked the VxWorks kernel code. The comments mention that if
> caching is enabled, the cache should be flushed before the call to MMU
> TLB initialization is done. However, the calling code never actually
> flushes the cache. So they're not even following their own advice. In
> the calling code, they just assume that caching is disabled.
OK.
> > > - Is U-Boot reconfiguring the TLBs after init.S has executed?
> >
> > Yes. But only one (IIRC). The first TLB for bootrom access. Caching
> > will be disabled before relocating to SDRAM.
> Hmmm. This should be a problem since I changed the TLB settings to have
> SDRAM at the first TLB. However, the SDRAM gets remapped in a different
> TLB as well. Where in the code can I find this? I tried looking for
> something like that, but couldn't find it. Perhaps that piece of code is
> actually replacing all TLBs, not just the bootrom access one.
Take a look at Sequoia. It has support for VxWorks booting. You need to switch
the sequence of the TLB entries. init.S:
/* vxWorks needs this as first entry for the Machine Check interrupt */
tlbentry( 0x40000000, SZ_256M, 0, 0, AC_R|AC_W|AC_X|SA_G|SA_I )
And you need to set CONFIG_SYS_TLB_FOR_BOOT_FLASH in your board config header
to the number of the boot TLB entry.
Let me know if this helps.
Best regards,
Stefan
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================
prev parent reply other threads:[~2009-07-24 8:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-23 18:39 [U-Boot] PPC440GX TLB setting problem Wouter Eckhardt
2009-07-24 6:52 ` Stefan Roese
2009-07-24 7:48 ` Wouter Eckhardt
2009-07-24 8:45 ` Stefan Roese [this message]
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=200907241045.27755.sr@denx.de \
--to=sr@denx.de \
--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