I'm trying to partition my Yocto image using wic and a .wks
file, but I'm running into issues. This is what my current .wks
file looks like:
part /boot --source bootimg-partition --ondisk mmcblk0 --fstype=vfat --label boot --active --size 20M
part / --source rootfs --ondisk mmcblk0 --fstype=ext4 --label root --align 4096 --size 1G
part /update --ondisk mmcblk0 --fstype=ext4 --label update --align 4096 --size 20M
part /user-data --ondisk mmcblk0 --fstype=ext4 --label user-data --align 4096 --size 20M
I generate the .direct
image using the wic create
command, and write to the card using the wic write
command. However, this causes a kernel panic error. The GNOME Disks application shows the contents of update and user-data to be unknown:
Removing the part commands for the update and user-data partitions produces an image which - when written to the board - does not cause a kernel panic, so my assumption is that there is an issue with what I'm doing in these lines. The question is, what am I doing wrong?