From f52935969ea515ec6f6b30fd87288fe1b9c33998 Mon Sep 17 00:00:00 2001 From: Andrea Adami Date: Fri, 5 May 2017 18:31:36 +0200 Subject: 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 --- recipes-bsp/zaurus-utils/zaurus-updater/updater.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 "\.*\<2\>" | tail -n 1` + RO_MTD_LINE=`cat /proc/mtd | grep "\.*\<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 -- cgit 1.2.3-korg