diff options
author | Koen Kooi <koen@openembedded.org> | 2007-11-24 02:03:50 +0000 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2007-11-24 02:03:50 +0000 |
commit | 2360a557bda08ef10b3401c8b5b581b3a9ce0ef2 (patch) | |
tree | 4e142e31d77d1ee5186a5c8d476a5d805d1e3b16 /packages/zaurus-updater/zaurus-updater | |
parent | 8da89d4d3ff45c21c061d3b351dcdb2a5c7842a8 (diff) | |
parent | 85b608d02da8a6c913cf7c256d0e381969a709e8 (diff) |
merge of '6ac18f3dcd3bdc55e3c6e2b808ce11f25dbd163e'
and 'c1726a91450c9a012bcaa95d2c1d0c935197ce53'
Diffstat (limited to 'packages/zaurus-updater/zaurus-updater')
-rw-r--r-- | packages/zaurus-updater/zaurus-updater/updater.sh | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/packages/zaurus-updater/zaurus-updater/updater.sh b/packages/zaurus-updater/zaurus-updater/updater.sh index 8f686ded7a..709cbbc9a9 100644 --- a/packages/zaurus-updater/zaurus-updater/updater.sh +++ b/packages/zaurus-updater/zaurus-updater/updater.sh @@ -22,7 +22,10 @@ # # 2007.11.23 Koen Kooi # - consistent error messages -# - fix flashing from case sensitive filesystem (e.g. ext2) +## - fix flashing from case sensitive filesystem (e.g. ext2) +# 2007.11.23 Matthias 'CoreDump' Hentges +# - Always treat MTD_PART_SIZE as HEX when comparing sizes +# - Thanks to ZeroChaos for debugging DATAPATH=$1 TMPPATH=/tmp/update @@ -148,6 +151,7 @@ do_flashing() if [ $DATASIZE -gt `printf "%d" $MTD_PART_SIZE` ] then echo "Error: File is too big to flash!" + echo "$FLASH_TYPE: [$DATASIZE] > [`printf "%d" ${MTD_PART_SIZE}`]" return fi @@ -294,9 +298,9 @@ do DATASIZE=`echo $DATASIZE | cut -d' ' -f1` # make TARGETFILE lowercase - TARGETFILE_LC=`echo $TARGETFILE|tr A-Z a-z` + TARGETFILE=`echo $TARGETFILE|tr A-Z a-z` - case "$TARGETFILE_LC" in + case "$TARGETFILE" in zimage|zimage.bin) if [ $FLASHED_KERNEL != 0 ] @@ -328,7 +332,7 @@ do FLASHED_ROOTFS=1 ISLOGICAL=0 MODULEID=6 - MTD_PART_SIZE=$ROOTFS_SIZE + MTD_PART_SIZE="0x$ROOTFS_SIZE" ADDR=0 ISFORMATTED=0 TARGET_MTD=$RO_MTD |