Hello Guys,
After installing 21.02 latest snapshot into a lamobo bananapi R1 , I noticed that networking is not working . In the dmesg I can see errors referring to swconfig:
[ 2.848451] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 2.858514] init: - preinit -
[ 3.265901] sun7i-dwmac 1c50000.ethernet eth0: no phy at addr -1
[ 3.272070] sun7i-dwmac 1c50000.ethernet eth0: stmmac_open: Cannot attach to PHY (error: -19)
ip: SIOCSIFFLAGS: No such device
Failed to connect to the switch. Use the "list" command to see which switches are available.
Failed to connect to the switch. Use the "list" command to see which switches are available.
Failed to connect to the switch. Use the "list" command to see which switches are available.
[ 4.533023] random: jshn: uninitialized urandom read (4 bytes read)
[ 4.561518] random: jshn: uninitialized urandom read (4 bytes read)
[ 4.639144] random: jshn: uninitialized urandom read (4 bytes read)
Failed to connect to the switch. Use the "list" command to see which switches are available.
Failed to connect to the switch. Use the "list" command to see which switches are available.
Failed to connect to the switch. Use the "list" command to see which switches are available.
Failed to connect to the switch. Use the "list" command to see which switches are available.
[ 4.769626] sun7i-dwmac 1c50000.ethernet eth0: no phy at addr -1
[ 4.775743] sun7i-dwmac 1c50000.ethernet eth0: stmmac_open: Cannot attach to PHY (error: -19)
ip: SIOCSIFFLAGS: No such device
ip: SIOCSIFFLAGS: Network is down
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
sendto(): Network unreachable
sendto(): Network unreachable
[ 9.255115] F2FS-fs (loop0): Mounted with checkpoint version = 6147d0c3
[ 9.262943] mount_root: overlay filesystem has not been fully initialized yet
[ 9.270534] mount_root: switching to f2fs overlay
[ 9.318865] urandom-seed: Seed file not found (/etc/urandom.seed)
[ 9.387068] procd: - early -
[ 9.390053] procd: - watchdog -
[ 9.983054] procd: - watchdog -
[ 9.986772] procd: - ubus -
[ 10.009199] urandom_read: 3 callbacks suppressed
[ 10.009210] random: ubusd: uninitialized urandom read (4 bytes read)
[ 10.040720] random: ubusd: uninitialized urandom read (4 bytes read)
[ 10.049200] random: ubusd: uninitialized urandom read (4 bytes read)
[ 10.058803] procd: - init -
Please press Enter to activate this console.
[ 10.486997] urngd: v1.0.2 started.
[ 10.513670] kmodloader: loading kernel modules from /etc/modules.d/*
[ 10.545585] random: crng init done
[ 10.549005] random: 1 urandom warning(s) missed due to ratelimiting
[ 10.595517] Loading modules backported from Linux version v5.10.42-0-g65859eca4dff
[ 10.603177] Backport generated by backports.git v5.10.42-1-0-gbee5c545
[ 10.631071] xt_time: kernel timezone is -0000
[ 10.729500] PPP generic driver version 2.4.2
[ 10.735301] NET: Registered protocol family 24
[ 10.765448] rtl8192cu: Chip version 0x11
[ 10.851949] rtl8192cu: Board Type 0
[ 10.855670] rtl_usb: rx_max_size 15360, rx_urb_num 8, in_ep 1
[ 10.861528] rtl8192cu: Loading firmware rtlwifi/rtl8192cufw_TMSC.bin
[ 10.870242] usbcore: registered new interface driver rtl8192cu
[ 10.941840] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 18.751839] sun7i-dwmac 1c50000.ethernet eth0: no phy at addr -1
[ 18.757890] sun7i-dwmac 1c50000.ethernet eth0: stmmac_open: Cannot attach to PHY (error: -19)
[ 18.777546] br-lan: port 1(eth0.1) entered blocking state
[ 18.783084] br-lan: port 1(eth0.1) entered disabled state
[ 18.788957] device eth0.1 entered promiscuous mode
[ 31.851272] vcc3v0: disabling
[ 31.854263] vcc5v0: disabling
[ 31.857247] usb0-vbus: disabling
From the look of it swconfig seems to be broken:
# swconfig dev eth0
swconfig list
swconfig dev <dev> [port <port>|vlan <vlan>] (help|set <key> <value>|get <key>|load <config>|show)
root@OpenWrt:/#
root@OpenWrt:/# swconfig list
root@OpenWrt:/# swconfig dev eth0 help
Failed to connect to the switch. Use the "list" command to see which switches are available.
root@OpenWrt:/# swconfig dev eth0 show
Failed to connect to the switch. Use the "list" command to see which switches are available.
root@OpenWrt:/#
I initially thought that R1 may have been moved over to dsa however , everything points to this device using swconfig approach instead .
for one the auto-generated config for the network:
root@OpenWrt:/# cat /etc/config/network
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fdaf:84b6:fc01::/48'
config device
option name 'br-lan'
option type 'bridge'
list ports 'eth0.1'
config interface 'lan'
option device 'br-lan'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
option ip6assign '60'
config interface 'wan'
option device 'eth0.2'
option proto 'dhcp'
config interface 'wan6'
option device 'eth0.2'
option proto 'dhcpv6'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '4 0 1 2 8t'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '3 8t'
root@OpenWrt:/#
Also there does not seem to be any trace of dsa in here:
root@OpenWrt:/#
root@OpenWrt:/# find / -name "dsa*"
root@OpenWrt:/#
And I can not define any dsa type ports:
root@OpenWrt:/#
root@OpenWrt:/# ip addr add 192.0.2.1/30 dev lan1
ip: can't find device 'lan1'
root@OpenWrt:/#
root@OpenWrt:/#
root@OpenWrt:/# ifconfig
br-lan Link encap:Ethernet HWaddr 02:C7:06:C2:F2:EB
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fdaf:84b6:fc01::1/60 Scope:Global
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:512 errors:0 dropped:0 overruns:0 frame:0
TX packets:512 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:39936 (39.0 KiB) TX bytes:39936 (39.0 KiB)
root@OpenWrt:/#
So I am suspecting that this device is not meant to be on dsa just yet . And that the issue we have is a broken swconfig .
Falling back to 19.07 , the networking comes up nicely , and all works ok especially swconfig
. I have not tried the older 21.02 RC images , only rc3 and today's snapshot . Which theoretically would be the most uptodate , and have latest bugfixes .
I would be grateful if you could assist in getting R1 working on 21.02 . Much appreciate any help .
Mil