Discussion:
Building a Custom Raspberry Pi Image using OpenEmbedded and Yocto
Jack Mitchell
2012-09-03 17:52:21 UTC
Permalink
Good evening all,

Over the past month or so I have been experimenting with using Yocto and
meta-raspberrypi to get a minimal image booting. After some frustration,
plenty of bug fixes and heaps of help from members of the community; I
believe that the layers are now well tested and fairly stable.

As some of you know I run a small Raspberry Pi community site[1] and I
would like to write a follow up to an earlier blog post about preparing
yourself for programming on the Raspberry Pi with the Yocto Project. As
I am no novelist I have put the blog post up on GitHub[2] and I would be
very grateful if people would be willing to give it once over and point
out (or patch!) any flaws. I know Yocto/OpenEmbedded/Bitbake can be a
minefield for the beginner and I still sometimes get it wrong.

If you are interested in contributing or making alterations I would
suggest either cloning the repository, or editing and commiting through
the GitHub web interface. Please use soft-line wrapping and take note of
the 'similar' bbcode style tags.

I plan to post it up in the next few days and try to let some people
know in the Raspberry Pi community.

[1] http://www.pimpmypi.com
[2] https://github.com/CommunistCode/PimpMyPi-Community-Blog-Posts

Cheers,
Jack
Tomas Frydrych
2012-09-03 21:00:39 UTC
Permalink
Hi Jack,
Post by Jack Mitchell
As some of you know I run a small Raspberry Pi community site[1] and I
would like to write a follow up to an earlier blog post about preparing
yourself for programming on the Raspberry Pi with the Yocto Project.
I don't know if of any use to you, but we have a recipe for a
Yocto-based image for a UPnP audio player, which can be built for the
RPi, in Guacamayo[1].

Tomas

[1] https://github.com/Guacamayo/meta-guacamayo
Jack Mitchell
2012-09-04 08:43:48 UTC
Permalink
Post by Tomas Frydrych
Hi Jack,
Post by Jack Mitchell
As some of you know I run a small Raspberry Pi community site[1] and I
would like to write a follow up to an earlier blog post about preparing
yourself for programming on the Raspberry Pi with the Yocto Project.
I don't know if of any use to you, but we have a recipe for a
Yocto-based image for a UPnP audio player, which can be built for the
RPi, in Guacamayo[1].
Tomas
[1] https://github.com/Guacamayo/meta-guacamayo
_______________________________________________
yocto mailing list
https://lists.yoctoproject.org/listinfo/yocto
Hi Tomas,

That looks like an interesting layer. I have seen it pop up here and
there but have never investigated it properly. Once this post is out the
door and I have started experimenting with .

Cheers,
--
Jack Mitchell (jack-psbXN780rFT10XsdtD+***@public.gmane.org)
Embedded Systems Engineer
http://www.embed.me.uk

--
Jack Mitchell
2012-09-04 08:52:54 UTC
Permalink
Post by Jack Mitchell
Post by Tomas Frydrych
Hi Jack,
Post by Jack Mitchell
As some of you know I run a small Raspberry Pi community site[1] and I
would like to write a follow up to an earlier blog post about preparing
yourself for programming on the Raspberry Pi with the Yocto Project.
I don't know if of any use to you, but we have a recipe for a
Yocto-based image for a UPnP audio player, which can be built for the
RPi, in Guacamayo[1].
Tomas
[1] https://github.com/Guacamayo/meta-guacamayo
_______________________________________________
yocto mailing list
https://lists.yoctoproject.org/listinfo/yocto
Hi Tomas,
That looks like an interesting layer. I have seen it pop up here and
there but have never investigated it properly. Once this post is out
the door and I have started experimenting with .
other images and application builds, I may be in touch!
Post by Jack Mitchell
Cheers,
--
Jack Mitchell (jack-psbXN780rFT10XsdtD+***@public.gmane.org)
Embedded Systems Engineer
http://www.embed.me.uk

--
Jack Mitchell
2012-09-04 08:52:37 UTC
Permalink
Post by Jack Mitchell
Post by Tomas Frydrych
Hi Jack,
Post by Jack Mitchell
As some of you know I run a small Raspberry Pi community site[1] and I
would like to write a follow up to an earlier blog post about preparing
yourself for programming on the Raspberry Pi with the Yocto Project.
I don't know if of any use to you, but we have a recipe for a
Yocto-based image for a UPnP audio player, which can be built for the
RPi, in Guacamayo[1].
Tomas
[1] https://github.com/Guacamayo/meta-guacamayo
_______________________________________________
yocto mailing list
https://lists.yoctoproject.org/listinfo/yocto
Hi Tomas,
That looks like an interesting layer. I have seen it pop up here and
there but have never investigated it properly. Once this post is out
the door and I have started experimenting with .
other new image builds and applications I may be in touch!
Post by Jack Mitchell
Cheers,
Jack Mitchell
2012-09-05 09:58:33 UTC
Permalink
Post by Tomas Frydrych
Hi Jack,
Post by Jack Mitchell
As some of you know I run a small Raspberry Pi community site[1] and I
would like to write a follow up to an earlier blog post about preparing
yourself for programming on the Raspberry Pi with the Yocto Project.
I don't know if of any use to you, but we have a recipe for a
Yocto-based image for a UPnP audio player, which can be built for the
RPi, in Guacamayo[1].
Tomas
[1] https://github.com/Guacamayo/meta-guacamayo
_______________________________________________
yocto mailing list
https://lists.yoctoproject.org/listinfo/yocto
This is now livefor anyone interested.

http://www.pimpmypi.com/blog/blogPost.php?blogPostID=7
--
Jack Mitchell (jack-psbXN780rFT10XsdtD+***@public.gmane.org)
Embedded Systems Engineer
http://www.embed.me.uk

--
Trevor Woerner
2012-09-05 15:20:35 UTC
Permalink
Post by Jack Mitchell
This is now livefor anyone interested.
http://www.pimpmypi.com/blog/blogPost.php?blogPostID=7
Shouldn't the instructions include a step adding the meta-raspberrypi
layer to conf/bblayers.conf?
Jack Mitchell
2012-09-05 15:30:29 UTC
Permalink
Post by Trevor Woerner
Post by Jack Mitchell
This is now livefor anyone interested.
http://www.pimpmypi.com/blog/blogPost.php?blogPostID=7
Shouldn't the instructions include a step adding the meta-raspberrypi
layer to conf/bblayers.conf?
Well spotted Trevor! Fixed and amended.

Thanks,
--
Jack Mitchell (jack-psbXN780rFT10XsdtD+***@public.gmane.org)
Embedded Systems Engineer
http://www.embed.me.uk

--
Trevor Woerner
2012-09-05 17:13:31 UTC
Permalink
I also found that I had to add:

BB_DANGLINGAPPENDS_WARNONLY = "yes"

at the end of my conf/local.conf since I received a:

ERROR: No recipes available for:
/home/trevor/devel/yocto/raspi/poky/meta-raspberrypi/recipes-multimedia/libav/libav_0.7.4.bbappend

the first time I tried baking (even when using the exact commits for
both poky and meta-raspberrypi as specified in the instructions).
Maybe it's just me?
Burton, Ross
2012-09-05 17:55:58 UTC
Permalink
Post by Trevor Woerner
BB_DANGLINGAPPENDS_WARNONLY = "yes"
/home/trevor/devel/yocto/raspi/poky/meta-raspberrypi/recipes-multimedia/libav/libav_0.7.4.bbappend
the first time I tried baking (even when using the exact commits for
both poky and meta-raspberrypi as specified in the instructions).
Maybe it's just me?
Not at all. Guacamayo uses the meta-raspberrypi layer and does this:

# meta-raspberrypi has libav.bbappend, for which we do not have the base recipe
# meta-ti has a bunch of recipes with broken license
BBMASK=".*/meta-raspberrypi/recipes-multimedia/libav/|.*/meta-ti/recipes-misc"

Ross
Jack Mitchell
2012-09-05 21:53:44 UTC
Permalink
Post by Trevor Woerner
BB_DANGLINGAPPENDS_WARNONLY = "yes"
/home/trevor/devel/yocto/raspi/poky/meta-raspberrypi/recipes-multimedia/libav/libav_0.7.4.bbappend
the first time I tried baking (even when using the exact commits for
both poky and meta-raspberrypi as specified in the instructions).
Maybe it's just me?
Correct again Trevor, I've added the appropriate BBMASK required!

Thanks for taking the time to go over it all.

Cheers,
Jack
Loading...