public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] redboot RAM version: cache disabled per default
@ 2013-02-09 15:11 Bernd Schuster
  0 siblings, 0 replies; only message in thread
From: Bernd Schuster @ 2013-02-09 15:11 UTC (permalink / raw)
  To: ecos-discuss

Hi, 

I hope I can also ask a question about the redboot bootloader in this newsgroup. We`re using this bootloader for your ecos o/s on a mips target. 

My question is regarding the first file which will be executed running redboot bootloader in RAM mode from ddr ram: 

located int: ecos/packages/dev/flash/hal/mips/arch/current/src/vectors.s

[
la	k0,INITIAL_CONFIG0	# Set up config0 register 
mtc0	k0,config0		# to disable cache
]

Compared to the redboot RAMROM version, the cache (KO & MM value from config0 register) will be disabled by executing the above instructions. Is there any specific reason for disabling the cache running from RAM? And if there`s such a reason, where could I enable the cache after the init for example? 

Because after the bootloader is running, I want to download some files by the serial port to the ddr ram and in a second step I want to program these files into the spi flash. Regarding the spi flash, I noticed the missing cache, because it takes much longer to download the code to the flash device. If I set the KO (0x3 cache/no coh./wr-bck/wr-alloc) and MM (enable) it`s as fast as running the RAMROM bootloader version. 

best regards
Bernd


 

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-02-09 15:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-09 15:11 [ECOS] redboot RAM version: cache disabled per default Bernd Schuster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).