diff options
author | Renaud Barbier <renaud.barbier@ge.com> | 2014-02-03 15:08:24 +0000 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-02-04 08:13:40 +0100 |
commit | ba6ed94b71ef1e82923b7d84eff92c085d0f4ae1 (patch) | |
tree | 233d922ef5bd1c1394ea170f090b1ae24ed0f4cb /arch/ppc/boards | |
parent | 1debe41a930b44373c53d473937791cf89a1bba5 (diff) | |
download | barebox-ba6ed94b71ef1e82923b7d84eff92c085d0f4ae1.tar.gz barebox-ba6ed94b71ef1e82923b7d84eff92c085d0f4ae1.tar.xz |
DA923RC: add boot script
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>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/ppc/boards')
-rw-r--r-- | arch/ppc/boards/geip-da923rc/env/bin/boot | 9 | ||||
-rw-r--r-- | arch/ppc/boards/geip-da923rc/env/bin/init | 10 |
2 files changed, 19 insertions, 0 deletions
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 0000000000..ce7da18e63 --- /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 330a435dd7..80cc2cffb3 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 |