[LEDE-DEV] sysupgrade broken on brcm47xx

Matthias Schiffer mschiffer at universe-factory.net
Sun Jul 2 07:50:31 PDT 2017


On 07/02/2017 04:05 PM, Hauke Mehrtens wrote:
> Hi,
> 
> I just tried to run sysupgrade on a WRT53GS (brcm47xx) device and it
> failed. I am running LEDE r4504.
> 
> Hauke

Hmm, the "Could not get image magic" and "Image check failed." message are
from mtd itself. What exactly does mtd check here?

You could apply the attached patch to get some more debug output.

Matthias



> 
> 
> root at LEDE:/tmp# wget
> http://192.168.1.195/hauke-web/lede/targets/brcm47xx/legacy
> /lede-brcm47xx-legacy-linksys-wrt54gs-squashfs.bin
> Downloading
> 'http://192.168.1.195/hauke-web/lede/targets/brcm47xx/legacy/lede-brcm47xx-legacy-linksys-wrt54gs-squashfs.bin'
> Connecting to 192.168.1.195:80
> Writing to 'lede-brcm47xx-legacy-linksys-wrt54gs-squashfs.bin'
> lede-brcm47xx-legacy 100% |*******************************|  3588k
> 0:00:00 ETA
> Download completed (3674144 bytes)
> root at LEDE:/tmp# sysupgrade
> lede-brcm47xx-legacy-linksys-wrt54gs-squashfs.bin
> Image metadata not found
> Found CyberTAN image with device pattern: W54S
> Found a valid TRX version 1
> Saving config files...
> Commencing upgrade. All shell sessions will be closed now.
> Watchdog handover: fd=3
> - watchdog -
> killall: telnetd: no process killed
> Sending TERM to remaining processes ... ubusd logd netifd odhcpd ntpd
> dnsmasq
> Sending KILL to remaining processes ...
> Switching to ramdisk...
> Performing system upgrade...
> Could not get image magic
> Image check failed.
> Upgrade completed
> Rebooting system...
> umount: can't unmount /dev: Resource busy
> umount: can't unmount /tmp: Resource busy
> [  469.312242] reboot: Restarting system
> [  469.316208] bcm47xx: Please stand by while rebooting the system...
> 
> 
> CFE version 1.0.37 for BCM947XX (32bit,SP,LE)
> Build Date: Fri Jun 25 15:49:22 CST 2004 (root at Amin)
> Copyright (C) 2000,2001,2002,2003 Broadcom Corporation.
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: stage2.diff
Type: text/x-patch
Size: 600 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/lede-dev/attachments/20170702/8e486765/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.infradead.org/pipermail/lede-dev/attachments/20170702/8e486765/attachment.sig>


More information about the Lede-dev mailing list