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

Adam Furmanczuk afurmanczuk at knowtrek.com
Wed Jun 12 12:14:06 EDT 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 12.06.2013 18:01, Alexander Shiyan wrote:
>> 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.
> Probably some usb-related headers on Adam system placed in
> non-standard directories, since tool is not builded or makes some
> errors. Maybe we need to use pkg-config for these stuffs?

Sorry my bad, I forgot to set CROSS_COMPILE flag. I will give it
tomorrow a try and report back.

Greetings,

Adam

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlG4nk0ACgkQefEEI87R1Dd1CwCdHu2Sb2NafGEul5avfVIeXwk7
DoUAoIft+Ik4uyQggfH095o9t1BsceN0
=eAtJ
-----END PGP SIGNATURE-----



More information about the barebox mailing list