This might be a fairly simple question, there is a few things I'm missing. I'm trying to use wic
as a replacement for a custom script for laying out a boot partition. The device is an IMX6 and has uboot written at 0x400, and a fat32 boot partition to load off of with a /boot folder.. containing some files
/boot
uImage
root.squashfs
splash.bmp
devicetree.dts
6x_bootscript
I briefly looked into the plugin that uses bootimg-partition for wic
. Seems like a simple way to include files, but not enough control over the name of the files. It can take an entire folder but I'm not sure how to create a directory with those specific files. The files have to have the correct name after copying.
# Copied from https://community.nxp.com/thread/389816
# Image Creator .wks
part u-boot --source rawcopy --sourceparams="file=u-boot.imx" --ondisk mmcblk --no-table --align 1
# Boot partition
part /boot --source bootimg-partition --ondisk mmcblk --fstype=vfat --label boot --active --align 4096 --size 8M --extra-space 0