Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ramips-mt7621: sysupgrade rejects images with newer SUPPORT_VERSION #2300

Closed
azrdev opened this issue Aug 16, 2021 · 1 comment · Fixed by #2560
Closed

ramips-mt7621: sysupgrade rejects images with newer SUPPORT_VERSION #2300

azrdev opened this issue Aug 16, 2021 · 1 comment · Fixed by #2560
Labels
0. type: bug This is a bug 1. severity: blocker This issue/pr is required for the next release 3. topic: build This is about the build system
Milestone

Comments

@azrdev
Copy link

azrdev commented Aug 16, 2021

Bug report

What is the problem?

I'm running a D-Link DIR-860L with the "testing" branch of freifunk darmstadt firmware.

Currently, the device runs about daily into an offline state, requiring a power cycle. serial log (below) shows two problems:

  1. Config cannot be migrated from swconfig to DSA -- according to @blocktrron this is just not implemented yet
  2. after the failed autoupdate, the device remains in a networking-down state, instead of coming back into normal operation with the old firmware.

Gluon Version:

ssh login prints

 OpenWrt 19.07-SNAPSHOT, r11354+22-ffd4452f8b

Site Configuration:

https://git.darmstadt.ccc.de/ffda/firmware/site apparently

Serial log
manual call to autoupdater

root@64347-arya:/# autoupdater -f
Retrieving manifest from http://updates.ffda.io/testing/sysupgrade/testing.manifest ...
Stopping cron...
Stopping urngd...
Stopping micrond...
Stopping sysntpd...
Stopping gluon-radvd...
Stopping uhttpd...
Stopping sse-multiplexd...
Stopping gluon-respondd...
[  306.275739] sysctl (8587): drop_caches: 3
vm.drop_caches = 3
Downloading image:  7617 / 7617 KiB
[  354.564920] br-client: port 4(owe0) entered disabled state
[  354.578740] device owe0 left promiscuous mode
[  354.587495] br-client: port 4(owe0) entered disabled state
[  354.855814] br-client: port 6(owe1) entered disabled state
[  354.871275] device owe1 left promiscuous mode
[  354.880821] br-client: port 6(owe1) entered disabled state
Stopping network...
[  356.013995] br-client: port 5(client1) entered disabled state
[  356.025711] br-client: port 3(client0) entered disabled state
[  356.037482] br-client: port 2(bat0) entered disabled state
[  356.048823] br-client: port 1(local-port) entered disabled state
[  356.066267] batman_adv: bat0: Interface deactivated: primary0
[  356.077821] batman_adv: bat0: Removing interface: primary0
[  356.139228] batman_adv: bat0: Interface deactivated: mesh-vpn
[  356.150726] batman_adv: bat0: Removing interface: mesh-vpn
[  356.179493] batman_adv: bat0: Interface deactivated: mesh0
[  356.190469] batman_adv: bat0: Removing interface: mesh0
[  356.203616] batman_adv: bat0: Interface deactivated: mesh1
[  356.214573] batman_adv: bat0: Removing interface: mesh1
[  356.337366] device bat0 left promiscuous mode
[  356.346172] br-client: port 2(bat0) entered disabled state
[  357.552708] device client1 left promiscuous mode
[  357.562084] br-client: port 5(client1) entered disabled state
[  357.766246] device client0 left promiscuous mode
[  357.776065] br-client: port 3(client0) entered disabled state
[  358.085901] device local-port left promiscuous mode
[  358.095920] br-client: port 1(local-port) entered disabled state
[  358.175077] device wan1 left promiscuous mode
[  358.184138] br-wan: port 4(wan1) entered disabled state
[  358.364034] device wan0 left promiscuous mode
[  358.373010] br-wan: port 3(wan0) entered disabled state
[  359.387750] br-wan: port 2(eth0.1) entered disabled state
[  359.398619] br-wan: port 1(eth0.2) entered disabled state
[  359.412276] device eth0.1 left promiscuous mode
[  359.421655] br-wan: port 2(eth0.1) entered disabled state
[  359.475981] IPv6: ADDRCONF(NETDEV_UP): eth0.1: link is not ready
[  359.767467] device eth0.2 left promiscuous mode
[  359.776873] br-wan: port 1(eth0.2) entered disabled state
[  359.855363] device eth0 left promiscuous mode
ip: can't find device 'bat0'
autoupdater: warning: execution of /usr/lib/autoupdater/upgrade.d/10stop-network exited with status code 2
[  359.934301] sysctl (8984): drop_caches: 3
vm.drop_caches = 3
[  360.007122] IPv6: ADDRCONF(NETDEV_UP): eth0.2: link is not ready
[  360.237752] mtk_soc_eth 1e100000.ethernet: 0x100 = 0x6060000c, 0x10c = 0x80818
Device dir-860l-b1 not supported by this image
Supported devices: dlink,dir-860l-b1 dir-860l-b1 - Image version mismatch: image 1.1, device 1.0. Please wipe config during upgrade (force required) or reinstall. Reason: Config cannot be migrated from swconfig to DSA
Image check failed.
root@64347-arya:/#

Custom patches:

no patches / "stock" ffda firmware.
only modification apart from normal config mode usage is this snippet to use all ethernet ports as WAN:

$ cat /etc/rc.local
# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.

if uci get network.client.ifname | grep -q 'eth0.1' ; then
        logger "LAN-ports on ff network, reconfiguring"
        uci set network.wan.ifname='eth0.2 eth0.1'
        uci set network.client.ifname='local-port bat0'
        uci commit network
        /etc/init.d/network restart
fi
exit 0
@blocktrron
Copy link
Member

  1. is still an ongoing issue
  2. See autoupdater: execute sysupgrade test before network shutdown packages#248 for a potential fix / behavior improvement.

@neocturne neocturne changed the title autoupdater fails due to missing swconfig→dsa migration for DIR860L, leaves device in offline state ramips-mt7621: sysupgrade rejects images with newer SUPPORT_VERSION Apr 12, 2022
@neocturne neocturne added 0. type: bug This is a bug 1. severity: blocker This issue/pr is required for the next release 3. topic: build This is about the build system labels Apr 12, 2022
@rotanid rotanid added this to the 2022.1 milestone Apr 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. type: bug This is a bug 1. severity: blocker This issue/pr is required for the next release 3. topic: build This is about the build system
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants