From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4340 invoked by alias); 21 Oct 2014 08:27:24 -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 4331 invoked by uid 89); 21 Oct 2014 08:27:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_SORBS_WEB autolearn=no 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; Tue, 21 Oct 2014 08:27:21 +0000 Received: from [195.20.130.1] (port=9390 helo=[10.1.7.235]) by xm21.hostsila.net with esmtpsa (TLSv1:DHE-RSA-AES128-SHA:128) (Exim 4.82) (envelope-from ) id 1XgUoD-001Tne-D5 for ecos-discuss@sourceware.org; Tue, 21 Oct 2014 11:28:49 +0300 Message-ID: <544618E5.90101@unicore.co.ua> Date: Tue, 21 Oct 2014 08:27:00 -0000 From: Oleg Uzenkov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: eCos Discussion 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: [ECOS] small custom bootloader to start an app stored in flash X-SW-Source: 2014-10/txt/msg00031.txt.bz2 Hello Everyone, I would like to make a small custom bootloader (not considering RedBoot) that would implement a simple function of checking a flag (some bytes in memory) and then jumping to one of the applications stored in internal flash. Something like this: internal flash memory: ------------------ 0x08000000 | bootloader | | | ------------------ |_____ | |flag | | ------------------ | | | | ------------------ | app1 | | | ------------------ | app2 | | | ------------------ | | | | -------------- Basically, if flag is true then start app1 else start app2. I suppose bootloader would be a simple eCos app with ROM startup. Applications in flash probably should also be built for ROM startup. When the jump is made app's .data and .bss sections should be copied into RAM... Any ideas how to make a jump to start an app? May be some sample code showing how to do it in eCos? May be someone has done it already? I would appreciate any help on this. Best wishes, Oleg -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss