Bug 15071

Summary: RTL8723BS library is outdated
Product: buildroot Reporter: alirezatm
Component: Outdated packageAssignee: unassigned
Status: RESOLVED WONTFIX    
Severity: major CC: buildroot
Priority: P5    
Version: 2022.02.6   
Target Milestone: ---   
Hardware: Other   
OS: Linux   
Host: Target:
Build:

Description alirezatm 2022-10-20 10:27:23 UTC
Good day, It seems that the RTL8723BS library in the buildroot settings accessible by "make menuconfig" and "make linux-menunconfig" is outdated and hasn't been updated for a long time

In the "~/buildroot-2022.02.6/package/rtl8723bs/rtl8723bs.mk" file, I saw this line: 
RTL8723BS_SITE = $(call github,hadess,rtl8723bs,$(RTL8723BS_VERSION))
which means that it's fetching the library from https://github.com/hadess/rtl8723bs which as you can see is not being updated anymore and is extremely outdated. For example it doesn't respect the changes to the timer done in the 4.15 kernel

I tried lowering my linux kernel version in the "make menuconfig" settings as a compromise but this library still won't compile. Tried and failed with kernel versions 4.11, 4.12 and 4.14

The kernel itself seems to have an up-to-date driver for it (https://github.com/torvalds/linux/tree/master/drivers/staging/rtl8723bs) but I don't think we can access it via buildroot

Is there any chance to fix this library? Thanks
I've attached my .config file if it helps
Comment 1 alirezatm 2022-10-20 10:30:41 UTC
Sorry, seems that this website has a 75kB limit, so I've uploaded my .config file here: https://anonymfile.com/pZKO/.config
Comment 2 Giulio Benetti 2022-10-20 10:57:38 UTC
(In reply to alirezatm from comment #0)

Hi,

it's true, package rtl8723bs is outdated and indeed has been dropped with this commit:
https://git.busybox.net/buildroot/commit/?id=7763ba7007172ceb5e928ae5902735d727aaa90d

As pointed by:
https://github.com/hadess/rtl8723bs/commit/3bb1d33ad98c1d77b5e17a1b707e137b35e6d0a5
now the driver has made it into staging Linux driver folder.

So you can access and configure Linux by issuing:
$ make linux-menuconfig
and then you can find RTL8723BS driver. But take care because it needs some CONFIG_ to be enabled:
CONFIG_STAGING=y
CONFIG_WLAN=y
CONFIG_MMC=y
CONFIG_CFG80211=y
CONFIG_MODULES=y

To find these informations you can search "rtl8723bs" in linux-menuconfig(as well as in Buildroot menuconfig) by typing "/" and there it will be shown the "depends on" and what it "Selects".

This way you should be able to have the driver built.

Best regards