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
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
Created attachment 316991 [details] scanelf warnings in sys-boot/rbpi-loader There is some scanelf warnings at sys-boot/rbpi-loader build time
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'
An ebuild which builds the GPU libraries from source is now available as media-libs/raspberrypi-userland.
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.
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?
(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.
(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.
(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). +
(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)
(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)
Everything is in main tree now, closing this. Please report further issues with single packages in new bug reports.