From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from 20.mo1.mail-out.ovh.net ([188.165.45.168] helo=mo1.mail-out.ovh.net) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1U0z2C-0006nP-9M for barebox@lists.infradead.org; Thu, 31 Jan 2013 18:38:53 +0000 Received: from mail610.ha.ovh.net (b9.ovh.net [213.186.33.59]) by mo1.mail-out.ovh.net (Postfix) with SMTP id B8450FFAC43 for ; Thu, 31 Jan 2013 19:53:36 +0100 (CET) From: Jean-Christophe PLAGNIOL-VILLARD Date: Thu, 31 Jan 2013 19:37:35 +0100 Message-Id: <1359657455-23895-1-git-send-email-plagnioj@jcrosoft.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 1/1] beagle: add nand partition and boot To: barebox@lists.infradead.org Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- arch/arm/boards/beagle/env/boot/nand-ubi | 9 +++++++++ arch/arm/boards/beagle/env/boot/nand-ubi-dt | 10 ++++++++++ arch/arm/boards/beagle/env/init/mtdparts-nand | 11 +++++++++++ 3 files changed, 30 insertions(+) create mode 100644 arch/arm/boards/beagle/env/boot/nand-ubi create mode 100644 arch/arm/boards/beagle/env/boot/nand-ubi-dt create mode 100644 arch/arm/boards/beagle/env/init/mtdparts-nand diff --git a/arch/arm/boards/beagle/env/boot/nand-ubi b/arch/arm/boards/beagle/env/boot/nand-ubi new file mode 100644 index 0000000..3037fd4 --- /dev/null +++ b/arch/arm/boards/beagle/env/boot/nand-ubi @@ -0,0 +1,9 @@ +#!/bin/sh + +if [ "$1" = menu ]; then + boot-menu-add-entry "$0" "nand (UBI)" + exit +fi + +global.bootm.image="/dev/nand0.kernel.bb" +global.linux.bootargs.dyn.root="root=ubi0:root ubi.mtd=nand0.root rootfstype=ubifs" diff --git a/arch/arm/boards/beagle/env/boot/nand-ubi-dt b/arch/arm/boards/beagle/env/boot/nand-ubi-dt new file mode 100644 index 0000000..b7a1f19 --- /dev/null +++ b/arch/arm/boards/beagle/env/boot/nand-ubi-dt @@ -0,0 +1,10 @@ +#!/bin/sh + +if [ "$1" = menu ]; then + boot-menu-add-entry "$0" "nand (UBI)" + exit +fi + +global.bootm.image="/dev/nand0.kernel.bb" +global.bootm.oftree="/dev/nand0.oftree.bb" +global.linux.bootargs.dyn.root="root=ubi0:root ubi.mtd=nand0.root rootfstype=ubifs" diff --git a/arch/arm/boards/beagle/env/init/mtdparts-nand b/arch/arm/boards/beagle/env/init/mtdparts-nand new file mode 100644 index 0000000..9335bb1 --- /dev/null +++ b/arch/arm/boards/beagle/env/init/mtdparts-nand @@ -0,0 +1,11 @@ +#!/bin/sh + +if [ "$1" = menu ]; then + init-menu-add-entry "$0" "NAND partitions" + exit +fi + +mtdparts="128k(nand0.xload),256k(nand0.barebox)ro,128k(nand0.bareboxenv),128k(nand0.oftree),4M(nand0.kernel),120M(nand0.rootfs),-(nand0.data)" +kernelname="omap2-nand" + +mtdparts-add -b -d nand0 -k ${kernelname} -p ${mtdparts} -- 1.7.10.4 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox