mirror of https://github.com/OpenIPC/firmware.git
Hisilicon: add external mt7601u driver to hi3516ev300 ultimate (#918)
parent
dd3eba6aac
commit
d0740692a0
|
@ -109,7 +109,8 @@ BR2_PACKAGE_LINUX_FIRMWARE_OPENIPC=y
|
|||
BR2_PACKAGE_LINUX_FIRMWARE_OPENIPC_MEDIATEK_MT7601U=y
|
||||
BR2_PACKAGE_LINUX_FIRMWARE_OPENIPC_RTL_8188EU=y
|
||||
# BR2_PACKAGE_RTL8188EU is not set
|
||||
BR2_PACKAGE_RTL8188FU_OPENIPC=y
|
||||
BR2_PACKAGE_RTL8188FU=y
|
||||
BR2_PACKAGE_MT7601U_OPENIPC=y
|
||||
|
||||
# WIREGUARD
|
||||
BR2_PACKAGE_WIREGUARD_LINUX_COMPAT=y
|
||||
|
|
|
@ -35,7 +35,7 @@ fi
|
|||
if [ "$1" = "mt7601u-hi3516ev300-camhi" ]; then
|
||||
devmem 0x100C0080 32 0x530
|
||||
set_gpio 7 0
|
||||
modprobe mt7601u
|
||||
modprobe mt7601sta
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
@ -104,7 +104,7 @@ if [ "$1" = "l716-t31-camhi" ]; then
|
|||
exit 0
|
||||
fi
|
||||
|
||||
# T31 ATBM603X on SDIO bus mmc0
|
||||
# T31 ATBM603X mmc0
|
||||
if [ "$1" = "atbm603x-t31-mmc0" ]; then
|
||||
# PB10 in wifi mmc1 is in the pull-down state by default, it needs to be set to a high-impedance state
|
||||
devmem 0x10011128 32 0x400
|
||||
|
@ -119,12 +119,12 @@ if [ "$1" = "atbm603x-t31-mmc0" ]; then
|
|||
|
||||
cp /usr/share/atbm603x_conf/atbm_txpwer_dcxo_cfg.txt /tmp
|
||||
cp /usr/share/atbm603x_conf/set_rate_power.txt /tmp
|
||||
# note, let this run on the background because if the firmware fails to load, it'll stall the OS startup
|
||||
|
||||
modprobe atbm603x_wifi_sdi0
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# T31 ATBM603X on SDIO bus mmc1
|
||||
# T31 ATBM603X mmc1
|
||||
if [ "$1" = "atbm603x-t31-mmc1" ]; then
|
||||
# not sure what this does, but it's copied from the stock fw
|
||||
devmem 0x10011110 32 0x6e094800
|
||||
|
@ -137,7 +137,7 @@ if [ "$1" = "atbm603x-t31-mmc1" ]; then
|
|||
|
||||
cp /usr/share/atbm603x_conf/atbm_txpwer_dcxo_cfg.txt /tmp
|
||||
cp /usr/share/atbm603x_conf/set_rate_power.txt /tmp
|
||||
# note, let this run on the background because if the firmware fails to load, it'll stall the OS startup
|
||||
|
||||
modprobe atbm603x_wifi_sdi1
|
||||
exit 0
|
||||
fi
|
||||
|
|
|
@ -64,7 +64,7 @@ source "$BR2_EXTERNAL_GENERAL_PATH/package/microsnander/Config.in"
|
|||
source "$BR2_EXTERNAL_GENERAL_PATH/package/mini/Config.in"
|
||||
source "$BR2_EXTERNAL_GENERAL_PATH/package/mini-snmpd-openipc/Config.in"
|
||||
source "$BR2_EXTERNAL_GENERAL_PATH/package/motors/Config.in"
|
||||
source "$BR2_EXTERNAL_GENERAL_PATH/package/mt7601u-ap-openipc/Config.in"
|
||||
source "$BR2_EXTERNAL_GENERAL_PATH/package/mt7601u-openipc/Config.in"
|
||||
source "$BR2_EXTERNAL_GENERAL_PATH/package/nabto/Config.in"
|
||||
source "$BR2_EXTERNAL_GENERAL_PATH/package/node-exporter/Config.in"
|
||||
source "$BR2_EXTERNAL_GENERAL_PATH/package/novatek-osdrv-nt9856x/Config.in"
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
config BR2_PACKAGE_MT7601U_AP_OPENIPC
|
||||
bool "mt7601u-ap-openipc"
|
||||
depends on BR2_LINUX_KERNEL
|
||||
help
|
||||
Wireless driver mt7601u with AP mode.
|
||||
|
||||
comment "MT7601U_AP_OPENIPC needs a Linux kernel to be built"
|
||||
depends on !BR2_LINUX_KERNEL
|
|
@ -1,22 +0,0 @@
|
|||
################################################################################
|
||||
#
|
||||
# mt7601u-ap-openipc
|
||||
#
|
||||
################################################################################
|
||||
|
||||
ifeq ($(LOCAL_DOWNLOAD),y)
|
||||
MT7601U_AP_OPENIPC_SITE_METHOD = git
|
||||
MT7601U_AP_OPENIPC_SITE = https://github.com/openipc/mt7601u
|
||||
MT7601U_AP_OPENIPC_VERSION = $(shell git ls-remote $(MT7601U_AP_OPENIPC_SITE) HEAD | head -1 | cut -f1)
|
||||
else
|
||||
MT7601U_AP_OPENIPC_SITE = https://github.com/openipc/mt7601u/archive
|
||||
MT7601U_AP_OPENIPC_SOURCE = master.tar.gz
|
||||
endif
|
||||
|
||||
MT7601U_AP_OPENIPC_LICENSE = GPL-2.0
|
||||
|
||||
MT7601U_AP_OPENIPC_MODULE_MAKE_OPTS = \
|
||||
KSRC=$(LINUX_DIR)
|
||||
|
||||
$(eval $(kernel-module))
|
||||
$(eval $(generic-package))
|
|
@ -0,0 +1,5 @@
|
|||
config BR2_PACKAGE_MT7601U_OPENIPC
|
||||
bool "mt7601u-openipc"
|
||||
depends on BR2_LINUX_KERNEL
|
||||
help
|
||||
Wireless driver MT7601U
|
|
@ -0,0 +1,17 @@
|
|||
################################################################################
|
||||
#
|
||||
# mt7601u-openipc
|
||||
#
|
||||
################################################################################
|
||||
|
||||
MT7601U_OPENIPC_SITE_METHOD = git
|
||||
MT7601U_OPENIPC_SITE = https://github.com/openipc/mt7601u
|
||||
MT7601U_OPENIPC_VERSION = $(shell git ls-remote $(MT7601U_OPENIPC_SITE) HEAD | head -1 | cut -f1)
|
||||
|
||||
MT7601U_OPENIPC_LICENSE = GPL-2.0
|
||||
|
||||
MT7601U_OPENIPC_MODULE_MAKE_OPTS = \
|
||||
KSRC=$(LINUX_DIR)
|
||||
|
||||
$(eval $(kernel-module))
|
||||
$(eval $(generic-package))
|
Loading…
Reference in New Issue