FloBaoti Posted December 1, 2020 Posted December 1, 2020 Hi, I run Armbian Buster 20.11.1 and today, without any important network traffic, eth1 interface has crashed. Here is dmesg : Quote [14958.751828] r8152 4-1.4:1.0 eth1: get_registers -71 [14958.753111] r8152 4-1.4:1.0 eth1: set_registers -71 [14958.760147] r8152 4-1.4:1.0 eth1: get_registers -71 [14958.760297] r8152 4-1.4:1.0 eth1: get_registers -71 [14958.760364] r8152 4-1.4:1.0 eth1: set_registers -71 [14958.760450] r8152 4-1.4:1.0 eth1: get_registers -71 [14958.760550] r8152 4-1.4:1.0 eth1: set_registers -71 [14958.760670] r8152 4-1.4:1.0 eth1: get_registers -71 [14958.760732] r8152 4-1.4:1.0 eth1: get_registers -71 [14958.761446] r8152 4-1.4:1.0 eth1: get_registers -71 [14958.761757] r8152 4-1.4:1.0 eth1: set_registers -71 [14958.762065] r8152 4-1.4:1.0 eth1: get_registers -71 [14958.762192] r8152 4-1.4:1.0 eth1: set_registers -71 [14958.762542] r8152 4-1.4:1.0 eth1: get_registers -71 [14958.762909] r8152 4-1.4:1.0 eth1: set_registers -71 [14958.763271] r8152 4-1.4:1.0 eth1: get_registers -71 [14958.764421] r8152 4-1.4:1.0 eth1: set_registers -71 [14958.764588] r8152 4-1.4:1.0 eth1: get_registers -71 [14958.764670] r8152 4-1.4:1.0 eth1: set_registers -71 [14958.764740] r8152 4-1.4:1.0 eth1: get_registers -71 [14958.764825] r8152 4-1.4:1.0 eth1: set_registers -71 [14958.764931] r8152 4-1.4:1.0 eth1: get_registers -71 [14958.765009] r8152 4-1.4:1.0 eth1: set_registers -71 [14958.765096] r8152 4-1.4:1.0 eth1: set_registers -71 [14958.765183] r8152 4-1.4:1.0 eth1: get_registers -71 [14958.765309] r8152 4-1.4:1.0 eth1: set_registers -71 [14959.450904] r8152 4-1.4:1.0 eth1: get_registers -19 [14959.450911] r8152 4-1.4:1.0 eth1: Get ether addr fail [14959.451064] usb 4-1.4: USB disconnect, device number 3 [14959.451203] ------------[ cut here ]------------ [14959.451205] sysfs group 'rtl_adv' not found for kobject '4-1.4:1.0' [14959.451242] WARNING: CPU: 4 PID: 30424 at fs/sysfs/group.c:279 sysfs_remove_group+0x98/0xa8 [14959.451245] Modules linked in: veth softdog xt_conntrack xt_MASQUERADE nf_conntrack_netlink xfrm_user xfrm_algo nft_counter xt_addrtype nft_compat nft_chain_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nf_tables nfnetlink br_netfilter bridge governor_performance rfkill zfs(POE) zunicode(POE) zzstd(OE) zlua(OE) snd_soc_hdmi_codec r8152 zcommon(POE) znvpair(POE) zavl(POE) icp(POE) spl(OE) leds_pwm pwm_fan gpio_charger hantro_vpu(C) rockchip_vdec(C) snd_soc_rockchip_i2s panfrost snd_soc_core rockchip_rga gpu_sched snd_pcm_dmaengine snd_pcm v4l2_h264 snd_timer snd videobuf2_dma_contig videobuf2_vmalloc v4l2_mem2mem videobuf2_dma_sg soundcore videobuf2_memops rockchipdrm zstd videobuf2_v4l2 dw_mipi_dsi fusb302 videobuf2_common dw_hdmi tcpm videodev typec analogix_dp mc sg drm_kms_helper cec rc_core drm drm_panel_orientation_quirks gpio_beeper cpufreq_dt zram nfsd auth_rpcgss nfs_acl lockd grace lm75 sunrpc ip_tables x_tables autofs4 raid10 raid456 async_raid6_recov async_memcpy [14959.451320] async_pq async_xor async_tx raid1 raid0 multipath linear md_mod realtek dwmac_rk stmmac_platform stmmac mdio_xpcs adc_keys [14959.451339] CPU: 4 PID: 30424 Comm: kworker/4:0 Tainted: P C OE 5.9.11-rockchip64 #20.11.1 [14959.451341] Hardware name: Helios64 (DT) [14959.451350] Workqueue: usb_hub_wq hub_event [14959.451354] pstate: 00000005 (nzcv daif -PAN -UAO BTYPE=--) [14959.451357] pc : sysfs_remove_group+0x98/0xa8 [14959.451359] lr : sysfs_remove_group+0x98/0xa8 [14959.451360] sp : ffff80001f3d3a20 [14959.451362] x29: ffff80001f3d3a20 x28: ffff0000f56df800 [14959.451365] x27: ffff8000095da7a8 x26: ffff0000e4520000 [14959.451368] x25: ffff0000f6dff0a0 x24: ffff0000f6dff000 [14959.451371] x23: 0000000000000000 x22: ffff0000e5b8ba00 [14959.451373] x21: ffff0000e4520030 x20: ffff8000095da778 [14959.451376] x19: 0000000000000000 x18: 0000000000000001 [14959.451378] x17: 000000febebba029 x16: 000004f71218c815 [14959.451380] x15: ffff80001186e000 x14: ffff800011a591fa [14959.451383] x13: 0000000000000000 x12: ffff800011a58000 [14959.451385] x11: ffff80001186e000 x10: ffff800011a58840 [14959.451388] x9 : 0000000000000000 x8 : 0000000000000001 [14959.451390] x7 : 00000000000003b4 x6 : ffff800011a58000 [14959.451393] x5 : 0000000000000001 x4 : ffff0000f77941d8 [14959.451395] x3 : 0000000000000000 x2 : 0000000000000001 [14959.451398] x1 : 85f4a5b1d2305700 x0 : 0000000000000000 [14959.451401] Call trace: [14959.451404] sysfs_remove_group+0x98/0xa8 [14959.451418] rtl8152_disconnect+0x2c/0x98 [r8152] [14959.451423] usb_unbind_interface+0x74/0x248 [14959.451429] device_release_driver_internal+0x114/0x1f0 [14959.451432] device_release_driver+0x18/0x28 [14959.451435] bus_remove_device+0xd4/0x160 [14959.451437] device_del+0x154/0x3b0 [14959.451440] usb_disable_device+0xa8/0x1f0 [14959.451442] usb_disconnect+0xbc/0x2e0 [14959.451444] hub_event+0x44c/0x16a0 [14959.451449] process_one_work+0x1c4/0x470 [14959.451451] worker_thread+0x228/0x420 [14959.451454] kthread+0x118/0x150 [14959.451459] ret_from_fork+0x10/0x34 [14959.451461] ---[ end trace fb191d4bcd2cb212 ]--- [14961.118899] usb 4-1.4: new SuperSpeed Gen 1 USB device number 4 using xhci-hcd [14961.142588] usb 4-1.4: New USB device found, idVendor=0bda, idProduct=8156, bcdDevice=30.00 [14961.142598] usb 4-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=6 [14961.142601] usb 4-1.4: Product: USB 10/100/1G/2.5G LAN [14961.142604] usb 4-1.4: Manufacturer: Realtek [14961.142607] usb 4-1.4: SerialNumber: 000000001 [14961.324435] usb 4-1.4: reset SuperSpeed Gen 1 USB device number 4 using xhci-hcd [14961.497095] r8152 4-1.4:1.0 eth1: v2.13.0 (2020/04/20) [14961.497104] r8152 4-1.4:1.0 eth1: This product is covered by one or more of the following patents: US6,570,884, US6,115,776, and US6,327,625. [14961.504799] ------------[ cut here ]------------ [14961.504806] sysfs group 'rtl_adv' not found for kobject '4-1.4:1.0' [14961.504840] WARNING: CPU: 4 PID: 2064 at fs/sysfs/group.c:279 sysfs_remove_group+0x98/0xa8 [14961.504842] Modules linked in: veth softdog xt_conntrack xt_MASQUERADE nf_conntrack_netlink xfrm_user xfrm_algo nft_counter xt_addrtype nft_compat nft_chain_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nf_tables nfnetlink br_netfilter bridge governor_performance rfkill zfs(POE) zunicode(POE) zzstd(OE) zlua(OE) snd_soc_hdmi_codec r8152 zcommon(POE) znvpair(POE) zavl(POE) icp(POE) spl(OE) leds_pwm pwm_fan gpio_charger hantro_vpu(C) rockchip_vdec(C) snd_soc_rockchip_i2s panfrost snd_soc_core rockchip_rga gpu_sched snd_pcm_dmaengine snd_pcm v4l2_h264 snd_timer snd videobuf2_dma_contig videobuf2_vmalloc v4l2_mem2mem videobuf2_dma_sg soundcore videobuf2_memops rockchipdrm zstd videobuf2_v4l2 dw_mipi_dsi fusb302 videobuf2_common dw_hdmi tcpm videodev typec analogix_dp mc sg drm_kms_helper cec rc_core drm drm_panel_orientation_quirks gpio_beeper cpufreq_dt zram nfsd auth_rpcgss nfs_acl lockd grace lm75 sunrpc ip_tables x_tables autofs4 raid10 raid456 async_raid6_recov async_memcpy [14961.504917] async_pq async_xor async_tx raid1 raid0 multipath linear md_mod realtek dwmac_rk stmmac_platform stmmac mdio_xpcs adc_keys [14961.504935] CPU: 4 PID: 2064 Comm: systemd-udevd Tainted: P WC OE 5.9.11-rockchip64 #20.11.1 [14961.504936] Hardware name: Helios64 (DT) [14961.504940] pstate: 00000005 (nzcv daif -PAN -UAO BTYPE=--) [14961.504942] pc : sysfs_remove_group+0x98/0xa8 [14961.504945] lr : sysfs_remove_group+0x98/0xa8 [14961.504947] sp : ffff8000199bba50 [14961.504948] x29: ffff8000199bba50 x28: ffff0000bc48e580 [14961.504951] x27: ffff8000095da7a8 x26: ffff0000bab76800 [14961.504954] x25: ffff0000c43e30a0 x24: ffff0000c43e3000 [14961.504956] x23: 0000000000000000 x22: ffff0000bc48e580 [14961.504959] x21: ffff0000bab76830 x20: ffff8000095da778 [14961.504962] x19: 0000000000000000 x18: 0000000000000000 [14961.504964] x17: 0000000000000000 x16: 0000000000000000 [14961.504966] x15: ffff80001186e000 x14: ffff800011a591fa [14961.504969] x13: 0000000000000000 x12: ffff800011a58000 [14961.504971] x11: ffff80001186e000 x10: ffff800011a58840 [14961.504974] x9 : 0000000000000000 x8 : 0000000000000001 [14961.504976] x7 : 00000000000003e8 x6 : ffff800011a58000 [14961.504979] x5 : 0000000000000001 x4 : ffff0000f77941d8 [14961.504981] x3 : 0000000000000000 x2 : 0000000000000001 [14961.504984] x1 : 648c9572b5fb2500 x0 : 0000000000000000 [14961.504987] Call trace: [14961.504989] sysfs_remove_group+0x98/0xa8 [14961.505003] rtl8152_disconnect+0x2c/0x98 [r8152] [14961.505010] usb_unbind_interface+0x74/0x248 [14961.505015] device_release_driver_internal+0x114/0x1f0 [14961.505018] device_release_driver+0x18/0x28 [14961.505020] bus_remove_device+0xd4/0x160 [14961.505022] device_del+0x154/0x3b0 [14961.505026] usb_disable_device+0xa8/0x1f0 [14961.505029] usb_set_configuration+0x508/0x908 [14961.505031] bConfigurationValue_store+0x78/0xd0 [14961.505036] dev_attr_store+0x18/0x30 [14961.505038] sysfs_kf_write+0x44/0x58 [14961.505040] kernfs_fop_write+0x10c/0x228 [14961.505045] vfs_write+0xf0/0x230 [14961.505047] ksys_write+0x6c/0xf8 [14961.505050] __arm64_sys_write+0x1c/0x28 [14961.505056] el0_svc_common.constprop.0+0x70/0x188 [14961.505059] do_el0_svc+0x24/0x90 [14961.505062] el0_sync_handler+0x90/0x198 [14961.505065] el0_sync+0x158/0x180 [14961.505067] ---[ end trace fb191d4bcd2cb213 ]--- [14961.772573] usb 4-1.4: reset SuperSpeed Gen 1 USB device number 4 using xhci-hcd [14961.994863] r8152 4-1.4:1.0 eth1: v2.13.0 (2020/04/20) [14961.994870] r8152 4-1.4:1.0 eth1: This product is covered by one or more of the following patents: US6,570,884, US6,115,776, and US6,327,625. [14962.024679] usbcore: registered new interface driver cdc_ether [14962.027820] usbcore: registered new interface driver cdc_ncm [14962.033022] usbcore: registered new interface driver cdc_wdm [14962.035181] usbcore: registered new interface driver cdc_mbim [14965.901350] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready [14965.901646] r8152 4-1.4:1.0 eth1: carrier on After ifdown & ifup eth1, interface is up again. What's wrong ? I can see driver 2.13 is used, and Realtek has issued a 2.14 version, but only usable up to 5.6 kernel So I can't compile it. 1 Quote
Lili13400 Posted December 2, 2020 Posted December 2, 2020 Hi @FloBaoti, The 2.14 module is building well on helios64, just checkout it, and make it 0 Quote
FloBaoti Posted December 2, 2020 Author Posted December 2, 2020 It doesn't compile on Armbian Buster (Debian), because kernel is compiled with a different gcc version than the one installed : make -C /lib/modules/5.9.11-rockchip64/build M=/usr/src/r8152-2.14.0 modules make[1]: Entering directory '/usr/src/linux-headers-5.9.11-rockchip64' MODPOST /usr/src/r8152-2.14.0/Module.symvers ERROR: modpost: "__stack_chk_guard" [/usr/src/r8152-2.14.0/r8152.ko] undefined! make[2]: *** [scripts/Makefile.modpost:111: /usr/src/r8152-2.14.0/Module.symvers] Error 1 make[2]: *** Deleting file '/usr/src/r8152-2.14.0/Module.symvers' make[1]: *** [Makefile:1697: modules] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-5.9.11-rockchip64' make: *** [Makefile:24: modules] Error 2 2.13 is running fixe since yesterday (5 crash in 5 hours).... let's see . 0 Quote
aprayoga Posted December 3, 2020 Posted December 3, 2020 @FloBaoti you can get 2.14 source from https://github.com/wget/realtek-r8152-linux and compile using docker similar like in this thread 1 Quote
Igor Posted December 3, 2020 Posted December 3, 2020 5 hours ago, aprayoga said: you can get 2.14 source from I also updated our sources https://github.com/igorpecovnik/realtek-r8152-linux 2 Quote
FloBaoti Posted December 4, 2020 Author Posted December 4, 2020 On 12/3/2020 at 10:59 AM, Igor said: I also updated our sources https://github.com/igorpecovnik/realtek-r8152-linux I don't understand the goal of this repository, is it used by Armbian ? How can I "contribute" to Armbian and commit r8152 2.14 ? 0 Quote
Igor Posted December 4, 2020 Posted December 4, 2020 51 minutes ago, FloBaoti said: I don't understand the goal of this repository, is it used by Armbian ? We are updating several kernel drivers with their best option - which is also a reason why Armbian is better then some generic Linux. Yes, it is used: https://github.com/armbian/build/blob/master/lib/compilation-prepare.sh#L201-L213 51 minutes ago, FloBaoti said: and commit r8152 2.14 ? I already update our fork to 2.14 and if you build kernel from sources, it will be v2.14. In case you want to change anything in the driver, send a PR. Either to upstream or our fork - just note about the changes since its not heavily monitored. Usually we just point to original source. I forget why we use a fork in this case. Not that important after all. 2 Quote
buhtux Posted December 18, 2023 Posted December 18, 2023 Hi @Igor can you please update the repository one time more? there were some crucial changes in the original repository needed for the new 6.X kernels. r8152 based nics are crashing at the moment with old drivers. 0 Quote
Igor Posted December 18, 2023 Posted December 18, 2023 18 minutes ago, buhtux said: can you please update the repository one time more? We don't use it with recent kernels: https://github.com/armbian/build/blob/main/lib/functions/compilation/patch/drivers_network.sh#L47 0 Quote
Solution ebin-dev Posted December 18, 2023 Solution Posted December 18, 2023 @buhtux For the mainline r8152 driver you need to copy the rtl_nic firmware files into /lib/firmware/rtl_nic (see also here). 0 Quote
buhtux Posted December 18, 2023 Posted December 18, 2023 Thank you so much for quick response! 0 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.