All of lore.kernel.org
 help / color / mirror / Atom feed
* Using Docker containers on Yocto with RISC-V architecture #meta-virtualization #yocto
@ 2022-12-29 23:10 jmoreno
  2022-12-30  2:08 ` [meta-virtualization] " Bruce Ashfield
  2022-12-30 12:00 ` Jose Quaresma
  0 siblings, 2 replies; 6+ messages in thread
From: jmoreno @ 2022-12-29 23:10 UTC (permalink / raw)
  To: meta-virtualization

[-- Attachment #1: Type: text/plain, Size: 1124 bytes --]

Hello,

I am using Yocto on a RISC-V board, Microchip PolarFire Icicle Kit:
https://www.microsemi.com/ existing-parts/parts/152514 ( https://www.microsemi.com/existing-parts/parts/152514 )
(Board's Yocto directory: https://github.com/ polarfire-soc/meta-polarfire- soc-yocto-bsp ( https://github.com/polarfire-soc/meta-polarfire-soc-yocto-bsp ) )

I would like to use docker containers with this OS and architecture. Seeking advice with "meta-virtualization", is this feasible?

What I have done:

* I have added the "meta-virtualization" layer (pulled from git) and added them to "bblayers.conf".

* In "local.conf", I added the line:

* IMAGE_INSTALL += "docker"

* After running bitbake, I get an error message:

| NOTE: make -j 32 cross-local
| cross-local
| -linkshared not supported on linux/riscv64
| make: *** [Makefile:85: cross-local] Error 1
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
ERROR: Task (/home/ubuntu/work/yocto/ yocto-dev/meta-virtualization/ recipes-containers/docker/ docker-ce_git.bb:do_compile) failed with exit code '1'

Thanks,

Jonathan

[-- Attachment #2: Type: text/html, Size: 5955 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [meta-virtualization] Using Docker containers on Yocto with RISC-V architecture #meta-virtualization #yocto
  2022-12-29 23:10 Using Docker containers on Yocto with RISC-V architecture #meta-virtualization #yocto jmoreno
@ 2022-12-30  2:08 ` Bruce Ashfield
  2022-12-30 12:00 ` Jose Quaresma
  1 sibling, 0 replies; 6+ messages in thread
From: Bruce Ashfield @ 2022-12-30  2:08 UTC (permalink / raw)
  To: jmoreno; +Cc: meta-virtualization

[-- Attachment #1: Type: text/plain, Size: 2604 bytes --]

On Thu, Dec 29, 2022 at 6:10 PM <jmoreno@tierralunaengineering.com> wrote:

> Hello,
>
> I am using Yocto on a RISC-V board, Microchip PolarFire Icicle Kit:
> https://www.microsemi.com/existing-parts/parts/152514
> (Board's Yocto directory:
> https://github.com/polarfire-soc/meta-polarfire-soc-yocto-bsp)
>
> I would like to use docker containers with this OS and architecture.
> Seeking advice with "meta-virtualization", is this feasible?
>
> What I have done:
>
>    - I have added the "meta-virtualization" layer (pulled from git) and
>    added them to "bblayers.conf".
>
>
>    - In "local.conf", I added the line:
>       - IMAGE_INSTALL += "docker"
>    - After running bitbake, I get an error message:
>
> | NOTE: make -j 32 cross-local
> | [image: 🐳] cross-local
> | -linkshared not supported on linux/riscv64
> | make: *** [Makefile:85: cross-local] Error 1
> | ERROR: oe_runmake failed
> | WARNING: exit code 1 from a shell command.
> ERROR: Task (/home/ubuntu/work/yocto/yocto-dev/meta-virtualization/
> recipes-containers/docker/docker-ce_git.bb:do_compile) failed with exit
> code '1'
>
>
riscv isn't an architecture that is built or tested with meta-virt, so
while it might be feasible, I don't even know what work would be required
to get all the components building for the architecture.

Clearly the flags we are using in the recipe don't work for riscv (or
perhaps they are being added by the docker Makefiles themselves .. I'm not
on my typical setup so I can't check), so that's the first thing to
investigate and then work through the issues.

Patches to fix the build for the architecture would be accepted, but
there's no one that I know of who's currently working on support.

Bruce




> Thanks,
>
> Jonathan
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#7782):
> https://lists.yoctoproject.org/g/meta-virtualization/message/7782
> Mute This Topic: https://lists.yoctoproject.org/mt/95945792/1050810
> Mute #meta-virtualization:
> https://lists.yoctoproject.org/g/meta-virtualization/mutehashtag/meta-virtualization
> Mute #yocto:
> https://lists.yoctoproject.org/g/meta-virtualization/mutehashtag/yocto
> Group Owner: meta-virtualization+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [
> bruce.ashfield@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>

-- 
- Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end
- "Use the force Harry" - Gandalf, Star Trek II

[-- Attachment #2: Type: text/html, Size: 7862 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [meta-virtualization] Using Docker containers on Yocto with RISC-V architecture #meta-virtualization #yocto
  2022-12-29 23:10 Using Docker containers on Yocto with RISC-V architecture #meta-virtualization #yocto jmoreno
  2022-12-30  2:08 ` [meta-virtualization] " Bruce Ashfield
@ 2022-12-30 12:00 ` Jose Quaresma
  2022-12-31  1:31   ` jmoreno
  1 sibling, 1 reply; 6+ messages in thread
From: Jose Quaresma @ 2022-12-30 12:00 UTC (permalink / raw)
  To: jmoreno; +Cc: meta-virtualization

[-- Attachment #1: Type: text/plain, Size: 2236 bytes --]

Hi Jonathan,

<jmoreno@tierralunaengineering.com> escreveu no dia quinta, 29/12/2022 à(s)
23:10:

> Hello,
>
> I am using Yocto on a RISC-V board, Microchip PolarFire Icicle Kit:
> https://www.microsemi.com/existing-parts/parts/152514
> (Board's Yocto directory:
> https://github.com/polarfire-soc/meta-polarfire-soc-yocto-bsp)
>
> I would like to use docker containers with this OS and architecture.
> Seeking advice with "meta-virtualization", is this feasible?
>
> What I have done:
>
>    - I have added the "meta-virtualization" layer (pulled from git) and
>    added them to "bblayers.conf".
>
>
>    - In "local.conf", I added the line:
>       - IMAGE_INSTALL += "docker"
>    - After running bitbake, I get an error message:
>
> | NOTE: make -j 32 cross-local
> | [image: 🐳] cross-local
> | -linkshared not supported on linux/riscv64
> | make: *** [Makefile:85: cross-local] Error 1
> | ERROR: oe_runmake failed
> | WARNING: exit code 1 from a shell command.
> ERROR: Task (/home/ubuntu/work/yocto/yocto-dev/meta-virtualization/
> recipes-containers/docker/docker-ce_git.bb:do_compile) failed with exit
> code '1'


This build issue is already fixed on some meta-virtualization git branches.
At last master, langdale and kirkstone have the patch, are you using any of
them?

https://git.yoctoproject.org/meta-virtualization/commit/recipes-containers/docker?id=2d0f7255a75d24ec3e3b686d70e97d20dc39c259

Can you please try this patch?

Jose


>
> Thanks,
>
> Jonathan
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#7782):
> https://lists.yoctoproject.org/g/meta-virtualization/message/7782
> Mute This Topic: https://lists.yoctoproject.org/mt/95945792/5052612
> Mute #meta-virtualization:
> https://lists.yoctoproject.org/g/meta-virtualization/mutehashtag/meta-virtualization
> Mute #yocto:
> https://lists.yoctoproject.org/g/meta-virtualization/mutehashtag/yocto
> Group Owner: meta-virtualization+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [
> quaresma.jose@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>

-- 
Best regards,

José Quaresma

[-- Attachment #2: Type: text/html, Size: 7119 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Using Docker containers on Yocto with RISC-V architecture #meta-virtualization #yocto
  2022-12-30 12:00 ` Jose Quaresma
@ 2022-12-31  1:31   ` jmoreno
  2022-12-31  1:50     ` jmoreno
  0 siblings, 1 reply; 6+ messages in thread
From: jmoreno @ 2022-12-31  1:31 UTC (permalink / raw)
  To: meta-virtualization

[-- Attachment #1: Type: text/plain, Size: 7 bytes --]

Hello

[-- Attachment #2: Type: text/html, Size: 7 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Using Docker containers on Yocto with RISC-V architecture #meta-virtualization #yocto
  2022-12-31  1:31   ` jmoreno
@ 2022-12-31  1:50     ` jmoreno
  2023-01-04  7:44       ` [meta-virtualization] " Joakim Roubert
  0 siblings, 1 reply; 6+ messages in thread
From: jmoreno @ 2022-12-31  1:50 UTC (permalink / raw)
  To: meta-virtualization


[-- Attachment #1.1.1: Type: text/plain, Size: 479 bytes --]

Hello Bruce and Jose,

Thank you for your valuable input.
I needed to update from Honister to Kirkstone.
Using Kirkstone, I was to successfully build with meta-virtualization layer and include the CORE_IMAGE_EXTRA_INSTALL="docker".

However, I am now having a different bug.
"Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?"
I include some screenshots of the error.

Is this a familiar problem?

Thanks,

Jonathan

[-- Attachment #1.1.2: Type: text/html, Size: 536 bytes --]

[-- Attachment #1.2: Screenshot from 2022-12-30 16-52-42.png --]
[-- Type: image/png, Size: 160119 bytes --]

[-- Attachment #1.3: Screenshot from 2022-12-30 17-00-46.png --]
[-- Type: image/png, Size: 176213 bytes --]

[-- Attachment #2: Screenshot from 2022-12-30 16-52-42.png --]
[-- Type: image/png, Size: 72774 bytes --]

[-- Attachment #3: Screenshot from 2022-12-30 17-00-46.png --]
[-- Type: image/png, Size: 80309 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [meta-virtualization] Using Docker containers on Yocto with RISC-V architecture #meta-virtualization #yocto
  2022-12-31  1:50     ` jmoreno
@ 2023-01-04  7:44       ` Joakim Roubert
  0 siblings, 0 replies; 6+ messages in thread
From: Joakim Roubert @ 2023-01-04  7:44 UTC (permalink / raw)
  To: meta-virtualization

On 2022-12-31 02:50, jmoreno@tierralunaengineering.com wrote:
>
> I include some screenshots of the error.

To me, it seems like you need to add some additional kernel 
configurations for your build, enabling e.g. overlayfs support in your 
kernel.

BR,

/Joakim



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-01-04  7:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-29 23:10 Using Docker containers on Yocto with RISC-V architecture #meta-virtualization #yocto jmoreno
2022-12-30  2:08 ` [meta-virtualization] " Bruce Ashfield
2022-12-30 12:00 ` Jose Quaresma
2022-12-31  1:31   ` jmoreno
2022-12-31  1:50     ` jmoreno
2023-01-04  7:44       ` [meta-virtualization] " Joakim Roubert

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.