mirror of
https://github.com/kernelkit/infix.git
synced 2026-08-03 06:13:02 +02:00
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:
@@ -0,0 +1,3 @@
|
||||
label Infix (aarch64)
|
||||
kernel /boot/Image
|
||||
append ${bootargs_root} ${bootargs_rauc} ${bootargs_log}
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user