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 bombadil.infradead.org with esmtps (Exim 4.72 #1 (Red Hat Linux)) id 1OTrJJ-0004p2-Aq for barebox@lists.infradead.org; Wed, 30 Jun 2010 07:02:18 +0000 Date: Wed, 30 Jun 2010 09:02:14 +0200 From: Sascha Hauer Message-ID: <20100630070214.GP12115@pengutronix.de> References: <20100628080442.GH12115@pengutronix.de> <20100628083215.GF2681@jasper.tkos.co.il> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20100628083215.GF2681@jasper.tkos.co.il> 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: testing barebox on calao sbc35-a9260 board To: Baruch Siach Cc: barebox@lists.infradead.org On Mon, Jun 28, 2010 at 11:32:15AM +0300, Baruch Siach wrote: > Hi Sascha, > > On Mon, Jun 28, 2010 at 10:04:42AM +0200, Sascha Hauer wrote: > > On Fri, Jun 25, 2010 at 11:31:49AM +0200, Belisko Marek wrote: > > > I have a calao board sbc35-a9260 with u-boot pre-installed on it. > > > I would like to try barebox running on that board (also make some development). > > > I build at91sam9260ek_defconfig to try it out. I became to situation > > > that I don't know how to load image to board :) > > > > > > I try via tftp but u-boot automatically try to boot it and I got some > > > error about magic number. > > > I think about possibility just download binary to some RAM address and > > > then use go command in u-boot > > > to test if barebox binary will work. > > > > > > There exist some how-to or example how to do this? > > > > It's perfectly fine to start barebox from U-Boot with the 'go' command. > > Try 'setenv autostart no' in U-Boot to stop U-Boot from autostarting > > images. > > Is there a way to do the same on Barebox? Currently 'go barebox.bin' in ramfs > returns -EINVAL from memmap. If stored in a file it is indeed not runnable as the file is fragmented in memory. It would be possible to copy it to a linear memory to memmap it, but currently this is not implemented and I'm not sure this is a good idea. It's possible to do a 'tftp barebox.bin /dev/ram0; go /dev/ram0' instead. (or 'memcpy -s barebox.bin 0x0 ; go if the file is already in the filesystem) 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