ubuntu: can't get rtl8xxx_git working

  • Hello, the link you provided https://github.com/lwfinger/rtl8xxxu uses the dkms method to implement the kernel module loading on the board, but for the resource-constrained chip such as luckfox pico, it is not suitable for kernel compilation on the board side, and the kernel module can only be added by burning a new image after PC compilation. Therefore, after loading the rtl8xxx.ko file generated by the drv_ko compilation, you also need to add USB network card support (such as USB_NET_DRIVERS, etc.) in the kernel, and it should also be noted that the WiFi module may also need to load firmware, and the firmware used needs to be placed in a specific location
  • i got it working,
    firmware was not included in driver repo or firmware package(deb) but i could get from somewhere else

    i attached prebuilt one for someone who might need

    extract drv_ko.tgz and copy content to /

    extract rtl3.tgz and "make install"

    install firmware according to message that appears in dmesg
    Attachments
    rtl3.tgz (4.06 MiB)
    rtl8xxxu_git module
    Downloaded 125 times
    drv_ko.tgz (823.76 KiB)
    modules including cfg80211
    Downloaded 122 times
  • sodo wrote: 2024-10-10 8:34 i got it working,
    firmware was not included in driver repo or firmware package(deb) but i could get from somewhere else

    i attached prebuilt one for someone who might need

    extract drv_ko.tgz and copy content to /

    extract rtl3.tgz and "make install"

    install firmware according to message that appears in dmesg
    Thanks for sharing.
  • Hi,

    Did you have to do anything ense to get this to work ?

    I have the driver installed and loaded but all I see is wlan0 (the onboard wireless) and I was expecting to see a wlan1 for the USB dongle...

    Any hints welcome.

    Code: Select all

    root@luckfox:~# lsusb
    Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Bus 001 Device 002: ID 0bda:c811 Realtek Semiconductor Corp. 802.11ac NIC
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    root@luckfox:~# lsmod
    Module                  Size  Used by
    rtl8xxxu_git          136155  0
    mac80211              264707  1 rtl8xxxu_git
    aic8800_fdrv          272882  0
    aic8800_bsp            46005  1 aic8800_fdrv
    aes_generic            24532  0
    ccm                     6847  0
    ctr                     2606  0
    libarc4                  799  1 mac80211
    cfg80211              168757  3 mac80211,aic8800_fdrv,rtl8xxxu_git
    video_rkcif           130130  0
    phy_rockchip_csi2_dphy_hw     8161  0
    phy_rockchip_csi2_dphy     7674  0
    ipv6                  226496  23

    Code: Select all

    root@luckfox:~# nmcli device          
    DEVICE         TYPE      STATE         CONNECTION         
    eth0           ethernet  connected     Wired connection 1 
    wlan0          wifi      disconnected  --                 
    p2p-dev-wlan0  wifi-p2p  disconnected  --                 
    lo             loopback  unmanaged     -- 
  • IndianaTux wrote: 2024-10-26 4:00 Hi,

    Did you have to do anything ense to get this to work ?

    I have the driver installed and loaded but all I see is wlan0 (the onboard wireless) and I was expecting to see a wlan1 for the USB dongle...

    Any hints welcome.

    Code: Select all

    root@luckfox:~# lsusb
    Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Bus 001 Device 002: ID 0bda:c811 Realtek Semiconductor Corp. 802.11ac NIC
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    root@luckfox:~# lsmod
    Module                  Size  Used by
    rtl8xxxu_git          136155  0
    mac80211              264707  1 rtl8xxxu_git
    aic8800_fdrv          272882  0
    aic8800_bsp            46005  1 aic8800_fdrv
    aes_generic            24532  0
    ccm                     6847  0
    ctr                     2606  0
    libarc4                  799  1 mac80211
    cfg80211              168757  3 mac80211,aic8800_fdrv,rtl8xxxu_git
    video_rkcif           130130  0
    phy_rockchip_csi2_dphy_hw     8161  0
    phy_rockchip_csi2_dphy     7674  0
    ipv6                  226496  23

    Code: Select all

    root@luckfox:~# nmcli device          
    DEVICE         TYPE      STATE         CONNECTION         
    eth0           ethernet  connected     Wired connection 1 
    wlan0          wifi      disconnected  --                 
    p2p-dev-wlan0  wifi-p2p  disconnected  --                 
    lo             loopback  unmanaged     -- 
    have you checked your dmesg?
    it may show some firmware missing
    you can get it from anywhere

    also my one is compiled for luckfox pico
    if this is not the same board, you can try compiling yourself
    Last edited by sodo on 2025-01-04 16:24, edited 2 times in total.