|
楼主 |
发表于 2017-8-17 11:44
|
显示全部楼层
问题解决了,用的是lede的最新版本。
参考了这个帖子,里面写到了驱动怎么加载的。
但是不知道为啥9886识别成9887了。所以编译的时候只好选择9887的驱动。
编译的时候在Firmware里面选择ath10k-firmware-qca9887选择,还有内核模块要选上ath10k。
1.主要修改一个是把\lede_trunk\package\firmware\ath10k-firmware目录下的makefile修改了一下
- diff --git a/package/firmware/ath10k-firmware/Makefile b/package/firmware/ath10k-firmware/Makefile
- old mode 100644
- new mode 100755
- index 16d77a3..5fb6257
- --- a/package/firmware/ath10k-firmware/Makefile
- +++ b/package/firmware/ath10k-firmware/Makefile
- @@ -258,7 +258,7 @@ define Package/ath10k-firmware-qca9887/install
- $(1)/lib/firmware/ath10k/QCA9887/hw1.0/firmware-5.bin
- $(INSTALL_DATA) \
- $(DL_DIR)/$(QCA9887_BOARD_FILE_DL) \
- - $(1)/lib/firmware/ath10k/QCA9887/hw1.0/board.bin
- + $(1)/lib/firmware/ath10k/QCA9887/hw1.0/board-2.bin
- endef
复制代码 2.lede_trunk\target\linux\ar71xx\image目录下的legacy-devices.mk
- diff --git a/target/linux/ar71xx/image/legacy-devices.mk b/target/linux/ar71xx/image/legacy-devices.mk
- old mode 100644
- new mode 100755
- index 7723024..6eaa966
- --- a/target/linux/ar71xx/image/legacy-devices.mk
- +++ b/target/linux/ar71xx/image/legacy-devices.mk
- @@ -105,7 +105,7 @@ LEGACY_DEVICES += AP143_16M
-
- define LegacyDevice/AP147_010
- DEVICE_TITLE := Qualcomm Atheros AP147-010 reference board
- - DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-storage
- + DEVICE_PACKAGES := kmod-usb-core kmod-usb2 kmod-usb-storage kmod-ath10k ath10k-firmware-qca9887
- endef
- LEGACY_DEVICES += AP147_010
-
复制代码
3. 修改target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata 文件
- diff --git a/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata b/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/1
- old mode 100644
- new mode 100755
- index 6a50e0c..3b55105
- --- a/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
- +++ b/target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
- @@ -139,6 +139,10 @@ case "$FIRMWARE" in
- archer-c58-v1)
- ath10kcal_extract "art" 20480 12064
- ;;
- + AP147-010)
- + ath10kcal_extract "art" 4096 2116
- + ath10kcal_patch_mac $(macaddr_add $(cat /sys/class/net/eth1/address) -2)
- + ;;
- esac
- ;;
- *)
复制代码
4. 修改 target/linux/ar71xx/base-files/lib/preinit/82_patch_ath10k
- diff --git a/target/linux/ar71xx/base-files/lib/preinit/82_patch_ath10k b/target/linux/ar71xx/base-files/lib/preinit/82_patch_ath10k
- old mode 100644
- new mode 100755
- index c9aa4b1..bfe96fa
- --- a/target/linux/ar71xx/base-files/lib/preinit/82_patch_ath10k
- +++ b/target/linux/ar71xx/base-files/lib/preinit/82_patch_ath10k
- @@ -43,6 +43,12 @@ do_patch_ath10k_firmware() {
- }
-
- check_patch_ath10k_firmware() {
- + dd if=/dev/mtd7 of=/lib/firmware/ath10k/QCA9887/hw1.0/board.bin \
- + bs=1 skip=20480 count=2116
- +
- + ln -sf /lib/firmware/ath10k/QCA9887/hw1.0/board-2.bin /lib/firmware/ath10k/pre-cal-pci-0000\:00\:00.0.bin
- +
- +
- case $(board_name) in
- dgl-5500-a1 | tew-823dru)
- do_patch_ath10k_firmware
复制代码
|
|