From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from 2.mo2.mail-out.ovh.net ([188.165.53.149] helo=mo2.mail-out.ovh.net) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VOOsR-0000Pc-5k for barebox@lists.infradead.org; Tue, 24 Sep 2013 09:25:51 +0000 Received: from mail431.ha.ovh.net (gw6.ovh.net [213.251.189.206]) by mo2.mail-out.ovh.net (Postfix) with SMTP id B838ADC6432 for ; Tue, 24 Sep 2013 11:25:29 +0200 (CEST) Date: Tue, 24 Sep 2013 11:26:47 +0200 From: Jean-Christophe PLAGNIOL-VILLARD Message-ID: <20130924092647.GK31585@ns203013.ovh.net> References: <1379776829-30964-1-git-send-email-plagnioj@jcrosoft.com> <20130923081600.GG31585@ns203013.ovh.net> <20130923091309.GB17135@pengutronix.de> <20130923143226.GH31585@ns203013.ovh.net> <20130923145419.GW30088@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20130923145419.GW30088@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH v2] bootm: update os_entry from uimage To: Sascha Hauer Cc: barebox@lists.infradead.org On 16:54 Mon 23 Sep , Sascha Hauer wrote: > On Mon, Sep 23, 2013 at 04:32:26PM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote: > > On 11:13 Mon 23 Sep , Sascha Hauer wrote: > > > On Mon, Sep 23, 2013 at 10:16:00AM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote: > > > > On 17:20 Sat 21 Sep , Jean-Christophe PLAGNIOL-VILLARD wrote: > > > > > if not uimage set 0 by default > > > > > > > > > > today we do not see the issue as the kernel entry point is the same as the > > > > > load_addr but on other binary its not necessary the case > > > > > > > > > > as today we ignore the entry point set in the uimage and just assume it's the > > > > > same as the load_addr > > > > > > > > > > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD > > > > > --- > > > > > > > > this patch will also prepare to add a globalval and a getopt to overwrite the > > > > os_entry > > > > > > We already have a getopt to overwrite the os_entry: -e > > > > > > > > > > > yours do not care about this preparation by not setting > > > > data.os_entry = UIMAGE_SOME_ADDRESS; > > > > > > Because UIMAGE_SOME_ADDRESS is not suitable for a relative offset to the > > > image start. > > > > I use this ti let known th e uimage code that the os_entry is not overwrite > > and that it must not modify it > > > > because if you specify via getopt or global and do not set UIMAGE_SOME_ADDRESS > > the uimage code will overwrite the provided value > > So you have uImages which have the wrong entry point provided in the > images? Why don't you fix the images instead? flashed images we just update the booloader Best Regards, J. > > Sascha > > -- > Pengutronix e.K. | | > Industrial Linux Solutions | http://www.pengutronix.de/ | > Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | > Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox