9
0
Fork 0

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>
This commit is contained in:
Renaud Barbier 2014-02-03 15:08:24 +00:00 committed by Sascha Hauer
parent 1debe41a93
commit ba6ed94b71
2 changed files with 19 additions and 0 deletions

View File

@ -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

View File

@ -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