bcm27xx: Add padding after writing rootfs to image.
authorOrne Brocaar <[email protected]>
Tue, 9 Sep 2025 09:04:59 +0000 (10:04 +0100)
committerRobert Marko <[email protected]>
Sun, 14 Sep 2025 09:46:19 +0000 (11:46 +0200)
commit20aeef1ef845871a385f2c9437efdf5f8432a446
tree4ab08203518b66cb6ddbf5d766d183b65d1d91ad
parentb63a48b012b7af0da14ea04ff345512254dc69d6
bcm27xx: Add padding after writing rootfs to image.

This addresses #9113 by adding up to 1MB padding after writing the
rootfs image. On boot mount_root will probe for existing filesystems
after the rootfs image data. Without overwriting the initial free
space left on the rootfs partition, OpenWrt might incorrectly detect
an exising filesystem and fails to mount it, resulting in a bricked
device as the overlayfs will not be mountend and settings will not be
available.

Fixes #9113.

Signed-off-by: Orne Brocaar <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/19997
Signed-off-by: Robert Marko <[email protected]>
target/linux/bcm27xx/image/gen_rpi_sdcard_img.sh