mirror of
git://git.yoctoproject.org/meta-rockchip.git
synced 2025-07-05 05:04:47 +02:00

Add an example of implementing rauc on a rockchip board. Adding the meta-rauc layer, adding 'rauc' to DISTRO_FEATURES, and enabling RK_RAUC_DEMO will build an image using the example provided in dynamic-layers/rk-rauc-demo. This example uses a simple A/B + D scheme (i.e. two root partitions and a non-updated /data partition). Repartitioning occurs automatically on first boot thanks to systemd's 'repart' mechanism. NOTE: - this example only works with systemd If you wish to provide your own implementation, simply add the meta-rauc layer, add 'rauc' to DISTRO_FEATURES, don't enable RK_RAUC_DEMO, and provide your own implementation in a separate layer. Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de> Signed-off-by: Trevor Woerner <twoerner@gmail.com>
31 lines
867 B
C++
31 lines
867 B
C++
# common meta-rockchip wic/wks items
|
|
|
|
require conf/machine/include/rockchip-extlinux.inc
|
|
require conf/machine/include/rockchip-rk-u-boot-env.inc
|
|
require conf/machine/include/rockchip-rauc.inc
|
|
|
|
SPL_BINARY ?= "idbloader.img"
|
|
|
|
# if you use the following variable, make sure to add the '.' e.g.
|
|
# WIC_COMPRESSION_EXTENSION = ".xz"
|
|
WIC_COMPRESSION_EXTENSION ?= ""
|
|
IMAGE_FSTYPES += "wic${WIC_COMPRESSION_EXTENSION} wic.bmap"
|
|
IMAGE_FSTYPES:append:rk-rauc-demo = " ext4"
|
|
WKS_FILE ?= "rockchip.wks"
|
|
WKS_FILE_DEPENDS ?= " \
|
|
e2fsprogs-native \
|
|
virtual/bootloader \
|
|
"
|
|
|
|
RK_IMAGE_INCLUDES_UBOOT_ENV ?= "no"
|
|
RK_UBOOT_ENV = " "
|
|
RK_UBOOT_ENV:rk-u-boot-env = "${@ '--source rawcopy --sourceparams=file=u-boot.env' \
|
|
if bb.utils.to_boolean(d.getVar('RK_IMAGE_INCLUDES_UBOOT_ENV'), False) else ' '}"
|
|
|
|
WICVARS:append = " \
|
|
RK_UBOOT_ENV \
|
|
ROOT_DPS \
|
|
SPL_BINARY \
|
|
UBOOT_SUFFIX \
|
|
"
|