diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2015-04-21 11:04:38 +0000 |
---|---|---|
committer | Rafał Miłecki <zajec5@gmail.com> | 2015-04-21 11:04:38 +0000 |
commit | 457d9caf4db7e28eb50a4a46f456373d463de394 (patch) | |
tree | 53824c55968eb88c9c19170c25c35876379bd72d /target/linux/bcm53xx | |
parent | 5b9d70c888a53082f70d36909ca82f9f2b215b34 (diff) | |
download | mtk-20170518-457d9caf4db7e28eb50a4a46f456373d463de394.zip mtk-20170518-457d9caf4db7e28eb50a4a46f456373d463de394.tar.gz mtk-20170518-457d9caf4db7e28eb50a4a46f456373d463de394.tar.bz2 |
bcm53xx: sysupgrade: improve NAND warnings
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45546
Diffstat (limited to 'target/linux/bcm53xx')
-rw-r--r-- | target/linux/bcm53xx/base-files/lib/upgrade/platform.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/target/linux/bcm53xx/base-files/lib/upgrade/platform.sh b/target/linux/bcm53xx/base-files/lib/upgrade/platform.sh index f26cce0..e53c251 100644 --- a/target/linux/bcm53xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/bcm53xx/base-files/lib/upgrade/platform.sh @@ -141,7 +141,10 @@ platform_pre_upgrade() { # 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 @@ platform_do_upgrade() { 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 |