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:
parent
1debe41a93
commit
ba6ed94b71
|
@ -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
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue