nwl-test-image: Create a wic file for sitara devices

id:458169
This commit is contained in:
Alexandre Bard 2023-10-25 17:06:33 +02:00 committed by Alexandre Bard
parent f7a130b901
commit 19f4f4f7a3
4 changed files with 20 additions and 3 deletions

View File

@ -22,14 +22,13 @@ include conf/machine/include/arm/armv7a/tune-cortexa8.inc
# IMAGE_FSTYPES += "tar.bz2 jffs2 wic wic.bmap" # IMAGE_FSTYPES += "tar.bz2 jffs2 wic wic.bmap"
# EXTRA_IMAGECMD_jffs2 = "-lnp " # EXTRA_IMAGECMD_jffs2 = "-lnp "
# WKS_FILE ?= "beaglebone-yocto.wks"
# IMAGE_INSTALL_append = " kernel-devicetree kernel-image-zimage" # IMAGE_INSTALL_append = " kernel-devicetree kernel-image-zimage"
# do_image_wic[depends] += "mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot" # do_image_wic[depends] += "mtools-native:do_populate_sysroot dosfstools-native:do_populate_sysroot"
# SERIAL_CONSOLES = "115200;ttyO0" # SERIAL_CONSOLES = "115200;ttyO0"
# PREFERRED_PROVIDER_virtual/kernel ?= "linux-mainline" WKS_FILE ?= "nm-am335x-mmc.wks"
# PREFERRED_VERSION_linux-yocto ?= "4.18%" do_image_wic[depends] += "virtual/bootloader:do_deploy"
KERNEL_IMAGETYPE = "zImage" KERNEL_IMAGETYPE = "zImage"

View File

@ -0,0 +1,13 @@
# Dual root partition for sitara devices
part SPL --offset 256S --source rawcopy --sourceparams="file=MLO" --ondisk mmcblk1 --part-name "spl" --no-table
part u-boot --offset 768S --source rawcopy --sourceparams="file=u-boot.img" --ondisk mmcblk1 --part-name "uboot0" --no-table
part u-boot --offset 6912S --source rawcopy --sourceparams="file=u-boot.img" --ondisk mmcblk1 --part-name "uboot1" --no-table
part / --source rootfs --fstype=ext4 --ondisk mmcblk1 --fixed-size 1G --label "rootfs0"
part / --source rootfs --fstype=ext4 --ondisk mmcblk1 --fixed-size 1G --label "rootfs1"
# Shared data partition to be extended on live system
part /data --fstype=ext4 --ondisk mmcblk1 --size 100M --label "data" --part-name "data"
bootloader --ptable gpt

View File

@ -1,2 +1,5 @@
# Base classe for all image based on NWL # Base classe for all image based on NWL
COREOS_IMAGE_GENERATE_SWU = "0"
COREOS_IMAGE_GENERATE_INSTALLER = "0"
inherit coreos-image inherit coreos-image

View File

@ -15,3 +15,5 @@ inherit nwl-image
# Add features and packages that are used in our tests: # Add features and packages that are used in our tests:
IMAGE_FEATURES += "ssh-server networkmanager swupdate" IMAGE_FEATURES += "ssh-server networkmanager swupdate"
IMAGE_INSTALL:append = " packagegroup-core-full-cmdline swupdate-www" IMAGE_INSTALL:append = " packagegroup-core-full-cmdline swupdate-www"
IMAGE_FSTYPES += "wic.xz wic.bmap"