mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
drivers_network: Deprecate vendor drivers for RTW8723DS, RTW8723DU and RTL88x2cs in favor of mainline RTW88 for kernel >=6.8
- RTW8723DS, RTW8723DU is unsupported/deprecated/obsolete by the author since kernel 6.7 in favor of RTW88, so deprecate it for kernel >=6.8 - RTL88x2cs specifically says in its repo: "USE RTW88 NOT THIS DRIVER", so deprecate in favor of RTW88, except for meson64 family - move random RTL88x2cs hook specific for meson64 family in drivers_network.sh to their family config
This commit is contained in:
@@ -50,6 +50,17 @@ case $BRANCH in
|
||||
|
||||
esac
|
||||
|
||||
# Use custom vendor driver for wireless rtl88x2cs
|
||||
# See https://github.com/armbian/build/pull/6227
|
||||
# @TODO Only use for BOARDFAMILY="jethub" devices?
|
||||
function armbian_kernel_config__enable_rtl88x2cs_driver() {
|
||||
kernel_config_modifying_hashes+=("CONFIG_RTL8822CS=m")
|
||||
if [[ -f .config ]]; then
|
||||
display_alert "Enabling rtl88x2cs driver in kernel config" "armbian-kernel" "wrn"
|
||||
kernel_config_set_m CONFIG_RTL8822CS
|
||||
fi
|
||||
}
|
||||
|
||||
# this helper function includes postprocess for p212 and its variants.
|
||||
# $1 PATH for uboot blob repo
|
||||
# $2 dir name in uboot blob repo
|
||||
|
||||
@@ -18,6 +18,9 @@ BOOTSCRIPT="boot-jethub.cmd:boot.cmd"
|
||||
BOOTBRANCH="tag:v2023.10"
|
||||
BOOTPATCHDIR="v2023.10"
|
||||
|
||||
########
|
||||
# @TODO: Put this in the board configs of the respective boards
|
||||
########
|
||||
if [[ "$BOARD" == "jethubj80" ]]; then
|
||||
CPUMAX=1200000
|
||||
elif [[ "$BOARD" == "jethubj100" ]]; then
|
||||
@@ -25,7 +28,9 @@ elif [[ "$BOARD" == "jethubj100" ]]; then
|
||||
OFFSET=126
|
||||
fi
|
||||
|
||||
|
||||
########
|
||||
# @TODO: Put this in the board configs of the respective boards
|
||||
########
|
||||
if [[ "$BOARD" == "jethubj80" ]] || [[ "$BOARD" == "jethubj100" ]] ; then
|
||||
function family_tweaks__blacklistrtw88() {
|
||||
if [[ "$BOARD" == jethubj80 ]] || [[ "$BOARD" == jethubj100 ]]; then
|
||||
|
||||
@@ -421,21 +421,12 @@ driver_rtw88() {
|
||||
fi
|
||||
}
|
||||
|
||||
function armbian_kernel_config__enable_rtl88x2cs_driver() {
|
||||
if [[ "${LINUXFAMILY}" == "meson64" ]]; then
|
||||
kernel_config_modifying_hashes+=("CONFIG_RTL8822CS=m")
|
||||
if [[ -f .config ]]; then
|
||||
display_alert "Enabling rtl88x2cs driver in kernel config" "armbian-kernel" "wrn"
|
||||
kernel_config_set_m CONFIG_RTL8822CS
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
driver_rtl88x2cs() {
|
||||
|
||||
# Wireless drivers for Realtek 88x2cs chipsets
|
||||
# Only used for meson64 family boards, use mainline rtw88 driver for all other boards
|
||||
|
||||
if linux-version compare "${version}" ge 5.9; then
|
||||
if linux-version compare "${version}" ge 5.9 && [[ "$LINUXFAMILY" == meson64 ]]; then
|
||||
|
||||
# Attach to specific commit (track branch:tune_for_jethub)
|
||||
local rtl88x2csver='commit:10f39b61c51fa0302062059e00e9b5440dd3c7a6' # Commit date: Jan 24, 2024 (please update when updating commit ref)
|
||||
@@ -495,7 +486,7 @@ driver_rtl8723DS() {
|
||||
|
||||
# Wireless drivers for Realtek 8723DS chipsets
|
||||
|
||||
if linux-version compare "${version}" ge 5.0; then
|
||||
if linux-version compare "${version}" ge 5.0 && linux-version compare "${version}" le 6.7; then
|
||||
|
||||
# Attach to specific commit (was "branch:master")
|
||||
local rtl8723dsver='commit:52e593e8c889b68ba58bd51cbdbcad7fe71362e4' # Commit date: Nov 14, 2023 (please update when updating commit ref)
|
||||
@@ -538,7 +529,7 @@ driver_rtl8723DU() {
|
||||
|
||||
# Wireless drivers for Realtek 8723DU chipsets
|
||||
|
||||
if linux-version compare "${version}" ge 5.0; then
|
||||
if linux-version compare "${version}" ge 5.0 && linux-version compare "${version}" le 6.7; then
|
||||
|
||||
# Attach to specific commit (was "branch:master")
|
||||
local rtl8723duver='commit:ae03b0861351f72808405ddda80e8aab105bcfce' # Commit date: Dec 8, 2023 (please update when updating commit ref)
|
||||
|
||||
Reference in New Issue
Block a user