|
本帖最后由 moonleon 于 2018-12-6 16:43 编辑
CPU: QCA9531
5g芯片: QCA9887
编译版本: openwrt-18.06
修改了target/linux/ar71xx/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
- "ath10k/pre-cal-pci-0000:00:00.0.bin")
- case $board in
- archer-c58-v1|\
- archer-c59-v1|\
- archer-c60-v1|\
- archer-c60-v2|\
- cf-e355ac-v2|\
- cf-e375ac)
- ath10kcal_extract "art" 20480 12064
- ln -sf /lib/firmware/ath10k/pre-cal-pci-0000\:00\:00.0.bin \
- /lib/firmware/ath10k/QCA9888/hw2.0/board.bin
- ;;
- ap143)
- ath10kcal_extract "art" 20480 2116
- ln -sf /lib/firmware/ath10k/pre-cal-pci-0000\:00\:00.0.bin \
- /lib/firmware/ath10k/QCA9887/hw1.0/board.bin
- ;;
- cf-e385ac)
- ath10kcal_extract "art" 20480 12064
- ;;
- esac
- ;;
复制代码
添加pci
- --- a/arch/mips/ath79/mach-ap143.c
- +++ b/arch/mips/ath79/mach-ap143.c
- @@ -33,6 +33,8 @@
- #include "dev-usb.h"
- #include "dev-wmac.h"
- #include "machtypes.h"
- +#include "pci.h"
-
- #define AP143_GPIO_LED_WLAN 12
- #define AP143_GPIO_LED_WPS 13
- @@ -112,6 +114,8 @@ static void __init ap143_setup(void)
- ap143_gpio_led_setup();
-
- ath79_register_usb();
- + ath79_register_pci();
-
- ath79_wmac_set_led_pin(AP143_GPIO_LED_WLAN);
- ath79_register_wmac(art + AP143_WMAC_CALDATA_OFFSET, NULL);
复制代码
固件可成功加载ath10k- [ 0.143863] ar71xx: invalid MDIO id 1
- [ 0.639466] PCI host bridge to bus 0000:00
- [ 0.644214] pci_bus 0000:00: root bus resource [mem 0x10000000-0x11ffffff]
- [ 0.652018] pci_bus 0000:00: root bus resource [io 0x0000]
- [ 0.658348] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
- [ 0.666052] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
- [ 0.675113] pci 0000:00:00.0: invalid calibration data
- [ 0.681448] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x101fffff 64bit]
- [ 0.689809] pci 0000:00:00.0: BAR 6: assigned [mem 0x10200000-0x1020ffff pref]
- [ 0.698015] pci 0000:00:00.0: using irq 40 for pin 1
- [ 0.704517] clocksource: Switched to clocksource MIPS
复制代码
启动无线后会频繁出现firmware crashed- root@OpenWrt:/# [ 49.457292] ath10k_pci 0000:00:00.0: failed to get board id: -122
- [ 49.463894] ath10k_pci 0000:00:00.0: failed to read device EEPROM at 0000
- [ 49.470958] ath10k_pci 0000:00:00.0: failed to read calibration data from EEPROM: -22
- [ 51.090499] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
- [ 51.111273] br-lan: port 2(wlan0) entered blocking state
- [ 51.116863] br-lan: port 2(wlan0) entered disabled state
- [ 51.122851] device wlan0 entered promiscuous mode
- [ 51.495367] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
- [ 51.502281] br-lan: port 2(wlan0) entered blocking state
- [ 51.507869] br-lan: port 2(wlan0) entered forwarding state
- [ 57.570345] ath10k_pci 0000:00:00.0: firmware crashed! (guid 227aa385-0d40-4947-8fe9-fa5f6600554c)
- [ 57.579650] ath10k_pci 0000:00:00.0: qca9887 hw1.0 target 0x4100016d chip_id 0x004000ff sub 0000:0000
- [ 57.589198] ath10k_pci 0000:00:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 0 testmode 1
- [ 57.604292] ath10k_pci 0000:00:00.0: firmware ver 10.2.4-1.0-00029 api 5 features no-p2p,ignore-otp,skip-clock-init,mfp,allows-mesh-bcast crc32 376f745d
- [ 57.618480] ath10k_pci 0000:00:00.0: board_file api 1 bmi_id N/A crc32 4f42c725
- [ 57.626051] ath10k_pci 0000:00:00.0: htt-ver 2.1 wmi-op 5 htt-op 2 cal otp max-sta 128 raw 0 hwcrypto 1
- [ 57.647810] ath10k_pci 0000:00:00.0: failed to get memcpy hi address for firmware address 4: -16
- [ 57.656900] ath10k_pci 0000:00:00.0: failed to read firmware dump area: -16
- [ 57.664091] ath10k_pci 0000:00:00.0: Copy Engine register dump:
- [ 57.670228] ath10k_pci 0000:00:00.0: [00]: 0x00057400 4 4 3 3
- [ 57.676900] ath10k_pci 0000:00:00.0: [01]: 0x00057800 28 28 66 67
- [ 57.683570] ath10k_pci 0000:00:00.0: [02]: 0x00057c00 21 3 1 3
- [ 57.690253] ath10k_pci 0000:00:00.0: [03]: 0x00058000 26 25 27 25
- [ 57.696925] ath10k_pci 0000:00:00.0: [04]: 0x00058400 4 4 44 4
- [ 57.703587] ath10k_pci 0000:00:00.0: [05]: 0x00058800 15 14 44 46
- [ 57.710267] ath10k_pci 0000:00:00.0: [06]: 0x00058c00 13 0 13 0
- [ 57.716943] ath10k_pci 0000:00:00.0: [07]: 0x00059000 1 0 1 0
- [ 57.726912] ath10k_pci 0000:00:00.0: failed to set dtim period for vdev 0: -143
- [ 57.734777] ath10k_pci 0000:00:00.0: failed to read hi_board_data address: -28
- [ 57.866938] ieee80211 phy0: Hardware restart was requested
- [ 57.874160] ath10k_pci 0000:00:00.0: failed to recalculate rts/cts prot for vdev 0: -143
- [ 57.882591] ath10k_pci 0000:00:00.0: failed to set cts protection for vdev 0: -143
- [ 57.890429] ath10k_pci 0000:00:00.0: failed to set preamble for vdev 0: -143
- [ 58.038263] ath10k_pci 0000:00:00.0: failed to poke copy engine: -16
- [ 58.208351] ath10k_pci 0000:00:00.0: failed to poke copy engine: -16
- [ 58.368243] ath10k_pci 0000:00:00.0: failed to poke copy engine: -16
- [ 58.659761] ath10k_pci 0000:00:00.0: failed to get board id: -122
- [ 58.666250] ath10k_pci 0000:00:00.0: failed to read device EEPROM at 0000
- [ 58.673269] ath10k_pci 0000:00:00.0: failed to read calibration data from EEPROM: -22
- [ 59.905569] ath10k_pci 0000:00:00.0: device successfully recovered
复制代码
有人试过用新版本编译9887的固件吗?
|
|