macmpi 657b468231 scripts/mkimg.arm.sh: build Pi img as resizable FAT16 partition
Construct a partitioned disk, resizable with libparted-based tools (gparted and al.).
libparted has limitations to cross cluster size boundaries in resize operations [1].
Use the minimum image file size to ensure FAT16 partition crosses the 2K/4K cluster size boundary (128MB+)[2].
In MB alignment, this is a full image 130MB = 129MB + 1MB offset for partition table (sector 2048 =1MB).

[1] https://www.gnu.org/software/parted/manual/html_node/parted_58.html
[2] https://www.pctechguide.com/hard-disks/file-systems-fat-fat8-fat16-fat32-and-ntfs-explained
2025-10-13 07:59:24 +00:00
..