mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] PCM038: Added support for boot from NOR-flash
@ 2012-06-05 17:58 Alexander Shiyan
  2012-06-07  9:41 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Alexander Shiyan @ 2012-06-05 17:58 UTC (permalink / raw)
  To: barebox


Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
---
 arch/arm/boards/pcm038/env/boot/nor |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
 create mode 100644 arch/arm/boards/pcm038/env/boot/nor

diff --git a/arch/arm/boards/pcm038/env/boot/nor b/arch/arm/boards/pcm038/env/boot/nor
new file mode 100644
index 0000000..5dfca6f
--- /dev/null
+++ b/arch/arm/boards/pcm038/env/boot/nor
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+if [ "$1" = menu ]; then
+	boot-menu-add-entry "$0" "nor"
+	exit
+fi
+
+global.bootm.image="/dev/nor0.kernel"
+global.linux.bootargs.root="root=/dev/mtdblock3"
-- 
1.7.3.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] PCM038: Added support for boot from NOR-flash
  2012-06-05 17:58 [PATCH] PCM038: Added support for boot from NOR-flash Alexander Shiyan
@ 2012-06-07  9:41 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2012-06-07  9:41 UTC (permalink / raw)
  To: Alexander Shiyan; +Cc: barebox

On Tue, Jun 05, 2012 at 09:58:39PM +0400, Alexander Shiyan wrote:
> 
> Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
> ---
>  arch/arm/boards/pcm038/env/boot/nor |    9 +++++++++
>  1 files changed, 9 insertions(+), 0 deletions(-)
>  create mode 100644 arch/arm/boards/pcm038/env/boot/nor
> 
> diff --git a/arch/arm/boards/pcm038/env/boot/nor b/arch/arm/boards/pcm038/env/boot/nor
> new file mode 100644
> index 0000000..5dfca6f
> --- /dev/null
> +++ b/arch/arm/boards/pcm038/env/boot/nor
> @@ -0,0 +1,9 @@
> +#!/bin/sh
> +
> +if [ "$1" = menu ]; then
> +	boot-menu-add-entry "$0" "nor"
> +	exit
> +fi
> +
> +global.bootm.image="/dev/nor0.kernel"
> +global.linux.bootargs.root="root=/dev/mtdblock3"

This should be nor0.root instead. The raw mtdblock number depends on the
initialization order in the kernel and whether or not the Kernel has
nand support.

Sascha

-- 
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:[~2012-06-07  9:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-05 17:58 [PATCH] PCM038: Added support for boot from NOR-flash Alexander Shiyan
2012-06-07  9:41 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox