@@ -8,7 +8,26 @@
DISTRO_ARCH = "armhf"
-IMAGE_FSTYPES ?= "wic"
-IMAGER_INSTALL += "u-boot-omap"
+IMAGE_FSTYPES ?= "ext4-img"
+
+PREFERRED_PROVIDER_u-boot-${MACHINE} = "u-boot-bbb"
+PREFERRED_PROVIDER_u-boot-tools = "u-boot-bbb"
+
+DTB_FILES = "am335x-boneblack.dtb"
+
+IMAGE_BOOT_FILES = " \
+ /usr/lib/u-boot/bbb/u-boot.img;u-boot.img \
+ /usr/lib/u-boot/bbb/MLO;MLO \
+ ${DEPLOY_DIR_IMAGE}/boot.scr;boot.scr \
+ ${DEPLOY_DIR_IMAGE}/uboot.env;uboot.env \
+ ${DEPLOY_DIR_IMAGE}/${DTB_FILES};${DTB_FILES} \
+ ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGE};vmlinuz \
+ ${DEPLOY_DIR_IMAGE}/${INITRD_IMAGE};initrd"
IMAGE_INSTALL += "u-boot-script"
+
+IMAGER_INSTALL += "u-boot-bbb"
+IMAGER_BUILD_DEPS += "u-boot-bbb"
+
+# Currently supported bootloader bindings for SWUpdate are 'u-boot' and 'efibootguard'.
+SWUPDATE_BOOTLOADER = "u-boot"
@@ -11,10 +11,10 @@
software =
{
version = "0.2";
- name = "cip software update";
+ name = "cip software update"
images: ({
filename = "${ROOTFS_PARTITION_NAME}";
- device = "C:BOOT0:linux.efi->fedcba98-7654-3210-cafe-5e0710000001,C:BOOT1:linux.efi->fedcba98-7654-3210-cafe-5e0710000002";
+ device = "/dev/mmcblk0p2,/dev/mmcblk0p3";
type = "roundrobin";
compressed = "zlib";
filesystem = "ext4";
@@ -22,14 +22,5 @@ software =
subtype = "image";
};
});
- files: ({
- filename = "linux.efi";
- path = "linux.efi";
- type = "roundrobin";
- device = "C:BOOT0:linux.efi->BOOT0,C:BOOT1:linux.efi->BOOT1";
- filesystem = "vfat";
- properties: {
- subtype = "kernel";
- };
- });
}
+
@@ -14,11 +14,12 @@ inherit read-only-rootfs
ROOTFS_PARTITION_NAME = "${IMAGE_FULLNAME}.wic.p4.gz"
-FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
+EXTRACT_PARTITIONS = "img4"
+ROOTFS_PARTITION_NAME = "${IMAGE_FULLNAME}.wic.p2.gz"
SRC_URI += "file://sw-description.tmpl"
TEMPLATE_FILES += "sw-description.tmpl"
+TEMPLATE_VARS += "PN ROOTFS_PARTITION_NAME KERNEL_IMAGE INITRD_IMAGE"
-TEMPLATE_VARS += "ROOTFS_PARTITION_NAME"
+SWU_ADDITIONAL_FILES += "${ROOTFS_PARTITION_NAME}"
-SWU_ADDITIONAL_FILES += "linux.efi ${ROOTFS_PARTITION_NAME}"
new file mode 100644
@@ -0,0 +1,26 @@
+[image]
+chainhandler=raw
+
+[image.selector]
+method=cmdline_rr
+key=root
+
+[image.bootenv]
+ustate=1
+
+[kernel]
+chainhandler=rawfile
+
+[kernel.selector]
+method=cmdline_rrmap
+key=root
+
+[kernel.bootenv]
+kernelfile=C:BOOT${rrindex}:vmlinuz-linux
+
+[initrd]
+chainhandler=rawfile
+
+[initrd.selector]
+method=cmdline_rrmap
+key=root