Skip to contentSkip to conversation

Wic creates spurious partition

yocto Rudolf J Streif 1 participant 1 message Apr 30, 2020 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Ok, I found the answer to my own question. It's the typical extended partition issue.

:rjs

Quoted 50 lines · Rudolf J Streif via lists.yoctoproject.org

I seem to be running into wic problems today...

I have the following wks file:

part SPL --source rawcopy --sourceparams="file=SPL" --ondisk mmcblk --no-table --align 1
part u-boot --source rawcopy --sourceparams="file=${UBOOT_BINARY}" --ondisk mmcblk --no-table --align 69
part /boot --source bootimg-partition --ondisk mmcblk1 --fstype=vfat --label boot --active --align 4096 --fixed-size 16

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.

Thanks,
Rudi