summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <hrw@openembedded.org>2007-11-23 16:44:07 +0000
committerMarcin Juszkiewicz <hrw@openembedded.org>2007-11-23 16:44:07 +0000
commit7d530507b6033d8e48e07cd111cde55c68837dbb (patch)
tree89e2bbfb30cfa18089435537659b475fef2c4d3b
parent0efe118c3d17cd62f043e448d511ec3d8a2ae189 (diff)
zaurus-updater: use value from /proc/mtd to get rootfs size
-rw-r--r--packages/zaurus-updater/zaurus-updater.bb2
-rw-r--r--packages/zaurus-updater/zaurus-updater/updater.sh15
2 files changed, 3 insertions, 14 deletions
diff --git a/packages/zaurus-updater/zaurus-updater.bb b/packages/zaurus-updater/zaurus-updater.bb
index f481348291..35ad16064c 100644
--- a/packages/zaurus-updater/zaurus-updater.bb
+++ b/packages/zaurus-updater/zaurus-updater.bb
@@ -1,7 +1,7 @@
DESCRIPTION = "Encrypted shellscript for the Zaurus ROM update"
DEPENDS = "encdec-updater-native"
LICENSE = "zaurus-updater"
-PR = "r10"
+PR = "r11"
PACKAGES = ""
PACKAGE_ARCH = "${MACHINE_ARCH}"
diff --git a/packages/zaurus-updater/zaurus-updater/updater.sh b/packages/zaurus-updater/zaurus-updater/updater.sh
index 154ead0e28..703a1fb457 100644
--- a/packages/zaurus-updater/zaurus-updater/updater.sh
+++ b/packages/zaurus-updater/zaurus-updater/updater.sh
@@ -35,10 +35,8 @@ if [ "$RO_MTD_LINE" = "" ]; then
RO_MTD_LINE=`cat /proc/mtd | grep "\<NAND\>.*\<2\>" | tail -n 1`
fi
RO_MTD_NO=`echo $RO_MTD_LINE | cut -d: -f1 | cut -dd -f2`
-RO_MTD_SIZE_HEX=`echo $RO_MTD_LINE | cut -d" " -f2`
RO_MTD=/dev/mtd$RO_MTD_NO
-
-echo "RO_MTD = $RO_MTD"
+ROOTFS_SIZE=`echo $RO_MTD_LINE | cut -d" " -f2`
LOGOCAL_MTD=/dev/mtd1
@@ -250,27 +248,18 @@ MODEL=`cat /proc/deviceinfo/product`
case "$MODEL" in
SL-B500|SL-5600)
ZAURUS='poodle'
- ROOTFS_SIZE=0x1600000
;;
SL-6000)
ZAURUS='tosa'
- ROOTFS_SIZE=0x1E00000
;;
SL-C1000)
ZAURUS='akita'
- ROOTFS_SIZE=0x1900000
- ;;
- SL-C700|SL-C750|SL-7500)
- ZAURUS='c7x0'
- ROOTFS_SIZE=0x1900000
;;
- SL-C760|SL-C860)
+ SL-C700|SL-C750|SL-7500|SL-C760|SL-C860)
ZAURUS='c7x0'
- ROOTFS_SIZE=0x3500000
;;
SL-C3000|SL-C3100|SL-C3200)
ZAURUS='c3x00'
- ROOTFS_SIZE=0x0500000
check_for_hdd
check_for_tar
;;