我想为 Solus 编译 Realtek rtl8723be 驱动程序。我找到了这个包含驱动程序的 git 存储库: https://github.com/lwfinger/rtlwifi_new
我正在尝试按照以下步骤操作:
make
sudo make install
sudo modprobe -rv rtl8723be
运行“make”后得到以下输出:
$ make
make -C /lib/modules/4.16.7-66.current/build M=/home/priten/rtlwifi_new modules
make[1]: Entering directory '/usr/src/linux-headers-4.16.7-66.current'
Makefile:974: *** "Cannot generate ORC metadata for CONFIG_UNWINDER_ORC=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel". Stop.
make[1]: Leaving directory '/usr/src/linux-headers-4.16.7-66.current'
make: *** [Makefile:58: all] Error 2
答案1
因此,这就是我为解决此问题所做的操作:
安装必要的库
sudo eopkg up
sudo eopkg install -c system.devel
sudo eopkg it linux-current-headers
# OR, depending on your kernel
sudo eopkg it linux-lts-headers
sudo eopkg it libelf-devel
编译 Realtek WiFi 驱动程序
git clone https://github.com/lwfinger/rtlwifi_new
cd rtlwifi_new/
make
sudo make install
sudo modprobe -rv rtl8723be
sudo modprobe -v rtl8723be ant_sel=2
sudo ip link set wlo1 up
sudo iw dev wlo1 scan
sudo su
sudo echo "options rtl8723be ant_sel=2" > /etc/modprobe.d/50-rtl8723be.conf
exit