Tiny Core Base > Raspberry Pi
piCore 15 armhf : rtl8xxxu does not load firmware
ovacikar:
I wanted to replace problematic rtl8192cu driver with rtl8xxxu driver, compiled it as a module and realized this release already comes with rtl8xxxu driver, but I cannot get the built-in module to load the required firmware. What am I doing wrong?
Dmesg with native module loaded, I removed and reconnected the dongle:
--- Code: ---[ 245.781729] usb 1-1.2: USB disconnect, device number 4
[ 251.712573] usb 1-1.2: new high-speed USB device number 6 using dwc_otg
[ 251.844517] usb 1-1.2: New USB device found, idVendor=7392, idProduct=7811, bcdDevice= 2.00
[ 251.844573] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 251.844598] usb 1-1.2: Product: 802.11n WLAN Adapter
[ 251.844619] usb 1-1.2: Manufacturer: Realtek
[ 251.844639] usb 1-1.2: SerialNumber: redacted
[ 315.681401] usbcore: deregistering interface driver rtl8xxxu
Module Size Used by Tainted: G
rtl8xxxu 184320 0
--- End code ---
Then I removed the module, loaded my compiled .ko file removed and reinserted the dongle and it loaded firmware and wifi.sh worked as expected.
--- Code: ---[ 1019.844554] usb 1-1.2: New USB device found, idVendor=7392, idProduct=7811, bcdDevice= 2.00
[ 1019.844616] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1019.844641] usb 1-1.2: Product: 802.11n WLAN Adapter
[ 1019.844662] usb 1-1.2: Manufacturer: Realtek
[ 1019.844680] usb 1-1.2: SerialNumber: redacted
[ 1020.099310] usb 1-1.2: RTL8188CU rev A (TSMC) romver 0, 1T1R, TX queues 2, WiFi=1, BT=0, GPS=0, HI PA=0
[ 1020.099380] usb 1-1.2: RTL8188CU MAC: redacted
[ 1020.099409] usb 1-1.2: rtl8xxxu: Loading firmware rtlwifi/rtl8192cufw_TMSC.bin
[ 1020.099860] usb 1-1.2: Firmware revision 88.2 (signature 0x88c1)
Module Size Used by Tainted: G
rtl8xxxu 188416 0
--- End code ---
Is there something wrong with the native rtl8xxxu module?
Paul_123:
The driver is responsible to load the firmware. But if I recall the 8192cu driver will fail silently if the firmware is not present when it tries to load it. Are you 100% sure the firmware is loaded before or at the exact same time as you are loading wireless-KERNEL.tcz? Where did you get the source to build the driver?
ovacikar:
Hi Paul
The non-working rtl8xxxu driver was included in wireless-6.6.47-piCore.tcz extension:
--- Code: ---http://www.tinycorelinux.net/15.x/armhf/tcz/wireless-6.6.47-piCore.tcz.list
usr/local/lib/modules/6.6.47-piCore/kernel/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.ko
--- End code ---
Also load the firmware-rtlwifi.tcz , but blocked the rtl8192cu in bootcode
--- Code: ---http://www.tinycorelinux.net/15.x/armhf/tcz/firmware-rtlwifi.tcz.list
lib/firmware/rtlwifi/rtl8192cufw_TMSC.bin
--- End code ---
The one I compiled is just the experimental module indluded in picore kernel source:
--- Code: ---http://tinycorelinux.net/15.x/armhf/releases/RPi/src/kernel/rpi-linux-6.6.47.tar.xz
tc@picore:/mnt/mmcblk0p2/tce/compile/rpi-linux-6.6.47$ grep 8XXXU .config
CONFIG_RTL8XXXU=m
CONFIG_RTL8XXXU_UNTESTED=y
--- End code ---
I am loading and unloading modules manually from command line, so the firmware should be there in both cases.
ovacikar:
Let me back up this sd card to disk later tonight and do a fresh install. My plan is:
1- Blacklist rtl8192cu in bootcode, reboot
2- install firmware-rtlwifi.tcz ,
3- install wireless-tools, that also installs wireless-6.6.47-piCore.tcz as dependency.
4- make sure firmware-rtlwifi.tcz is on top in onboot.lst
5- reboot
Paul_123:
Looking at the kernel source code the Config parameter CONFIG_RTL8XXXU_UNTESTED=y is enables quite a bit of code for the 8192cu in the 8xxxu driver. So most certainly the driver 8xxxu driver compiled in the piCore wireless extension is not going to do what you want. We do not typically include untested config settings.
https://github.com/raspberrypi/linux/blob/rpi-6.6.y/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_8192c.c
It appears to still be marked as untested in kernel 6.12.y as well.
Navigation
[0] Message Index
[#] Next page
Go to full version