How to cross compile libubootenv

764 views
Skip to first unread message

vinic...@gmail.com

unread,
Feb 15, 2017, 1:09:44 PM2/15/17
to swupdate
Hi,

I'm cross compiling swupdate for Debian armhf and I reached this point:
/usr/lib/gcc/arm-linux-gnueabihf/4.9/../../../../arm-linux-gnueabihf/bin/ld: cannot find -lubootenv

But I'm not able to find libubootenv nowhere. I did read that is take from U-Boot, but i'm don't know to generate it.

Thanks,
Vini

Stefano Babic

unread,
Feb 15, 2017, 1:31:01 PM2/15/17
to vinic...@gmail.com, swupdate
Hi Vini,
You need to compile U_boot, too, for your machine: libubootnv.a is
tools/env/lib.a when you compile U-Boot.

It is clear checking the recipe in meta-swupdate:

https://github.com/sbabic/meta-swupdate/blob/master/recipes-bsp/u-boot/u-boot-fw-utils%25.bbappend

Best regards,
Stefano Babic

--
=====================================================================
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sba...@denx.de
=====================================================================

Vinicius Maciel

unread,
Feb 15, 2017, 2:51:15 PM2/15/17
to Stefano Babic, swupdate
Hi Stefano,

Thanks a lot for quick reply. 

I did compile uboot tools with: make tools-all, and works! But I had to compile directly in target. :)

Anatolij Gustschin

unread,
Feb 15, 2017, 2:53:40 PM2/15/17
to Stefano Babic, vinic...@gmail.com, swupdate
Hi Stefano,

On Wed, 15 Feb 2017 19:30:55 +0100
Stefano Babic sba...@denx.de wrote:

>Hi Vini,
>
>On 15/02/2017 19:09, vinic...@gmail.com wrote:
>> Hi,
>>
>> I'm cross compiling swupdate for Debian armhf and I reached this point:
>> /usr/lib/gcc/arm-linux-gnueabihf/4.9/../../../../arm-linux-gnueabihf/bin/ld: cannot find -lubootenv
>>
>> But I'm not able to find libubootenv nowhere. I did read that is take from U-Boot, but i'm don't know to generate it.
>>
>
>You need to compile U_boot, too, for your machine: libubootnv.a is
>tools/env/lib.a when you compile U-Boot.

similar question pops up again and again, maybe we should add
FAQ section on the project's website.

Thanks,
Anatolij

Stefano Babic

unread,
Feb 15, 2017, 3:27:53 PM2/15/17
to Anatolij Gustschin, Stefano Babic, vinic...@gmail.com, swupdate
Ok, noted.

Stefano
Reply all
Reply to author
Forward
0 new messages