ophub / amlogic-s9xxx-armbian

Support for Armbian in Amlogic, Rockchip and Allwinner boxes. Support a311d, s922x, s905x3, s905x2, s912, s905d, s905x, s905w, s905, s905l, rk3588, rk3568, rk3399, rk3328, h6, etc.
GNU General Public License v2.0
6.12k stars 1.96k forks source link

Make a build without bluetooth and wifi drivers #2408

Closed 833M0L3 closed 3 months ago

833M0L3 commented 4 months ago

Device Information | 设备信息

Armbian Version | 系统版本

Describe the bug | 问题描述

Hi, I suggest making a build that removes WiFi and Bluetooth support from the kernel and systemd, so that it completely removes and disables those hardware. Since we are going to use it as a server, a server focus build with no wifi and Bluetooth junk can improve performance and error hassle on most devices. For example in my HK1 box, while it's booting, those Bluetooth and wifi services and kernel startup take some portion of time. Also, sometimes they throw errors on the logs. So, removing them completely on a server specific build would be a great idea. Thank you !

833M0L3 commented 3 months ago

Since the box was crashing randomly , I checked the syslogs and found out that wifi module was causing kernel panic to freeze the box. So I found an easier way to disable the targeted kernel modules.

Go to

/etc/modprob.d/

make a .conf file , for example

test.conf

inside the file add the modules you want to blacklist from loading during the booting as shown format, for example in my case i have blacklisted bt , ir & wifi modules :

blacklist brcmfmac
blacklist meson_ir
blacklist hci_uart
blacklist btqca
blacklist btrtl
blacklist btintel
blacklist btbcm
blacklist btsdio
blacklist bluetooth
blacklist rfkill

save the file , and run the command

update-initramfs -u