Page 1 of 1

ubuntu: can't get rtl8xxx_git working

Posted: 2024-10-08 15:47
by sodo
캡처.PNG
it compiles and load just fine
usb is detected
but it isn't recognized as wifi card
i also installed files inside "drv_ko" inside kernel source code from sdk
https://github.com/lwfinger/rtl8xxxu

Re: ubuntu: can't get rtl8xxx_git working

Posted: 2024-10-09 1:41
by Crocodile
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

Re: ubuntu: can't get rtl8xxx_git working

Posted: 2024-10-10 8:34
by sodo
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

Re: ubuntu: can't get rtl8xxx_git working

Posted: 2024-10-10 8:49
by Alenwowo
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.

Re: ubuntu: can't get rtl8xxx_git working

Posted: 2024-10-26 4:00
by IndianaTux
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     -- 

Re: ubuntu: can't get rtl8xxx_git working

Posted: 2025-01-04 16:19
by sodo
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