diff options
author | Andrea Adami <andrea.adami@gmail.com> | 2017-05-05 18:31:36 +0200 |
---|---|---|
committer | Andrea Adami <andrea.adami@gmail.com> | 2017-05-14 01:32:31 +0200 |
commit | f52935969ea515ec6f6b30fd87288fe1b9c33998 (patch) | |
tree | f2f6ee54d475f3c19728a7bb49143aa150085787 | |
parent | ab0c2179849e571dae7a0f2aa9b140fc5ee9ea13 (diff) | |
download | meta-handheld-f52935969ea515ec6f6b30fd87288fe1b9c33998.tar.gz |
zaurus-updater: fix typo in RO_MTD_LINE
In corner cases, if you have repartitioned one unit with 128M flash like
SL-C860 without flashing the modified mainte_fix.bin provided i.e. by Cacko
the loader screws and the maintenance kernel does default to the standard
partitioning for 64M models.
dev: size erasesize name
mtd0: 006d0000 00020000 "Filesystem"
mtd1: 00700000 00004000 "NAND flash partition 0"
mtd2: 01e00000 00004000 "NAND flash partition 1"
mtd3: 01b00000 00004000 "NAND flash partition 2"
In any case, RO_MTD_LINE is the one ending with 1 while RW_MTD_LINE ends with 2
Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
-rw-r--r-- | recipes-bsp/zaurus-utils/zaurus-updater/updater.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes-bsp/zaurus-utils/zaurus-updater/updater.sh b/recipes-bsp/zaurus-utils/zaurus-updater/updater.sh index bfb6de4..d724a48 100644 --- a/recipes-bsp/zaurus-utils/zaurus-updater/updater.sh +++ b/recipes-bsp/zaurus-utils/zaurus-updater/updater.sh @@ -70,7 +70,7 @@ UNPACKED_ROOTFS=0 # spitz only RO_MTD_LINE=`cat /proc/mtd | grep "root" | tail -n 1` if [ "$RO_MTD_LINE" = "" ]; then - RO_MTD_LINE=`cat /proc/mtd | grep "\<NAND\>.*\<2\>" | tail -n 1` + RO_MTD_LINE=`cat /proc/mtd | grep "\<NAND\>.*\<1\>" | tail -n 1` fi RO_MTD_NO=`echo $RO_MTD_LINE | cut -d: -f1 | cut -dd -f2` RO_MTD=/dev/mtd$RO_MTD_NO |