batocera-linux / batocera.linux

batocera.linux
https://batocera.org
Other
1.99k stars 514 forks source link

V32/Master: Kernel upstream BT/Wifi Firmware has some missing symbolic links #5786

Closed hbiyik closed 2 years ago

hbiyik commented 2 years ago

Hello,

Thanks for such a nice project. I was usingNexbox a95x b7n device which uses rtl8723bs wifi chipset. Wifi was not working with Batocera and i noticed that the firmware binary was actually in /lib/firmware/rtlwifi directory but was missing a symbolic link from rtl8723bs_nic.bin to rtl8723bu_nic.bin

I tested and verified that device now works correctly with wifi + bt after manually creating smylinks

The structure of symbolic links can also be verified with debian firmware-realtek package:

firmware/rtlwifi/rtl8192eefw.bin -> rtl8192eu_nic.bin
firmware/rtlwifi/rtl8723bs_ap_wowlan.bin -> rtl8723bu_ap_wowlan.bin
firmware/rtlwifi/rtl8723bs_nic.bin -> rtl8723bu_nic.bin
firmware/rtlwifi/rtl8723bs_wowlan.bin -> rtl8723bu_wowlan.bin

firmware/rtl_bt/rtl8723bs_config-OBDA0623.bin -> rtl8723bs_config-OBDA8723.bin
firmware/rtl_bt/rtl8821a_config.bin -> rtl8821c_config.bin

I tested this v32, but as far as i can see from the master branch it is the same in master as well.

Below is the obvious dmesg output when symlinks are missing

[ 1071.397915] rtl8723bs: acquire FW from file:rtlwifi/rtl8723bs_nic.bin
[ 1071.397979] rtl8723bs mmc0:0001:1: Direct firmware load for rtlwifi/rtl8723bs_nic.bin failed with error -2
NecFan commented 2 years ago

That could be the reason why Wifi not working on lasts Batocera bêta builds for Rpi4.

hbiyik commented 2 years ago

dont think so, rpi is using broadcomm chipsets, this is about realtek chipsets. And this issue was always there not something new.

but easy to verify with.

ip link set dev wlan0 up
dmesg

and see if any firmware not found error is raised in dmesg

dmanlfc commented 2 years ago

thanks for the clear issue @hbiyik fixed - https://github.com/batocera-linux/batocera.linux/pull/5796

dmanlfc commented 2 years ago

please close