[FS#865] Upgrading Firmware is broken on Linksys EA9500
LEDE Bugs
lede-bugs at lists.infradead.org
Fri Jun 23 07:17:23 PDT 2017
A new Flyspray task has been opened. Details are below.
User who did this - Vivek (npcomplete)
Attached to Project - LEDE Project
Summary - Upgrading Firmware is broken on Linksys EA9500
Task Type - Bug Report
Category - Base system
Status - Unconfirmed
Assigned To -
Operating System - All
Severity - Low
Priority - Very Low
Reported Version - Trunk
Due in Version - Undecided
Due Date - Undecided
Details - I've been building some test builds for EA9500 for testing. and noticed that upgrading is broken some few weeks now.
This can be replicated using trunk as of June-20-2017. I also tried the trunk from today (June-23-2017) - I noticed there were upstream patches related to bcm47xxpart merged. I was hoping it would fix it but it is still broken.
root at LEDE:/# Watchdog handover: fd=3
- watchdog -
killall: telnetd: no process killed
killall: dropbear: no process killed
Sending TERM to remaining processes ... logd rpcd netifd odhcpd tor dnsmasq collectd dnscrypt-proxy ntpd sh sysupgrade ubus ubusd
Sending KILL to remaining processes ...
Extracted 0x3fffe4 bytes into /tmp/sysupgrade-bcm53xx/kernel
Extracted 0xa40000 bytes into /tmp/sysupgrade-bcm53xx/root
Unlocking firmware ...
Writing from /tmp/kernel.trx to firmware ...
Switching to ramdisk...
[ 197.085538] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" stops
[ 197.162382] UBIFS (ubi0:1): un-mount UBI device 0
Performing system upgrade...
removing ubiblock0_0
[ 197.290257] block ubiblock0_0: released
ubimkvol: error!: bad volume size: "0"
cannot create rootfs volume
ubiupdatevol: error!: file size must be specified if input is stdin
tar: invalid tar magic
Partition map from latest trunk
[ 1.721173] 5 bcm47xxpart partitions found on MTD device brcmnand.0
[ 1.727451] Creating 5 MTD partitions on "brcmnand.0":
[ 1.732608] 0x000000000000-0x000000080000 : "boot"
[ 1.738024] 0x000000080000-0x000000180000 : "nvram"
[ 1.743484] 0x000000180000-0x000000200000 : "nvram"
[ 1.748904] 0x000000200000-0x000001f00000 : "firmware"
[ 1.755435] 2 trx partitions found on MTD device firmware
[ 1.760873] Creating 2 MTD partitions on "firmware":
[ 1.765848] 0x00000000001c-0x000000400000 : "linux"
[ 1.771341] 0x000000400000-0x000001d00000 : "ubi"
[ 1.776685] 0x000001f00000-0x000008000000 : "failsafe"
The last build I have that worked is from April 20th. I'm not sure when it broke.
root at LEDE:/# Watchdog handover: fd=3
- watchdog -
killall: telnetd: no process killed
killall: dropbear: no process killed
Sending TERM to remaining processes ... logd rpcd netifd odhcpd smbd nmbd ntpd dnsmasq sh sysupgrade ubus ubusd
Sending KILL to remaining processes ...
Switching to ramdisk...
[ 77.348096] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" stops
[ 77.397249] UBIFS (ubi0:1): un-mount UBI device 0
[ 77.450323] block ubiblock0_0: released
[ 77.454282] ubi0: detaching mtd6
[ 77.457847] ubi0: mtd6 is detached
ubiformat: mtd6 (nand), size 26214400 bytes (25.0 MiB), 200 eraseblocks of 131072 bytes (128.0 KiB), min. I/O size 2048 bytes
libscan: scanning eraseblock 199 -- 100 % complete
ubiformat: 200 eraseblocks have valid erase counter, mean value is 0
ubiformat: flashing eraseblock 52 -- 100 % complete
ubiformat: formatting eraseb[ 80.952037] ubi0: attaching mtd6
ubiformat: formatting eraseblock 199 -- 100 % complete
[ 81.092444] ubi0: scanning is finished
[ 81.119116] ubi0: volume 1 ("rootfs_data") re-sized from 9 to 125 LEBs
[ 81.126063] ubi0: attached mtd6 (name "ubi", size 25 MiB)
[ 81.131515] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[ 81.138410] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[ 81.145215] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[ 81.152194] ubi0: good PEBs: 200, bad PEBs: 0, corrupted PEBs: 0
[ 81.158210] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128
[ 81.165450] ubi0: max/mean erase counter: 3/1, WL threshold: 4096, image sequence number: 1220998339
[ 81.174606] ubi0: available PEBs: 0, total reserved PEBs: 200, PEBs reserved for bad PEB handling: 20
[ 81.183858] ubi0: background thread "ubi_bgt0d" started, PID 2731
UBI device number 0, total 200 LEBs (25395200 bytes, 24.2 MiB), available 0 LEBs (0 bytes), LEB size 126976 bytes (124.0 KiB)
sysupgrade successful
umount: can't unmount /dev: Resource busy
umount: can't unmount /tmp: Resource busy
[ 81.381107] reboot: Restarting system
Partition map from April 20th build
[ 1.807011] 7 bcm47xxpart partitions found on MTD device brcmnand.0
[ 1.813298] Creating 7 MTD partitions on "brcmnand.0":
[ 1.818447] 0x000000000000-0x000000080000 : "boot"
[ 1.823906] 0x000000080000-0x000000180000 : "nvram"
[ 1.829334] 0x000000180000-0x000000200000 : "nvram"
[ 1.834857] 0x000000200000-0x000001f00000 : "firmware"
[ 1.841054] 0x000001f00000-0x000008000000 : "failsafe"
[ 1.847092] 0x00000020001c-0x000000600000 : "linux"
[ 1.852594] 0x000000600000-0x000001f00000 : "ubi"
More information can be found at the following URL:
https://bugs.lede-project.org/index.php?do=details&task_id=865
More information about the lede-bugs
mailing list