[meta-xilinx] Yocto inside docker

Tim Orling ticotimo at gmail.com
Wed Feb 21 12:10:42 PST 2018


2.1. Using CROPS and Containers¶
<http://www.yoctoproject.org/docs/2.4/mega-manual/mega-manual.html#qs-crops-build-host>

The "paragraph" sign above is a link.

On Wed, Feb 21, 2018 at 11:41 AM, Giordon Stark <kratsg at gmail.com> wrote:

> Thanks Tim, Peter -- this looks great.
>
> @Peter, I didn't see anything about docker in the yocto manual - can you
> link me where it was mentioned?
>
> Giordon
>
> On Tue, Feb 20, 2018 at 12:28 PM Tim Orling <ticotimo at gmail.com> wrote:
>
>> Documentation on how to use the CROPS docker containers on Linux, Mac and
>> Windows can be found here:
>> https://github.com/crops/docker-win-mac-docs/wiki
>>
>> On Tue, Feb 20, 2018 at 8:50 AM, Peter Smith <salerio at gmail.com> wrote:
>>
>>> Hi, I have used the "official" Yocto project crops containers without
>>> issue. You can find them here : https://github.com/crops/. There is
>>> some material about using them in the Yocto rocko manual.
>>>
>>> Best Regards
>>> Peter
>>>
>>> On 20 February 2018 at 16:12, Giordon Stark <kratsg at gmail.com> wrote:
>>>
>>>> Hi all,
>>>>
>>>> I found a docker image which looks to work for yocto builds here (
>>>> https://hub.docker.com/r/gmacario/build-yocto/) like so:
>>>>
>>>> docker run -ti --rm gmacario/build-yocto
>>>>
>>>> and then cloning poky and the other layers and running bitbake.
>>>> However, what works on my ubuntu machine seems to be failing in this docker
>>>> image on the unpack step for a recipe (see below).
>>>>
>>>> Has anyone seen this or has an idea why it's failing? I ran it by hand
>>>> manually, and I don't have issues.
>>>>
>>>> Giordon
>>>>
>>>> ERROR: linux-libc-headers-4.10-r0 do_unpack: Unpack failure for URL: '
>>>> http://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.10.tar.xz'. Unpack
>>>> command PATH="/home/build/poky/build/tmp/sysroots-uninative/x86_64-
>>>> linux/usr/bin:/home/build/openembedded-core/scripts:/
>>>> home/build/poky/build/tmp/work/aarch64-poky-linux/linux-
>>>> libc-headers/4.10-r0/recipe-sysroot-native/usr/bin/
>>>> aarch64-poky-linux:/home/build/poky/build/tmp/work/
>>>> aarch64-poky-linux/linux-libc-headers/4.10-r0/recipe-
>>>> sysroot/usr/bin/crossscripts:/home/build/poky/build/tmp/
>>>> work/aarch64-poky-linux/linux-libc-headers/4.10-r0/recipe-
>>>> sysroot-native/usr/sbin:/home/build/poky/build/tmp/work/
>>>> aarch64-poky-linux/linux-libc-headers/4.10-r0/recipe-
>>>> sysroot-native/usr/bin:/home/build/poky/build/tmp/work/
>>>> aarch64-poky-linux/linux-libc-headers/4.10-r0/recipe-
>>>> sysroot-native/sbin:/home/build/poky/build/tmp/work/
>>>> aarch64-poky-linux/linux-libc-headers/4.10-r0/recipe-
>>>> sysroot-native/bin:/home/build/poky/bitbake/bin:/home/
>>>> build/poky/build/tmp/hosttools" xz -dc /home/build/poky/build/downloads/linux-4.10.tar.xz
>>>> | tar x --no-same-owner -f - failed with return value 2
>>>> ERROR: linux-libc-headers-4.10-r0 do_unpack: Function failed:
>>>> base_do_unpack
>>>> ERROR: Logfile of failure stored in: /home/build/poky/build/tmp/
>>>> work/aarch64-poky-linux/linux-libc-headers/4.10-r0/temp/log.
>>>> do_unpack.4320
>>>> ERROR: Task (/home/build/openembedded-core/meta/recipes-kernel/
>>>> linux-libc-headers/linux-libc-headers_4.10.bb:do_unpack) failed with
>>>> exit code '1'
>>>> NOTE: Tasks Summary: Attempted 278 tasks of which 256 didn't need to be
>>>> rerun and 1 failed.
>>>>
>>>> Summary: 1 task failed:
>>>>   /home/build/openembedded-core/meta/recipes-kernel/linux-
>>>> libc-headers/linux-libc-headers_4.10.bb:do_unpack
>>>> Summary: There was 1 WARNING message shown.
>>>> Summary: There were 2 ERROR messages shown, returning a non-zero exit
>>>> code.
>>>>
>>>> --
>>>> Giordon Stark
>>>>
>>>> --
>>>> _______________________________________________
>>>> meta-xilinx mailing list
>>>> meta-xilinx at yoctoproject.org
>>>> https://lists.yoctoproject.org/listinfo/meta-xilinx
>>>>
>>>>
>>>
>>> --
>>> _______________________________________________
>>> meta-xilinx mailing list
>>> meta-xilinx at yoctoproject.org
>>> https://lists.yoctoproject.org/listinfo/meta-xilinx
>>>
>>>
>> --
> Giordon Stark
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-xilinx/attachments/20180221/b2a6ba6e/attachment.html>


More information about the meta-xilinx mailing list