Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 421681 - Raspberry Pi firmware, loader, kernel and GPU blob (new packages)
Summary: Raspberry Pi firmware, loader, kernel and GPU blob (new packages)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 3 votes (vote)
Assignee: Michael Weber (RETIRED)
URL: https://github.com/raspberrypi/firmware
Whiteboard:
Keywords:
Depends on:
Blocks: 421683
  Show dependency tree
 
Reported: 2012-06-18 02:45 UTC by Michael Weber (RETIRED)
Modified: 2013-07-25 13:19 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
scanelf warnings in sys-boot/rbpi-loader (rbpi-loader_build.log,9.55 KB, text/plain)
2012-07-02 16:47 UTC, Raimonds Cicans
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Weber (RETIRED) gentoo-dev 2012-06-18 02:45:15 UTC
I've just split the raspberry/firmware git repo in to three packages for use with an regular arm-stage3 system ( http://wiki.gentoo.org/wiki/Raspberry_Pi ).

sys-kernel/rbpi-image
    precompiled kernel and modules
sys-boot/rbpi-loader
    precompiled boot loader and firmware
media-libs/rbpi-videocore-bin
    precompiled VideoCoreIV GPU blob

It's all located in my overlay (layman -a xmw).

Fell free to report any issues here.

   Michael
Comment 1 Raimonds Cicans 2012-07-02 16:37:39 UTC
First, thank you for your work. It saved me much time.

Second,  I have some suggestions.

1) IMHO name of packages must begin with 'raspberrypi-'. It is more descriptive. If you insist on short name then it should be 'rpi-'. Rpi is more common abbreviation than rbpi.

2) Files licenses/rbpi-vc-bin and licenses/rbpi-videocore-bin are equal. IMHO these files should be replaced with single file with more descriptive name (for example: raspberrypi-broadcom-binary)

3) IMHO source files should be taken from repository not from prepackaged archive. This will allow much easier package version bump and will allow creation of packages with version number 9999.

4) It would be nice to have packages with version number 9999.

5) Variable LICENSE in package sys-boot/rbpi-loader should not contain GPL-2 because AFAIK this package only consists of Broadcom's binary files.

6) Variable LICENSE in package sys-kernel/rbpi-image should only contain GPL-2 because AFAIK this package does not contain any Broadcom's binary files and is made from pure Linux kernel sources.

7) Header files in package media-libs/rbpi-videocore-bin contains bunch of different licenses. All these licenses should appear in  LICENSE variable.

8) It would be nice to have in package sys-boot/rbpi-loader use variable VIDEORAM containing values: 32mb 64mb 128mb. Depending on this variable contents one of respective file arm???_start.elf  should be copied to file start.elf

9) It would be nice to have default /boot/config.txt in sys-boot/rbpi-loader package

10) sys-boot/rbpi-loader should not overwrite /boot/cmdline.txt and /boot/config.txt

11) IMHO package  sys-boot/rbpi-loader should be named  sys-boot/rbpi-firmware because it contains not only boot loader but also VideoCore firmware.

12) It would be nice to have package sys-kernel/rbpi-sources

13) It would be nice to have package for program mkimage from https://github.com/raspberrypi/tools
Comment 2 Raimonds Cicans 2012-07-02 16:47:21 UTC
Created attachment 316991 [details]
scanelf warnings in sys-boot/rbpi-loader

There is some scanelf warnings at sys-boot/rbpi-loader build time
Comment 3 Raimonds Cicans 2012-07-07 12:28:35 UTC
In file /etc/env.d/04rbpi-videocore-bin from package media-libs/rbpi-videocore-bin
PATH='/opt/bin'
but IMHO should be
PATH='/opt/vc/bin'
Comment 4 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-10-31 23:54:01 UTC
An ebuild which builds the GPU libraries from source is now available as media-libs/raspberrypi-userland.
Comment 5 Michael Weber (RETIRED) gentoo-dev 2012-11-07 23:32:08 UTC
I just re-established my Pi/Gentoo System and did an version bump on the kernel and firmware. I'm gonna answer the questions/suggestions on comment 2 tomorrow.
Comment 6 Jakub Daniel 2013-05-12 11:19:54 UTC
What is currently blocking things like https://raw.github.com/tkurbad/raspberrypi-overlay/master/sys-boot/raspberrypi-loader/raspberrypi-loader-9999.ebuild being added to the official portage?
Comment 7 Michael Weber (RETIRED) gentoo-dev 2013-07-15 06:51:47 UTC
(In reply to Raimonds Cicans from comment #1)
> 1) IMHO name of packages must begin with 'raspberrypi-'. 
done

> 2) Files licenses/rbpi-vc-bin and licenses/rbpi-videocore-bin are equal.
done

> 3) IMHO source files should be taken from repository not from prepackaged
> archive. 
done

> 4) It would be nice to have packages with version number 9999.
done

> 5) Variable LICENSE in package sys-boot/rbpi-loader should not contain GPL-2
> because AFAIK this package only consists of Broadcom's binary files.
> 
> 6) Variable LICENSE in package sys-kernel/rbpi-image should only contain
> GPL-2 because AFAIK this package does not contain any Broadcom's binary
> files and is made from pure Linux kernel sources.
not sure about these. tarball contains the whole repository snapshot.

+*raspberrypi-image-9999 (15 Jul 2013)
+*raspberrypi-image-3.6.11_p20130711 (15 Jul 2013)
+
+  15 Jul 2013; Michael Weber <xmw@gentoo.org> +metadata.xml,
+  +raspberrypi-image-3.6.11_p20130711.ebuild, +raspberrypi-image-9999.ebuild:
+  Initial import, replaces ::xmw, bug 421681.
Comment 8 Michael Weber (RETIRED) gentoo-dev 2013-07-15 07:01:52 UTC
(In reply to Raimonds Cicans from comment #1)
> 8) It would be nice to have in package sys-boot/rbpi-loader use variable
> VIDEORAM containing values: 32mb 64mb 128mb. Depending on this variable
> contents one of respective file arm???_start.elf  should be copied to file
> start.elf
that is handled inside config.txt now, reinstalling the package just to change this setting feels excessive.

> 9) It would be nice to have default /boot/config.txt in sys-boot/rbpi-loader
> package
done, ripped the one from archlinux, improvements very welcome.

> 11) IMHO package  sys-boot/rbpi-loader should be named 
> sys-boot/rbpi-firmware [...]
done

+*raspberrypi-firmware-0_p20130711 (15 Jul 2013)
+*raspberrypi-firmware-9999 (15 Jul 2013)
+
+  15 Jul 2013; Michael Weber <xmw@gentoo.org> +metadata.xml,
+  +raspberrypi-firmware-0_p20130711.ebuild, +raspberrypi-firmware-9999.ebuild:
+  Initial import, replaces sys-boot/raspberrypi-loader::xmw, bug 421681.
Comment 9 Michael Weber (RETIRED) gentoo-dev 2013-07-15 11:36:48 UTC
(In reply to Raimonds Cicans from comment #1)
> 10) sys-boot/rbpi-loader should not overwrite /boot/cmdline.txt and
> /boot/config.txt
done

+  15 Jul 2013; Michael Weber <xmw@gentoo.org>
+  +files/raspberrypi-firmware-0_p20130711-cmdline.txt,
+  +files/raspberrypi-firmware-0_p20130711-config.txt,
+  +files/raspberrypi-firmware-0_p20130711-envd,
+  raspberrypi-firmware-0_p20130711.ebuild, raspberrypi-firmware-9999.ebuild:
+  Protect existing cmdline.txt & config.txt, add files dir (thanks chithead and
+  Pim Vullers, bug 476896).
+
Comment 10 Michael Weber (RETIRED) gentoo-dev 2013-07-19 14:29:12 UTC
(In reply to Raimonds Cicans from comment #1)
> 13) It would be nice to have package for program mkimage from
> https://github.com/raspberrypi/tools
done

+*raspberrypi-mkimage-0_p20120201 (19 Jul 2013)
+
+  19 Jul 2013; Michael Weber <xmw@gentoo.org>
+  +files/raspberrypi-mkimage-0_p20120201-args-uncompressed.txt,
+  +files/raspberrypi-mkimage-0_p20120201-boot-uncompressed.txt,
+  +files/raspberrypi-mkimage-0_p20120201-imagetool-uncompressed-python3.patch,
+  +files/raspberrypi-mkimage-0_p20120201-imagetool-uncompressed.patch,
+  +files/raspberrypi-mkimage-0_p20120201-imagetool-uncompressed.py,
+  +metadata.xml, +raspberrypi-mkimage-0_p20120201.ebuild:
+  Initial import (bug 421681)
Comment 11 Michael Weber (RETIRED) gentoo-dev 2013-07-19 14:34:47 UTC
(In reply to Raimonds Cicans from comment #1)
> 12) It would be nice to have package sys-kernel/rbpi-sources
done

+*raspberrypi-sources-3.6.11-r20130711 (19 Jul 2013)
+*raspberrypi-sources-9999.3.8 (19 Jul 2013)
+*raspberrypi-sources-9999.3.10 (19 Jul 2013)
+*raspberrypi-sources-9999.3.6 (19 Jul 2013)
+*raspberrypi-sources-3.9.10_pre-r20130715 (19 Jul 2013)
+*raspberrypi-sources-9999.3.9 (19 Jul 2013)
+
+  19 Jul 2013; Michael Weber <xmw@gentoo.org> +metadata.xml,
+  +raspberrypi-sources-3.6.11-r20130711.ebuild,
+  +raspberrypi-sources-3.9.10_pre-r20130715.ebuild,
+  +raspberrypi-sources-9999.3.10.ebuild, +raspberrypi-sources-9999.3.6.ebuild,
+  +raspberrypi-sources-9999.3.8.ebuild, +raspberrypi-sources-9999.3.9.ebuild:
+  Initial import (bug 421681)
Comment 12 Michael Weber (RETIRED) gentoo-dev 2013-07-25 13:19:46 UTC
Everything is in main tree now, closing this.
Please report further issues with single packages in new bug reports.