Hello

I have got an application where I need to be able to create an ext4 image file 
and copy files into, initially it'll be a kernel image.

I can do this manually using the following steps:

* Create an empty image file with more than enough space to store your files. - 
truncate -s 1G my.img
* Format it - mkfs.ext4 my.img
* Mount it as a loop device - mount -oloop my.img /mnt
* Copy the files into the mounted filesystem. - cp -a directory/. /mnt/.

Is it possible to create an ext4 image inside a bitbake recipe and copy my own 
files to it in a fashion similar to the steps above? If it is could someone 
please point me to some instuction for how to do it?

Thank in advance

Andrew
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#52562): https://lists.yoctoproject.org/g/yocto/message/52562
Mute This Topic: https://lists.yoctoproject.org/mt/81049890/21656
Mute #yocto:https://lists.yoctoproject.org/g/yocto/mutehashtag/yocto
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to