* [Buildroot] [PATCH v2] Add package raspberrypi-firmware.
@ 2012-09-20 20:37 Marek Belisko
2012-10-02 16:41 ` Arnout Vandecappelle
0 siblings, 1 reply; 7+ messages in thread
From: Marek Belisko @ 2012-09-20 20:37 UTC (permalink / raw)
To: buildroot
Add support for raspberrypi bootloader and VideoCore.
Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
Changes from V1:
- fix names in Config.in (BR2_PACKAGE_BOOTLOADER_ARM192 to
BR2_PACKAGE_RASPBERRYPI_BOOTLOADER_ARM192)
- remove unnecessary SOURCE in mk file
- fix installing VideoCore libraries and include
- copy bootloader files directly to images directory
- rework handling selection of GPU & ARM memory split
(inspired by Yann patch)
- bump to latest "turbo mode" firmware version
(http://www.raspberrypi.org/archives/2008)
---
package/Config.in | 1 +
package/raspberrypi-firmware/Config.in | 60 ++++++++++++++++++++
.../raspberrypi-firmware/raspberrypi-firmware.mk | 37 ++++++++++++
3 files changed, 98 insertions(+)
create mode 100644 package/raspberrypi-firmware/Config.in
create mode 100644 package/raspberrypi-firmware/raspberrypi-firmware.mk
diff --git a/package/Config.in b/package/Config.in
index 58dd5e8..36635cd 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -232,6 +232,7 @@ source "package/owl-linux/Config.in"
source "package/parted/Config.in"
source "package/pciutils/Config.in"
source "package/picocom/Config.in"
+source "package/raspberrypi-firmware/Config.in"
source "package/read-edid/Config.in"
source "package/rng-tools/Config.in"
source "package/sane-backends/Config.in"
diff --git a/package/raspberrypi-firmware/Config.in b/package/raspberrypi-firmware/Config.in
new file mode 100644
index 0000000..e1b7e52
--- /dev/null
+++ b/package/raspberrypi-firmware/Config.in
@@ -0,0 +1,60 @@
+config BR2_PACKAGE_RASPBERRYPI_FIRMWARE
+ bool
+
+config BR2_PACKAGE_RASPBERRYPI_BOOTLOADER
+ bool "Raspberry Pi bootloader files"
+ select BR2_PACKAGE_RASPBERRYPI_FIRMWARE
+ help
+ These are the binary bootloader files from Broadcom.
+
+ https://github.com/raspberrypi/firmware
+
+if BR2_PACKAGE_RASPBERRYPI_BOOTLOADER
+choice
+
+prompt "Memory & GPU split"
+ default BR2_PACKAGE_RASPBERRYPI_BOOTLOADER_ARM192
+ help
+ Select how much memory use for system and
+ how much for GPU.
+
+config BR2_PACKAGE_RASPBERRYPI_BOOTLOADER_ARM128
+ bool "arm128"
+ help
+ 128M ARM, 128M GPU split (use this for heavy 3D work, possibly also
+ required for some video decoding)
+
+config BR2_PACKAGE_RASPBERRYPI_BOOTLOADER_ARM192
+ bool "arm192"
+ help
+ 192M ARM, 64M GPU split (this is the default)
+
+config BR2_PACKAGE_RASPBERRYPI_BOOTLOADER_ARM224
+ bool "arm224"
+ help
+ 224M ARM, 32M GPU split (use this for Linux only with no 3D or video
+ processing. Its enough for the 1080p framebuffer, but not much else)
+
+config BR2_PACKAGE_RASPBERRYPI_BOOTLOADER_ARM240
+ bool "arm240"
+ help
+ 240M ARM, 16M GPU split (use this for headless mode only. It is enough
+ to boot the system, but you can not use video at all.)
+endchoice
+
+config BR2_PACKAGE_RASPBERRYPI_BOOTLOADER_FILE
+ string
+ default "arm128" if BR2_PACKAGE_RASPBERRYPI_BOOTLOADER_ARM128
+ default "arm192" if BR2_PACKAGE_RASPBERRYPI_BOOTLOADER_ARM192
+ default "arm224" if BR2_PACKAGE_RASPBERRYPI_BOOTLOADER_ARM224
+ default "arm240" if BR2_PACKAGE_RASPBERRYPI_BOOTLOADER_ARM240
+
+endif #BR2_PACKAGE_RASPBERRYPI_BOOTLOADER
+
+config BR2_PACKAGE_RASPBERRYPI_VIDEOCORE
+ bool "Raspberry Pi VideoCore drivers"
+ select BR2_PACKAGE_RASPBERRYPI_FIRMWARE
+ help
+ These are the binary VideoCore drivers from Broadcom.
+
+ https://github.com/raspberrypi/firmware
diff --git a/package/raspberrypi-firmware/raspberrypi-firmware.mk b/package/raspberrypi-firmware/raspberrypi-firmware.mk
new file mode 100644
index 0000000..c788497
--- /dev/null
+++ b/package/raspberrypi-firmware/raspberrypi-firmware.mk
@@ -0,0 +1,37 @@
+RASPBERRYPI_FIRMWARE_VERSION = 9f7cff0
+RASPBERRYPI_FIRMWARE_SITE = http://github.com/raspberrypi/firmware/tarball/master
+
+ifeq ($(BR2_PACKAGE_RASPBERRYPI_VIDEOCORE),y)
+RASPBERRYPI_FIRMWARE_INSTALL_STAGING = YES
+
+define RASPBERRYPI_FIRMWARE_INSTALL_STAGING_CMDS
+ cp -r -T $(@D)/hardfp/opt/vc/include $(STAGING_DIR)/usr/include
+ cp -r -T $(@D)/hardfp/opt/vc/lib $(STAGING_DIR)/usr/lib
+endef
+
+define RASPBERRYPI_FIRMWARE_INSTALL_TARGET_VIDEOCORE
+ cp -r -T $(@D)/hardfp/opt/vc/bin $(TARGET_DIR)/usr/bin
+ cp -r -T $(@D)/hardfp/opt/vc/lib $(TARGET_DIR)/usr/lib
+ cp -r -T $(@D)/hardfp/opt/vc/sbin $(TARGET_DIR)/usr/sbin
+endef
+endif
+
+ifeq ($(BR2_PACKAGE_RASPBERRYPI_BOOTLOADER),y)
+
+BOOT_FILE = $(call qstrip,$(BR2_PACKAGE_RASPBERRYPI_BOOTLOADER_FILE))
+
+define RASPBERRYPI_FIRMWARE_INSTALL_TARGET_BOOTLOADER
+ install -D -m 0644 $(@D)/boot/$(BOOT_FILE)_start.elf \
+ $(BINARIES_DIR)/start.elf
+ install -D -m 0644 $(@D)/boot/bootcode.bin $(BINARIES_DIR)/bootcode.bin
+ install -D -m 0644 $(@D)/boot/loader.bin $(BINARIES_DIR)/loader.bin
+endef
+endif
+
+define RASPBERRYPI_FIRMWARE_INSTALL_TARGET_CMDS
+ $(RASPBERRYPI_FIRMWARE_INSTALL_TARGET_BOOTLOADER)
+ $(RASPBERRYPI_FIRMWARE_INSTALL_TARGET_VIDEOCORE)
+endef
+
+$(eval $(generic-package))
+
--
1.7.9.5
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH v2] Add package raspberrypi-firmware.
2012-09-20 20:37 [Buildroot] [PATCH v2] Add package raspberrypi-firmware Marek Belisko
@ 2012-10-02 16:41 ` Arnout Vandecappelle
2012-10-20 19:49 ` Belisko Marek
0 siblings, 1 reply; 7+ messages in thread
From: Arnout Vandecappelle @ 2012-10-02 16:41 UTC (permalink / raw)
To: buildroot
On 20/09/12 22:37, Marek Belisko wrote:
> Add support for raspberrypi bootloader and VideoCore.
>
> Signed-off-by: Marek Belisko<marek.belisko@open-nandra.com>
>
Still some comments, but these can be fixed while committing, so:
Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
(untested).
There should be a
---
(three dashes on a line by itself) between the SOB and the changelog,
otherwise the changelog becomes part of the commit message, which is
not what we want.
> Changes from V1:
> - fix names in Config.in (BR2_PACKAGE_BOOTLOADER_ARM192 to
> BR2_PACKAGE_RASPBERRYPI_BOOTLOADER_ARM192)
> - remove unnecessary SOURCE in mk file
> - fix installing VideoCore libraries and include
> - copy bootloader files directly to images directory
> - rework handling selection of GPU& ARM memory split
> (inspired by Yann patch)
> - bump to latest "turbo mode" firmware version
> (http://www.raspberrypi.org/archives/2008)
>
[snip]
> +if BR2_PACKAGE_RASPBERRYPI_BOOTLOADER
> +choice
> +
> +prompt "Memory& GPU split"
prompt should come immediately below choice (no empty line) and should be
indented with 1 tab.
> + default BR2_PACKAGE_RASPBERRYPI_BOOTLOADER_ARM192
> + help
> + Select how much memory use for system and
> + how much for GPU.
[snip]
> +ifeq ($(BR2_PACKAGE_RASPBERRYPI_VIDEOCORE),y)
> +RASPBERRYPI_FIRMWARE_INSTALL_STAGING = YES
> +
> +define RASPBERRYPI_FIRMWARE_INSTALL_STAGING_CMDS
> + cp -r -T $(@D)/hardfp/opt/vc/include $(STAGING_DIR)/usr/include
> + cp -r -T $(@D)/hardfp/opt/vc/lib $(STAGING_DIR)/usr/lib
I would prefer to use
rsync -a $(@D)/hardfp/opt/vc/include/ $(STAGING_DIR)/usr/include
but that's probably just personal preference.
[snip]
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286540
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH v2] Add package raspberrypi-firmware.
2012-10-02 16:41 ` Arnout Vandecappelle
@ 2012-10-20 19:49 ` Belisko Marek
2012-10-20 21:10 ` Alex Bradbury
0 siblings, 1 reply; 7+ messages in thread
From: Belisko Marek @ 2012-10-20 19:49 UTC (permalink / raw)
To: buildroot
Hi,
just want to ask it this patch is in queue. It's month it was submitted.
---------- Forwarded message ----------
From: Arnout Vandecappelle <arnout@mind.be>
Date: Tue, Oct 2, 2012 at 6:41 PM
Subject: Re: [Buildroot] [PATCH v2] Add package raspberrypi-firmware.
To: Marek Belisko <marek.belisko@open-nandra.com>
Cc: buildroot at busybox.net
On 20/09/12 22:37, Marek Belisko wrote:
>
> Add support for raspberrypi bootloader and VideoCore.
>
> Signed-off-by: Marek Belisko<marek.belisko@open-nandra.com>
>
Still some comments, but these can be fixed while committing, so:
Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
(untested).
There should be a
---
(three dashes on a line by itself) between the SOB and the changelog,
otherwise the changelog becomes part of the commit message, which is
not what we want.
> Changes from V1:
> - fix names in Config.in (BR2_PACKAGE_BOOTLOADER_ARM192 to
> BR2_PACKAGE_RASPBERRYPI_BOOTLOADER_ARM192)
> - remove unnecessary SOURCE in mk file
> - fix installing VideoCore libraries and include
> - copy bootloader files directly to images directory
> - rework handling selection of GPU& ARM memory split
>
> (inspired by Yann patch)
> - bump to latest "turbo mode" firmware version
> (http://www.raspberrypi.org/archives/2008)
>
[snip]
> +if BR2_PACKAGE_RASPBERRYPI_BOOTLOADER
> +choice
> +
> +prompt "Memory& GPU split"
prompt should come immediately below choice (no empty line) and should be
indented with 1 tab.
> + default BR2_PACKAGE_RASPBERRYPI_BOOTLOADER_ARM192
> + help
> + Select how much memory use for system and
> + how much for GPU.
[snip]
> +ifeq ($(BR2_PACKAGE_RASPBERRYPI_VIDEOCORE),y)
> +RASPBERRYPI_FIRMWARE_INSTALL_STAGING = YES
> +
> +define RASPBERRYPI_FIRMWARE_INSTALL_STAGING_CMDS
> + cp -r -T $(@D)/hardfp/opt/vc/include $(STAGING_DIR)/usr/include
> + cp -r -T $(@D)/hardfp/opt/vc/lib $(STAGING_DIR)/usr/lib
I would prefer to use
rsync -a $(@D)/hardfp/opt/vc/include/ $(STAGING_DIR)/usr/include
but that's probably just personal preference.
[snip]
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286540
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
Thanks.
Marek
--
as simple and primitive as possible
-------------------------------------------------
Marek Belisko - OPEN-NANDRA
Freelance Developer
Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
twitter: #opennandra
web: http://open-nandra.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH v2] Add package raspberrypi-firmware.
2012-10-20 19:49 ` Belisko Marek
@ 2012-10-20 21:10 ` Alex Bradbury
2012-10-20 21:24 ` Belisko Marek
2012-10-20 21:26 ` Peter Korsgaard
0 siblings, 2 replies; 7+ messages in thread
From: Alex Bradbury @ 2012-10-20 21:10 UTC (permalink / raw)
To: buildroot
On 20 October 2012 20:49, Belisko Marek <marek.belisko@gmail.com> wrote:
> Hi,
>
> just want to ask it this patch is in queue. It's month it was submitted.
I'd suggest it's probably not worth committing as-is, because this
weekend we finally got rid of the multiple start_*.elf files.
Alex
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH v2] Add package raspberrypi-firmware.
2012-10-20 21:10 ` Alex Bradbury
@ 2012-10-20 21:24 ` Belisko Marek
2012-10-20 21:26 ` Peter Korsgaard
1 sibling, 0 replies; 7+ messages in thread
From: Belisko Marek @ 2012-10-20 21:24 UTC (permalink / raw)
To: buildroot
Hi,
On Sat, Oct 20, 2012 at 11:10 PM, Alex Bradbury <asb@asbradbury.org> wrote:
> On 20 October 2012 20:49, Belisko Marek <marek.belisko@gmail.com> wrote:
>> Hi,
>>
>> just want to ask it this patch is in queue. It's month it was submitted.
>
> I'd suggest it's probably not worth committing as-is, because this
> weekend we finally got rid of the multiple start_*.elf files.
OK. I'll resend new version of patch. Thanks for info.
>
> Alex
Cheers,
marek
--
as simple and primitive as possible
-------------------------------------------------
Marek Belisko - OPEN-NANDRA
Freelance Developer
Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
twitter: #opennandra
web: http://open-nandra.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH v2] Add package raspberrypi-firmware.
2012-10-20 21:10 ` Alex Bradbury
2012-10-20 21:24 ` Belisko Marek
@ 2012-10-20 21:26 ` Peter Korsgaard
2012-10-20 21:27 ` Belisko Marek
1 sibling, 1 reply; 7+ messages in thread
From: Peter Korsgaard @ 2012-10-20 21:26 UTC (permalink / raw)
To: buildroot
>>>>> "Alex" == Alex Bradbury <asb@asbradbury.org> writes:
Alex> On 20 October 2012 20:49, Belisko Marek <marek.belisko@gmail.com> wrote:
>> Hi,
>>
>> just want to ask it this patch is in queue. It's month it was submitted.
Yes, sorry about that. I just started looking at the patch now.
Alex> I'd suggest it's probably not worth committing as-is, because this
Alex> weekend we finally got rid of the multiple start_*.elf files.
Ahh, interesting - So how is the memory layout then defined?
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH v2] Add package raspberrypi-firmware.
2012-10-20 21:26 ` Peter Korsgaard
@ 2012-10-20 21:27 ` Belisko Marek
0 siblings, 0 replies; 7+ messages in thread
From: Belisko Marek @ 2012-10-20 21:27 UTC (permalink / raw)
To: buildroot
On Sat, Oct 20, 2012 at 11:26 PM, Peter Korsgaard <jacmet@uclibc.org> wrote:
>>>>>> "Alex" == Alex Bradbury <asb@asbradbury.org> writes:
>
> Alex> On 20 October 2012 20:49, Belisko Marek <marek.belisko@gmail.com> wrote:
> >> Hi,
> >>
> >> just want to ask it this patch is in queue. It's month it was submitted.
>
> Yes, sorry about that. I just started looking at the patch now.
>
> Alex> I'd suggest it's probably not worth committing as-is, because this
> Alex> weekend we finally got rid of the multiple start_*.elf files.
>
> Ahh, interesting - So how is the memory layout then defined?
Described here:
https://github.com/raspberrypi/firmware/commit/c57ea9dd367f12bf4fb41b7b86806a2dc6281176
>
> --
> Bye, Peter Korsgaard
Marek
--
as simple and primitive as possible
-------------------------------------------------
Marek Belisko - OPEN-NANDRA
Freelance Developer
Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
twitter: #opennandra
web: http://open-nandra.com
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2012-10-20 21:27 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-20 20:37 [Buildroot] [PATCH v2] Add package raspberrypi-firmware Marek Belisko
2012-10-02 16:41 ` Arnout Vandecappelle
2012-10-20 19:49 ` Belisko Marek
2012-10-20 21:10 ` Alex Bradbury
2012-10-20 21:24 ` Belisko Marek
2012-10-20 21:26 ` Peter Korsgaard
2012-10-20 21:27 ` Belisko Marek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox