From patchwork Sat Jan 5 22:55:16 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Hadjinlian X-Patchwork-Id: 209706 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 9BF892C007C for ; Sun, 6 Jan 2013 09:55:59 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 80658101881; Sat, 5 Jan 2013 22:55:48 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ISxgNZu2prVF; Sat, 5 Jan 2013 22:55:42 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 4B99710190E; Sat, 5 Jan 2013 22:55:26 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 6F39E8F753 for ; Sat, 5 Jan 2013 22:55:36 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 48AB28BA86 for ; Sat, 5 Jan 2013 22:55:30 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TtRPkYF967+D for ; Sat, 5 Jan 2013 22:55:29 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wg0-f54.google.com (mail-wg0-f54.google.com [74.125.82.54]) by whitealder.osuosl.org (Postfix) with ESMTPS id 245D58B597 for ; Sat, 5 Jan 2013 22:55:28 +0000 (UTC) Received: by mail-wg0-f54.google.com with SMTP id fg15so8338214wgb.33 for ; Sat, 05 Jan 2013 14:55:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:in-reply-to:references; bh=6xn5+Em9IyTEw6YlPHxCz3FRx/PwLHLVAmbdmFrB8rc=; b=KUkiBbWkAZNvd38yyYGdMPS8cPJn288SzyjYsP7K20ycGWrEP4kQZIuiToqSg9662D CQuxw5ksFIeFR6otBiDm3M2b132QnOpaxap9QgfXgUEZI7i3RlsM0t4i0N9hLlA+HQ7d IZEdQLhCB9Pk/L5AYOVmFtesgnN3Ei7K8D/UggiDNVBaElcXIgE3ipWnLcCTIlqOpLh9 7wV5Q2uSkomN8Dy9VE2LH2cmXyNmO2Y7xzMiWV2rfSC/iEAF+E49yMsh7we1XBbxHKDV 0FB8Mg0X7TwL8qPIJnIhf4nUrwxo5Rn7tjT90Xg1nRnZ1ngNmIuL0+pK0z79svtYFLH/ sLvg== X-Received: by 10.180.87.228 with SMTP id bb4mr3263612wib.31.1357426527467; Sat, 05 Jan 2013 14:55:27 -0800 (PST) Received: from localhost.localdomain (13-105-190-109.dsl.ovh.fr. [109.190.105.13]) by mx.google.com with ESMTPS id hu8sm5336199wib.6.2013.01.05.14.55.25 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 05 Jan 2013 14:55:26 -0800 (PST) From: Maxime Hadjinlian To: buildroot@busybox.net Date: Sat, 5 Jan 2013 23:55:16 +0100 Message-Id: <033a0b8264805de1fb670bf727c756b94d4eb34b.1357426077.git.maxime.hadjinlian@gmail.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: References: In-Reply-To: References: Subject: [Buildroot] [PATCH 3/3] rpi-firmware: New package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Introducing a package to install pre-built binaries for the bootloader and the GPU firmware for the RaspberryPi board. Signed-off-by: Maxime Hadjinlian --- package/Config.in | 1 + package/rpi-firmware/Config.in | 9 +++++++++ package/rpi-firmware/config.txt | 13 +++++++++++++ package/rpi-firmware/rpi-firmware.mk | 21 +++++++++++++++++++++ 4 files changed, 44 insertions(+) create mode 100644 package/rpi-firmware/Config.in create mode 100644 package/rpi-firmware/config.txt create mode 100644 package/rpi-firmware/rpi-firmware.mk diff --git a/package/Config.in b/package/Config.in index 17205fe..30c39ac 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..5723dea --- /dev/null +++ b/package/rpi-firmware/Config.in @@ -0,0 +1,9 @@ +config BR2_PACKAGE_RPI_FIRMWARE + bool "RaspberryPi 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..14d320d --- /dev/null +++ b/package/rpi-firmware/config.txt @@ -0,0 +1,13 @@ +# 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.uclibc.org/downloads/manual/manual.html#rootfs-custom + +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..74a7409 --- /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 $(TARGET_DIR)/boot/ + $(INSTALL) -D -m 0644 $(@D)/boot/start.elf $(TARGET_DIR)/boot/ + $(INSTALL) -D -m 0644 $(@D)/boot/start_cd.elf $(TARGET_DIR)/boot/ + $(INSTALL) -D -m 0644 $(@D)/boot/fixup.dat $(TARGET_DIR)/boot/ + $(INSTALL) -D -m 0644 $(@D)/boot/fixup_cd.dat $(TARGET_DIR)/boot/ + $(INSTALL) -D -m 0644 package/rpi-fw/cmdline.txt $(TARGET_DIR)/boot/ + $(INSTALL) -D -m 0644 package/rpi-fw/config.txt $(TARGET_DIR)/boot/ +endef + +$(eval $(generic-package))