Author: rmilecki
Date: 2015-04-21 13:04:38 +0200 (Tue, 21 Apr 2015)
New Revision: 45546

Modified:
   trunk/target/linux/bcm53xx/base-files/lib/upgrade/platform.sh
Log:
bcm53xx: sysupgrade: improve NAND warnings

Signed-off-by: Rafa?\197?\130 Mi?\197?\130ecki <[email protected]>

Modified: trunk/target/linux/bcm53xx/base-files/lib/upgrade/platform.sh
===================================================================
--- trunk/target/linux/bcm53xx/base-files/lib/upgrade/platform.sh       
2015-04-21 08:42:41 UTC (rev 45545)
+++ trunk/target/linux/bcm53xx/base-files/lib/upgrade/platform.sh       
2015-04-21 11:04:38 UTC (rev 45546)
@@ -141,7 +141,10 @@
 
        # Firmwares without UBI image should be flashed "normally"
        local root_type=$(identify $dir/root)
-       [ "$root_type" != "ubi" ] && return
+       [ "$root_type" != "ubi" ] && {
+               echo "Provided firmware doesn't use UBI for rootfs."
+               return
+       }
 
        # Prepare TRX file with just a kernel that will replace current one
        local linux_length=$(grep "\"linux\"" /proc/mtd | sed "s/mtd[0-9]*:[ 
\t]*\([^ \t]*\).*/\1/")
@@ -174,7 +177,7 @@
        local trx="$1"
 
        [ "$(platform_flash_type)" == "nand" ] && {
-               echo "Flashing firmware without UBI for rootfs. All erase 
counters will be lost."
+               echo "Writing whole image to NAND flash. All erase counters 
will be lost."
        }
 
        case "$file_type" in
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to