bcm53xx: allow sysupgrade firmwares without UBI containing rootfs
In most cases it allows reverting back to the vendor firmware (as they usually don't use UBI). If users wants to do that we can't do anything anyway. Erease counters will be just lost. The only thing we do is warn: "Flashing firmware without UBI for rootfs. All erase counters will be lost." It still requires forcing sysupgrade. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 45392
This commit is contained in:
parent
24d40980b0
commit
95ef64a779
1 changed files with 2 additions and 3 deletions
|
@ -148,7 +148,7 @@ platform_pre_upgrade() {
|
|||
local root_type=$(identify $dir/root)
|
||||
[ "$root_type" != "ubi" ] && return
|
||||
|
||||
echo "Provided firmware contains kernel and UBI image, but flashing it in unsupported yet"
|
||||
echo "Provided firmware contains kernel and UBI image, but flashing it is unsupported yet"
|
||||
exit 1
|
||||
}
|
||||
|
||||
|
@ -157,8 +157,7 @@ platform_do_upgrade() {
|
|||
local trx="$1"
|
||||
|
||||
[ "$(platform_flash_type)" == "nand" ] && {
|
||||
echo "Firmware upgrade on NAND devices is REALLY unsupported."
|
||||
return
|
||||
echo "Flashing firmware without UBI for rootfs. All erase counters will be lost."
|
||||
}
|
||||
|
||||
case "$file_type" in
|
||||
|
|
Loading…
Reference in a new issue