part /mnt/persistent --ondisk mmcblk1 --fstype=ext4 --label persistent --fixed-size 10 part / --source rootfs --ondisk mmcblk1 --fstype=ext4 --label rootfs1 --size 500 part /mnt/rootfs2 --source rootfs --ondisk mmcblk1 --fstype=ext4 --label rootfs2 --size 500 part /mnt/internal_storage --ondisk mmcblk1 --fstype=ext4 --label data --size 1000
bootloader --ptable msdos
That should create 7 partitions of which 5 have a file system. However, when I flash the emmc with it and boot the device:
# fdisk /dev/mmcblk1
Disk /dev/mmcblk1: 3.62 GiB, 3867148288 bytes, 7553024 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x0813790a
Device Boot Start End Sectors Size Id Type /dev/mmcblk1p1 * 8192 40959 32768 16M c W95 FAT32 (LBA) /dev/mmcblk1p2 40960 61439 20480 10M 83 Linux /dev/mmcblk1p3 61440 1392639 1331200 650M 83 Linux /dev/mmcblk1p4 1392640 4771841 3379202 1.6G f W95 Ext'd (LBA) /dev/mmcblk1p5 1392641 2723840 1331200 650M 83 Linux /dev/mmcblk1p6 2723842 4771841 2048000 1000M 83 Linux
There is another partition that essentially overlaps the last two. That makes no sense.
That makes sense for DOS partitioning; there can only be 4 primary partitions, so number 4 is marked as an extended partition with the total space of the further logical partitions.