Skip to contentSkip to conversation

CIP / Yocto / RaspberryPI 3

cip-dev scottk at optimcloud.com 3 participants 5 messages Feb 15, 2019 – Feb 18, 2019

lore
Share & tools
lore
#1 lore raw

Hello Scott,

Quoted 3 lines

From: cip-dev-bounces at lists.cip-project.org <[email protected]> On Behalf Of scottk at optimcloud.com
is there a recent CIP layer for Yocto ? We would like to test a build for raspberrypi3

CIP core is focused on making sure that Debian source code packages that are relevant for civil infrastructure systems are maintained for a long time. The tool that you use to build that source code doesn't matter.

Having said that, we do provide a few examples of how to use Debian source code in a yocto/OE-like project. You can find the examples here:
https://gitlab.com/cip-project/cip-core/deby/tree/master/poky

These examples use a meta layer called "meta-debian" that modifies recipes to build Debian-maintained source code instead of Yocto-maintained code. Note that officially, meta-debian itself is not part of the CIP project (although it is led by Toshiba). The examples cover support for CIP reference boards (Renesas RZ/G1M, Beaglebone Black, CycloneV, and QEMU). Please check this quickstart and the READMEs in the repository
https://wiki.linuxfoundation.org/civilinfrastructureplatform/cip-core-quickstart

[Note] If you take a look at meta-debian, you will also see that RaspberryPi version 1 is a supported BSP.
https://github.com/meta-debian/meta-debian/tree/morty/bsp

If you want to test a build for raspberrypi3, I suggest that you clone the cip-core Deby examples (https://gitlab.com/cip-project/cip-core/deby.git) and try the Beaglebone Black first to get an idea of how it works. Then, all you have to do is to copy meta-cip-bbb to a new meta-raspi3 layer and modify a few items such as:
- machine: adjust to raspi3 architecture
- kas yaml file: adjust the kernel/devicetree and u-boot parameters for raspi3

Once you get that working (let me know if you have any problem), you can start adding packages to your rootfs from here:
https://github.com/meta-debian/meta-debian/tree/morty/recipes-debian
[Note] I will be glad to add your layer to the CIP core examples.

An important point that you need to understand is that all this recipes try to follow Debian package policies (with some exceptions to make the rootfs tiny). In other words, they do not follow Yocto/OE policies (they configure/build the code in a different manner). For that reason, if you add any famous meta-foo layer created for Yocto you will most likely find compiling or dependency problems.

Renesas has done some work integrating recipes from meta-debian into their yocto/OE meta layers. You can also look at that for reference:
https://github.com/renesas-rz/meta-renesas/tree/yocto_2.4-rt/meta-rzg1/recipes-cip-core

Here they are using the Debian source code only for binutils, busybox, glibc and openssl. This allows them to have a well maintained core but also benefit from the flexibility to use any yocto layer.

[Note] The new version of meta-debian (Deby v2) will probably take a new approach to increase compatibility with the Yocto/OE ecosystem.

Finally, the other important thing to know is that meta-debian/Deby is used to build what we call the CIP tiny profile. In other words, it is aimed at creating tiny operating system images with support for the typical C/C++ applications that you usually find in an industrial embedded controller.

If you want to create applications with a lot of functionality and dependencies (think python, java, go, node js) then Deby (and Yocto in my personal opinion) is not suited for the job. In that case, you probably want to use a tool such as ISAR (https://gitlab.com/cip-playground/isar-cip-core) or any other Debian image build tool (live-wrapper, debos, etc).

Thanks,
Daniel

#2 lore raw

Hi Daniel,

El viernes, 15 de febrero de 2019 3:14:06 (CET) daniel.sangorrin at toshiba.co.jp escribi?:

Quoted 7 lines

Hello Scott,

Quoted 5 lines

From: cip-dev-bounces at lists.cip-project.org <[email protected]> On Behalf Of
scottk at optimcloud.com
is there a recent CIP layer for Yocto ? We would like to test a build for raspberrypi3

Quoted 8 lines

CIP core is focused on making sure that Debian source code packages that are relevant for civil infrastructure systems are maintained for a long time. The tool that you use to build that source code doesn't matter.

Having said that, we do provide a few examples of how to use Debian source code in a yocto/OE-like project. You can find the examples here:
https://gitlab.com/cip-project/cip-core/deby/tree/master/poky

<snip>

is this the kind of information we can consolidate on the wiki at this point?

Best Regards

Signature · 4 lines
Agust?n Benito Bethencourt
Principal Consultant
Codethink Ltd
We respect your privacy.   See https://www.codethink.co.uk/privacy.html
#3 lore raw

Hola Agustin,

I have updated the wiki to be more explicit.
https://wiki.linuxfoundation.org/civilinfrastructureplatform/cip-core

Please, let me know if you have any comment.

Thanks,
Daniel

Quoted 38 lines

-----Original Message-----
From: Agustin Benito Bethencourt <[email protected]>
Sent: Friday, February 15, 2019 6:01 PM
To: sangorrin daniel(????? ???? ????????) <[email protected]>
Cc: cip-dev at lists.cip-project.org; scottk at optimcloud.com
Subject: Re: [cip-dev] CIP / Yocto / RaspberryPI 3

Hi Daniel,

El viernes, 15 de febrero de 2019 3:14:06 (CET) daniel.sangorrin at toshiba.co.jp escribi?:

Quoted 7 lines

Hello Scott,

Quoted 5 lines

From: cip-dev-bounces at lists.cip-project.org <[email protected]> On Behalf Of
scottk at optimcloud.com
is there a recent CIP layer for Yocto ? We would like to test a build for raspberrypi3

Quoted 8 lines

CIP core is focused on making sure that Debian source code packages that are relevant for civil infrastructure systems are maintained for a long time. The tool that you use to build that source code doesn't matter.

Having said that, we do provide a few examples of how to use Debian source code in a yocto/OE-like project. You can find the examples here:
https://gitlab.com/cip-project/cip-core/deby/tree/master/poky

<snip>

is this the kind of information we can consolidate on the wiki at this point?

Best Regards

--
Agust?n Benito Bethencourt
Principal Consultant
Codethink Ltd
We respect your privacy. See https://www.codethink.co.uk/privacy.html

#4 lore raw

Hi Daniel,

El lunes, 18 de febrero de 2019 6:47:40 (CET) daniel.sangorrin at toshiba.co.jp escribi?:

Quoted 6 lines

Hola Agustin,

I have updated the wiki to be more explicit.
https://wiki.linuxfoundation.org/civilinfrastructureplatform/cip-core

Please, let me know if you have any comment.

Nice. Good docu. It is easier now to understand the work being done.

<snip>

Best Regards

Signature · 4 lines
Agust?n Benito Bethencourt
Principal Consultant
Codethink Ltd
We respect your privacy.   See https://www.codethink.co.uk/privacy.html