9
0
Fork 0

update: add xload

add xload as vaild update type. Default name should be stored in enviroment
variable "xloadimage"

Signed-off-by: Jan Weitzel <j.weitzel@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Jan Weitzel 2011-06-10 11:49:50 +02:00 committed by Sascha Hauer
parent ffde37400c
commit 21536365bb
2 changed files with 4 additions and 1 deletions

View File

@ -1,6 +1,6 @@
#!/bin/sh
echo "usage: update -t <kernel|rootfs|barebox|bareboxenv> -d <nor|nand> [-m tftp|xmodem] [-f imagename] -c"
echo "usage: update -t <kernel|rootfs|barebox|bareboxenv|xload> -d <nor|nand> [-m tftp|xmodem] [-f imagename] -c"
echo "update tools."
echo ""
echo "options"
@ -11,3 +11,4 @@ echo "type update -t kernel -d <nor|nand> [-m tftp|xmodem] [-f imagename] to upd
echo "type update -t rootfs -d <nor|nand> [-m tftp|xmodem] [-f imagename] to update rootfs into flash"
echo "type update -t barebox -d <nor|nand> [-m tftp|xmodem] [-f imagename] to update barebox into flash"
echo "type update -t bareboxenv -d <nor|nand> [-m tftp|xmodem] [-f imagename] to update bareboxenv into flash"
echo "type update -t xload -d <nor|nand> [-m tftp|xmodem] [-f imagename] to update xload into flash"

View File

@ -40,6 +40,8 @@ elif [ x${type} = xbareboxenv ]; then
if [ x${image} = x ]; then
image=bareboxenv.bin
fi
elif [ x${type} = xxload ]; then
image=$xloadimage
else
. /env/bin/_update_help
exit 1