Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45546
3c298f89-4303-0410-b956-
a3cf2f4a3e73
# Firmwares without UBI image should be flashed "normally"
local root_type=$(identify $dir/root)
# 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/")
# 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/")
local trx="$1"
[ "$(platform_flash_type)" == "nand" ] && {
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."