Drivers

為 Solus 編譯 Realtek rtl8723be 驅動程序時出錯

  • August 25, 2018

我想為 Solus 編譯 Realtek rtl8723be 驅動程序。我找到了這個包含驅動程序的 git repo: 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

因此,這是我為解決此問題所做的工作:

安裝必要的庫

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

引用自:https://unix.stackexchange.com/questions/442125