Situation1. After updating and then reboot, why wait for a long time until I can login to the shell, the followings is the logs.
[ 3.218901] ohci-platform 101c1000.ohci: irq 26, io mem 0x101c1000
[ 3.297221] hub 2-0:1.0: USB hub found
[ 3.305152] hub 2-0:1.0: 1 port detected
[ 3.316870] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 3.341729] init: - preinit -
[ 4.734347] rt3050-esw 10110000.esw: link changed 0x00
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3[ 4.921394] random: procd: uninitialized urandom read (4 bytes read)
] or [4] key and hit [enter] to select the debug level
[ 7.730703] rt3050-esw 10110000.esw: link changed 0x01
[ 8.115571] jffs2_scan_eraseblock(): End of filesystem marker found at 0x10000
[ 8.130032] jffs2_build_filesystem(): unlocking the mtd device...
[ 8.130038] done.
[ 3.297220] hub 2-0:1.0: USB hub found
[ 3.305150] hub 2-0:1.0: 1 port detected
[ 3.316871] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 3.341729] init: - preinit -
[ 4.734860] rt3050-esw 10110000.esw: link changed 0x00
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3[ 4.922467] random: procd: uninitialized urandom read (4 bytes read)
] or [4] key and hit [enter] to select the debug level
[ 7.731217] rt3050-esw 10110000.esw: link changed 0x01
[ 8.119992] jffs2_scan_eraseblock(): End of filesystem marker found at 0x10000
[ 8.134456] jffs2_build_filesystem(): unlocking the mtd device...
[ 8.134462] done.
**[ 8.150503] jffs2_build_filesystem(): erasing all blocks after the end marker... **
**[ 130.152304] random: crng init done**
[ 150.406976] done.
[ 150.410833] jffs2: notice: (400) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[ 150.443118] mount_root: overlay filesystem has not been fully initialized yet
[ 150.464333] mount_root: switching to jffs2 overlay
[ 150.501135] overlayfs: upper fs does not support tmpfile.
- config restore -
[ 150.894297] urandom-seed: Seed file not found (/etc/urandom.seed)
[ 150.942026] procd: - early -
[ 150.948681] procd: - watchdog -
[ 151.706207] procd: - watchdog -
[ 151.712799] procd: - ubus -
[ 151.936523] procd: - init -
Please press Enter to activate this console.
BusyBox v1.29.2 () built-in shell (ash)
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-----------------------------------------------------
OpenWrt SNAPSHOT, r7743-d3ddf66
-----------------------------------------------------
The followings derive from the logs, the time difference is about 142 second
**[ 8.150503] jffs2_build_filesystem(): erasing all blocks after the end marker... **
...... [ 151.936523] procd: - init -
- watchdog -
killall: telnetd: no process killed
killall: dropbear: no process killed
Sending TERM to remaining processes ... sh mount_root sh ubus ubusd logd rpcd dnsmasq netifd odhcpd
Sending KILL to remaining processes ... mount_root mount_root mount_root mount_root mount_root mount_root mount_root mount_root mount_root mount_root
Failed to kill a[ 23.963302] jffs2_build_filesystem(): erasing all blocks after the end marker...
ll processes.
s[ 82.571486] reboot: Restarting system
ysupgrade aborted with return code: 256
The following information is printed when I use web GUI to update the FW.
root@OpenWrt:/# [ 23.715704] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[ 23.796762] jffs2_build_filesystem(): unlocking the mtd device...
[ 23.796777] done.
Watchdog handover: fd=3
- watchdog -
killall: telnetd: no process killed
killall: dropbear: no process killed
Sending TERM to remaining processes ... sh mount_root sh ubus ubusd logd rpcd dnsmasq netifd odhcpd
Sending KILL to remaining processes ... mount_root mount_root mount_root mount_root mount_root mount_root mount_root mount_root mount_root mount_root
Failed to kill a[ 23.812897] jffs2_build_filesystem(): erasing all blocks after the end marker...
ll processes.
s[ 75.832305] reboot: Restarting system
ysupgrade aborted with return code: 256
Normal. Slow flash memory. Waiting to complete the initialisation of the r/w overlay partition. Wait time depends on the router. In my old router it is about 70 seconds:
[ 6.848101] usbcore: registered new interface driver usb-storage
[ 13.805699] kmodloader: loading kernel modules from //etc/modules-boot.d/*
[ 13.814395] kmodloader: done loading kernel modules from //etc/modules-boot.d/*
[ 14.086823] jffs2_scan_eraseblock(): End of filesystem marker found at 0x10000
[ 14.094089] jffs2_build_filesystem(): unlocking the mtd device...
[ 14.100077] done.
[ 14.102064] jffs2_build_filesystem(): erasing all blocks after the end marker...
[ 69.757543] done.
[ 69.759540] jffs2: notice: (444) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 uncheck
That error 256 looks more strange.
Google search reveals that others have run into it, too, as you probably have already found out by now???
Does the proposed fix (of shutting down wifi before sysupgrade work ok for you ?)
Finally, instead of updating the FW of the device, I use the SCP client to update the specified program.
But the problem using web interface to update FW still exists.
- watchdog -
killall: telnetd: no process killed
killall: dropbear: no process killed
Sending TERM to remaining processes ... sh mount_root sh ubus ubusd logd rpcd dnsmasq netifd odhcpd
Sending KILL to remaining processes ... mount_root mount_root mount_root mount_root mount_root mount_root mount_root mount_root mount_root mount_root
Failed to kill a[ 23.812897] jffs2_build_filesystem(): erasing all blocks after the end marker...
ll processes.
s[ 75.832305] reboot: Restarting system
ysupgrade aborted with return code: 256