From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from post.merula.co.uk ([217.146.97.9]) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Vlf1B-0002i7-Rs for barebox@lists.infradead.org; Wed, 27 Nov 2013 13:19:03 +0000 From: John Parker Date: Wed, 27 Nov 2013 13:18:34 +0000 Message-ID: References: <20131127130236.GX24559@pengutronix.de> In-Reply-To: <20131127130236.GX24559@pengutronix.de> Content-Language: en-US MIME-Version: 1.0 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: FW: Barebox on Karo TX25 To: Sascha Hauer Cc: "barebox@lists.infradead.org" Hi Sascha Great. Many thanks. I'll give it a go and will let you know. Regards John -----Original Message----- From: Sascha Hauer [mailto:s.hauer@pengutronix.de] Sent: 27 November 2013 13:03 To: John Parker Cc: barebox@lists.infradead.org Subject: Re: FW: Barebox on Karo TX25 Hi John, On Wed, Nov 27, 2013 at 11:28:42AM +0000, John Parker wrote: > Hi all > > I've spent a day trying to get barebox onto a Karo TX25. I've trawled the lists and documentation but seem to be missing something fundamental. > > I need to replace Redboot with barebox and I know that barebox will need 512k (256k + 2 more blocks for env) rather than the 256k partition that Redboot has. > > Redboot is version "Ka-Ro 2009-06-10" as supplied with the TX25. > > The problem is that when I try to delete and recreate the Redboot partition, Redboot says no becays it is reserved, even though I'm running in ROMRAM mode. > > I know the tx25 is a supported configuration because there is a defconfig for it. > > Is it documented anywhere exactly how to replace redboot with barebox? > > What magic am I missing? redboot is still a mystery to me and I try to avoid it. Let's try with USB boot instead which has the advantage that you can erase your NAND without risking to brick your board. Please apply the two patches I just sent as answer to your mail. You can then: - make tx25stk5_defconfig - make menuconfig, enable CONFIG_ARCH_IMX_USBLOADER - make - generate a imx-image: scripts/imx/imx-image -c \ arch/arm/boards/karo-tx25/flash-header-tx25.imxcfg -f \ barebox-flash-image -o barebox.imx - bring your board into USB boot mode (the baseboard should have a jumper to do this) - connect to a host with a mini USB cable. 'lsusb' should show: Bus 001 Device 014: ID 15a2:003a Freescale Semiconductor, Inc. - do: ./scripts/imx/imx-usb-loader barebox.imx barebox should show up on the serial port. Next step would be to write barebox to nand, but we can talk about this once you've got barebox running. 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