From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Roese Date: Fri, 24 Jul 2009 10:45:27 +0200 Subject: [U-Boot] PPC440GX TLB setting problem. In-Reply-To: <4CD35CD1F8085945B597F80EEC8942130348D993@exc01.bk.prodrive.nl> References: <4CD35CD1F8085945B597F80EEC8942130348D991@exc01.bk.prodrive.nl> <200907240852.46998.sr@denx.de> <4CD35CD1F8085945B597F80EEC8942130348D993@exc01.bk.prodrive.nl> Message-ID: <200907241045.27755.sr@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 =====================================================================