我对 eclipse hawkbit 和 SWupdate 相当陌生,在我开始生产实施之前,我一直在尝试在 RPi 上进行测试实施。我已经启动并运行了 Hawkbit,但我在使用 SWupdate 时遇到了几个问题,我已经构建了一个core-image-full-cmdline.wic
更新.swu
图像以及它:
这是local.conf
:
MACHINE = "raspberrypi3"
IMAGE_FSTYPES += "wic"
RPI_USE_U_BOOT = "1"
KERNEL_IMAGETYPE = "uImage"
IMAGE_INSTALL_append = " kernel-image kernel-modules"
#WKS_FILES_raspberrypi3 = "ts-raspberrypi.wks"
PREFERRED_PROVIDER_u-boot-fw-utils = "libubootenv"
DISTRO_FEATURES_append = " systemd"
DISTRO_FEATURES_BACKFILL_CONSIDERED += "sysvinit"
VIRTUAL-RUNTIME_init_manager = "systemd"
VIRTUAL-RUNTIME_initscripts = "systemd-compat-units"
ENABLE_UART = "1"
当我将 IMAGE_FSTYPE 从 ext4 rpimg 更改为 wic 时,我也遇到了这个错误:
ERROR: update-image-1.0-r0 do_swuimage: swupdate cannot find image file: /home/aswin/yocto/build/tmp/deploy/images/raspberrypi3/core-image-full-cmdline.ext4.gz
ERROR: Logfile of failure stored in: /home/aswin/yocto/build/tmp/work/raspberrypi3-poky-linux-gnueabi/update-image/1.0-r0/temp/log.do_swuimage.87006
ERROR: Task (/home/aswin/yocto/layers/meta-swupdate-boards/recipes-extended/images/update-image.bb:do_swuimage) failed with exit code '1'
所以我不得不改变update-image.bb
FSTYPE = ".wic"
当我将其注释掉#WKS_FILES_raspberrypi3 = "ts-raspberrypi.wks"
然后将图像闪存到 sd 卡并启动它时,除了一条闪烁的线之外,什么都没有真正显示出来。如果我留下它,那么.swu
文件太大而无法将其上传到 hawkbit。