public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: "Bernd Schuster" <schuster_bernd@gmx.net>
To: ecos-discuss@ecos.sourceware.org
Subject: [ECOS] redboot RAM version: cache disabled per default
Date: Sat, 09 Feb 2013 15:11:00 -0000	[thread overview]
Message-ID: <20130209151055.310290@gmx.net> (raw)

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

                 reply	other threads:[~2013-02-09 15:11 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20130209151055.310290@gmx.net \
    --to=schuster_bernd@gmx.net \
    --cc=ecos-discuss@ecos.sourceware.org \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).