From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by casper.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1RbDDx-0006ua-Lp for barebox@lists.infradead.org; Thu, 15 Dec 2011 15:27:58 +0000 Date: Thu, 15 Dec 2011 16:27:52 +0100 From: Sascha Hauer Message-ID: <20111215152752.GU27267@pengutronix.de> References: <1323945034-19687-1-git-send-email-s.hauer@pengutronix.de> <1323945034-19687-7-git-send-email-s.hauer@pengutronix.de> <20111215133317.GD9234@game.jcrosoft.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20111215133317.GD9234@game.jcrosoft.org> 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-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: *** PROBABLY SPAM *** [PATCH 06/12] reimplement uImage code To: Jean-Christophe PLAGNIOL-VILLARD Cc: barebox@lists.infradead.org On Thu, Dec 15, 2011 at 02:33:17PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote: > On 11:30 Thu 15 Dec , Sascha Hauer wrote: > > Provide a new API for accessing uImages which makes it easy > > for commands to open images, verify them, load to (free) sdram > > regions and show information about uImages. > > > > - We now do not load the image to malloced space anymore. > > - The data in the header is now stored in cpu native endianess > > after uimage_open which makes it easy to access the header data. > > - uImage can be loaded to dynamically allocated sdram regions. > > > > Signed-off-by: Sascha Hauer > I was more think of a filesystem > > so we can execute an embedded script You can still do with "uimage -e script myimage; ./script" I thought about the filesystem approach and I came to the conclusion that this is not really what we want for booting. While it definitely has charm when we can mount a uImage and just work on the included file we would loose the meta data in this case. We could create the metadata in form of files, maybe like this: # mount uImage uimage /mnt # ls /mnt /mnt/image0 /mnt/image1 /mnt/entrypoint /mnt/loadaddress But these files would be hard to work on and also would not have the 'uImage is just another image handled by bootm' facility. 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