diff options
author | Matthias Hentges <oe@hentges.net> | 2007-11-23 19:40:32 +0000 |
---|---|---|
committer | Matthias Hentges <oe@hentges.net> | 2007-11-23 19:40:32 +0000 |
commit | 85b608d02da8a6c913cf7c256d0e381969a709e8 (patch) | |
tree | f2a67bf12c2f68df2ccb61efbbf0f8dc4c23603f | |
parent | 21ec9f3a78bc85de4d1747159ade2e6bd8752951 (diff) |
zaurus-updater: Always treat MTD_PART_SIZE as HEX when comparing sizes, thanks to ZeroChaos for debugging
-rw-r--r-- | packages/zaurus-updater/zaurus-updater/updater.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/zaurus-updater/zaurus-updater/updater.sh b/packages/zaurus-updater/zaurus-updater/updater.sh index c665977f0d..b7d55e993d 100644 --- a/packages/zaurus-updater/zaurus-updater/updater.sh +++ b/packages/zaurus-updater/zaurus-updater/updater.sh @@ -22,6 +22,10 @@ # # 2007.11.23 Koen Kooi # - consistent error messages +# +# 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 @@ -147,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 @@ -327,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 |