Running SWUpdate with Yocto

402 views
Skip to first unread message

atakan.onol

unread,
May 31, 2021, 7:27:08 AM5/31/21
to swupdate
Hi,

I've been stumped for several weeks now and I've exasperated all other options. I've got a Beaglebone Black and I wanted to get SWUpdate running on it.
Below are my local.conf and bblayers.conf. I've tried various branches including jethro, zeus, dunfell, and hardknott. I ran the following commands.
bitbake core-image-full-cmdline
bitbake update-image


In my $TMP/deploy/images/beaglebone-yocto folder, all of the files are generated without any issues, including the swu file. I used Balena Etcher to flash the wic file to an SD card and everything boots up normally. The issue I have is running swupdate on the target machine. I checked http://ip_address:8080 and nothing gets loaded up. I could not find any trace of swupdate in the rootfs. In a tutorial regarding RaspberryPi, a helpful user said that after flashing the SD card onto the board, navigating to http://ip_address:8080 and uploading the generated swu file, but thats where I am lost. What am I doing wrong? How do I get SWUpdate running on a Beaglebone Black using Yocto? Thanks in advanced and stay safe.

-Atakan Onol
# local.conf
MACHINE ?= "beaglebone-yocto"

DL_DIR ?= "${TOPDIR}/downloads"
SSTATE_DIR ?= "${TOPDIR}/sstate-cache"
TMPDIR = "${TOPDIR}/tmp"

DISTRO ?= "poky"

PACKAGE_CLASSES ?= "package_rpm"

EXTRA_IMAGE_FEATURES ?= "debug-tweaks"

USER_CLASSES ?= "buildstats image-mklibs image-prelink"

PATCHRESOLVE = "noop"

BB_DISKMON_DIRS ??= "\
    STOPTASKS,${TMPDIR},1G,100K \
    STOPTASKS,${DL_DIR},1G,100K \
    STOPTASKS,${SSTATE_DIR},1G,100K \
    STOPTASKS,/tmp,100M,100K \
    ABORT,${TMPDIR},100M,1K \
    ABORT,${DL_DIR},100M,1K \
    ABORT,${SSTATE_DIR},100M,1K \
    ABORT,/tmp,10M,1K"

PACKAGECONFIG_append_pn-qemu-system-native = " sdl"
CONF_VERSION = "1"


IMAGE_FSTYPES="wic ext4.gz"

# bblayers.conf
POKY_BBLAYERS_CONF_VERSION = "2"

BBPATH = "${TOPDIR}"
BBFILES ?= ""

BBLAYERS ?= " \
  /home/ubuntu/yocto/poky-dunfell/meta \
  /home/ubuntu/yocto/poky-dunfell/meta-poky \
  /home/ubuntu/yocto/poky-dunfell/meta-yocto-bsp \
  /home/ubuntu/yocto/poky-dunfell/meta-openembedded/meta-oe \
  /home/ubuntu/yocto/poky-dunfell/meta-openembedded/meta-python \
  /home/ubuntu/yocto/poky-dunfell/meta-openembedded/meta-networking \
  /home/ubuntu/yocto/poky-dunfell/meta-openembedded/meta-multimedia \
  /home/ubuntu/yocto/meta-beagleboard/meta-beagleboard-extras \
  /home/ubuntu/yocto/poky-dunfell/meta-swupdate \
  /home/ubuntu/yocto/poky-dunfell/meta-swupdate-boards \
  "



Mark Jonas

unread,
May 31, 2021, 11:48:17 AM5/31/21
to atakan.onol, swupdate
Hi,
I guess the core-image-full-cmdline you are using does not install
SWUpdate. So need to either create your own image recipe which
installs SWUpdate or you do it quick and dirty by adding SWUpdate to
your local.conf:

IMAGE_INSTALL_append = "swupdate swupdate-www"

Cheers,
Mark
Reply all
Reply to author
Forward
0 new messages