common: Use plain SquashFS images on disk

Store FIT headers separately on aux, and place the raw SquashFS images
on primary/secondary. This removes the need to muck about with the
device mapper to setup the rootfs, and it allows us to boot using
syslinux files.
This commit is contained in:
Tobias Waldekranz
2023-03-13 09:55:16 +01:00
parent c328c41eff
commit 8296a98e61
5 changed files with 11 additions and 13 deletions
@@ -0,0 +1,3 @@
label Infix (aarch64)
kernel /boot/Image
append ${bootargs_root} ${bootargs_rauc} ${bootargs_log}
+3 -2
View File
@@ -42,12 +42,13 @@ image mmc.img {
}
partition primary {
image = "rootfs.itb"
image = "rootfs.squashfs"
size = 224M
}
partition secondary {
image = "rootfs.itb"
bootable = true
image = "rootfs.squashfs"
size = 224M
}
+2
View File
@@ -9,6 +9,8 @@ tmp=$BUILD_DIR/genimage.tmp
mkdir -p $root/aux
cp -f $BINARIES_DIR/uboot-env.bin $root/aux/uboot.env
cp -f $BINARIES_DIR/rootfs.itbh $root/aux/primary.itbh
cp -f $BINARIES_DIR/rootfs.itbh $root/aux/secondary.itbh
rm -rf $tmp
-10
View File
@@ -6,15 +6,6 @@
#address-cells = <0x1>;
images {
boot-script {
type = "script";
data = /incbin/("boot.script");
signature-1 {
algo = "sha256,rsa4096";
key-name-hint = "infix";
};
};
rootfs {
description = "Infix";
type = "ramdisk";
@@ -32,7 +23,6 @@
default = "verity";
verity {
ramdisk = "rootfs";
script = "boot-script";
};
};
};
+3 -1
View File
@@ -5,7 +5,9 @@ set -e
common=$(dirname $(readlink -f "$0"))
cd $BINARIES_DIR
cp $BR2_EXTERNAL_INFIX_PATH/board/$1/boot.script .
cp $common/rootfs.its .
mkimage -E -p 0x1000 -B 0x1000 -k $2 -f rootfs.its rootfs.itb
cp rootfs.itb rootfs.itbh
truncate -s $((0x1000)) rootfs.itbh