OrangePi 3 LTS: Use extlinux and remove aw859a-wifi.service
For "reasons" extlinux provides a more stable boot. Remove aw859a-wifi.service: The service modprobes sprdwl_ng later in the boot process. Which is not required. Just enabling it in modules-load.d will suffice. I believe the reasoning for this service was to prevent a crash which occurs if sprdwl_ng loads before cpufreq_dt. To prevent the crash we will set in the defconfig CONFIG_CPUFREQ_DT=y. Signed-off-by: Patrick Yavitz <pyavitz@gmail.com>
This commit is contained in:
parent
1890d7f656
commit
d1e9c9032e
@ -3,14 +3,15 @@ BOARD_NAME="Orange Pi 3 LTS"
|
||||
BOARD_VENDOR="xunlong"
|
||||
BOARDFAMILY="sun50iw6"
|
||||
BOARD_MAINTAINER="pyavitz"
|
||||
BOOT_FDT_FILE="sun50i-h6-orangepi-3-lts.dtb"
|
||||
BOOT_FDT_FILE="allwinner/sun50i-h6-orangepi-3-lts.dtb"
|
||||
BOOTCONFIG="orangepi_3_lts_defconfig"
|
||||
BOOT_LOGO="desktop"
|
||||
MODULES_BLACKLIST="sunxi_addr" # Still loads but later in the boot process
|
||||
CRUSTCONFIG="orangepi_3_lts_defconfig"
|
||||
KERNEL_TARGET="current,edge"
|
||||
KERNEL_TEST_TARGET="current"
|
||||
PACKAGE_LIST_BOARD="rfkill bluetooth bluez bluez-tools"
|
||||
SRC_EXTLINUX="yes"
|
||||
SRC_CMDLINE="console=tty1 console=ttyS0,115200n8 loglevel=1"
|
||||
|
||||
function post_family_config__use_orangepi3lts_uboot() {
|
||||
case $BRANCH in
|
||||
@ -50,7 +51,6 @@ function post_family_tweaks_bsp__uwe5622_wireless() {
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
EOT
|
||||
cp -f "$SRC/packages/bsp/sunxi/aw859a-wifi.service" "${destination}"/etc/systemd/system/
|
||||
mkdir -p "${destination}"/etc/modules-load.d
|
||||
# Add needed wireless modules
|
||||
cat > "${destination}"/etc/modules-load.d/uwe5622-wireless.conf <<- EOT
|
||||
@ -58,6 +58,7 @@ function post_family_tweaks_bsp__uwe5622_wireless() {
|
||||
bnep
|
||||
rfcomm
|
||||
sprdbt_tty
|
||||
sprdwl_ng
|
||||
EOT
|
||||
fi
|
||||
}
|
||||
@ -66,7 +67,6 @@ function post_family_tweaks_bsp__uwe5622_wireless() {
|
||||
function post_family_tweaks__enable_uwe5622_wireless_services() {
|
||||
display_alert "$BOARD" "Enabling UWE5622 Wireless Services" "info"
|
||||
chroot_sdcard systemctl --no-reload enable sprd-bluetooth.service
|
||||
chroot_sdcard systemctl --no-reload enable aw859a-wifi.service
|
||||
}
|
||||
|
||||
function post_family_config__opi3lts_set_asoundstate_file() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user