[yocto] File copy to bootfs

Alex Kiernan alex.kiernan at gmail.com
Sun Jul 29 11:11:59 PDT 2018


Add it to your wic file - assuming that's how you're building your image.
If it's not, obviously it's not going to help you!

On Sun, 29 Jul 2018, 17:12 Karim Gillani, <karim at gillani.org> wrote:

> Thank you.  Can I use that command in my image .bb file?
>
> so something like this?
> replace:
> install -m 0644 ${WORKDIR}/config.txt ${DEPLOY_DIR_IMAGE}/boot/
> sbcconf/config.txt
>
> with:
>
> wic cp ${WORKDIR}/config.txt --native-sysroot /boot/sbcconf/config.txt
>
>
> On 29 July 2018 at 01:46, Alex Kiernan <alex.kiernan at gmail.com> wrote:
>
>> wic cp? Can't spot it in the manual, but look in:
>>
>> https://git.yoctoproject.org/cgit.cgi/poky/plain/scripts/lib/wic/help.py
>>
>>
>>
>> On Sun, 29 Jul 2018, 07:01 Karim Gillani, <karim at gillani.org> wrote:
>>
>>> This commands places the file in the /boot directory but then a script
>>> used within rootfs can't see it.
>>>
>>> install -m 0644 ${WORKDIR}/config.txt
>>> ${DEPLOY_DIR_IMAGE}/boot/sbcconf/config.txt
>>>
>>> The next command puts it in a place where the rootfs can access it, but
>>> I can't access the file in the fat partition.
>>> install -m 0644 ${WORKDIR}/config.txt ${D}/boot/sbcconf/config.txt
>>>
>>> Any suggestions?
>>>
>>> On 28 July 2018 at 21:47, Karim Gillani <karim at gillani.org> wrote:
>>>
>>>> Is there an easy way to copy a couple of files to the $bootfs  (/boot
>>>> directory)?
>>>>
>>>> when I copy files there, they show as if they are in /boot but they are
>>>> not on the bootfs partition.
>>>>
>>>> Thanks
>>>> Karim
>>>>
>>>
>>> --
>>> _______________________________________________
>>> yocto mailing list
>>> yocto at yoctoproject.org
>>> https://lists.yoctoproject.org/listinfo/yocto
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20180729/521cdfff/attachment-0001.html>


More information about the yocto mailing list