From patchwork Sun Jan 6 20:56:22 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Hadjinlian X-Patchwork-Id: 209804 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 8D2D42C007C for ; Mon, 7 Jan 2013 07:57:08 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 9B739A01A6; Sun, 6 Jan 2013 20:57:08 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23mMO2sCcRXm; Sun, 6 Jan 2013 20:57:01 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 9183DA0180; Sun, 6 Jan 2013 20:56:54 +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 55F8F8F753 for ; Sun, 6 Jan 2013 20:56:46 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 25D828C0B0 for ; Sun, 6 Jan 2013 20:56:40 +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 ewgDkZPJxiVZ for ; Sun, 6 Jan 2013 20:56:36 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wg0-f47.google.com (mail-wg0-f47.google.com [74.125.82.47]) by whitealder.osuosl.org (Postfix) with ESMTPS id BFD7B8C1E3 for ; Sun, 6 Jan 2013 20:56:35 +0000 (UTC) Received: by mail-wg0-f47.google.com with SMTP id dq11so8802474wgb.26 for ; Sun, 06 Jan 2013 12:56:33 -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=TgOAuMtvz0JPOI8Wko5i4wtJB6PI1FxtKSH37gxy37E=; b=Ll/UAsIG+9f48jirDCO41v2pxhe1T2RVLDIHluhYML/jRO34HNVJwuJWsJCy0M7mFA SIMg0YG9pRyfH3EXCvlrP8lJi+lAd1dKYJi5Ss3WHftc0WPuQ+mST+4m9ElP1oiI3TpM hs55Oh6Lih8CuqiOXAyy4xPqhbY2rQl5ff7bYv+4e4zjznQvnUNFWOY2OiFPUoEzuHas 6SyOQ2UjNMmmTJ3zGhRZmAWN5gYqdgk9SAU8R9LJsVXSwdJBnyXKuPTQvXP0soFjJhjc 3qzQFvcx+V5rM6LERQcebAGm6C0qsj2zW2H9okWnJGKUPBC1gajqa5wzpyZ/mD6V7M3G TsAQ== X-Received: by 10.180.73.202 with SMTP id n10mr6203998wiv.17.1357505793926; Sun, 06 Jan 2013 12:56:33 -0800 (PST) Received: from localhost.localdomain (13-105-190-109.dsl.ovh.fr. [109.190.105.13]) by mx.google.com with ESMTPS id h19sm9135594wiv.7.2013.01.06.12.56.32 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 06 Jan 2013 12:56:33 -0800 (PST) From: Maxime Hadjinlian To: buildroot@busybox.net Date: Sun, 6 Jan 2013 21:56:22 +0100 Message-Id: <5460810c1bece1a398cf9a97e7ee521d75cf05f2.1357505417.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..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))