Files
Tobias Waldekranz 8296a98e61 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.
2023-03-13 09:55:16 +01:00

14 lines
225 B
Bash
Executable File

#!/bin/sh
set -e
common=$(dirname $(readlink -f "$0"))
cd $BINARIES_DIR
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