xiaoyu/sysdrv/drv_ko/wifi/insmod_wifi.sh
2025-03-04 22:36:42 +08:00

104 lines
1.9 KiB
Bash
Executable File

#!/bin/sh
cmd=`realpath $0`
_DIR=`dirname $cmd`
cd $_DIR
export PATH=$PATH:/oem/usr/ko/
#for fastboot
#insmod_wifi.ko ${RK_ENABLE_WIFI_CHIP} ${RK_ENABLE_FASTBOOT}
if [ "${1}"x = "y"x ];then
insmod dw_mmc.ko
insmod dw_mmc-pltfm.ko
insmod dw_mmc-rockchip.ko
case "$2" in
ATBM6441)
insmod cfg80211.ko
insmod atbm6041_wifi_sdio.ko
;;
HI3861L)
# cat /sys/bus/sdio/devices/*/uevent | grep "0296:5347"
insmod /oem/usr/ko/hichannel.ko hi_rk_irq_gpio=40
;;
*)
exit 1
;;
esac
rkwifi_server start &
exit 0
fi
# install wifi modules for sololinker
#AIC8800DW
cat /proc/device-tree/model | grep "SoloLinker"
if [ $? -eq 0 ];then
cd /lib/modules/5.10.160/
insmod cfg80211.ko
insmod aic_load_fw.ko
insmod aic8800_fdrv.ko
cd -
fi
#AP6XXX
cat /sys/bus/sdio/devices/*/uevent | grep -i "02d0"
if [ $? -eq 0 ];then
insmod cfg80211.ko
insmod bcmdhd.ko
fi
#rtl8723ds
cat /sys/bus/sdio/devices/*/uevent | grep "024C:D723"
if [ $? -eq 0 ];then
insmod cfg80211.ko
insmod 8723ds.ko
fi
#rtl8189fs
cat /sys/bus/sdio/devices/*/uevent | grep "024C:F179"
if [ $? -eq 0 ];then
insmod cfg80211.ko
insmod 8189fs.ko
fi
#rtl18188fu
cat /sys/bus/usb/devices/*/uevent | grep "bda\/f179"
if [ $? -eq 0 ];then
insmod cfg80211.ko
insmod 8188fu.ko
fi
#ssv6115
cat /sys/bus/usb/devices/*/uevent | grep "8065\/6011"
if [ $? -eq 0 ];then
insmod cfg80211.ko
insmod ssv6115.ko
fi
#ssv6x5x
cat /sys/bus/usb/devices/*/uevent | grep "8065\/6000"
if [ $? -eq 0 ];then
insmod cfg80211.ko
insmod libarc4.ko
insmod mac80211.ko
insmod ctr.ko
insmod ccm.ko
insmod libaes.ko
insmod aes_generic.ko
insmod ssv6x5x.ko
fi
#atbm603x
cat /sys/bus/sdio/devices/*/uevent | grep "007A\:6011"
if [ $? -eq 0 ];then
insmod cfg80211.ko
insmod libarc4.ko
insmod ctr.ko
insmod ccm.ko
insmod libaes.ko
insmod aes_generic.ko
insmod atbm603x_.ko
fi
#start wifi app
rkwifi_server start &