From patchwork Sun Jan 31 19:41:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gary Bisson X-Patchwork-Id: 576246 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id A621F140BA5 for ; Mon, 1 Feb 2016 06:42:09 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=boundarydevices-com.20150623.gappssmtp.com header.i=@boundarydevices-com.20150623.gappssmtp.com header.b=pK0GW+US; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 859E195637; Sun, 31 Jan 2016 19:42:07 +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 TlrIv0IvUtFx; Sun, 31 Jan 2016 19:42:06 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 018B893911; Sun, 31 Jan 2016 19:42:06 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id A1C571C1550 for ; Sun, 31 Jan 2016 19:42:04 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id B45EE8693C for ; Sun, 31 Jan 2016 19:42:11 +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 rS1W7xaU6vjb for ; Sun, 31 Jan 2016 19:42:10 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm0-f48.google.com (mail-wm0-f48.google.com [74.125.82.48]) by whitealder.osuosl.org (Postfix) with ESMTPS id DEABF868D8 for ; Sun, 31 Jan 2016 19:42:09 +0000 (UTC) Received: by mail-wm0-f48.google.com with SMTP id l66so43807795wml.0 for ; Sun, 31 Jan 2016 11:42:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=boundarydevices-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=h04w7Rc8eMJAQclzHssn8NT3vrO4h2lFdtQSj15j3hE=; b=pK0GW+USSj9KkDLzlNJVvWByVemkrvORV/jN7sAknQnnml1wseEjopJ1U0xRx+fNHF garN5AV0/ShN4aEYSUW6+V1X0h6RAAFcpc/kRGxXewfHiXBLayhh2wgIljdvuOe7uiCx DJ31VgWBtKR7IO84fgNsWgkI1y84GBu+LBJV7wHmJcPNpNX0aPD/EOssT5v+0cYm9Krx jT8Kl73DfqgEP9AMUe/FWJEO6ZfoO71iC8NRZwwfZvO2L46elq9VgPdnSAdT1GEKXeVw doWrAs5JWwo/gW36HbmlTRcwoSQ6jQpLun0aVpHr8JkPh8Rcs7s8Rx+JqvSNITQdD3Lq rCLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=h04w7Rc8eMJAQclzHssn8NT3vrO4h2lFdtQSj15j3hE=; b=cuetmjrZ3sNlMOE+dayYbNbrTkDg0x9XZgQiPh1J1KzLTpRbZE+tgf+wWVe3huZiLN 1L3LF9RmYdLXvT/sRlb05AorSvGFTSunMzRrUVTo+D2BZGSMJGPcn2VCGUEy8ApR0Ky2 W0lUsmv9aaUuUmwYakqJpGq5tBej10OSh5HhSUd9eWOLTv2kkMFd001AAd7C2thvExcu 7nkOJESVYlhpv0aoEJ8sCFgfOH8IfaIWwuobra6iekVcEogOVS9/CmwxHIO360yjD89Y Czt7lC94m8DCCETRZka26g/pIgBvoxG4t6bkT7F6OPLLnz2YlNwrOiONcK5We/DwfZCh SGSA== X-Gm-Message-State: AG10YOSCCvX3PQo3Z6NNzSTtkap2uDfHNqtWnpjHkzx9+2BT/Hg+kD6iM4IRbg97tGKi8A== X-Received: by 10.194.113.165 with SMTP id iz5mr18695976wjb.4.1454269321450; Sun, 31 Jan 2016 11:42:01 -0800 (PST) Received: from x240.lan (89-92-99-128.hfc.dyn.abo.bbox.fr. [89.92.99.128]) by smtp.googlemail.com with ESMTPSA id qs1sm25595485wjc.2.2016.01.31.11.42.00 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 31 Jan 2016 11:42:00 -0800 (PST) From: Gary Bisson To: buildroot@busybox.net Date: Sun, 31 Jan 2016 20:41:53 +0100 Message-Id: <1454269313-27878-1-git-send-email-gary.bisson@boundarydevices.com> X-Mailer: git-send-email 2.7.0 Subject: [Buildroot] [PATCH] configs/nitrogen6*: update to use genimage X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 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" Also updating the documentation with the dd instruction to flash the bootbale media. Signed-off-by: Gary Bisson --- board/boundarydevices/nitrogen6x/genimage.cfg | 16 ++++++++++++++++ board/boundarydevices/nitrogen6x/post-image.sh | 16 ++++++++++++++++ board/boundarydevices/nitrogen6x/readme.txt | 6 +++--- configs/nitrogen6sx_defconfig | 4 +++- configs/nitrogen6x_defconfig | 4 +++- 5 files changed, 41 insertions(+), 5 deletions(-) create mode 100644 board/boundarydevices/nitrogen6x/genimage.cfg create mode 100755 board/boundarydevices/nitrogen6x/post-image.sh diff --git a/board/boundarydevices/nitrogen6x/genimage.cfg b/board/boundarydevices/nitrogen6x/genimage.cfg new file mode 100644 index 0000000..7a5e71e --- /dev/null +++ b/board/boundarydevices/nitrogen6x/genimage.cfg @@ -0,0 +1,16 @@ +image sdcard.img { + hdimage { + } + + partition u-boot { + in-partition-table = "no" + image = "u-boot.imx" + offset = 1024 + } + + partition rootfs { + partition-type = 0x83 + image = "rootfs.ext4" + size = 512M + } +} diff --git a/board/boundarydevices/nitrogen6x/post-image.sh b/board/boundarydevices/nitrogen6x/post-image.sh new file mode 100755 index 0000000..9cca1b1 --- /dev/null +++ b/board/boundarydevices/nitrogen6x/post-image.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +BOARD_DIR="$(dirname $0)" +GENIMAGE_CFG="${BOARD_DIR}/genimage.cfg" +GENIMAGE_TMP="${BUILD_DIR}/genimage.tmp" + +rm -rf "${GENIMAGE_TMP}" + +genimage \ + --rootpath "${TARGET_DIR}" \ + --tmppath "${GENIMAGE_TMP}" \ + --inputpath "${BINARIES_DIR}" \ + --outputpath "${BINARIES_DIR}" \ + --config "${GENIMAGE_CFG}" + +exit $? diff --git a/board/boundarydevices/nitrogen6x/readme.txt b/board/boundarydevices/nitrogen6x/readme.txt index 8657be8..6c723f1 100644 --- a/board/boundarydevices/nitrogen6x/readme.txt +++ b/board/boundarydevices/nitrogen6x/readme.txt @@ -2,11 +2,11 @@ Buildroot for Boundary Devices Nitrogen6X: http://boundarydevices.com/products/nitrogen6x-board-imx6-arm-cortex-a9-sbc/ -To install, simply write rootfs.ext2 to the first partition of a uSD card: +To install, simply copy the image to a uSD card: -sudo dd if=output/images/rootfs.ext2 of=/dev/sdX1 +sudo dd if=output/images/sdcard.img of=/dev/sdX -Where 'sdX1' is the device node of the uSD partition. +Where 'sdX' is the device node of the uSD partition. To upgrade u-boot, cancel autoboot and type: diff --git a/configs/nitrogen6sx_defconfig b/configs/nitrogen6sx_defconfig index 3670798..70e6376 100644 --- a/configs/nitrogen6sx_defconfig +++ b/configs/nitrogen6sx_defconfig @@ -6,11 +6,13 @@ BR2_cortex_a9=y BR2_TARGET_GENERIC_GETTY=y BR2_TARGET_GENERIC_GETTY_PORT="ttymxc0" BR2_ROOTFS_POST_BUILD_SCRIPT="board/boundarydevices/nitrogen6x/post-build.sh" +BR2_ROOTFS_POST_IMAGE_SCRIPT="board/boundarydevices/nitrogen6x/post-image.sh" +BR2_PACKAGE_HOST_GENIMAGE=y BR2_PACKAGE_HOST_UBOOT_TOOLS=y # filesystem BR2_TARGET_ROOTFS_EXT2=y -BR2_TARGET_ROOTFS_EXT2_2r1=y +BR2_TARGET_ROOTFS_EXT2_4=y # Lock headers to match kernel BR2_KERNEL_HEADERS_VERSION=y diff --git a/configs/nitrogen6x_defconfig b/configs/nitrogen6x_defconfig index 979bf09..af4a187 100644 --- a/configs/nitrogen6x_defconfig +++ b/configs/nitrogen6x_defconfig @@ -6,11 +6,13 @@ BR2_cortex_a9=y BR2_TARGET_GENERIC_GETTY=y BR2_TARGET_GENERIC_GETTY_PORT="ttymxc1" BR2_ROOTFS_POST_BUILD_SCRIPT="board/boundarydevices/nitrogen6x/post-build.sh" +BR2_ROOTFS_POST_IMAGE_SCRIPT="board/boundarydevices/nitrogen6x/post-image.sh" +BR2_PACKAGE_HOST_GENIMAGE=y BR2_PACKAGE_HOST_UBOOT_TOOLS=y # filesystem BR2_TARGET_ROOTFS_EXT2=y -BR2_TARGET_ROOTFS_EXT2_2r1=y +BR2_TARGET_ROOTFS_EXT2_4=y # Lock headers to match kernel BR2_KERNEL_HEADERS_VERSION=y