Skip to contentSkip to conversation

How to work with linux-yocto kernel

DISCUSSION Elvis Dowson 3 participants 6 messages Aug 28, 2013 – Aug 29, 2013

lore
Share & tools
lore
#0 lore raw

Hi,
I just don't understand how to work with the linux-yocto kernel.

For example, I created a local copy of the yocto kernel, and updated the linux-yocto_3.8.bb recipe to point to the local copy (git:///<path>;protocol=file, etc)

Then I created a local branch meta, and another local branch standard/qemuarma9 and then updated the machine definitions in the meta branch for qemuarma9.

When I run yocto, and bitbake linux-yocto, in the tmp folder, if I check the git branch, it's checked out standard/common-pc/atom-pc.

This is really weird.

I've wasted a couple of days because the yocto build infrastructure was checkout out the wrong branch.

Elvis Dowson

#1 lore raw
Quoted 7 lines · Elvis Dowson

Hi,
I just don't understand how to work with the linux-yocto kernel.

For example, I created a local copy of the yocto kernel, and updated the linux-yocto_3.8.bb recipe to point to the local copy
(git:///<path>;protocol=file, etc)

Quoted 6 lines

Then I created a local branch meta, and another local branch standard/qemuarma9 and then updated the machine definitions in the meta branch for qemuarma9.

When I run yocto, and bitbake linux-yocto, in the tmp folder, if I check the git branch, it's checked out *_standard/common-pc/atom-pc._*

There were some old bugs which caused the wrong board description to be picked up, the seems similar.

But without seeing your exact changes, as they sit in the tree, I can't be sure.

Did you also update the meta and machine branch SRCREVs ?

Quoted 5 lines

This is really weird.

I've wasted a couple of days because the yocto build infrastructure was checkout out the wrong branch.

Start with the yocto-bsp tool, it's probably the easiest way to define a new BSP in recipe space, and then move it to the kernel later.

Cheers,

Bruce

Quoted 9 lines

Elvis Dowson

_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

#2 lore raw

Hi Bruce,

Quoted 7 lines · Bruce Ashfield

There were some old bugs which caused the wrong board description to be picked up, the seems similar.

But without seeing your exact changes, as they sit in the tree, I can't be sure.

Did you also update the meta and machine branch SRCREVs ?

No, I didn't.

I've just done this now. It's only after you mentioned it that I noticed the SRCREV_meta variable in linux-yocto_3.8.bb

While obvious, once stated, it's better to explicitly document this step in the kernel development guide, so that people remember to do it:

http://www.yoctoproject.org/docs/current/kernel-dev/kernel-dev.html

BTW, in qemuarma9-standard.scc, for the branch, do I specify standard/qemuarma9 or just qemuarma9 ?

Best regards,

Elvis Dowson

#3 lore raw
Quoted 14 lines · Elvis Dowson

Hi Bruce,

Quoted 7 lines · Bruce Ashfield

There were some old bugs which caused the wrong board description to be picked up, the seems similar.

But without seeing your exact changes, as they sit in the tree, I can't be sure.

Did you also update the meta and machine branch SRCREVs ?

No, I didn't.

Quoted 8 lines

I've just done this now. It's only after you mentioned it that I noticed the SRCREV_meta variable in linux-yocto_3.8.bb

While obvious, once stated, it's better to explicitly document this step in the kernel development guide, so that people remember to do it:

http://www.yoctoproject.org/docs/current/kernel-dev/kernel-dev.html

If you have a moment, drop a quick bugzilla and we can make sure that happens.

Quoted 3 lines

BTW, in qemuarma9-standard.scc, for the branch, do I specify standard/qemuarma9 or just qemuarma9 ?

Just qemuarma9. Branch names are automatically built up with inheritance.

So if you include other features that branch (like the standard kernel), your name is appended. That frees your individual feature from needing to know where it sits in the include order.

Cheers,

Bruce

Quoted 5 lines

Best regards,

Elvis Dowson

#4 lore raw
Quoted 18 lines · Bruce Ashfield
Quoted 17 lines · Elvis Dowson

Hi Bruce,

Quoted 7 lines · Bruce Ashfield

There were some old bugs which caused the wrong board description to be picked up, the seems similar.

But without seeing your exact changes, as they sit in the tree, I can't be sure.

Did you also update the meta and machine branch SRCREVs ?

No, I didn't.

I've just done this now. It's only after you mentioned it that I noticed the SRCREV_meta variable in linux-yocto_3.8.bb

Quoted 8 lines
Quoted 5 lines

While obvious, once stated, it's better to explicitly document this step in the kernel development guide, so that people remember to do it:

http://www.yoctoproject.org/docs/current/kernel-dev/kernel-dev.html

If you have a moment, drop a quick bugzilla and we can make sure that happens.

I've just done this now.

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

Best regards,

Elvis Dowson

#5 lore raw
Quoted 24 lines · Elvis Dowson
Quoted 22 lines · Bruce Ashfield
Quoted 21 lines · Elvis Dowson

Hi Bruce,

Quoted 7 lines · Bruce Ashfield

There were some old bugs which caused the wrong board description to be picked up, the seems similar.

But without seeing your exact changes, as they sit in the tree, I can't be sure.

Did you also update the meta and machine branch SRCREVs ?

No, I didn't.

I've just done this now. It's only after you mentioned it that I noticed the SRCREV_meta variable in linux-yocto_3.8.bb

While obvious, once stated, it's better to explicitly document this step in the kernel development guide, so that people remember to do it:

Quoted 9 lines
Quoted 4 lines
Quoted 1 line

http://www.yoctoproject.org/docs/current/kernel-dev/kernel-dev.html

If you have a moment, drop a quick bugzilla and we can make sure that happens.

I've just done this now.

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

Thank you for taking the time to file the bug. This is crucial feedback and the only way for the documentation to improve is for people like you to review and provide feedback. Thank you!

Please follow the bug as we may have questions for you to make sure we address the issue.

Signature · 3 lines
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel