mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 0/2] DA923RC: boot script and malloc size
@ 2014-02-03 15:08 Renaud Barbier
  2014-02-03 15:08 ` [PATCH 1/2] DA923RC: add boot script Renaud Barbier
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Renaud Barbier @ 2014-02-03 15:08 UTC (permalink / raw)
  To: barebox

A boot script is added to autoboot the system and the malloc size is
increased in the configuration file to allow larger Linux debug images.

Renaud Barbier (2):
  DA923RC: add boot script
  DA923RC: increase malloc size

 arch/ppc/boards/geip-da923rc/env/bin/boot |    9 +++++++++
 arch/ppc/boards/geip-da923rc/env/bin/init |   10 ++++++++++
 arch/ppc/configs/da923rc_defconfig        |    2 +-
 3 files changed, 20 insertions(+), 1 deletions(-)
 create mode 100644 arch/ppc/boards/geip-da923rc/env/bin/boot


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/2] DA923RC: add boot script
  2014-02-03 15:08 [PATCH 0/2] DA923RC: boot script and malloc size Renaud Barbier
@ 2014-02-03 15:08 ` Renaud Barbier
  2014-02-03 15:08 ` [PATCH 2/2] DA923RC: increase malloc size Renaud Barbier
  2014-02-04  7:13 ` [PATCH 0/2] DA923RC: boot script and " Sascha Hauer
  2 siblings, 0 replies; 4+ messages in thread
From: Renaud Barbier @ 2014-02-03 15:08 UTC (permalink / raw)
  To: barebox

A boot script is added to load DTB and Linux images for booting.
The init script starts the boot script after a 5s timeout window.

Signed-off-by: Renaud Barbier <renaud.barbier@ge.com>
---
 arch/ppc/boards/geip-da923rc/env/bin/boot |    9 +++++++++
 arch/ppc/boards/geip-da923rc/env/bin/init |   10 ++++++++++
 2 files changed, 19 insertions(+), 0 deletions(-)
 create mode 100644 arch/ppc/boards/geip-da923rc/env/bin/boot

diff --git a/arch/ppc/boards/geip-da923rc/env/bin/boot b/arch/ppc/boards/geip-da923rc/env/bin/boot
new file mode 100644
index 0000000..ce7da18
--- /dev/null
+++ b/arch/ppc/boards/geip-da923rc/env/bin/boot
@@ -0,0 +1,9 @@
+#!/bin/sh
+#Load the firmware images from the NOR UBIFS file system and boot
+
+readlink /mnt/active symlink
+
+bootargs="ubi.mtd=nand root=ubi0:fs-active rootfstype=ubifs rw panic=25"
+cp /mnt/$symlink/uImage /
+cp /mnt/$symlink/dtb /
+bootm -o /dtb /uImage
\ No newline at end of file
diff --git a/arch/ppc/boards/geip-da923rc/env/bin/init b/arch/ppc/boards/geip-da923rc/env/bin/init
index 330a435..80cc2cf 100644
--- a/arch/ppc/boards/geip-da923rc/env/bin/init
+++ b/arch/ppc/boards/geip-da923rc/env/bin/init
@@ -14,3 +14,13 @@ fi
 
 mkdir /mnt
 mount -t ubifs /dev/ubi0.boot /mnt
+
+echo
+echo -n "Hit ctrl-c to stop autoboot: "
+timeout -c 5
+
+if [ $? -ne 0 ]; then
+	exit 0
+fi
+
+boot
-- 
1.7.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 2/2] DA923RC: increase malloc size
  2014-02-03 15:08 [PATCH 0/2] DA923RC: boot script and malloc size Renaud Barbier
  2014-02-03 15:08 ` [PATCH 1/2] DA923RC: add boot script Renaud Barbier
@ 2014-02-03 15:08 ` Renaud Barbier
  2014-02-04  7:13 ` [PATCH 0/2] DA923RC: boot script and " Sascha Hauer
  2 siblings, 0 replies; 4+ messages in thread
From: Renaud Barbier @ 2014-02-03 15:08 UTC (permalink / raw)
  To: barebox

Increase the malloc size so that larger debug Linux image can be loaded.

Signed-off-by: Renaud Barbier <renaud.barbier@ge.com>
---
 arch/ppc/configs/da923rc_defconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/ppc/configs/da923rc_defconfig b/arch/ppc/configs/da923rc_defconfig
index da1b13a..34eab40 100644
--- a/arch/ppc/configs/da923rc_defconfig
+++ b/arch/ppc/configs/da923rc_defconfig
@@ -48,7 +48,7 @@ CONFIG_FS_UBIFS=y
 CONFIG_FS_UBIFS_COMPRESSION_LZO=y
 CONFIG_CMD_UNLZO=y
 CONFIG_LZO_DECOMPRESS=y
-CONFIG_MALLOC_SIZE=0x2800000
+CONFIG_MALLOC_SIZE=0x4000000
 CONFIG_PROMPT="GE> "
 CONFIG_BAUDRATE=9600
 CONFIG_RELOCATABLE=y
-- 
1.7.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/2] DA923RC: boot script and malloc size
  2014-02-03 15:08 [PATCH 0/2] DA923RC: boot script and malloc size Renaud Barbier
  2014-02-03 15:08 ` [PATCH 1/2] DA923RC: add boot script Renaud Barbier
  2014-02-03 15:08 ` [PATCH 2/2] DA923RC: increase malloc size Renaud Barbier
@ 2014-02-04  7:13 ` Sascha Hauer
  2 siblings, 0 replies; 4+ messages in thread
From: Sascha Hauer @ 2014-02-04  7:13 UTC (permalink / raw)
  To: Renaud Barbier, h; +Cc: barebox

On Mon, Feb 03, 2014 at 03:08:23PM +0000, Renaud Barbier wrote:
> A boot script is added to autoboot the system and the malloc size is
> increased in the configuration file to allow larger Linux debug images.
> 
> Renaud Barbier (2):
>   DA923RC: add boot script
>   DA923RC: increase malloc size

Applied, thanks

Sascha

> 
>  arch/ppc/boards/geip-da923rc/env/bin/boot |    9 +++++++++
>  arch/ppc/boards/geip-da923rc/env/bin/init |   10 ++++++++++
>  arch/ppc/configs/da923rc_defconfig        |    2 +-
>  3 files changed, 20 insertions(+), 1 deletions(-)
>  create mode 100644 arch/ppc/boards/geip-da923rc/env/bin/boot
> 
> 
> _______________________________________________
> 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] 4+ messages in thread

end of thread, other threads:[~2014-02-04  7:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-03 15:08 [PATCH 0/2] DA923RC: boot script and malloc size Renaud Barbier
2014-02-03 15:08 ` [PATCH 1/2] DA923RC: add boot script Renaud Barbier
2014-02-03 15:08 ` [PATCH 2/2] DA923RC: increase malloc size Renaud Barbier
2014-02-04  7:13 ` [PATCH 0/2] DA923RC: boot script and " Sascha Hauer

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