AnsweredAssumed Answered

How to create and flash separate images?

Question asked by cemal cicedes on Jun 15, 2020
Latest reply on Jun 18, 2020 by cemal cicedes

Hi all,

We are working on Yocto project on imx8 with 32GB eMMC flash. We managed to create separate partitions for /home and /userdata by creating a "" file. We can flash the generated ".wic" image on eMMC via UUU tool and once the boards boots, we have /home and /userdata partitions on separate blocks as follow:


mmcblk0      179:0    0 29.7G  0 disk
|-mmcblk0p1  179:1    0 44.3M  0 part /boot
|-mmcblk0p2  179:2    0  4.9G  0 part /
|-mmcblk0p3  179:3    0  150M  0 part /userdata
`-mmcblk0p4  179:4    0  120M  0 part /home

Now we need to find a way to create and flash images for /home and /userdata partitions separately and without touching other partitions. We created a .wic image for /userdata but we couldn't flash it via UUU tool nor dd command. UUU doesn't have an option for flashing the specific partition and dd command gives an error telling us that the image size is greater than partition size. (fixed size in wks file is 150Mb but the .wic image size is around 180Mb).

Is there a way in WIC to create and flash separate images for partitions?