From patchwork Fri Jan 11 13:17:30 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Maxime Hadjinlian X-Patchwork-Id: 211331 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 5E4EC2C031C for ; Sat, 12 Jan 2013 00:17:45 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id B86BB8CF70; Fri, 11 Jan 2013 13:17:42 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AnlVk0atqura; Fri, 11 Jan 2013 13:17:40 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 26E688CF5B; Fri, 11 Jan 2013 13:17:40 +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 A45868F753 for ; Fri, 11 Jan 2013 13:17:44 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 5D8688CF5B for ; Fri, 11 Jan 2013 13:17:38 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XetzNSXlnqe5 for ; Fri, 11 Jan 2013 13:17:37 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ea0-f177.google.com (mail-ea0-f177.google.com [209.85.215.177]) by whitealder.osuosl.org (Postfix) with ESMTPS id 29A428CD47 for ; Fri, 11 Jan 2013 13:17:36 +0000 (UTC) Received: by mail-ea0-f177.google.com with SMTP id c10so685285eaa.22 for ; Fri, 11 Jan 2013 05:17:35 -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:mime-version :content-type:content-transfer-encoding; bh=zQX8uD04S064lN3jt8alNII7CDNdjcjGABbWplG1/CU=; b=oUzQfJvFZE82UyK/V4OfElSo0Sl9iWeO1SaQRHNJPBrV327htiqhe72WmY7UQCdJXc NI0t+eIqU+GjMBWuKBNS03iBKO42852Xk6ukkTETh4YiadrqDeZpOzT/P6qqRkAlZCiu 62Gk2tJFwqfgul3qemPW0526896BWIGY77dwJp7W+iZ0aj4/UMHrtYzeVOTyEN0wduXL jOPzl37+1NLYLHYi0DhlQ8tR5qE+0tBcBUbzgfCDWeUpM4P122MDNcDBJF9wDVF2fw5b muZfKQWQzglNyrP+ep2dHtVmo/xhn0Y5LWDtFddidz9aAZik5LwYkkT80P9erHEVMghM 8iQQ== X-Received: by 10.14.219.72 with SMTP id l48mr202215507eep.37.1357910254997; Fri, 11 Jan 2013 05:17:34 -0800 (PST) Received: from localhost (193.5-14-84.ripe.coltfrance.com. [84.14.5.193]) by mx.google.com with ESMTPS id v46sm8484729eep.1.2013.01.11.05.17.33 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 11 Jan 2013 05:17:34 -0800 (PST) From: Maxime Hadjinlian To: buildroot@busybox.net Date: Fri, 11 Jan 2013 14:17:30 +0100 Message-Id: <1357910250-31110-1-git-send-email-maxime.hadjinlian@gmail.com> X-Mailer: git-send-email 1.7.10.4 MIME-Version: 1.0 Subject: [Buildroot] =?utf-8?q?=5BPATCH_v2=5D_configs=3A_add_RaspberryPi_d?= =?utf-8?q?efconfig?= 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: , Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net This is a default configuration for the RaspberryPi, tested and functionnal. The kernel used is the one developped by the RaspberryPi foundation as it's not fully supported currently in mainline kernel. The configuration used for the kernel is the default bcmrpi. Note that the kernel generated is a zImage but to work you should : - Rename it to kernel.img - Add 'kernel=zImage' in config.txt (without quotes). For more info, please find board/raspberrypi/README.txt Signed-off-by: Maxime Hadjinlian --- board/raspberrypi/README.txt | 35 +++++++++++++++++++++++++++++++++++ configs/rpi_defconfig | 19 +++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 board/raspberrypi/README.txt create mode 100644 configs/rpi_defconfig -- 1.7.10.4 diff --git a/board/raspberrypi/README.txt b/board/raspberrypi/README.txt new file mode 100644 index 0000000..5ddc5c5 --- /dev/null +++ b/board/raspberrypi/README.txt @@ -0,0 +1,35 @@ +## RaspberryPi + +When you use the rpi_defconfig to build a rootfs for your RaspberryPi, a few +items are created in output/images : + + output/images/ + ├── rootfs.tar + ├── rpi-firmware + │   ├── bootcode.bin + │   ├── config.txt + │   ├── fixup_cd.dat + │   ├── fixup.dat + │   ├── start_cd.elf + │   └── start.elf + └── zImage + +In order to have a working SDCard, you should have at least two partitions : + + - First partition : + This will be the boot partition (It must be formated in fat32 and have + bootable flags). + It should contains the *content* of output/images/rpi-firmware/. + It will also contain the kernel binary. + For the kernel to be found, you have two choices : + 1 - Rename zImage to kernel.img since it's the default kernel file + name here. + 2 - Add 'kernel=zImage' to config.txt (without the quotes). + + - Second partition : + This will contains the rootfs and should be formated in ext4. + If you chose another filesystem, you should modify the cmdline in + config.txt. + Then simply extract rootfs.tar to this partition. + +Finally, a good source of information is http://elinux.org/R-Pi_Hub diff --git a/configs/rpi_defconfig b/configs/rpi_defconfig new file mode 100644 index 0000000..8c73d0e --- /dev/null +++ b/configs/rpi_defconfig @@ -0,0 +1,19 @@ +BR2_arm=y +BR2_arm1176jzf_s=y + +BR2_TOOLCHAIN_BUILDROOT_LARGEFILE=y +BR2_TOOLCHAIN_BUILDROOT_CXX=y + +BR2_TARGET_GENERIC_GETTY_PORT="tty1" + +BR2_PACKAGE_RPI_FIRMWARE=y +BR2_PACKAGE_RPI_USERLAND=y +BR2_PACKAGE_LIBCOFI=y + +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_GIT=y +BR2_LINUX_KERNEL_CUSTOM_GIT_REPO_URL="git://github.com/raspberrypi/linux.git" +BR2_LINUX_KERNEL_CUSTOM_GIT_VERSION="31a951046155b27361127d9cf85a1f58719fe9b3" +BR2_LINUX_KERNEL_USE_DEFCONFIG=y +BR2_LINUX_KERNEL_DEFCONFIG="bcmrpi" +BR2_LINUX_KERNEL_ZIMAGE=y