You are not logged in.
Hi guys,
this is something unexpected and it is driving me crazy...
After migrating from Debian to Devuan on the ROC-RK3328-CC the network interfaces stopped working properly.
With the Debian installation everything went, I guess systemd has a lot of tricks to use, but with my migration using runit I am having a lot of headache.
This is the dmesg log:
sudo dmesg | grep eth0
[ 3.848306] rk_gmac-dwmac ff540000.ethernet eth0: Register MEM_TYPE_PAGE_POOL RxQ-0
[ 3.850388] rk_gmac-dwmac ff540000.ethernet eth0: PHY [stmmac-0:00] driver [RTL8211E Gigabit Ethernet] (irq=POLL)
[ 3.858623] rk_gmac-dwmac ff540000.ethernet eth0: No Safety Features support found
[ 3.858816] rk_gmac-dwmac ff540000.ethernet eth0: PTP not supported by HW
[ 3.859643] rk_gmac-dwmac ff540000.ethernet eth0: configuring for phy/rgmii link mode
[ 6.911578] rk_gmac-dwmac ff540000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[ 6.911669] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 32.460881] rk_gmac-dwmac ff540000.ethernet eth0: Link is Down
[ 34.572069] rk_gmac-dwmac ff540000.ethernet eth0: Register MEM_TYPE_PAGE_POOL RxQ-0
[ 34.598686] rk_gmac-dwmac ff540000.ethernet eth0: PHY [stmmac-0:00] driver [RTL8211E Gigabit Ethernet] (irq=POLL)
[ 34.614080] rk_gmac-dwmac ff540000.ethernet eth0: No Safety Features support found
[ 34.622853] rk_gmac-dwmac ff540000.ethernet eth0: PTP not supported by HW
[ 34.629805] rk_gmac-dwmac ff540000.ethernet eth0: configuring for phy/rgmii link mode
[ 37.695512] rk_gmac-dwmac ff540000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
It is active but it got disconnected:
ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether f6:8a:73:c2:25:2d brd ff:ff:ff:ff:ff:ff
3: usb0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 1000
link/ether 42:b9:69:8d:26:76 brd ff:ff:ff:ff:ff:ff
inet 192.168.97.141/24 brd 192.168.97.255 scope global dynamic noprefixroute usb0
valid_lft 3425sec preferred_lft 3425sec
inet6 2607:fb90:79b4:95d:8c39:304d:26d1:eff5/64 scope global dynamic noprefixroute
valid_lft 7038sec preferred_lft 7038sec
inet6 fe80::4ed8:1715:d765:6eb0/64 scope link noprefixroute
valid_lft forever preferred_lft forever
As a matter of fact it should have assigned a static IP:
source /etc/network/interfaces.d/*
auto lo
iface lo inet loopback
## CROSS CABLE SETUP: ETH0
auto eth0
allow-hotplug eth0
iface eth0 inet static
address 10.0.10.3/24
netmask 255.255.255.0
#gateway 10.0.10.254
# DHCP SETUP: USB0
# auto usb0
allow-hotplug usb0
iface usb0 inet dhcp
Actually I can connect through SSH but after 30" more or less, it drops and you need to raise up it manually but you see that is something is not quite right:
sudo ifdown eth0
RTNETLINK answers: Cannot assign requested address
anyway:
sudo ifup eth0
ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether f6:8a:73:c2:25:2d brd ff:ff:ff:ff:ff:ff
inet 10.0.10.3/24 brd 10.0.10.255 scope global eth0
valid_lft forever preferred_lft forever
3: usb0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 1000
link/ether 42:b9:69:8d:26:76 brd ff:ff:ff:ff:ff:ff
inet 192.168.97.141/24 brd 192.168.97.255 scope global dynamic noprefixroute usb0
valid_lft 2866sec preferred_lft 2866sec
inet6 2607:fb90:79b4:95d:8c39:304d:26d1:eff5/64 scope global dynamic noprefixroute
valid_lft 7029sec preferred_lft 7029sec
inet6 fe80::4ed8:1715:d765:6eb0/64 scope link noprefixroute
valid_lft forever preferred_lft forever
But I can't ping the guest (10.0.10.1):
ping 10.0.10.1
PING 10.0.10.1 (10.0.10.1) 56(84) bytes of data.
^C
--- 10.0.10.1 ping statistics ---
111 packets transmitted, 0 received, 100% packet loss, time 112644ms
Because the inteface wasn't properly raised up:
sudo ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
ether f6:8a:73:c2:25:2d txqueuelen 1000 (Ethernet)
RX packets 285 bytes 25018 (24.4 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 110 bytes 17164 (16.7 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 32
I believe that runit it is not working properly and perhaps I am missing some packages because on my Crapbook where I have a full installation with runit as well everything work very smooth.
I tried to use ifplugd and netplug but both weren't able to raise the connection.
I tried to let the interfaces being managed by Network-Manger as on my Crapbook but it didn't work out.
Now my last options available is change init system for something more reliable as sysv-init, and if this doesn't work as well is very shameful because I failed totally with this board... 😩
Last edited by Danielsan (2023-11-23 04:49:38)
Offline
Apparently switching on OpenRC fixed the problem, it is about 10" pinging the board from the client and the connection is just stable...
On my Crapbook Devuan use runit on a eMMC module as well, perhaps the default installations brought with itself other packages that doing a manual bootstrap I missed when I made the migration from Debian to Devuan.
Maybe now those packages ifplugd and netplug might finally work! 🤔
Offline
I want to confirm that with netplug is working very well!
If I unplug the cable the connection does not drop at all, looks like magic!
The usb0 interface must be raised up manually and even if you unplug it you must run again dhclient usb0 but this is just fine, not a big a deal at all!
What is really working poorly is ifplugd, it dramatically slows down the boot process and when you unplug and plug again the cable nothing happens I have to manually force the interfaces to regain their status...
Avoid to use ifplugd for me it is just better!
Last edited by Danielsan (2023-11-23 04:48:51)
Offline