From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9066 invoked by alias); 9 Feb 2013 15:11:05 -0000 Received: (qmail 9055 invoked by uid 22791); 9 Feb 2013 15:11:04 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KHOP_SPAMHAUS_DROP,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_YE,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mout.gmx.net (HELO mout.gmx.net) (212.227.17.21) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 09 Feb 2013 15:10:59 +0000 Received: from mailout-de.gmx.net ([10.1.76.27]) by mrigmx.server.lan (mrigmx002) with ESMTP (Nemesis) id 0MYZHI-1UPYSh0HTe-00VP6S for ; Sat, 09 Feb 2013 16:10:57 +0100 Received: (qmail 21642 invoked by uid 0); 9 Feb 2013 15:10:56 -0000 Received: from 217.31.17.2 by www063.gmx.net with HTTP; Sat, 09 Feb 2013 16:10:55 +0100 (CET) Content-Type: text/plain; charset="utf-8" Date: Sat, 09 Feb 2013 15:11:00 -0000 From: "Bernd Schuster" Message-ID: <20130209151055.310290@gmx.net> MIME-Version: 1.0 To: ecos-discuss@ecos.sourceware.org Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: [ECOS] redboot RAM version: cache disabled per default X-SW-Source: 2013-02/txt/msg00010.txt.bz2 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