* [meta-raspberrypi] Thoughts on Raspberry Pi firmware
@ 2013-05-14 12:09 Paul Barker
2013-05-15 9:29 ` Tomas Frydrych
0 siblings, 1 reply; 3+ messages in thread
From: Paul Barker @ 2013-05-14 12:09 UTC (permalink / raw)
To: Yocto discussion list
I had a few issues with starting my builds for Raspberry Pi as the
bcm2835_bootfiles do_fetch would fail due to a github timeout. I
cloned the relevant repository outside of bitbake and edited the
SRC_URI to point to my local clone and everything went ok but that
clone too a long long time. The upstream repository
(https://github.com/raspberrypi/firmware) is huge, around 1.2 GB in
size. I decided to repack just the files we need in a .tar.xz archive
and I've ended up with around a 2-3 MB archive
(http://www.paulbarker.me.uk/dist/rpi-fw/). An alternative would be to
download a zip file of a given revision from github (eg
https://github.com/raspberrypi/firmware/archive/0ac68cce44d4550c251172e8524100090e8211fa.zip)
and this comes in at over 90 MB.
I know this is only an issue for a first build when nothing has been
downloaded but it seems rather daft to be downloading an entire 1.2 GB
git repo when we want only a handful of files at a given version. As
the files are binary, even doing a 'git pull' when only a couple of
new commits have happened takes time. It's not just download time,
it's the time taken for github to compress objects. With my internet
connection the time taken to do git clone was around 90 minutes. I
haven't seen a way to do a git shallow clone for a past commit, only
for the HEAD of the remote repository.
Does anyone else think that we'd be better using either our own
archive of just the files we need or a zip file of a given revision
from github? I know the firmware isn't GPL so we might not need to
redistribute the upstream sources but for my images I'd like to
provide a mirror of everything needed to build them incase upstream
sources disappear in the future. It does seem absurd to mirror 1.2 GB
of files when a 2 MB archive will do.
Secondly, is there any use case for building vc-graphics or
vc-graphics-hardfp to provide virtual/egl and virtual/libgles2 (which
rely on binary files from the raspberry pi firmware repo) instead of
compiling from source using the userland package?
I've built using my firmware archive packaged from the same commit we
were previously using
(http://www.paulbarker.me.uk/dist/rpi-fw/rpi-fw-yocto_20130107.tar.xz)
with both userland and vc-graphics and build logs and details are
available at:
http://www.paulbarker.me.uk/yocto/20130510_poky-raspberrypi_userland/
http://www.paulbarker.me.uk/yocto/20130510_poky-raspberrypi_vc-graphics/
Current versions of the patches are available at:
http://www.paulbarker.me.uk/yocto/20130510_poky-raspberrypi_userland/patches/meta-raspberrypi/0003-bootfiles-vc-graphics-consolidate-SRC_URI-and-S-vari.patch
http://www.paulbarker.me.uk/yocto/20130510_poky-raspberrypi_userland/patches/meta-raspberrypi/0004-bootfiles-vc-graphics-use-archive-rather-than-git.patch
Though I'm currently just looking for comments on the general idea,
not ready to submit the patches for merging just yet.
--
Paul Barker
Email: paul@paulbarker.me.uk
http://www.paulbarker.me.uk
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [meta-raspberrypi] Thoughts on Raspberry Pi firmware
2013-05-14 12:09 [meta-raspberrypi] Thoughts on Raspberry Pi firmware Paul Barker
@ 2013-05-15 9:29 ` Tomas Frydrych
2013-05-15 15:51 ` Philipp Wagner
0 siblings, 1 reply; 3+ messages in thread
From: Tomas Frydrych @ 2013-05-15 9:29 UTC (permalink / raw)
To: yocto
On 14/05/13 13:09, Paul Barker wrote:
> Secondly, is there any use case for building vc-graphics or
> vc-graphics-hardfp to provide virtual/egl and virtual/libgles2
> (which rely on binary files from the raspberry pi firmware repo)
> instead of compiling from source using the userland package?
It would be preferable if we could build these from source; last time I
tried (which, admittedly, is a long while back), this was not possible
because of some missing broadcom-specific header files that seemed not
available anywhere, but I guess this is no longer the case.
Tomas
--
http://sleepfive.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [meta-raspberrypi] Thoughts on Raspberry Pi firmware
2013-05-15 9:29 ` Tomas Frydrych
@ 2013-05-15 15:51 ` Philipp Wagner
0 siblings, 0 replies; 3+ messages in thread
From: Philipp Wagner @ 2013-05-15 15:51 UTC (permalink / raw)
To: yocto
Am 15.05.2013 11:29, schrieb Tomas Frydrych:
> On 14/05/13 13:09, Paul Barker wrote:
>> Secondly, is there any use case for building vc-graphics or
>> vc-graphics-hardfp to provide virtual/egl and virtual/libgles2
>> (which rely on binary files from the raspberry pi firmware repo)
>> instead of compiling from source using the userland package?
>
> It would be preferable if we could build these from source; last time I
> tried (which, admittedly, is a long while back), this was not possible
> because of some missing broadcom-specific header files that seemed not
> available anywhere, but I guess this is no longer the case.
The graphics libraries can now be compiled from source (userland is part
of meta-raspberrypi) and in my tests it's equivalent to the binary
drivers. I'm not sure if those should be removed from meta-raspberrypi
or left there for somebody who still needs them (why?).
Philipp
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-05-15 15:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-14 12:09 [meta-raspberrypi] Thoughts on Raspberry Pi firmware Paul Barker
2013-05-15 9:29 ` Tomas Frydrych
2013-05-15 15:51 ` Philipp Wagner
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.