OpenWrt/LEDE Project

  • Status Unconfirmed
  • Percent Complete
  • Task Type Bug Report
  • Category Base system
  • Assigned To No-one
  • Operating System All
  • Severity Low
  • Priority Very Low
  • Reported Version Trunk
  • Due in Version Undecided
  • Due Date Undecided
  • Private
Attached to Project: OpenWrt/LEDE Project
Opened by jazzor - 14.09.2021

FS#4037 - CONFIG_TARGET_ROOTFS_PARTSIZE is not changed when reflashing the same sdcard

Building for Nanopi R4s using sdcard flash on squashfs image
1. set the CONFIG_TARGET_ROOTFS_PARTSIZE from the default 104mb to something say 500mb
2. write to sdcard using dd or sysupgrade
3. initially this will work as it will reformat from the default ext4 overlay to f2fs overlay (via libfstools common.c)
4. clean build and change the CONFIG_TARGET_ROOTFS_PARTSIZE to 1024mb and reflash
5. notice that in the flashed system the mount is still 500mb for overlay
6. changing the CONFIG_TARGET_ROOTFS_PARTSIZE to 300mb also does not work and the mount is still 500mb (could this be dangerous?)

1. inspect the sdcard and the partition is the correct size so the residual dirty data in the sdcard is causing the mount to think that its still 500mb
2. if you zero the partition using dd and then reflash the sdcard, the system will see the new overlay size


Available keyboard shortcuts


Task Details

Task Editing