Tiny Core Extensions > TCE Talk

RTL8822be driver not found in Tinycore64 11.x

<< < (4/6) > >>

mrjake2:

--- Quote from: Rich on March 04, 2020, 02:08:22 PM ---Hi mrjake2

--- Quote from: mrjake2 on March 04, 2020, 01:54:15 PM --- ... Yes, that was the first thing I tried, and it still complained about not being able to find rte88/rtl8822be.bin. ...
--- End quote ---
Is that an exact quote? Because  firmware-rtlwifi.tcz.list  lists the firmware files name as:
/usr/local/lib/firmware/rtlwifi/rtl8822befw.bin
Found here:
http://tinycorelinux.net/11.x/x86_64/tcz/firmware-rtlwifi.tcz.list

--- End quote ---

Sorry, I was typing that from my phone while trying to rush out the door.  This is the exact, correct message that I am getting:

--- Code: ---> tce-load -il firmware-rtlwifi
firmware-rtlwifi.tcz: OK
> tce-load -il wireless-5.4.3-tinycore64
wireless-5.4.3-tinycore64.tcz: OK
...
rtw_pci 0000:02:00.0: Direct firmware load for rtw88/rtw8822b_fw.bin failed . with error -2
rtw_pci 0000:02:00.0: Falling back to sysnfs fallback for: rtw88/rtw8822b_fw.bin
rtw_pci 0000:02:00.0: failed to request firmware
rtw_pci 0000:02:00.0: failed to load firmware
...

--- End code ---

For what it's worth, when trying to get my wireless working on another distro (I believe it was Kali) I had the exact same problem with that driver.  In that case someone had already recompiled the same one that I have compiled, but for Kali.  Dropping that in resolved the issue for me.  So I'm pretty confident that the existing driver really no longer works given that this was a required change in that distro as well.

Rich:
Hi mrjake2
According to your  dmesg,  it's looking for  rtw8822b_fw.bin.  That file is listed here:
http://tinycorelinux.net/11.x/x86_64/tcz/firmware-rtlwifi.tcz.list

mrjake2:

--- Quote from: Rich on March 09, 2020, 10:40:06 PM ---Hi mrjake2
According to your  dmesg,  it's looking for  rtw8822b_fw.bin.  That file is listed here:
http://tinycorelinux.net/11.x/x86_64/tcz/firmware-rtlwifi.tcz.list

--- End quote ---

That's true, but when I try to load firmware-rtlwifi followed by wireless-KERNEL, it doesn't work.  I get the errors posted above.

However, I did notice that firmware-rtlwifi.tcz puts it in a different directory than the one I get in the error message.  firmware-rtlwifi.tcz puts it in rtlwifi/rtw8822b_fw.bin, but my updated firmware from the rtw88 branch of https://github.com/lwfinger/rtlwifi_new/tree/rtw88 puts them under rtw88/rtw8822b_fw.bin instead.  This exactly matches the dir that I see in the error message, so as a test I created rtw88/ under firmware/ and copied the driver from the firmware-rtlwifi.tcz package to that new dir.  Strangely, this got rid of the "failed to load firmware" error messages, but it also didn't result in seeing the line "Firmware version 27.2.0, H2C version 13", which I believe would mean that the driver was loaded correctly. 

After doing this I loaded wifi.tcz, started X, and tried to run wifi.sh.  It does find wlan0, but it never completes a successful wifi scan.  So I think the driver is in the correct location at this point, but the driver itself isn't correct anymore.  Based on the instructions I see in the README for https://github.com/lwfinger/rtlwifi_new/tree/rtw88 - plus the fact that I've only been able to get this to work when I use the compiled code for that branch, and that I needed the drivers compiled from this same branch to get wifi working in Kali Linux - I believe that I need to be using the version of rtw822b_fw.bin that I compiled, and that it needs to be in rtw88/ instead of rtlwifi/.  I just don't know how to get rid of the taint errors.

Rich:
Hi mrjake2
OK, forget about loading  firmware-rtlwifi.tcz  and  wireless-KERNEL.tcz

Unpack the driver extension you created.

Move the firmware from that extension into an extension called:

--- Code: ---firmware-rtl8822be.tcz
--- End code ---
Add a file called:

--- Code: ---/usr/loca/tce.installed/firmware-rtl8822be
--- End code ---
Place the following in that file:

--- Code: ---#!/bin/sh
udevadm trigger
--- End code ---

Then copy your firmware and driver extensions to your tce directory, then reboot and:

--- Code: ---tce-load -i firmware-rtl8822be.tcz
tce-load -i YourCompiledDriver.tcz
--- End code ---

    [EDIT]: Added missing  -i  to  tce-load  command.  Rich

Rich:
Hi mrjake2

--- Quote from: Rich on March 09, 2020, 11:19:22 PM --- ... Then copy your firmware and driver extensions to your tce directory, then reboot and:

--- Code: ---tce-load -i firmware-rtl8822be.tcz
tce-load -i YourCompiledDriver.tcz
--- End code ---

--- End quote ---
And then see what  dmesg  returns.

    [EDIT]: Added missing  -i  to  tce-load  command.  Rich

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version