Hi folks,
last weekend I wanted to update my router from its current OpenWRT Chaos Calmer (latest) installation to LEDE (current 17.1.3 version) to address all the open/ critical security issues (mainly dnsmasq). I did backups, package lists and the whole battle plan you do and checked all online resources for potential issues I could hit and then did the reflashing with the sysupgrade tool. And that was the last I saw of my router. Luckily the reboot+ 3 time switch off trick to switch back to the old OpenWRT installation worked, so I got back a working router after I cursed for like 2 hours in the middle of the night.
root@sapphire /tmp # sysupgrade -v /tmp/lede-17.01.3-mvebu-linksys-wrt1200ac-squashfs-sysupgrade.bin
Saving config files...
etc/collectd.conf
etc/config/dhcp
etc/config/dropbear
etc/config/firewall
etc/config/luci
etc/config/luci_statistics
...
[cut]
...
etc/uhttpd.key
etc/uhttpd.crt
killall: watchdog: no process killed
Sending TERM to remaining processes ... uhttpd ntpd collectd pppd ubusd askfirst dnsmasq logd rpcd netifd odhcpd crond
Sending KILL to remaining processes ... askfirst
Switching to ramdisk...
Performing system upgrade...
Unlocking kernel1 ...
Writing from <stdin> to kernel1 ...
ubiattach: error!: cannot attach mtd5
error 22 (Invalid argument)
ubiformat: mtd5 (nand), size 35651584 bytes (34.0 MiB), 272 eraseblocks of 131072 bytes (128.0 KiB), min. I/O size 2048 bytes
libscan: scanning eraseblock 271 -- 100 % complete
ubiformat: 81 eraseblocks are supposedly empty
ubiformat: warning!: 191 of 272 eraseblocks contain non-UBI data
ubiformat: warning!: only 0 of 272 eraseblocks have valid erase counter
ubiformat: erase counter 0 will be used for all eraseblocks
ubiformat: note, arbitrary erase counter value may be specified using -e option
ubiformat: use erase counter 0 for all eraseblocks
ubiformat: formatting eraseblock 271 -- 100 % complete
UBI device number 2, total 272 LEBs (34537472 bytes, 32.9 MiB), available 248 LEBs (31490048 bytes, 30.0 MiB), LEB size 126976 bytes (124.0 KiB)
Volume ID 0, size 22 LEBs (2793472 bytes, 2.7 MiB), LEB size 126976 bytes (124.0 KiB), dynamic, name "rootfs", alignment 1
Set volume size to 28696576
Volume ID 1, size 226 LEBs (28696576 bytes, 27.4 MiB), LEB size 126976 bytes (124.0 KiB), dynamic, name "rootfs_data", alignment 1
sysupgrade successful
The above log is the last I saw from my router before the SSH connection terminated. I waited like 20 minutes and it didn't come back up; rebooted not coming back up either.
tokai@beryl ~/Desktop $ ping sapphire
PING sapphire (192.168.0.10): 56 data bytes
ping: sendto: No route to host
ping: sendto: Host is down
Request timeout for icmp_seq 0
ping: sendto: Host is down
Request timeout for icmp_seq 1
^C
--- sapphire ping statistics ---
3 packets transmitted, 0 packets received, 100.0% packet loss
The router was nowhere to be seen. The LAN itself still worked (I could ping my other machines). I even switched to the default 192.168.1.* IP range to see if perhaps it was reset for some reason; did full LAN scans… nothing. No router, just my other machines.
I have no idea what went wrong, what a potential issue could be. I was told LEDE is basically just an OpenWRT update and it should just work. I never upgraded OpenWRT before. CC 15.05.1 was my first installation. So basically on the first partition the original firmware was still present, and OpenWRT CC was located on the second partition. Flashing LEDE overwrote the original linksys firmware (since it's now broken I no longer have a fail-safe in case I get a problem with my CC installation).
It dumped a whole bunch of errors and warnings during the sysupgrade, but I have no idea if any of those are normal or serious concern or what the problem could have been.
So my questions:
- does the sysupgrade output looks normal? Are those errors and warnings normal or something to be concerned about?
- are there known incompatibilities between OpenWRT config files and LEDE that could prevent the network properly initializing/ coming up?
I sadly don't have a USB debug cable and the router is still in warranty (so I couldn't open it up anyway) and I don't know if the network fail-safe packet stuff was triggered (I first read about that after I was back up online with the old OpenWRT CC installation).
Thanks in advance for any kind of extra information and help!