mirror of
https://github.com/kernelkit/infix.git
synced 2026-07-30 04:33:00 +02:00
U-Boot (2024.07) does not yet support the 'metadata_csum' feature flag to Ext4 file systems. So let's disable it for now in mkaux.sh so we can allow builds for, e.g., the R2S and VisionFive2 boards to modify and save their U-Boot environment. Needed on the NanoPi R2S to set ethaddr + eth1addr since it does not have any VPD EEPROM mounted. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
40 lines
870 B
Bash
Executable File
40 lines
870 B
Bash
Executable File
#!/bin/sh
|
|
|
|
rootdir=$BUILD_DIR/genimage.root
|
|
tempdir=$BUILD_DIR/genimage.tmp
|
|
|
|
cat <<EOF > /tmp/mkaux.cfg
|
|
image aux.ext4 {
|
|
mountpoint = "/aux"
|
|
size = 16M
|
|
|
|
ext4 {
|
|
label = "aux"
|
|
use-mke2fs = true
|
|
features = "^metadata_csum,^metadata_csum_seed"
|
|
}
|
|
}
|
|
|
|
# Silence genimage warnings
|
|
config {}
|
|
EOF
|
|
|
|
rm -rf "$rootdir/aux"
|
|
mkdir -p "$rootdir/aux"
|
|
cp -f "$BINARIES_DIR/rootfs.itbh" "$rootdir/aux/primary.itbh"
|
|
cp -f "$BINARIES_DIR/rootfs.itbh" "$rootdir/aux/secondary.itbh"
|
|
cp -f "$BINARIES_DIR/rauc.status" "$rootdir/aux/rauc.status"
|
|
|
|
mkenvimage -s 0x4000 -o "$rootdir/aux/uboot.env" \
|
|
"$BR2_EXTERNAL_INFIX_PATH/board/common/uboot/aux-env.txt"
|
|
|
|
rm -rf "$BINARIES_DIR/aux.ext4"
|
|
rm -rf "$tempdir"
|
|
|
|
genimage \
|
|
--rootpath "$rootdir" \
|
|
--tmppath "$tempdir" \
|
|
--inputpath "$BINARIES_DIR" \
|
|
--outputpath "$BINARIES_DIR" \
|
|
--config "/tmp/mkaux.cfg"
|