Yocto and rauc for VIM3

Which Khadas SBC do you use?

Khadas VIM3

Which system do you use? Android, Ubuntu, OOWOW or others?

Yocto poky

Which version of system do you use? Khadas official images, self built images, or others?


Please describe your issue below:

I build a yocto image with the default bootloader (u-boot). But I don’t understand how to customize the bootloader to be able to boot from slot A or B.
Has anyone already do this ?

Please clarify what this means.

What distro, machine and meta-layers are in your build?


The layers I use:

  ${TOPDIR}/../sources/poky/meta \
  ${TOPDIR}/../sources/poky/meta-poky \
  ${TOPDIR}/../sources/poky/meta-yocto-bsp \
  ${TOPDIR}/../sources/meta-meson \
  ${TOPDIR}/../sources/meta-openembedded/meta-oe \
  ${TOPDIR}/../sources/meta-openembedded/meta-networking \
  ${TOPDIR}/../sources/meta-openembedded/meta-python \
  ${TOPDIR}/../sources/meta-benoit \
  ${TOPDIR}/../sources/meta-rust \
  ${TOPDIR}/../sources/meta-rauc \

extra packages:

IMAGE_INSTALL:append = " \
    u-boot \
    syslog-ng \
    uhubctl \
    openssh \
    dbus \
    rauc \
    rpm \
    openssh \
    pkgconfig \
    dbus \
    libqmi \
    usb-modeswitch \
    networkmanager \
    modemmanager \

I will ceate a github project with everything. (there is also a specific layer for the configuration of rauc)
The issue is with u-boot. I don’t know it, and I don’t know how to configure it.
rauc is installed correctly.
rauc status show the 2 partitions.
rauc install install the bundle in the correct partition, and mark it as bootable.
But u-boot always boot the first partition. I should have wrote a boot.cmd.in like this one: meta-rauc-community/meta-rauc-raspberrypi/recipes-bsp/rpi-u-boot-scr/files/boot.cmd.in at kirkstone · rauc/meta-rauc-community · GitHub

But I don’t know how to integrate it with meta-meson ?

Thanks for your help!

If you go into the yocto docs they a section about configuring the kernel and u-boot. Or it was in the book, I don’t recall exactly. Either way, it seems like you will have to learn some u-boot too…