how to flash barebox and set root variable? - barebox is gone :(

Sascha Hauer s.hauer at pengutronix.de
Wed Jun 12 11:54:01 EDT 2013


On Wed, Jun 12, 2013 at 11:02:03AM +0200, Adam Furmanczuk wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> OK, I compiled with gcc imx-usb-loader.c -I/usr/include/libusb-1.0/
> And had some "undefined reference" errors [1]. Probably have to adjust
> some path when running in barebox/scripts/imx/ directory?
> 
> I use also debian (wheezy) as host. Details about libusb-dev package [2].
> 

Ok, here is exactly what to do:

export ARCH=arm
export CROSS_COMPILE=/path/to/arm-linux-gcc-
make freescale_mx51_babbage_defconfig
make menuconfig
  System Type  --->
    i.MX specific settings  --->
        [*] compile imx-usb-loader
make

This should compile without errors and the imx-usb-loader tool should be
compiled, provided you have the libusb host tool installed.

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 |



More information about the barebox mailing list