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@xxxxxx> --- 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@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox