diff options
author | Jan Weitzel <j.weitzel@phytec.de> | 2011-06-10 11:49:50 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-06-11 10:53:04 +0200 |
commit | 21536365bb0326f1962bb3da310cec7033fa9d0c (patch) | |
tree | 2b0cc76467ca51a2a407079322c0f2f7c894862e /defaultenv | |
parent | ffde37400c06c32590c1fc5b677155fd782b270d (diff) | |
download | barebox-21536365bb0326f1962bb3da310cec7033fa9d0c.tar.gz barebox-21536365bb0326f1962bb3da310cec7033fa9d0c.tar.xz |
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>
Diffstat (limited to 'defaultenv')
-rw-r--r-- | defaultenv/bin/_update_help | 3 | ||||
-rw-r--r-- | defaultenv/bin/update | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/defaultenv/bin/_update_help b/defaultenv/bin/_update_help index 5e3ca45c79..98096daecc 100644 --- a/defaultenv/bin/_update_help +++ b/defaultenv/bin/_update_help @@ -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" diff --git a/defaultenv/bin/update b/defaultenv/bin/update index 7c37c36904..55ac10b95d 100644 --- a/defaultenv/bin/update +++ b/defaultenv/bin/update @@ -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 |