Skip to contentSkip to conversation

working my way through the kernel hands-on labs finally

DISCUSSION Robert P. J. Day 5 participants 20 messages Apr 8, 2013 – May 1, 2013

lore
Share & tools
lore
#0 lore raw

finally have the time to work my way through the ELC 2013 hands on
kernel labs described here:

https://www.yoctoproject.org/tools-resources/presentations/working-kernel

since i'll almost certainly use some of them in my next yocto course, so the occasional question for anyone who's already been down this road. start with lab 1.

the doc mentions including the meta-yocto and meta-yocto-bsp layers
-- are those strictly necessary? the layer.conf definition file for the lab1 layer doesn't list those layers as dependencies. what will happen if i leave them out? what's the policy on explicitly listing dependencies on those two layers in a new layer?

also, just doing a basic fetch for lab1 produces:

ERROR: QA Issue:
/home/rpjday/yocto/k_lab/layers/meta-lab1-qemux86/recipes-kernel/linux/linux_3.0.18.bb:
Variable FILES is set as not being package specific, please fix this.

is that deliberate? something that will be resolved later in the
lab as part of an exercise? just curious.

rday

Signature · 7 lines
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================
#1 lore raw
Quoted 16 lines · Robert P. J. Day

finally have the time to work my way through the ELC 2013 hands on
kernel labs described here:

https://www.yoctoproject.org/tools-resources/presentations/working-kernel

since i'll almost certainly use some of them in my next yocto course, so the occasional question for anyone who's already been down this road. start with lab 1.

the doc mentions including the meta-yocto and meta-yocto-bsp layers
-- are those strictly necessary? the layer.conf definition file for the lab1 layer doesn't list those layers as dependencies. what will happen if i leave them out? what's the policy on explicitly listing dependencies on those two layers in a new layer?

Quoted 8 lines

also, just doing a basic fetch for lab1 produces:

ERROR: QA Issue:
/home/rpjday/yocto/k_lab/layers/meta-lab1-qemux86/recipes-kernel/linux/linux_3.0.18.bb:
Variable FILES is set as not being package specific, please fix this.

is that deliberate? something that will be resolved later in the
lab as part of an exercise? just curious.

Probably not deliberate, the kernel labs aren't about packaging. Which branch are you using for your tests ? Even if it's an old release branch, there may have been some QA backports between the time the lab was done, and the time you are running it.

Bruce

Quoted 3 lines

rday

#2 lore raw
Quoted 23 lines · Bruce Ashfield
Quoted 22 lines · Robert P. J. Day

finally have the time to work my way through the ELC 2013 hands on
kernel labs described here:

https://www.yoctoproject.org/tools-resources/presentations/working-kernel

since i'll almost certainly use some of them in my next yocto course, so the occasional question for anyone who's already been down this road. start with lab 1.

the doc mentions including the meta-yocto and meta-yocto-bsp layers
-- are those strictly necessary? the layer.conf definition file for the lab1 layer doesn't list those layers as dependencies. what will happen if i leave them out? what's the policy on explicitly listing dependencies on those two layers in a new layer?

also, just doing a basic fetch for lab1 produces:

ERROR: QA Issue:
/home/rpjday/yocto/k_lab/layers/meta-lab1-qemux86/recipes-kernel/linux/linux_3.0.18.bb:
Variable FILES is set as not being package specific, please fix this.

Quoted 7 lines
Quoted 2 lines

is that deliberate? something that will be resolved later in the
lab as part of an exercise? just curious.

Probably not deliberate, the kernel labs aren't about packaging. Which branch are you using for your tests ? Even if it's an old release branch, there may have been some QA backports between the time the lab was done, and the time you are running it.

i'm using HEAD for everything, even though the labs dictate
poky-danny-8.0.1; if anything breaks because of that, i'll make a note of it.

rday

Signature · 7 lines
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================
#3 lore raw
Quoted 28 lines · Robert P. J. Day
Quoted 26 lines · Bruce Ashfield
Quoted 24 lines · Robert P. J. Day

finally have the time to work my way through the ELC 2013 hands on
kernel labs described here:

https://www.yoctoproject.org/tools-resources/presentations/working-kernel

since i'll almost certainly use some of them in my next yocto course, so the occasional question for anyone who's already been down this road. start with lab 1.

the doc mentions including the meta-yocto and meta-yocto-bsp layers
-- are those strictly necessary? the layer.conf definition file for the lab1 layer doesn't list those layers as dependencies. what will happen if i leave them out? what's the policy on explicitly listing dependencies on those two layers in a new layer?

also, just doing a basic fetch for lab1 produces:

ERROR: QA Issue:
/home/rpjday/yocto/k_lab/layers/meta-lab1-qemux86/recipes-kernel/linux/linux_3.0.18.bb:
Variable FILES is set as not being package specific, please fix this.

is that deliberate? something that will be resolved later in the
lab as part of an exercise? just curious.

Quoted 8 lines
Quoted 4 lines

Probably not deliberate, the kernel labs aren't about packaging. Which branch are you using for your tests ? Even if it's an old release branch, there may have been some QA backports between the time the lab was done, and the time you are running it.

i'm using HEAD for everything, even though the labs dictate
poky-danny-8.0.1; if anything breaks because of that, i'll make a note of it.

That's what I wondered. These were all done against 1.3, so the QA warning (and other issues you'll see) are very likely caused by this skew. For the next round of conferences, there are plans to update them to use 1.4 and get required cleanup.

Bruce

Quoted 3 lines

rday

#4 lore raw
Quoted 34 lines · Bruce Ashfield
Quoted 33 lines · Robert P. J. Day
Quoted 30 lines · Bruce Ashfield
Quoted 16 lines · Robert P. J. Day

finally have the time to work my way through the ELC 2013 hands on
kernel labs described here:

https://www.yoctoproject.org/tools-resources/presentations/working-kernel

since i'll almost certainly use some of them in my next yocto course, so the occasional question for anyone who's already been down this road. start with lab 1.

the doc mentions including the meta-yocto and meta-yocto-bsp layers
-- are those strictly necessary? the layer.conf definition file for the lab1 layer doesn't list those layers as dependencies. what will happen if i leave them out? what's the policy on explicitly listing dependencies on those two layers in a new layer?

Quoted 8 lines

also, just doing a basic fetch for lab1 produces:

ERROR: QA Issue:
/home/rpjday/yocto/k_lab/layers/meta-lab1-qemux86/recipes-kernel/linux/linux_3.0.18.bb:
Variable FILES is set as not being package specific, please fix this.

is that deliberate? something that will be resolved later in the
lab as part of an exercise? just curious.

Probably not deliberate, the kernel labs aren't about packaging. Which branch are you using for your tests ? Even if it's an old release branch, there may have been some QA backports between the time the lab was done, and the time you are running it.

Quoted 8 lines
Quoted 3 lines

i'm using HEAD for everything, even though the labs dictate
poky-danny-8.0.1; if anything breaks because of that, i'll make a note of it.

That's what I wondered. These were all done against 1.3, so the QA warning (and other issues you'll see) are very likely caused by this skew. For the next round of conferences, there are plans to update them to use 1.4 and get required cleanup.

okey dokey.

rday

Signature · 7 lines
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================
#5 lore raw
In reply to Robert P. J. Day
Quoted 9 lines · Robert P. J. Day

finally have the time to work my way through the ELC 2013 hands on kernel labs described here:

https://www.yoctoproject.org/tools-resources/presentations/working-kernel

since i'll almost certainly use some of them in my next yocto course, so the occasional question for anyone who's already been down this road. start with lab 1.

Quoted 6 lines

the doc mentions including the meta-yocto and meta-yocto-bsp layers
-- are those strictly necessary? the layer.conf definition file for the lab1 layer doesn't list those layers as dependencies. what will happen if i leave them out? what's the policy on explicitly listing dependencies on those two layers in a new layer?

The bblayers.conf for the labs is just the bblayers.conf that gets generated the first time you source oe-init-build-env in poky, which is what the lab is based on. You shouldn't need those layers - the BSPs should work fine outside of poky, but since this is a yocto lab and it uses poky, there's no need to make a point of removing them - actually, I haven't tried removing those layers - meta-yocto-bsp could certainly be removed since it's all machine-specific to existing BSPs, but it's easy enough to remove them and see...

Quoted 9 lines

also, just doing a basic fetch for lab1 produces:

ERROR: QA Issue:
/home/rpjday/yocto/k_lab/layers/meta-lab1-qemux86/recipes-kernel/linux/linux_3.0.18.bb:
Variable FILES is set as not being package specific, please fix this.

is that deliberate? something that will be resolved later in the
lab as part of an exercise? just curious.

The labs are and should be targeted to a specific release for exactly the reason you just discovered - in this case, the main metadata promoted various QA Issues into errors immediately following the
release. In this case you were lucky and hit an example of something
obvious, most of the time it's not that obvious - basically if you do anything outside of what's specified in the labs, especially working from master, all bets are off...

Tom

Quoted 2 lines

rday

#6 lore raw
Quoted 18 lines · Tom Zanussi
Quoted 9 lines · Robert P. J. Day

finally have the time to work my way through the ELC 2013 hands on kernel labs described here:

https://www.yoctoproject.org/tools-resources/presentations/working-kernel

since i'll almost certainly use some of them in my next yocto course, so the occasional question for anyone who's already been down this road. start with lab 1.

Quoted 7 lines

the doc mentions including the meta-yocto and meta-yocto-bsp
layers -- are those strictly necessary? the layer.conf definition file for the lab1 layer doesn't list those layers as dependencies. what will happen if i leave them out? what's the policy on explicitly listing dependencies on those two layers in a new layer?

Quoted 8 lines

The bblayers.conf for the labs is just the bblayers.conf that gets generated the first time you source oe-init-build-env in poky, which is what the lab is based on. You shouldn't need those layers - the BSPs should work fine outside of poky, but since this is a yocto lab and it uses poky, there's no need to make a point of removing them - actually, I haven't tried removing those layers - meta-yocto-bsp could certainly be removed since it's all machine-specific to existing BSPs, but it's easy enough to remove them and see...

i took them out since i'm a minimalist -- i really like to strip out
anything that doesn't need to be there to avoid any unexpected side effects. so far, doesn't seem to have made a difference, and i didn't expect it to.

to lab 2. and beyond!

rday

Signature · 7 lines
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================
#7 lore raw

Hi Robert,

Since you're working your way through the labs, I was wondering if you'd be interested in testing something out for me? When I went through these labs I had set my PACKAGE_CLASSES to package_ipk instead of the default package_rpm. While doing so I had discovered a bug which I reported, but nobody else (to my knowledge) tried to reproduce the issue. Would you mind working through the labs with package_ipk and seeing if there are some things that don't work as advertised?

Best regards,
Trevor

#8 lore raw
Quoted 9 lines · Trevor Woerner

Hi Robert,

Since you're working your way through the labs, I was wondering if you'd be interested in testing something out for me? When I went through these labs I had set my PACKAGE_CLASSES to package_ipk instead of the default package_rpm. While doing so I had discovered a bug which I reported, but nobody else (to my knowledge) tried to reproduce the issue. Would you mind working through the labs with package_ipk and seeing if there are some things that don't work as advertised?

does this mean PACKAGE_CLASSES should be *exclusively* ipk, or that
ipk simply be in there?

rday

Signature · 7 lines
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================
#9 lore raw
Quoted 2 lines · Robert P. J. Day

does this mean PACKAGE_CLASSES should be *exclusively* ipk, or that
ipk simply be in there?

Yes, that's how I had been testing it (exclusively package_ipk).

#10 lore raw
Quoted 5 lines · Trevor Woerner
Quoted 2 lines · Robert P. J. Day

does this mean PACKAGE_CLASSES should be *exclusively* ipk, or that
ipk simply be in there?

Yes, that's how I had been testing it (exclusively package_ipk).

well, at the moment, that's what local.conf contains, so i'm just
using the default i got when i created a new project. at least that was the default for lab 1. should i expect that to change in a later lab?

rday

Signature · 7 lines
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================
#11 lore raw
In reply to Trevor Woerner
Quoted 9 lines · Trevor Woerner

Hi Robert,

Since you're working your way through the labs, I was wondering if you'd be interested in testing something out for me? When I went through these labs I had set my PACKAGE_CLASSES to package_ipk instead of the default package_rpm. While doing so I had discovered a bug which I reported, but nobody else (to my knowledge) tried to reproduce the issue. Would you mind working through the labs with package_ipk and seeing if there are some things that don't work as advertised?

ok, so what am i looking for?

rday

Signature · 7 lines
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================
#12 lore raw
Quoted 1 line · Robert P. J. Day

ok, so what am i looking for?

I couldn't get lab3 to work fully unless I switched from package_ipk to package_rpm. The module would get built and included in the image, but it wasn't being loaded automatically during boot. At the time I tried against the master HEAD and everything worked fine, so whatever it is I think I've found, it has been fixed (this is only a danny-8.0.1 problem).

https://lists.yoctoproject.org/pipermail/yocto/2013-February/014424.html

When I mentioned it, it didn't seem to make sense that the choice of packaging should affect something like this. But I tried it a couple times on my machine and could reproduce it. I don't think anyone else tried reproducing it.

This might be of interest to anyone still using danny.

#13 lore raw
Quoted 10 lines · Trevor Woerner
Quoted 1 line · Robert P. J. Day

ok, so what am i looking for?

I couldn't get lab3 to work fully unless I switched from package_ipk to package_rpm. The module would get built and included in the image, but it wasn't being loaded automatically during boot. At the time I tried against the master HEAD and everything worked fine, so whatever it is I think I've found, it has been fixed (this is only a danny-8.0.1 problem).

Quoted 6 lines

https://lists.yoctoproject.org/pipermail/yocto/2013-February/014424.html

When I mentioned it, it didn't seem to make sense that the choice of packaging should affect something like this. But I tried it a couple times on my machine and could reproduce it. I don't think anyone else tried reproducing it.

I believe I tried and couldn't reproduce it. But if someone does reproduce it, please file a bug detailing the *exact* steps needed to reproduce.

Thanks,

Tom

Quoted 6 lines

This might be of interest to anyone still using danny.
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

#14 lore raw
Quoted 13 lines · Tom Zanussi
Quoted 12 lines · Trevor Woerner
Quoted 1 line · Robert P. J. Day

ok, so what am i looking for?

I couldn't get lab3 to work fully unless I switched from package_ipk to package_rpm. The module would get built and included in the image, but it wasn't being loaded automatically during boot. At the time I tried against the master HEAD and everything worked fine, so whatever it is I think I've found, it has been fixed (this is only a danny-8.0.1 problem).

https://lists.yoctoproject.org/pipermail/yocto/2013-February/014424.html

Quoted 8 lines
Quoted 4 lines

When I mentioned it, it didn't seem to make sense that the choice of packaging should affect something like this. But I tried it a couple times on my machine and could reproduce it. I don't think anyone else tried reproducing it.

I believe I tried and couldn't reproduce it. But if someone does reproduce it, please file a bug detailing the *exact* steps needed to reproduce.

hmmmm ... for fun, i'm using HEAD for everything so i might avoid it
entirely. if i have time, i'll give it a shot.

rday

Signature · 7 lines
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================
#15 lore raw
In reply to Tom Zanussi
Quoted 3 lines · Tom Zanussi

I believe I tried and couldn't reproduce it. But if someone does reproduce it, please file a bug detailing the *exact* steps needed to reproduce.

Thanks for the update, I wasn't 100% sure if you had found the time to give it a try or not.

I'll give it another whirl since I'm thinking about it and see where I get.

#16 lore raw
In reply to Tom Zanussi
Quoted 13 lines · Tom Zanussi
Quoted 12 lines · Trevor Woerner
Quoted 1 line · Robert P. J. Day

ok, so what am i looking for?

I couldn't get lab3 to work fully unless I switched from package_ipk to package_rpm. The module would get built and included in the image, but it wasn't being loaded automatically during boot. At the time I tried against the master HEAD and everything worked fine, so whatever it is I think I've found, it has been fixed (this is only a danny-8.0.1 problem).

https://lists.yoctoproject.org/pipermail/yocto/2013-February/014424.html

Quoted 8 lines
Quoted 4 lines

When I mentioned it, it didn't seem to make sense that the choice of packaging should affect something like this. But I tried it a couple times on my machine and could reproduce it. I don't think anyone else tried reproducing it.

I believe I tried and couldn't reproduce it. But if someone does reproduce it, please file a bug detailing the *exact* steps needed to reproduce.

https://bugzilla.yoctoproject.org/show_bug.cgi?id=4423

This is still reproducible. This time I also gave it a try using a Fedora 18 (64) VM. Lab 3 does not work if you set PACKAGE_CLASSES to "package_ipk".

#17 lore raw
Quoted 23 lines · Trevor Woerner
Quoted 13 lines · Tom Zanussi
Quoted 12 lines · Trevor Woerner
Quoted 1 line · Robert P. J. Day

ok, so what am i looking for?

I couldn't get lab3 to work fully unless I switched from package_ipk to package_rpm. The module would get built and included in the image, but it wasn't being loaded automatically during boot. At the time I tried against the master HEAD and everything worked fine, so whatever it is I think I've found, it has been fixed (this is only a danny-8.0.1 problem).

https://lists.yoctoproject.org/pipermail/yocto/2013-February/014424.html

Quoted 8 lines
Quoted 4 lines

When I mentioned it, it didn't seem to make sense that the choice of packaging should affect something like this. But I tried it a couple times on my machine and could reproduce it. I don't think anyone else tried reproducing it.

I believe I tried and couldn't reproduce it. But if someone does reproduce it, please file a bug detailing the *exact* steps needed to reproduce.

Quoted 5 lines

https://bugzilla.yoctoproject.org/show_bug.cgi?id=4423

This is still reproducible. This time I also gave it a try using a Fedora 18 (64) VM. Lab 3 does not work if you set PACKAGE_CLASSES to "package_ipk".

Thanks, if there is any context missing from the bug, please add it there.

Signature · 3 lines
Darren Hart
Intel Open Source Technology Center
Yocto Project - Technical Lead - Linux Kernel
#18 lore raw
In reply to Trevor Woerner
Quoted 10 lines · Trevor Woerner
Quoted 1 line · Robert P. J. Day

ok, so what am i looking for?

I couldn't get lab3 to work fully unless I switched from package_ipk to package_rpm. The module would get built and included in the image, but it wasn't being loaded automatically during boot. At the time I tried against the master HEAD and everything worked fine, so whatever it is I think I've found, it has been fixed (this is only a danny-8.0.1 problem).

Quoted 8 lines

https://lists.yoctoproject.org/pipermail/yocto/2013-February/014424.html

When I mentioned it, it didn't seem to make sense that the choice of packaging should affect something like this. But I tried it a couple times on my machine and could reproduce it. I don't think anyone else tried reproducing it.

This might be of interest to anyone still using danny.

so, did you say you were going to try to reproduce this? i don't
want to spend time poking around this if it turns out even *you* can't make it happen again. :-)

rday

Signature · 7 lines
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================
#19 lore raw
Quoted 3 lines · Robert P. J. Day

so, did you say you were going to try to reproduce this? i don't
want to spend time poking around this if it turns out even *you* can't make it happen again. :-)

Understood :-)

Yes, I'll try reproducing this and post my results.