Hello everyone, I use banana pi r2 pro for for collecting data from lan ports over tcp and send them through eth0(wan) port. normally it works well but after a time my eth0 connections fails i can not send ping and can not find it on network. But the device colletcs data and store it inthe log files and my led blinking service works. My other service which detect physically disconnect from ethernet cable works too. Could you help me for this problem.
You should post your image and kernel version and look if there is something in dmesg/syslog
Maybe look in ethtool/ip stats (crc errors,drops)…
Hello my kernel version is 5.19.0-bpi-r2pro, and use the image in the link below
And here is my syslog "
Nov 25 17:48:59 localhost kernel: [11511.995996] rk_gmac-dwmac fe010000.ethernet eth0: Link is Down
Nov 25 17:49:00 localhost ntpd[407]: Deleting interface #11 eth0, 10.10.49.97#123, interface stats: received=534, sent=534, dropped=0, active_time=11495 secs
Nov 25 17:49:00 localhost ntpd[407]: Deleting interface #13 eth0, fe80::9:edff:fe58:d1e0%2#123, interface stats: received=0, sent=0, dropped=0, active_time=11493 secs
Nov 25 17:49:13 localhost kernel: [11526.333681] rk_gmac-dwmac fe010000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
Nov 25 17:49:15 localhost ntpd[407]: Listen normally on 14 eth0 10.10.49.97:123
Nov 25 17:49:15 localhost ntpd[407]: Listen normally on 15 eth0 [fe80::9:edff:fe58:d1e0%2]:123
Aug 7 16:25:20 localhost systemd-udevd[217]: eth0: Failed to query device driver: Device or resource busy
Aug 7 16:25:20 localhost systemd-udevd[217]: ethtool: could not get ethtool features for eth0
Aug 7 16:25:20 localhost systemd-udevd[217]: eth0: Could not set offload features, ignoring: Device or resource busy
Aug 7 16:25:21 localhost kernel: [ 14.577150] rk_gmac-dwmac fe010000.ethernet eth0: PHY [stmmac-1:00] driver [Generic PHY] (irq=POLL)
Aug 7 16:25:21 localhost kernel: [ 14.580223] rk_gmac-dwmac fe010000.ethernet eth0: Register MEM_TYPE_PAGE_POOL RxQ-0
Aug 7 16:25:21 localhost kernel: [ 14.589983] rk_gmac-dwmac fe010000.ethernet eth0: No Safety Features support found
Aug 7 16:25:21 localhost kernel: [ 14.590676] rk_gmac-dwmac fe010000.ethernet eth0: IEEE 1588-2008 Advanced Timestamp supported
Aug 7 16:25:21 localhost kernel: [ 14.591891] rk_gmac-dwmac fe010000.ethernet eth0: registered PTP clock
Aug 7 16:25:21 localhost kernel: [ 14.597590] rk_gmac-dwmac fe010000.ethernet eth0: configuring for phy/rgmii link mode
Aug 7 16:25:30 localhost node[651]: auto eth0
Aug 7 16:25:30 localhost node[651]: #iface eth0 inet dhcp
Aug 7 16:25:30 localhost node[651]: iface eth0 inet static
Aug 7 16:25:38 localhost kernel: [ 32.004881] rk_gmac-dwmac fe010000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
Aug 7 16:25:38 localhost kernel: [ 32.005771] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Aug 7 16:25:39 localhost ntpd[406]: Listen normally on 6 eth0 10.10.49.97:123
Aug 7 16:25:39 localhost ntpd[406]: unable to create socket on eth0 (7) for fe80::9:edff:fe58:d1e0%2#123
Aug 7 16:25:41 localhost ntpd[406]: Listen normally on 8 eth0 [fe80::9:edff:fe58:d1e0%2]:123
Aug 7 16:25:21 localhost systemd-udevd[217]: eth0: Failed to query device driver: Device or resource busy
Aug 7 16:25:21 localhost systemd-udevd[217]: ethtool: could not get ethtool features for eth0
Aug 7 16:25:21 localhost systemd-udevd[217]: eth0: Could not set offload features, ignoring: Device or resource busy
Aug 7 16:25:21 localhost kernel: [ 15.001886] rk_gmac-dwmac fe010000.ethernet eth0: PHY [stmmac-1:00] driver [Generic PHY] (irq=POLL)
Aug 7 16:25:22 localhost kernel: [ 15.005344] rk_gmac-dwmac fe010000.ethernet eth0: Register MEM_TYPE_PAGE_POOL RxQ-0
Aug 7 16:25:22 localhost kernel: [ 15.007142] rk_gmac-dwmac fe010000.ethernet eth0: No Safety Features support found
Aug 7 16:25:22 localhost kernel: [ 15.007826] rk_gmac-dwmac fe010000.ethernet eth0: IEEE 1588-2008 Advanced Timestamp supported
Aug 7 16:25:22 localhost kernel: [ 15.009135] rk_gmac-dwmac fe010000.ethernet eth0: registered PTP clock
Aug 7 16:25:22 localhost kernel: [ 15.012344] rk_gmac-dwmac fe010000.ethernet eth0: configuring for phy/rgmii link mode
Aug 7 16:25:27 localhost kernel: [ 20.132238] rk_gmac-dwmac fe010000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
Aug 7 16:25:27 localhost kernel: [ 20.133075] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Aug 7 16:25:28 localhost ntpd[406]: Listen normally on 6 eth0 10.10.49.97:123
Aug 7 16:25:28 localhost ntpd[406]: unable to create socket on eth0 (7) for fe80::9:edff:fe58:d1e0%2#123
Aug 7 16:25:30 localhost ntpd[406]: Listen normally on 8 eth0 [fe80::9:edff:fe58:d1e0%2]:123
Aug 7 16:25:31 localhost node[636]: auto eth0
Aug 7 16:25:31 localhost node[636]: #iface eth0 inet dhcp
Aug 7 16:25:31 localhost node[636]: iface eth0 inet static
Aug 7 17:25:40 localhost kernel: [ 3633.693392] rk_gmac-dwmac fe010000.ethernet eth0: Link is Down
Aug 7 17:25:42 localhost ntpd[406]: Deleting interface #6 eth0, 10.10.49.97#123, interface stats: received=0, sent=0, dropped=0, active_time=3614 secs
Aug 7 17:25:42 localhost ntpd[406]: Deleting interface #8 eth0, fe80::9:edff:fe58:d1e0%2#123, interface stats: received=0, sent=0, dropped=0, active_time=3612 secs
Aug 7 16:25:22 localhost systemd-udevd[219]: eth0: Failed to query device driver: Device or resource busy
"
You could try upgrade your kernel from my repo…better use newer image to have also uboot upgraded as i switched to fit image with linux 6.1 afair.
You find newer debian image on my gdrive…for r2pro it should be kernel 6.6
Use a new card (to keep current system) as i have not done much (to be honest nearly none as R3 and R4 as imho they are more attractive as router and took/take much time to get them running and upstreamed) tests for r2pro in last time.
i wonder why the /etc/network/interfaces is posted in your syslog and dates are also strange
Hello, does your old image which i use supports vlan for eth0 ?Thank you. and could you add your new image github repo i need to build?
Not tested vlan on r2pro afair
Images repo is same as for the other boards
But had changed to fit image and env based boot instead of extlinux…maybe it is not finished there…had too much to do for other boards so not continued r2pro part
Hello İ need to enable serial interface for my project,so i searched for rk3568-bpi-r2-pro.dts file but i could not find it . Also for build.conf i need to “board=bpi-r2pro” am i correct? Is there any short solution for enabling serial ports for your new image without build a new image? For example editing a config file and enabling serial ports. Best regards
Yes uncomment the r2pro line in build.conf