[OpenWrt-Devel] sysupgrade --force broken in master?

Hannu Nyman hannu.nyman at iki.fi
Sun Nov 10 15:31:33 EST 2019


I noticed that the sysupgrade script seems to fail to force a sysupgrade.

Trying to sysupgrade WNDR3700v2
from  ar71xx  r11464-cabaaf06fe
to  ath79  r11469-db09335848


I tested with console sysupgrade, and that failed, too. Router reboots the 
current firmware without flashing. The ssh console output shows how the 
router starts the sysupgrade and notes "--force" but then no actual 
sysupgrade happens, instead the router reboots and returns to the existing 
firmware.

I do not current have serial console connected, so this debugging below has 
been done just via SSH console


SSH console output:

  OpenWrt SNAPSHOT, r11464-cabaaf06fe
  -----------------------------------------------------
root at router2:~# sysupgrade -v -F /tmp/WNDR3700v2-master-r11469-db09335848-201911
10-2134-sqfs-sysupgrade.bin
Device wndr3700 not supported by this image
Supported devices: netgear,wndr3700v2 wndr3700v2
Image check failed but --force given - will update anyway!
Saving config files...
etc/collectd.conf
etc/config/adblock
...
etc/uhttpd.key
etc/uhttpd.crt
Commencing upgrade. Closing all shell sessions.
...
REBOOT / reconnect ssh console
...
BusyBox v1.31.1 () built-in shell (ash)

   _______                     ________        __
  |       |.-----.-----.-----.|  |  |  |.----.|  |_
  |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
  |_______||   __|_____|__|__||________||__|  |____|
           |__| W I R E L E S S   F R E E D O M
  -----------------------------------------------------
  OpenWrt SNAPSHOT, r11464-cabaaf06fe
  -----------------------------------------------------


==================================================

"ubus monitor" from other SSH console:

root at router2:~# ubus monitor
-> ebae1309 #00000003         status: {"status":0}
-> aae57010 #aae57010          hello: {}
<- aae57010 #00000000         lookup: {"objpath":"system"}
-> aae57010 #00000000           data: 
{"objpath":"system","objid":626662651,"objtype":-172383134,"signature":{"board":{},"info":{},"reboot":{},"watchdog":{"frequency":5,"timeout":5,"magicclose":7,"stop":7},"signal":{"pid":5,"signum":5},"validate_firmware_image":{"path":3},"sysupgrade":{"path":3,"force":7,"backup":3,"prefix":3,"command":3,"options":2}}}
-> aae57010 #00000000         status: {"status":0}
<- aae57010 #255a1cfb         invoke: 
{"objid":626662651,"method":"sysupgrade","data":{"prefix":"/tmp/root","path":"/tmp/WNDR3700v2-master-r11469-db09335848-20191110-2134-sqfs-sysupgrade.bin","force":true,"backup":"/tmp/sysupgrade.tgz","command":"/lib/upgrade/do_stage2","options":{"save_partitions":1}}}
-> 4aede19c #aae57010         invoke: 
{"objid":626662651,"method":"sysupgrade","data":{"prefix":"/tmp/root","path":"/tmp/WNDR3700v2-master-r11469-db09335848-20191110-2134-sqfs-sysupgrade.bin","force":true,"backup":"/tmp/sysupgrade.tgz","command":"/lib/upgrade/do_stage2","options":{"save_partitions":1}},"user":"root","group":"root"}



_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list