aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2015-04-21 11:04:38 +0000
committerRafał Miłecki <zajec5@gmail.com>2015-04-21 11:04:38 +0000
commit495a1b4e5ffbe97c72da4b37dd843658ad16e721 (patch)
tree113476380bf5de31ed4b686cae275388b593859d
parentc83e2426c83a10a5f533a3b0fad0b4b6a5d96bbc (diff)
downloadmaster-187ad058-495a1b4e5ffbe97c72da4b37dd843658ad16e721.tar.gz
master-187ad058-495a1b4e5ffbe97c72da4b37dd843658ad16e721.tar.bz2
master-187ad058-495a1b4e5ffbe97c72da4b37dd843658ad16e721.zip
bcm53xx: sysupgrade: improve NAND warnings
Signed-off-by: Rafał Miłecki <zajec5@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45546 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--target/linux/bcm53xx/base-files/lib/upgrade/platform.sh7
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 f26cce067d..e53c2513d2 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