Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [git commit] rpi-firmware: New package
@ 2013-01-06 22:01 Peter Korsgaard
  2013-01-07 22:41 ` Arnout Vandecappelle
  0 siblings, 1 reply; 7+ messages in thread
From: Peter Korsgaard @ 2013-01-06 22:01 UTC (permalink / raw)
  To: buildroot

commit: http://git.buildroot.net/buildroot/commit/?id=2f511fe31229ab9fd2182aa0ebda0ecf205ab12b
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master

Introducing a package to install pre-built binaries for the bootloader and
the GPU firmware for the RaspberryPi board.

[Peter: rename to rpi-firmware, add link to http://elinux.org/RPiconfig]
Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
---
 package/Config.in                    |    1 +
 package/rpi-firmware/Config.in       |    9 +++++++++
 package/rpi-firmware/config.txt      |   14 ++++++++++++++
 package/rpi-firmware/rpi-firmware.mk |   21 +++++++++++++++++++++
 4 files changed, 45 insertions(+), 0 deletions(-)

diff --git a/package/Config.in b/package/Config.in
index 69bc254..11e6f3a 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -202,6 +202,7 @@ menu "Hardware handling"
 menu "Misc devices firmwares"
 source "package/b43-firmware/Config.in"
 source "package/linux-firmware/Config.in"
+source "package/rpi-firmware/Config.in"
 source "package/ux500-firmware/Config.in"
 source "package/zd1211-firmware/Config.in"
 endmenu
diff --git a/package/rpi-firmware/Config.in b/package/rpi-firmware/Config.in
new file mode 100644
index 0000000..eb10a8a
--- /dev/null
+++ b/package/rpi-firmware/Config.in
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_RPI_FIRMWARE
+	bool "rpi-firmware"
+	depends on BR2_arm
+	help
+	  RaspberryPi Firmware
+	  Pre-compiled binaries of the current bootloader and GPU firmware
+
+	  https://github.com/raspberrypi/firmware
+
diff --git a/package/rpi-firmware/config.txt b/package/rpi-firmware/config.txt
new file mode 100644
index 0000000..2cabd68
--- /dev/null
+++ b/package/rpi-firmware/config.txt
@@ -0,0 +1,14 @@
+# Please note that this is only a sample, we recommend you to change it to fit
+# your needs.
+# You should override this file using a post-build script.
+# See http://buildroot.org/downloads/manual/manual.html#rootfs-custom
+# and http://elinux.org/RPiconfig for a description of config.txt syntax
+
+arm_freq=700
+core_freq=250
+disable_overscan=1
+gpu_mem_256=100
+gpu_mem_512=100
+sdram_freq=400
+over_voltage=0
+cmdline="dwc_otg.fiq_fix_enable=1 sdhci-bcm2708.sync_after_dma=0 dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait"
diff --git a/package/rpi-firmware/rpi-firmware.mk b/package/rpi-firmware/rpi-firmware.mk
new file mode 100644
index 0000000..5a65e34
--- /dev/null
+++ b/package/rpi-firmware/rpi-firmware.mk
@@ -0,0 +1,21 @@
+#############################################################
+#
+# rpi-firmware
+#
+#############################################################
+
+RPI_FIRMWARE_VERSION = 76d0ac38f16b6343c6155c80db1e4758b3a5838a
+RPI_FIRMWARE_SITE = http://github.com/raspberrypi/firmware/tarball/master
+RPI_FIRMWARE_LICENSE = BSD-3c
+RPI_FIRMWARE_LICENSE_FILE = boot/LICENCE.broadcom
+
+define RPI_FIRMWARE_INSTALL_TARGET_CMDS
+	$(INSTALL) -D -m 0644 $(@D)/boot/bootcode.bin $(BINARIES_DIR)/rpi-firmware/bootcode.bin
+	$(INSTALL) -D -m 0644 $(@D)/boot/start.elf $(BINARIES_DIR)/rpi-firmware/start.elf
+	$(INSTALL) -D -m 0644 $(@D)/boot/start_cd.elf $(BINARIES_DIR)/rpi-firmware/start_cd.elf
+	$(INSTALL) -D -m 0644 $(@D)/boot/fixup.dat $(BINARIES_DIR)/rpi-firmware/fixup.dat
+	$(INSTALL) -D -m 0644 $(@D)/boot/fixup_cd.dat $(BINARIES_DIR)/rpi-firmware/fixup_cd.dat
+	$(INSTALL) -D -m 0644 package/rpi-firmware/config.txt $(BINARIES_DIR)/rpi-firmware/config.txt
+endef
+
+$(eval $(generic-package))

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [Buildroot] [git commit] rpi-firmware: New package
  2013-01-06 22:01 [Buildroot] [git commit] rpi-firmware: New package Peter Korsgaard
@ 2013-01-07 22:41 ` Arnout Vandecappelle
  2013-01-07 23:06   ` Maxime Hadjinlian
  0 siblings, 1 reply; 7+ messages in thread
From: Arnout Vandecappelle @ 2013-01-07 22:41 UTC (permalink / raw)
  To: buildroot

On 06/01/13 23:01, Peter Korsgaard wrote:
> +RPI_FIRMWARE_LICENSE = BSD-3c
> +RPI_FIRMWARE_LICENSE_FILE = boot/LICENCE.broadcom

  As Thomas pointed out, this is not BSD-3c but "Broadcom proprietary 
license".

  Maybe it should also get

RPI_FIRMWARE_REDISTRIBUTE = NO


  Regards,
  Arnout
-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
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] [git commit] rpi-firmware: New package
  2013-01-07 22:41 ` Arnout Vandecappelle
@ 2013-01-07 23:06   ` Maxime Hadjinlian
  2013-01-07 23:30     ` Floris Bos
  0 siblings, 1 reply; 7+ messages in thread
From: Maxime Hadjinlian @ 2013-01-07 23:06 UTC (permalink / raw)
  To: buildroot

On Mon, Jan 7, 2013 at 11:41 PM, Arnout Vandecappelle <arnout@mind.be> wrote:
> On 06/01/13 23:01, Peter Korsgaard wrote:
>>
>> +RPI_FIRMWARE_LICENSE = BSD-3c
>> +RPI_FIRMWARE_LICENSE_FILE = boot/LICENCE.broadcom
>
>
>  As Thomas pointed out, this is not BSD-3c but "Broadcom proprietary
> license".
>
>  Maybe it should also get
>
> RPI_FIRMWARE_REDISTRIBUTE = NO
>
So, even the binary are not free from redistributing ? I'm sorry, I
lack absolute knowledge in license... I should study this.
I will patch to add this.
>
>  Regards,
>  Arnout
> --
> Arnout Vandecappelle                          arnout at mind be
> Senior Embedded Software Architect            +32-16-286500
> 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
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] [git commit] rpi-firmware: New package
  2013-01-07 23:06   ` Maxime Hadjinlian
@ 2013-01-07 23:30     ` Floris Bos
  2013-01-07 23:38       ` Arnout Vandecappelle
  0 siblings, 1 reply; 7+ messages in thread
From: Floris Bos @ 2013-01-07 23:30 UTC (permalink / raw)
  To: buildroot

On 01/08/2013 12:06 AM, Maxime Hadjinlian wrote:
> On Mon, Jan 7, 2013 at 11:41 PM, Arnout Vandecappelle <arnout@mind.be> wrote:
>> On 06/01/13 23:01, Peter Korsgaard wrote:
>>> +RPI_FIRMWARE_LICENSE = BSD-3c
>>> +RPI_FIRMWARE_LICENSE_FILE = boot/LICENCE.broadcom
>>
>>   As Thomas pointed out, this is not BSD-3c but "Broadcom proprietary
>> license".
>>
>>   Maybe it should also get
>>
>> RPI_FIRMWARE_REDISTRIBUTE = NO
>>
> So, even the binary are not free from redistributing ? I'm sorry, I
> lack absolute knowledge in license... I should study this.
> I will patch to add this.

Perhaps also copy the boot/LICENCE.broadcom file to the directory 
holding the boot files?
Right now you are leaving it out.

==
+    $(INSTALL) -D -m 0644 $(@D)/boot/bootcode.bin 
$(BINARIES_DIR)/rpi-firmware/bootcode.bin
+    $(INSTALL) -D -m 0644 $(@D)/boot/start.elf 
$(BINARIES_DIR)/rpi-firmware/start.elf
+    $(INSTALL) -D -m 0644 $(@D)/boot/start_cd.elf 
$(BINARIES_DIR)/rpi-firmware/start_cd.elf
+    $(INSTALL) -D -m 0644 $(@D)/boot/fixup.dat 
$(BINARIES_DIR)/rpi-firmware/fixup.dat
+    $(INSTALL) -D -m 0644 $(@D)/boot/fixup_cd.dat 
$(BINARIES_DIR)/rpi-firmware/fixup_cd.dat
==


Yours sincerely,

Floris Bos

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] [git commit] rpi-firmware: New package
  2013-01-07 23:30     ` Floris Bos
@ 2013-01-07 23:38       ` Arnout Vandecappelle
  2013-01-08  0:59         ` Floris Bos
  0 siblings, 1 reply; 7+ messages in thread
From: Arnout Vandecappelle @ 2013-01-07 23:38 UTC (permalink / raw)
  To: buildroot

On 08/01/13 00:30, Floris Bos wrote:
> On 01/08/2013 12:06 AM, Maxime Hadjinlian wrote:
>> On Mon, Jan 7, 2013 at 11:41 PM, Arnout Vandecappelle <arnout@mind.be>
>> wrote:
>>> On 06/01/13 23:01, Peter Korsgaard wrote:
>>>> +RPI_FIRMWARE_LICENSE = BSD-3c
>>>> +RPI_FIRMWARE_LICENSE_FILE = boot/LICENCE.broadcom
>>>
>>> As Thomas pointed out, this is not BSD-3c but "Broadcom proprietary
>>> license".
>>>
>>> Maybe it should also get
>>>
>>> RPI_FIRMWARE_REDISTRIBUTE = NO
>>>
>> So, even the binary are not free from redistributing ? I'm sorry, I
>> lack absolute knowledge in license... I should study this.
>> I will patch to add this.
>
> Perhaps also copy the boot/LICENCE.broadcom file to the directory holding
> the boot files?

  Why? Usually when the device is redistributed, the end user doesn't 
even have access to the filesystem. So putting license files in the root 
filesystem is quite redundant.

  For licenses, we have the 'make legal-info' target that nicely collects 
everything into output/legal-info.

  Regards,
  Arnout


> Right now you are leaving it out.
>
> ==
> + $(INSTALL) -D -m 0644 $(@D)/boot/bootcode.bin
> $(BINARIES_DIR)/rpi-firmware/bootcode.bin
> + $(INSTALL) -D -m 0644 $(@D)/boot/start.elf
> $(BINARIES_DIR)/rpi-firmware/start.elf
> + $(INSTALL) -D -m 0644 $(@D)/boot/start_cd.elf
> $(BINARIES_DIR)/rpi-firmware/start_cd.elf
> + $(INSTALL) -D -m 0644 $(@D)/boot/fixup.dat
> $(BINARIES_DIR)/rpi-firmware/fixup.dat
> + $(INSTALL) -D -m 0644 $(@D)/boot/fixup_cd.dat
> $(BINARIES_DIR)/rpi-firmware/fixup_cd.dat
> ==
>
>
> Yours sincerely,
>
> Floris Bos
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
>


-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
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] [git commit] rpi-firmware: New package
  2013-01-07 23:38       ` Arnout Vandecappelle
@ 2013-01-08  0:59         ` Floris Bos
  2013-01-08  9:06           ` Maxime Hadjinlian
  0 siblings, 1 reply; 7+ messages in thread
From: Floris Bos @ 2013-01-08  0:59 UTC (permalink / raw)
  To: buildroot

On 01/08/2013 12:38 AM, Arnout Vandecappelle wrote:
> On 08/01/13 00:30, Floris Bos wrote:
>> On 01/08/2013 12:06 AM, Maxime Hadjinlian wrote:
>>> On Mon, Jan 7, 2013 at 11:41 PM, Arnout Vandecappelle <arnout@mind.be>
>>> wrote:
>>>> On 06/01/13 23:01, Peter Korsgaard wrote:
>>>>> +RPI_FIRMWARE_LICENSE = BSD-3c
>>>>> +RPI_FIRMWARE_LICENSE_FILE = boot/LICENCE.broadcom
>>>>
>>>> As Thomas pointed out, this is not BSD-3c but "Broadcom proprietary
>>>> license".
>>>>
>>>> Maybe it should also get
>>>>
>>>> RPI_FIRMWARE_REDISTRIBUTE = NO
>>>>
>>> So, even the binary are not free from redistributing ? I'm sorry, I
>>> lack absolute knowledge in license... I should study this.
>>> I will patch to add this.
>>
>> Perhaps also copy the boot/LICENCE.broadcom file to the directory 
>> holding
>> the boot files?
>
>  Why? Usually when the device is redistributed, the end user doesn't 
> even have access to the filesystem. So putting license files in the 
> root filesystem is quite redundant.
>

In the case of the Raspberry, the bootloader files are always stored on 
the FAT partition of a removable SD card.
Even inside an enclosure, they are quite more accessible to end-users 
than with other devices.


Yours sincerely,

Floris Bos

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Buildroot] [git commit] rpi-firmware: New package
  2013-01-08  0:59         ` Floris Bos
@ 2013-01-08  9:06           ` Maxime Hadjinlian
  0 siblings, 0 replies; 7+ messages in thread
From: Maxime Hadjinlian @ 2013-01-08  9:06 UTC (permalink / raw)
  To: buildroot

On Tue, Jan 8, 2013 at 1:59 AM, Floris Bos <bos@je-eigen-domein.nl> wrote:
> On 01/08/2013 12:38 AM, Arnout Vandecappelle wrote:
>>
>> On 08/01/13 00:30, Floris Bos wrote:
>>>
>>> On 01/08/2013 12:06 AM, Maxime Hadjinlian wrote:
>>>>
>>>> On Mon, Jan 7, 2013 at 11:41 PM, Arnout Vandecappelle <arnout@mind.be>
>>>> wrote:
>>>>>
>>>>> On 06/01/13 23:01, Peter Korsgaard wrote:
>>>>>>
>>>>>> +RPI_FIRMWARE_LICENSE = BSD-3c
>>>>>> +RPI_FIRMWARE_LICENSE_FILE = boot/LICENCE.broadcom
>>>>>
>>>>>
>>>>> As Thomas pointed out, this is not BSD-3c but "Broadcom proprietary
>>>>> license".
>>>>>
>>>>> Maybe it should also get
>>>>>
>>>>> RPI_FIRMWARE_REDISTRIBUTE = NO
>>>>>
>>>> So, even the binary are not free from redistributing ? I'm sorry, I
>>>> lack absolute knowledge in license... I should study this.
>>>> I will patch to add this.
>>>
>>>
>>> Perhaps also copy the boot/LICENCE.broadcom file to the directory holding
>>> the boot files?
>>
>>
>>  Why? Usually when the device is redistributed, the end user doesn't even
>> have access to the filesystem. So putting license files in the root
>> filesystem is quite redundant.
>>
>
> In the case of the Raspberry, the bootloader files are always stored on the
> FAT partition of a removable SD card.
> Even inside an enclosure, they are quite more accessible to end-users than
> with other devices.
I agree with Arnout, as said Yann E. Morin in this mail :
http://lists.busybox.net/pipermail/buildroot/2013-January/064966.html,
I don't think we should worry about people using system build with
buildroot, it's the responsibility of people distributing theses
systems to inform their users about licenses, that's why the make
legal-info is for IMHO.
>
>
>
> Yours sincerely,
>
> Floris Bos
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-01-08  9:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-06 22:01 [Buildroot] [git commit] rpi-firmware: New package Peter Korsgaard
2013-01-07 22:41 ` Arnout Vandecappelle
2013-01-07 23:06   ` Maxime Hadjinlian
2013-01-07 23:30     ` Floris Bos
2013-01-07 23:38       ` Arnout Vandecappelle
2013-01-08  0:59         ` Floris Bos
2013-01-08  9:06           ` Maxime Hadjinlian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox