difos/target/linux/bcm4908
Rafał Miłecki 93259e8ca2 bcm4908: support "rootfs_data" on U-Boot devices
1. Create "rootfs_data" dynamicaly

U-Boot firmware images can contain only 2 UBI volumes: bootfs (container
with U-Boot + kernel + DTBs) and rootfs (e.g. squashfs). There is no way
to include "rootfs_data" UBI volume or make firmware file tell U-Boot to
create one.

For that reason "rootfs_data" needs to be created dynamically. Use
preinit script to handle that. Fire it right before "mount_root" one.

2. Relate "rootfs_data" to flashed firmware

As already explained flashing new firmware with U-Boot will do nothing
to the "rootfs_data". It could result in new firmware reusing old
"rootfs_data" overlay UBI volume and its file. Users expect a clean
state after flashing firmware (even if flashing the same one).

Solve that by reading flash counter of running firmware and storing it
in "rootfs_data" UBI volume. Every mismatch will result in wiping old
data.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
2022-03-04 16:14:59 +01:00
..
base-files bcm4908: support "rootfs_data" on U-Boot devices 2022-03-04 16:14:59 +01:00
files-5.4/drivers/net/ethernet/broadcom bcm4908: add Ethernet driver 2021-02-08 11:49:21 +01:00
files-5.10/drivers/net/ethernet/broadcom bcm4908: prepare kernel 5.10 support 2021-11-03 12:08:40 +01:00
generic bcm4908: initial work on the Broadcom BCM4908 target 2021-01-12 21:10:51 +01:00
image bcm4908: include ATF in bootfs images 2021-12-24 23:07:39 +01:00
patches-5.4 bcm4908: fix USB PHY support 2022-02-25 10:48:32 +01:00
patches-5.10 kernel: bump 5.10 to 5.10.102 2022-03-01 21:38:36 +01:00
config-5.4 bcm4908: backport watchdog and I2C changes 2022-02-16 09:02:59 +01:00
config-5.10 bcm4908: backport watchdog and I2C changes 2022-02-16 09:02:59 +01:00
Makefile bcm4908: add uboot-envtools to default packages 2021-12-16 08:26:25 +01:00