Install barebox on target
Sascha Hauer
s.hauer at pengutronix.de
Thu Feb 24 11:04:40 EST 2011
Hi Thomas,
On Thu, Feb 24, 2011 at 02:08:55PM +0100, Thomas Mayer wrote:
> Hi,
>
> i'm working on a project with a Freescale i.MX35 3-Stack board and try
> to use barebox as bootloader.
> My problem is that i don't know how to install barebox to NAND memory or
> better directly to a sd-card.
> Is there any documentation about this really basic stuff?
According to the schematics the i.MX35 3-stack is without modifying it
only able to boot in external boot mode, that is nand or nor flash.
First step should be starting barebox as a second stage loader from the
existing bootloader. For this the defconfig for the 3stack should
be suitable. If you are using redboot you can use the following (replace
0x100000 with some valid sdram address):
load -r -b 0x100000 barebox.bin
run 0x100000
The same for u-Boot:
tftp 0x80100000 barebox.bin
go 0x80100000
If this works you should check if networking works:
dhcp; tftp barebox.bin /dev/ram0
or, if you use the smc9117 on the debug board:
ethact eth1; dhcp; tftp barebox.bin /dev/ram0
you can then flash barebox to either nand or nor flash:
erase /dev/nor0.barebox; tftp barebox.bin /dev/nor0.barebox
or:
erase /dev/nand0.barebox.bb; tftp barebox.bin /dev/nand0.barebox.bb
I suggest that you first try to flash barebox to the flash that does
not contain your original bootloader (if you haven't got jtag)
For getting a barebox suitable for starting from NAND you should enable
CONFIG_NAND_IMX_BOOT in your config.
The 3stack should be able to work in internal boot mode if TP41/42 on
the personality board are adjusted.
You also might want to apply the boot mode cleanup patch I just posted
which makes it a bit clearer what boot modes are actually supported by
barebox.
Hope that helps,
Sascha
>
> regards
> Thomas
> _______________________________________________
> barebox mailing list
> barebox at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
--
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