FW: Barebox on Karo TX25

John Parker John.Parker at lucyautomation.co.uk
Wed Nov 27 10:49:49 EST 2013


I have a barebox prompt running from RAM!!

What next?



-----Original Message-----
From: Sascha Hauer [mailto:s.hauer at pengutronix.de] 
Sent: 27 November 2013 13:03
To: John Parker
Cc: barebox at 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

- 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.


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 |

More information about the barebox mailing list