From 690262acdba2511b14798c04b19d9dcc7df2d538 Mon Sep 17 00:00:00 2001 From: Anton Gerasimov Date: Thu, 21 Feb 2019 15:54:39 +0100 Subject: Add universal uEnv recipe Signed-off-by: Anton Gerasimov --- classes/sota_raspberrypi.bbclass | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'classes/sota_raspberrypi.bbclass') diff --git a/classes/sota_raspberrypi.bbclass b/classes/sota_raspberrypi.bbclass index e1c0054..88b5f21 100644 --- a/classes/sota_raspberrypi.bbclass +++ b/classes/sota_raspberrypi.bbclass @@ -2,16 +2,12 @@ RPI_USE_U_BOOT_sota = "1" KERNEL_CLASSES_append_sota = " kernel-fitimage" KERNEL_IMAGETYPE_sota = "fitImage" -INITRAMFS_FSTYPES = "cpio.gz" OSTREE_KERNEL = "${KERNEL_IMAGETYPE}-${INITRAMFS_IMAGE}-${MACHINE}-${KERNEL_FIT_LINK_NAME}" # DTB needs to be relocated to apply overlays UBOOT_DTB_LOADADDRESS = "0x05000000" UBOOT_DTBO_LOADADDRESS = "0x06000000" -# Deploy config fragment list to OSTree root fs -IMAGE_INSTALL_append = " fit-conf" - PREFERRED_PROVIDER_virtual/bootloader_sota ?= "u-boot" UBOOT_ENTRYPOINT_sota ?= "0x00008000" @@ -19,7 +15,7 @@ IMAGE_FSTYPES_remove_sota = "rpi-sdimg" OSTREE_BOOTLOADER ?= "u-boot" # OSTree puts its own boot.scr to bcm2835-bootfiles -IMAGE_BOOT_FILES_sota = "bcm2835-bootfiles/* u-boot.bin;${SDIMG_KERNELIMAGE}" +IMAGE_BOOT_FILES_sota = "bcm2835-bootfiles/* uEnv.txt u-boot.bin;${SDIMG_KERNELIMAGE}" # Just the overlays that will be used should be listed KERNEL_DEVICETREE_raspberrypi2_sota ?= " bcm2709-rpi-2-b.dtb " @@ -35,3 +31,5 @@ OSTREE_KERNEL_ARGS_sota ?= " 8250.nr_uarts=1 bcm2708_fb.fbwidth=656 bcm2708_fb.f SOTA_CLIENT_FEATURES_append = " ubootenv" +SOTA_ROLLBACK_MECHANISM = "file-env" + -- cgit v1.2.3-54-g00ecf