From patchwork Fri Dec 20 22:32:55 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 304331 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 5AF962C009A for ; Sat, 21 Dec 2013 09:33:07 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id AA9C693EA4; Fri, 20 Dec 2013 22:33:06 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2ApbJTBVJk7V; Fri, 20 Dec 2013 22:33:04 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id B5F8293E9C; Fri, 20 Dec 2013 22:33:04 +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 6494C1BF82E for ; Fri, 20 Dec 2013 22:33:03 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 5E65A8BFF0 for ; Fri, 20 Dec 2013 22:33:03 +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 726ryPRyeffs for ; Fri, 20 Dec 2013 22:33:03 +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 AFF938BF99 for ; Fri, 20 Dec 2013 22:33:02 +0000 (UTC) Received: by mail-wg0-f47.google.com with SMTP id n12so3080345wgh.14 for ; Fri, 20 Dec 2013 14:33:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=b7rSSn38VldpUWTqE1yIpgFlNeH8ro/FYm2agS5Geg4=; b=xErt7OngySusdiXZhY3ELrWWyvl488YF3YQ5xhimH3HpF+4mSrrZx5/l7TMxhoundO Fe8hyEF2fw9hSSR16FI5ubEOruZA6LgGn19T8+tKT/f4H+AnGsJFb6QL5xZVDprRO1e3 huHdIoV3l1j8nA1/C7E3SZWiOsz5+6FxPEG9UvjQnW7tCFKS/V18FCySzEGc7ZpQhAZU Ru2YDI2HGno8pxQlkIXyeXynqyaZvPpBcle/E/5y7pSdg1O90ywGBv81lH9Lkb8QE0mK ZI5x1LO1AfLgfRwIuvvqx026NFQXI+wlSi8hFPX2wIAF92JPCBbA6o9fN1maRYh6JaG4 c4+Q== X-Received: by 10.194.62.8 with SMTP id u8mr63669wjr.68.1387578781306; Fri, 20 Dec 2013 14:33:01 -0800 (PST) Received: from gourin.bzh.lan (ks3095497.kimsufi.com. [94.23.60.27]) by mx.google.com with ESMTPSA id wy5sm3631274wjc.8.2013.12.20.14.33.00 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 20 Dec 2013 14:33:00 -0800 (PST) From: "Yann E. MORIN" To: buildroot@busybox.net Date: Fri, 20 Dec 2013 23:32:55 +0100 Message-Id: X-Mailer: git-send-email 1.8.1.2 In-Reply-To: References: Cc: "Yann E. MORIN" Subject: [Buildroot] [PATCH 2/4] board/raspberrypi: provide partition description for the new genimages 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 From: "Yann E. MORIN" Now we can generate a complete target storage image with the genimages infra, add a partition table layout description for the Raspberry Pi as an example for how to use genimages. Signed-off-by: "Yann E. MORIN" Cc: Ryan Barnett --- board/raspberrypi/partitions | 36 ++++++++++++++++++++++++++++++++++++ configs/raspberrypi_defconfig | 8 ++++++++ 2 files changed, 44 insertions(+) create mode 100644 board/raspberrypi/partitions diff --git a/board/raspberrypi/partitions b/board/raspberrypi/partitions new file mode 100644 index 0000000..c5e8de5 --- /dev/null +++ b/board/raspberrypi/partitions @@ -0,0 +1,36 @@ +[global] +extract=tar +devices=mmcblk0 + +[mmcblk0] +type=boot +boot_type=mbr +partitions=boot,root +partalign=$((1048576)) + +[root] +type=fs +size=$((32*1048576)) +mbr_type=$((0x83)) +fs_type=ext +fs_vfstype=ext4 +fs_mntops=discard +fs_root=/ +fs_label=ROOT +ext_gen=4 +ext_rev=1 + +[boot] +type=fs +# FAT32 is not possible under 9MiB +size=$((9*1048576)) +mbr_type=$((0xc)) +fs_type=vfat +fs_files_0=rpi-firmware/bootcode.bin +fs_files_1=rpi-firmware/start.elf +fs_files_2=rpi-firmware/fixup.dat +fs_files_3=rpi-firmware/config.txt +fs_files_4=rpi-firmware/cmdline.txt +fs_files_5=zImage +fs_label=BOOT +vfat_size=16 diff --git a/configs/raspberrypi_defconfig b/configs/raspberrypi_defconfig index 4df0f4b..c571817 100644 --- a/configs/raspberrypi_defconfig +++ b/configs/raspberrypi_defconfig @@ -21,3 +21,11 @@ BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="5ebf1db80e2c03e92d570605b53f91a06112574f" BR2_LINUX_KERNEL_USE_DEFCONFIG=y BR2_LINUX_KERNEL_DEFCONFIG="bcmrpi_quick" BR2_LINUX_KERNEL_ZIMAGE=y + +BR2_TARGET_ROOTFS_CUSTOM_PARTITION_TABLE="$(TOPDIR)/board/raspberrypi/partitions" + +BR2_PACKAGE_HOST_DOSFSTOOLS=y +BR2_PACKAGE_HOST_E2FSPROGS=y +BR2_PACKAGE_HOST_GENEXT2FS=y +BR2_PACKAGE_HOST_GENPART=y +BR2_PACKAGE_HOST_MTOOLS=y