[yocto] wic: error when using --rootfs-dir=${IMAGE_ROOTFS}/data

Mittal, Anuj anuj.mittal at intel.com
Mon Jul 15 23:54:20 PDT 2019


On Tue, 2019-07-16 at 08:38 +0200, Belisko Marek wrote:
> I have wks file with following content:
> 
> part ubootenv --ondisk=mmcblk --no-table --size 12
> part /boot --source bootimg-partition --ondisk mmcblk --fstype=vfat
> --label boot --active --align 1024 --size 16
> part /root --source rootfs --ondisk mmcblk --fstype=ext4 --label
> rootA
> --align 1024 --fixed-size 300 --exclude-path data/
> part /data --source rootfs --rootfs-dir=${IMAGE_ROOTFS}/data --ondisk
> "mmcblk" --fstype=ext4 --label data --align 1024 --fixed-size 200
> 
> Basically I want to create extra data partition with content from
> rootfs /data directory. When wic image is created I'm getting strange
> errors like:
> 
> Couldn't get bitbake variable from
> /home/marekbelisko/.build/tmp/sysroots/raspberrypi0-
> wifi/imgdata/${IMAGE_ROOTFS}/data.env.
>  | File /home/marekbelisko/.build/tmp/sysroots/raspberrypi0-
> wifi/imgdata/${IMAGE_ROOTFS}/data.env
> doesn't exist.

If you haven't tried this already, renaming .wks to .wks.in might help.

Thanks,
Anuj


More information about the yocto mailing list