[yocto] [meta-swupdate] build fails under thud

Matthias Schoepfer matthias.schoepfer at googlemail.com
Mon May 27 06:31:00 PDT 2019


Hi Moritz!

You need to configure swupdate kind of like the linux kernel with 
menuconfig:

bitbake -c menuconfig swupdate

do not forget to copy your config then into an bbappend to swupdate 
(defconfig).

Hope that helps,

Regards,

    Matthias

On 5/27/19 3:26 PM, Moritz Porst wrote:
> Hello
> I want to create an update mechanism for our embedded system. I chose 
> swupdate because it is very well documented and seems flexible.
> When trying to build swupdate-image it fails with several undefined 
> references, just a few as example:
> """
> /opt/thudPoky/build/tmp/work/corei7-64-poky-linux/swupdate/2018.11-r0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/../../libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/8.2.0/ld: 
> bootloader/lib.a(uboot.o): in function `bootloader_env_set':
> | uboot.c:(.text.bootloader_env_set+0x40): undefined reference to 
> `fw_env_open'
> | 
> /opt/thudPoky/build/tmp/work/corei7-64-poky-linux/swupdate/2018.11-r0/recipe-sysroot-native/usr/bin/x86_64-poky-linux/../../libexec/x86_64-poky-linux/gcc/x86_64-poky-linux/8.2.0/ld: 
> uboot.c:(.text.bootloader_env_set+0xf8): undefined reference to 
> `fw_env_write'
> """
> I see lots of "uboot" in the trace, but to my understanding swupdate 
> should also work with grub which I enabled using:
> EFI_PROVIDER = "grub-efi"    (First tried to use 
> PREFERRED_PROVIDER_virtual/bootloader, but this doesn't work with EFI 
> booting)
> When I want to enable "uboot" this way, bitbake tells me there is no 
> uboot.
> I know there is also the option of writing my own init scripts but 
> this would be just reinventing the wheel (given there is an swupdate 
> available) and probably more error-prone than a grown update tool. 
> Thus I would like to get swupdate to work.
> Any ideas ?
> Best regards
> Moritz
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20190527/ecc33a97/attachment.html>


More information about the yocto mailing list