[ECOS] redboot RAM version: cache disabled per default

Bernd Schuster schuster_bernd@gmx.net
Sat Feb 9 15:11:00 GMT 2013


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



More information about the Ecos-discuss mailing list