mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
orangepi3lts: load wifi module via systemd service otherwise it crashes cpufreq_dt module
This commit is contained in:
@@ -5,6 +5,5 @@ BOARD_MAINTAINER=""
|
||||
BOOTCONFIG="orangepi_3_lts_defconfig"
|
||||
KERNEL_TARGET="current,edge"
|
||||
KERNEL_TEST_TARGET="current,edge"
|
||||
MODULES="sprdbt_tty sprdwl_ng"
|
||||
MODULES_BLACKLIST_LEGACY="bcmdhd"
|
||||
MODULES="sprdbt_tty"
|
||||
CRUSTCONFIG="orangepi_3_lts_defconfig"
|
||||
|
||||
@@ -38,7 +38,10 @@ family_tweaks_s() {
|
||||
# install and enable Bluetooth
|
||||
chroot_sdcard_apt_get_install rfkill bluetooth bluez bluez-tools
|
||||
chroot $SDCARD /bin/bash -c "systemctl --no-reload enable aw859a-bluetooth.service >/dev/null 2>&1"
|
||||
fi
|
||||
|
||||
if [[ -f $SDCARD/lib/systemd/system/aw859a-wifi.service ]]; then
|
||||
chroot $SDCARD /bin/bash -c "systemctl --no-reload enable aw859a-wifi.service >/dev/null 2>&1"
|
||||
fi
|
||||
|
||||
if [[ $BUILD_DESKTOP == yes && $BOARD == orangepi3-lts ]]; then
|
||||
@@ -53,6 +56,7 @@ family_tweaks_s() {
|
||||
family_tweaks_bsp() {
|
||||
if [[ ${BOARD} == orangepi3-lts ]]; then
|
||||
cp $SRC/packages/bsp/sunxi/aw859a-bluetooth.service $destination/lib/systemd/system/
|
||||
cp $SRC/packages/bsp/sunxi/aw859a-wifi.service $destination/lib/systemd/system/
|
||||
fi
|
||||
|
||||
install -m 755 $SRC/packages/blobs/bt/hciattach/hciattach_opi_${ARCH} $destination/usr/bin/hciattach_opi
|
||||
|
||||
12
packages/bsp/sunxi/aw859a-wifi.service
Normal file
12
packages/bsp/sunxi/aw859a-wifi.service
Normal file
@@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=WIFI AW859A
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStart=/sbin/modprobe sprdwl_ng
|
||||
TimeoutSec=0
|
||||
RemainAfterExit=yes
|
||||
SysVStartPriority=99
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user