orangepi3lts: load wifi module via systemd service otherwise it crashes cpufreq_dt module

This commit is contained in:
Gunjan Gupta
2023-09-17 23:08:18 +05:30
committed by Igor
parent 78bdf737d2
commit 608618a6f5
3 changed files with 17 additions and 2 deletions

View File

@@ -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"

View File

@@ -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

View 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