From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25001 invoked by alias); 10 Oct 2014 05:52:30 -0000 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 Received: (qmail 24986 invoked by uid 89); 10 Oct 2014 05:52:28 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.2 X-HELO: xm21.hostsila.net Received: from xm21.hostsila.net (HELO xm21.hostsila.net) (80.91.189.41) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Fri, 10 Oct 2014 05:52:27 +0000 Received: from [77.222.158.32] (port=1192 helo=[192.168.1.103]) by xm21.hostsila.net with esmtpsa (TLSv1:DHE-RSA-AES128-SHA:128) (Exim 4.82) (envelope-from ) id 1XcT8s-002cBN-Jq; Fri, 10 Oct 2014 08:53:30 +0300 Message-ID: <5437742F.7020908@unicore.co.ua> Date: Fri, 10 Oct 2014 05:52:00 -0000 From: Oleg Uzenkov User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: Sergei Gavrikov CC: eCos Discussion References: <542D110B.9080002@unicore.co.ua> <542E8B41.8030905@dallaway.org.uk> <5436726C.8000703@unicore.co.ua> <543696C4.2040201@unicore.co.ua> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Get-Message-Sender-Via: xm21.hostsila.net: authenticated_id: o.uzenkov@unicore.co.ua X-IsSubscribed: yes Subject: Re: [ECOS] redboot on STM3240G-EVAL board X-SW-Source: 2014-10/txt/msg00014.txt.bz2 > > ELF files are quite large, what is the preferred format for an image > to be passed to redboot? what "load" and "fis create" command look > like? > **Roughly** speaking, you save .text segment in FLASH (adjusted to flash > block erase size), you save not ELF image! So, do not mess with > binaries. Also `load' command does not carry whole ELF image into RAM, > but .text segment with a few other segments. The thing is: I will need to work with files (new firmware should arrive to sdcard on the board through ftp in a main app). I want redboot to pick a new image up from sdcard at reset. Extracting sections from received ELF file and transferring them to redboot is more of a manual work. So, I think I am kind of stuck with ELF files. So I am thinking: * Should I load compressed ELF file (gzip) with -d switch? * Should I load SREC file (they are usually smaller than ELF)? * Should I save executable sections and store them in a file. Transfer that file to sdcard for redboot to pick it up at reset. (nor sure how to do it actually) * Can I actually load a .bin (image in binary format)? Thanks. Oleg > Sergei > -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss