scripts/om-fwupgradecfg-gen.sh: Generate checksum over whole squashfs
authorSven Eckelmann <sven@narfation.org>
Wed, 25 Nov 2020 09:48:57 +0000 (10:48 +0100)
committerPetr Štetiar <ynezz@true.cz>
Tue, 22 Dec 2020 18:11:50 +0000 (19:11 +0100)
commita4c30d9399bdd7f5c42409b959d52230a97600c9
treed684eaa2b6742777b61d42f41671dacf0f59247c
parent7c75eaadfcddd5375d0cfd8a4eeed8e8f9e1a094
scripts/om-fwupgradecfg-gen.sh: Generate checksum over whole squashfs

The rootfs is padded to the full block size by padjffs2 and a 4 byte magic
value ("deadc0de") is added to the end. On first boot, the JFFS2 is
replacing the "deadc0de" marker when the rootfs_data is initialized.

The static part of the rootfs is therefore $rootfs_size - 4 and not
$rootfs_size - 262144 - 4.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
scripts/om-fwupgradecfg-gen.sh