* [PATCH 1/1] beagle: add nand partition and boot
@ 2013-01-31 18:37 Jean-Christophe PLAGNIOL-VILLARD
2013-02-05 9:37 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2013-01-31 18:37 UTC (permalink / raw)
To: barebox
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
---
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 1/1] beagle: add nand partition and boot
2013-01-31 18:37 [PATCH 1/1] beagle: add nand partition and boot Jean-Christophe PLAGNIOL-VILLARD
@ 2013-02-05 9:37 ` Sascha Hauer
0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2013-02-05 9:37 UTC (permalink / raw)
To: Jean-Christophe PLAGNIOL-VILLARD; +Cc: barebox
On Thu, Jan 31, 2013 at 07:37:35PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote:
> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Applied, thanks
Sascha
> ---
> 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
>
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-02-05 9:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-31 18:37 [PATCH 1/1] beagle: add nand partition and boot Jean-Christophe PLAGNIOL-VILLARD
2013-02-05 9:37 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox