From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16638 invoked by alias); 7 Jul 2006 16:23:09 -0000 Received: (qmail 16628 invoked by uid 22791); 7 Jul 2006 16:23:08 -0000 X-Spam-Check-By: sourceware.org Received: from ug-out-1314.google.com (HELO ug-out-1314.google.com) (66.249.92.174) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 07 Jul 2006 16:23:04 +0000 Received: by ug-out-1314.google.com with SMTP id y2so624849uge for ; Fri, 07 Jul 2006 09:23:02 -0700 (PDT) Received: by 10.67.93.7 with SMTP id v7mr1539326ugl; Fri, 07 Jul 2006 09:23:02 -0700 (PDT) Received: by 10.66.222.10 with HTTP; Fri, 7 Jul 2006 09:23:01 -0700 (PDT) Message-ID: <4dd15d180607070923h2a0f7f07u40cb8c35efd583a3@mail.gmail.com> Date: Fri, 07 Jul 2006 16:23:00 -0000 From: "David Ho" To: ecos-discuss@ecos.sourceware.org In-Reply-To: <4dd15d180607070754j5fa372c2vddee756f45e70dd4@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <4dd15d180607070734h470b9781jc11785a05b6f43f3@mail.gmail.com> <4dd15d180607070754j5fa372c2vddee756f45e70dd4@mail.gmail.com> X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: [ECOS] Re: loading and executing an ELF image from flash. X-SW-Source: 2006-07/txt/msg00032.txt.bz2 These are the commands I used. I don't have ethernet btw, transfer done over xmodem. load -r -b 0xc000 -m xmodem -c 0 fis create RedBoot[RAM] -e 0xc040 fis load RedBoot[RAM] David On 7/7/06, David Ho wrote: > The reason I need to load an ELF image is because we have both > internal RAM and external RAM in our system and we would like to place > code in the critical path in internal RAM for faster access and leave > the non-critical code in external RAM. > > Because the two regions cannot be made contiguous, I cannot load it as > one binary image. > > Thanks, David > > On 7/7/06, David Ho wrote: > > Hi, > > > > Thanks so much for all the help, I now have redboot running on my > > custom board with flash support. > > > > The next step, which is one of my main objective is to be able to load > > an ELF image from flash to the corresponding RAM regions and have > > redboot jump to the right entry point specified in the ELF header. > > > > I tried a simple _fis create_ of the ELF image to flash, but when I > > did _fis load_ all it did was load the ELF image as is to RAM _Mem > > addr_. Is there currently a way to load an ELF image correctly? > > > > Thanks, David > > > -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss