* Problem with overlayed recipes
@ 2024-01-08 17:19 Daniele Lugli
2024-01-09 7:47 ` [yocto] " Marco Cavallini
0 siblings, 1 reply; 11+ messages in thread
From: Daniele Lugli @ 2024-01-08 17:19 UTC (permalink / raw)
To: yocto
[-- Attachment #1: Type: text/plain, Size: 2462 bytes --]
Hi all,
I am trying to to generate an image with PREEMPT_RT kernel for an intel-corei7-64 target machine.
I see that the meta-intel layer already has a couple of recipes for that in recipes-rt/images/core-image-rt.bb and core-image-rt-sdk.bb, so I add this layer.
I choose core-image-rt-sdk.bb since I would like to have the development tools too.
In my local.conf I set
PREFERRED_PROVIDER_virtual/kernel = "linux-intel-rt"
as requested by meta-intel/recipes-rt/images/core-image-rt-sdk.bb, and also
MACHINE ?= "intel-corei7-64"
After several hours of bitbake core-image-rt-sdk , I get a core-image-rt-sdk-intel-corei7-64.rootfs.wic with which I can boot my machine, where uname .-r says 6-1-59-rt16-intel-pk-preempt-rt.
Everything looks fine up to here.
Now I am trying to add a new layer of mine, where I will put some stuff I need on the target machine. For the moment, I only have a "hello world" program there, just to check.
So I have meta-mytest/conf/layer.conf with:
BBPATH .= ":${LAYERDIR}"
BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
${LAYERDIR}/recipes-*/*/*.bbappend"
BBFILE_COLLECTIONS += "mytest"
BBFILE_PATTERN_mytest = "^${LAYERDIR}/"
BBFILE_PRIORITY_mytest = "6"
LAYERDEPENDS_mytest = "intel"
LAYERSERIES_COMPAT_mytest = "nanbield"
and meta-mytest/recipes-mytest/images/mytest-image.bb with:
require recipes-rt/images/core-image-rt-sdk.bb
DESCRIPTION="Just a test"
IMAGE_INSTALL += "simple-local"
where simple-local is the hello world program, having its own recipe.
When I try bitbake mytest-image I get
ERROR: Nothing PROVIDES 'mytest-image'
mytest-image was skipped: Set PREFERRED_PROVIDER_virtual/kernel to linux-yocto-rt to enable it
If I understand, the problem is that there are two overlayed recipes, poky/meta/recipes-rt/images/core-image-rt-sdk.bb and meta-intel/recipes-rt/images/core-image-rt-sdk.bb , and bitbake is giving preference to the first one, requiring linux-yocto-rt as the PREFERRED_PROVIDER (the second one requires linux-intel-rt instead)
I also changed the priority of the meta-intel layer from 5 to 6, but to no effect.
Could somebody be so kind as to tell me what am I missing here?
Thank you in advance and best regards
--
Daniele Lugli
General Logic srl
Viale Curreno, 41
10133 Torino
Italy
tel +39 329 3933041
www.general-logic.com ( http://www.general-logic.com/ )
www.linkedin.com/in/daniele- lugli ( http://www.linkedin.com/in/daniele-lugli )
[-- Attachment #2: Type: text/html, Size: 4520 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [yocto] Problem with overlayed recipes
2024-01-08 17:19 Problem with overlayed recipes Daniele Lugli
@ 2024-01-09 7:47 ` Marco Cavallini
2024-01-09 10:42 ` Daniele Lugli
0 siblings, 1 reply; 11+ messages in thread
From: Marco Cavallini @ 2024-01-09 7:47 UTC (permalink / raw)
To: Daniele Lugli, yocto
[-- Attachment #1: Type: text/plain, Size: 220 bytes --]
Hi Daniele,
maybe you forgot to add your layer *meta-mytest* to *bblayers.conf* ?
Ciao
--
Marco Cavallini | KOAN sas
Bergamo - Italia
embedded software engineering
✆:+39 351-9518710
https://KoanSoftware.com
[-- Attachment #2: Type: text/html, Size: 289 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [yocto] Problem with overlayed recipes
2024-01-09 7:47 ` [yocto] " Marco Cavallini
@ 2024-01-09 10:42 ` Daniele Lugli
2024-01-09 10:44 ` Alexander Kanavin
2024-01-09 13:29 ` Marco Cavallini
0 siblings, 2 replies; 11+ messages in thread
From: Daniele Lugli @ 2024-01-09 10:42 UTC (permalink / raw)
To: Marco Cavallini, yocto
[-- Attachment #1: Type: text/plain, Size: 724 bytes --]
Thank you Marco,
it is there:
# POKY_BBLAYERS_CONF_VERSION is increased each time build/conf/bblayers.conf
# changes incompatibly
POKY_BBLAYERS_CONF_VERSION = "2"
BBPATH = "${TOPDIR}"
BBFILES ?= ""
BBLAYERS ?= " \
/home/vboxuser/yocto/poky/meta \
/home/vboxuser/yocto/poky/meta-poky \
/home/vboxuser/yocto/poky/meta-yocto-bsp \
/home/vboxuser/yocto/meta-openembedded/meta-oe \
/home/vboxuser/yocto/meta-intel \
/home/vboxuser/yocto/meta-mytest \
"
Grazie, ciao
--
Daniele Lugli
General Logic srl
Viale Curreno, 41
10133 Torino
Italy
tel +39 329 3933041
www.general-logic.com ( http://www.general-logic.com/ )
www.linkedin.com/in/daniele- lugli ( http://www.linkedin.com/in/daniele-lugli )
[-- Attachment #2: Type: text/html, Size: 2295 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [yocto] Problem with overlayed recipes
2024-01-09 10:42 ` Daniele Lugli
@ 2024-01-09 10:44 ` Alexander Kanavin
2024-01-09 15:22 ` Daniele Lugli
2024-01-09 15:28 ` Daniele Lugli
2024-01-09 13:29 ` Marco Cavallini
1 sibling, 2 replies; 11+ messages in thread
From: Alexander Kanavin @ 2024-01-09 10:44 UTC (permalink / raw)
To: yocto, daniele.lugli; +Cc: Marco Cavallini
I'd say including recipes across layers is not a good idea to begin
with. Rather copy, rename and tweak it.
Alex
On Tue, 9 Jan 2024 at 11:42, Daniele Lugli <daniele.lugli@gmail.com> wrote:
>
> Thank you Marco,
>
> it is there:
>
> # POKY_BBLAYERS_CONF_VERSION is increased each time build/conf/bblayers.conf
> # changes incompatibly
> POKY_BBLAYERS_CONF_VERSION = "2"
>
> BBPATH = "${TOPDIR}"
> BBFILES ?= ""
>
> BBLAYERS ?= " \
> /home/vboxuser/yocto/poky/meta \
> /home/vboxuser/yocto/poky/meta-poky \
> /home/vboxuser/yocto/poky/meta-yocto-bsp \
> /home/vboxuser/yocto/meta-openembedded/meta-oe \
> /home/vboxuser/yocto/meta-intel \
> /home/vboxuser/yocto/meta-mytest \
> "
>
> Grazie, ciao
> --
> Daniele Lugli
> General Logic srl
> Viale Curreno, 41
> 10133 Torino
> Italy
> tel +39 329 3933041
> www.general-logic.com
> www.linkedin.com/in/daniele-lugli
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#62115): https://lists.yoctoproject.org/g/yocto/message/62115
> Mute This Topic: https://lists.yoctoproject.org/mt/103602112/1686489
> Group Owner: yocto+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [alex.kanavin@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [yocto] Problem with overlayed recipes
2024-01-09 10:42 ` Daniele Lugli
2024-01-09 10:44 ` Alexander Kanavin
@ 2024-01-09 13:29 ` Marco Cavallini
1 sibling, 0 replies; 11+ messages in thread
From: Marco Cavallini @ 2024-01-09 13:29 UTC (permalink / raw)
To: Daniele Lugli, yocto
[-- Attachment #1: Type: text/plain, Size: 178 bytes --]
What happens if you change the recipe like this?
*mytest-image.bb* :
```
inherit core-image
DESCRIPTION = "Just a test"
IMAGE_INSTALL:append = " simple-local"
```
[-- Attachment #2: Type: text/html, Size: 492 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [yocto] Problem with overlayed recipes
2024-01-09 10:44 ` Alexander Kanavin
@ 2024-01-09 15:22 ` Daniele Lugli
2024-01-09 15:29 ` Khem Raj
2024-01-09 15:28 ` Daniele Lugli
1 sibling, 1 reply; 11+ messages in thread
From: Daniele Lugli @ 2024-01-09 15:22 UTC (permalink / raw)
To: Alexander Kanavin, yocto
[-- Attachment #1: Type: text/plain, Size: 510 bytes --]
Thank you for your reply.
I replaced the content of mytest-image.bb with that of meta-intel/recipes-rt/images/core-image-rt-sdk.bb and added
IMAGE_INSTALL += "simple-local"
at the end. This way I get a bootable wic, but find / -name simple-local finds nothing.
--
Daniele Lugli
General Logic srl
Viale Curreno, 41
10133 Torino
Italy
tel +39 329 3933041
www.general-logic.com ( http://www.general-logic.com/ )
www.linkedin.com/in/daniele- lugli ( http://www.linkedin.com/in/daniele-lugli )
[-- Attachment #2: Type: text/html, Size: 1507 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [yocto] Problem with overlayed recipes
2024-01-09 10:44 ` Alexander Kanavin
2024-01-09 15:22 ` Daniele Lugli
@ 2024-01-09 15:28 ` Daniele Lugli
1 sibling, 0 replies; 11+ messages in thread
From: Daniele Lugli @ 2024-01-09 15:28 UTC (permalink / raw)
To: Alexander Kanavin, yocto
[-- Attachment #1: Type: text/plain, Size: 450 bytes --]
Thank you Marco.
Adding inherit core-image as suggested, I still get
ERROR: Nothing PROVIDES 'mytest-image'
mytest-image was skipped: Set PREFERRED_PROVIDER_virtual/kernel to linux-yocto-rt to enable it
--
Daniele Lugli
General Logic srl
Viale Curreno, 41
10133 Torino
Italy
tel +39 329 3933041
www.general-logic.com ( http://www.general-logic.com/ )
www.linkedin.com/in/daniele- lugli ( http://www.linkedin.com/in/daniele-lugli )
[-- Attachment #2: Type: text/html, Size: 1462 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [yocto] Problem with overlayed recipes
2024-01-09 15:22 ` Daniele Lugli
@ 2024-01-09 15:29 ` Khem Raj
2024-01-09 16:01 ` Daniele Lugli
0 siblings, 1 reply; 11+ messages in thread
From: Khem Raj @ 2024-01-09 15:29 UTC (permalink / raw)
To: yocto, daniele.lugli; +Cc: Alexander Kanavin
On Tue, Jan 9, 2024 at 7:22 AM Daniele Lugli <daniele.lugli@gmail.com> wrote:
>
> Thank you for your reply.
>
> I replaced the content of mytest-image.bb with that of meta-intel/recipes-rt/images/core-image-rt-sdk.bb and added
>
> IMAGE_INSTALL += "simple-local"
>
> at the end. This way I get a bootable wic, but find / -name simple-local finds nothing.
It could be that above IMAGE_INSTALL did not get effective. Check
bitbake-getvar -r mytest-image IMAGE_INSTALL
>
> --
> Daniele Lugli
> General Logic srl
> Viale Curreno, 41
> 10133 Torino
> Italy
> tel +39 329 3933041
> www.general-logic.com
> www.linkedin.com/in/daniele-lugli
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> You automatically follow any topics you start or reply to.
> View/Reply Online (#62120): https://lists.yoctoproject.org/g/yocto/message/62120
> Mute This Topic: https://lists.yoctoproject.org/mt/103602112/1997914
> Group Owner: yocto+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [yocto] Problem with overlayed recipes
2024-01-09 15:29 ` Khem Raj
@ 2024-01-09 16:01 ` Daniele Lugli
2024-01-09 16:06 ` Alexander Kanavin
0 siblings, 1 reply; 11+ messages in thread
From: Daniele Lugli @ 2024-01-09 16:01 UTC (permalink / raw)
To: Khem Raj, yocto
[-- Attachment #1: Type: text/plain, Size: 365 bytes --]
IMAGE_INSTALL="packagegroup-core-boot rt-tests hwlatdetect kernel-dev simple-local"
By the way, rt-tests are missing too.
--
Daniele Lugli
General Logic srl
Viale Curreno, 41
10133 Torino
Italy
tel +39 329 3933041
www.general-logic.com ( http://www.general-logic.com/ )
www.linkedin.com/in/daniele- lugli ( http://www.linkedin.com/in/daniele-lugli )
[-- Attachment #2: Type: text/html, Size: 1233 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [yocto] Problem with overlayed recipes
2024-01-09 16:01 ` Daniele Lugli
@ 2024-01-09 16:06 ` Alexander Kanavin
2024-01-09 20:31 ` Daniele Lugli
0 siblings, 1 reply; 11+ messages in thread
From: Alexander Kanavin @ 2024-01-09 16:06 UTC (permalink / raw)
To: yocto, daniele.lugli; +Cc: Khem Raj
You need to inspect ${T}/log.do_rootfs for your image to check what is
actually being installed.
Also check the packages for simple-local to verify that they contain
what you expect to see on the image.
Alex
On Tue, 9 Jan 2024 at 17:01, Daniele Lugli <daniele.lugli@gmail.com> wrote:
>
> IMAGE_INSTALL="packagegroup-core-boot rt-tests hwlatdetect kernel-dev simple-local"
>
> By the way, rt-tests are missing too.
> --
> Daniele Lugli
> General Logic srl
> Viale Curreno, 41
> 10133 Torino
> Italy
> tel +39 329 3933041
> www.general-logic.com
> www.linkedin.com/in/daniele-lugli
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#62125): https://lists.yoctoproject.org/g/yocto/message/62125
> Mute This Topic: https://lists.yoctoproject.org/mt/103602112/1686489
> Group Owner: yocto+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [alex.kanavin@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [yocto] Problem with overlayed recipes
2024-01-09 16:06 ` Alexander Kanavin
@ 2024-01-09 20:31 ` Daniele Lugli
0 siblings, 0 replies; 11+ messages in thread
From: Daniele Lugli @ 2024-01-09 20:31 UTC (permalink / raw)
To: Alexander Kanavin; +Cc: yocto, Khem Raj
[-- Attachment #1: Type: text/plain, Size: 819 bytes --]
Il giorno mar 9 gen 2024 alle ore 17:07 Alexander Kanavin <
alex.kanavin@gmail.com> ha scritto:
> You need to inspect ${T}/log.do_rootfs for your image to check what is
> actually being installed.
>
> Also check the packages for simple-local to verify that they contain
> what you expect to see on the image.
>
> Alex
>
> Sorry Alex, my bad. My simple-local and the rt-tests are in log.do_rootfs
and in the target ssytem.
Probably I booted from the wrong pen drive, I have a bunch of them on my
desk.
So, copying the image recipe from the meta-intel layer to meta-mytest and
modifying it did work.
I still am curious why the brand new recipe didn't.
Thank you and best regards.
Daniele Lugli
General Logic srl
Viale Curreno, 41
10133 Torino
tel 329 3933041
www.general-logic.com
www.linkedin.com/in/daniele-lugli
[-- Attachment #2: Type: text/html, Size: 1629 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2024-01-09 20:31 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-08 17:19 Problem with overlayed recipes Daniele Lugli
2024-01-09 7:47 ` [yocto] " Marco Cavallini
2024-01-09 10:42 ` Daniele Lugli
2024-01-09 10:44 ` Alexander Kanavin
2024-01-09 15:22 ` Daniele Lugli
2024-01-09 15:29 ` Khem Raj
2024-01-09 16:01 ` Daniele Lugli
2024-01-09 16:06 ` Alexander Kanavin
2024-01-09 20:31 ` Daniele Lugli
2024-01-09 15:28 ` Daniele Lugli
2024-01-09 13:29 ` Marco Cavallini
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.