OE4T / meta-tegra

BSP layer for NVIDIA Jetson platforms, based on L4T
MIT License
385 stars 216 forks source link

tegra-storage-layout: fix support for large rootfs #1466

Closed dwalkes closed 5 months ago

dwalkes commented 5 months ago

When using a rootfs with external device too large for the emmc and a redundant rootfs partition, the APP_b partition is not removed from the emmc partition and therefore bup payload creation fails when it tries to place the too large rootfs into the emmc.

Expand the existing logic to remove the APP_b partition, if it exists, in addition to the APP partition.

Tested with jetson-xavier-nx-devkit-emmc with nvme and this config:

TNSPEC_BOOTDEV = "nvme0n1p1"
TEGRA_EXTERNAL_DEVICE_SECTORS = "488397168"
USE_REDUNDANT_FLASH_LAYOUT_DEFAULT = "1"
ROOTFSPART_SIZE = "59055800320"

After boot I see a 51GB rootfs

root@jetson-xavier-nx-devkit-emmc:~# df -h | grep nvme
/dev/nvme0n1p1           51.3G    720.3M     47.8G   1% /

Closes https://github.com/OE4T/meta-tegra/issues/1439