guidol Posted January 26, 2021 Posted January 26, 2021 At first I compiled today armbian buster dev with kernel 5.10.10 and had no chance to connect eth0 nor wlan0 to my network Only a USB-Ethernet did connect instantly via DHCP. I did try to go back to kernel 5.9.1 via armbin-config, because with older installations with kernel 5.9.1 (up to 5.9.5) it did work, but also cant connect via onboard ports But onboard ethernet get a link and did show the right speed and wlan0 is also displaying the available WiFi networks. Next try was to build the armbian buster current (which gave me also kernel 5.10.10) and it also doesnt connect with onboard devices (here not via Network-Manager nor /etc/network/interfaces) Also a downgrade to kerrnel 5.9.0 doesnt did the trick Here the USB-Ethernet also does work fine. eth0 is also in the same phy-mode as on other devices here: dwmac-sun8i 1c30000.ethernet eth0: configuring for phy/rgmii link mode [ 41.158508] dwmac-sun8i 1c30000.ethernet eth0: PHY [stmmac-0:07] driver [RTL8211E Gigabit Ethernet] (irq=POLL) [ 41.160228] dwmac-sun8i 1c30000.ethernet eth0: No Safety Features support found [ 41.160252] dwmac-sun8i 1c30000.ethernet eth0: No MAC Management Counters available [ 41.160260] dwmac-sun8i 1c30000.ethernet eth0: PTP not supported by HW [ 41.173024] dwmac-sun8i 1c30000.ethernet eth0: configuring for phy/rgmii link mode kernel 5.10.10: System diagnosis information will now be uploaded to http://ix.io/2NnI kernel 5.9.0 : System diagnosis information will now be uploaded to http://ix.io/2NnV Now I do compile "legacy" with kernel 5.4 and will see it that will work But why did 5.9.x did work in the past and not now?
Igor Posted January 26, 2021 Posted January 26, 2021 3 minutes ago, guidol said: But why did 5.9.x did work in the past and not now? They were remaking driver the proper way ... probably this is the case: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/arch/arm64/boot/dts?h=v5.10.10&id=d0c6707ca4235b78d06bcd62f0e24fbeac3e6d10
guidol Posted January 26, 2021 Author Posted January 26, 2021 16 minutes ago, Igor said: They were remaking driver the proper way ... probably this is the case: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/arch/arm64/boot/dts?h=v5.10.10&id=d0c6707ca4235b78d06bcd62f0e24fbeac3e6d10 @Igor I was already thinking about this change, but couldnt find the thread. I changed in the actual used 5.9.0 image the .dts/dtbs to rgmii-id mode and restarted: [ 40.812499] dwmac-sun8i 1c30000.ethernet eth0: PHY [stmmac-0:07] driver [RTL8211E Gigabit Ethernet] (irq=POLL) [ 40.814234] dwmac-sun8i 1c30000.ethernet eth0: No Safety Features support found [ 40.814255] dwmac-sun8i 1c30000.ethernet eth0: No MAC Management Counters available [ 40.814264] dwmac-sun8i 1c30000.ethernet eth0: PTP not supported by HW [ 40.814863] dwmac-sun8i 1c30000.ethernet eth0: configuring for phy/rgmii-id link mode root@npi-a64-116:~# ping 8.8.8.8 PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. 64 bytes from 8.8.8.8: icmp_seq=1 ttl=113 time=21.8 ms 64 bytes from 8.8.8.8: icmp_seq=2 ttl=113 time=22.0 ms 64 bytes from 8.8.8.8: icmp_seq=3 ttl=113 time=21.8 ms If that will also work in 5.10.10 - then I will have to create a PR but I have to find the "entry-point" for the dts-file in github....
Igor Posted January 26, 2021 Posted January 26, 2021 3 minutes ago, guidol said: but I have to find the "entry-point" for the dts-file in github ./compile.sh CREATE_PATCHES="yes" edit source, source, continue copy created patch to patch/kernel/sunxi-current and sunxi-dev ...
guidol Posted January 26, 2021 Author Posted January 26, 2021 2 hours ago, Igor said: ./compile.sh CREATE_PATCHES="yes" edit source, source, continue copy created patch to patch/kernel/sunxi-current and sunxi-dev ... @Igor I created https://github.com/armbian/build/pull/2579 but please ignore the old part about the configuration.sh from 2019 - its only the 2021-part about the phy-mode patch 1
guidol Posted January 26, 2021 Author Posted January 26, 2021 its working again with 5.10.10 (with my - at this time- local .dts/.dtb-change) _ _ ____ _ _ __ _ _ | \ | | _ \(_) / \ / /_ | || | | \| | |_) | | / _ \| '_ \| || |_ | |\ | __/| | / ___ \ (_) |__ _| |_| \_|_| |_| /_/ \_\___/ |_| Welcome to Armbian 21.02.0-trunk Buster with Linux 5.10.10-sunxi64 No end-user support: built from trunk package bsp-kernel[21.02.0-trunk] u-boot[21.02.0-trunk] dtb [21.02.0-trunk] firmware [21.02.0-trunk] config[21.02.0-trunk] branch[dev] System load: 4% Up time: 14:55 Memory usage: 10% of 985M IP: 192.168.6.116 CPU temp: 27°C Usage of /: 10% of 15G System diagnosis information has been uploaded to http://ix.io/2Npi 1
Recommended Posts