找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 4256|回复: 4

op18.06 ath10k firmware crashed问题请教

[复制链接]
发表于 2018-12-6 16:43 | 显示全部楼层 |阅读模式
本帖最后由 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
  1. "ath10k/pre-cal-pci-0000:00:00.0.bin")
  2.         case $board in
  3.         archer-c58-v1|\
  4.         archer-c59-v1|\
  5.         archer-c60-v1|\
  6.         archer-c60-v2|\
  7.         cf-e355ac-v2|\
  8.         cf-e375ac)
  9.                 ath10kcal_extract "art" 20480 12064
  10.                 ln -sf /lib/firmware/ath10k/pre-cal-pci-0000\:00\:00.0.bin \
  11.                         /lib/firmware/ath10k/QCA9888/hw2.0/board.bin
  12.                 ;;
  13.     ap143)
  14.         ath10kcal_extract "art" 20480 2116
  15.         ln -sf /lib/firmware/ath10k/pre-cal-pci-0000\:00\:00.0.bin \
  16.             /lib/firmware/ath10k/QCA9887/hw1.0/board.bin
  17.         ;;
  18.         cf-e385ac)
  19.                 ath10kcal_extract "art" 20480 12064
  20.                 ;;
  21.         esac
  22.         ;;
复制代码


添加pci
  1. --- a/arch/mips/ath79/mach-ap143.c
  2. +++ b/arch/mips/ath79/mach-ap143.c
  3. @@ -33,6 +33,8 @@
  4. #include "dev-usb.h"
  5. #include "dev-wmac.h"
  6. #include "machtypes.h"
  7. +#include "pci.h"

  8. #define AP143_GPIO_LED_WLAN                12
  9. #define AP143_GPIO_LED_WPS                13
  10. @@ -112,6 +114,8 @@ static void __init ap143_setup(void)
  11.          ap143_gpio_led_setup();

  12.          ath79_register_usb();
  13. +    ath79_register_pci();

  14.          ath79_wmac_set_led_pin(AP143_GPIO_LED_WLAN);
  15.          ath79_register_wmac(art + AP143_WMAC_CALDATA_OFFSET, NULL);
复制代码

固件可成功加载ath10k
  1. [    0.143863] ar71xx: invalid MDIO id 1
  2. [    0.639466] PCI host bridge to bus 0000:00
  3. [    0.644214] pci_bus 0000:00: root bus resource [mem 0x10000000-0x11ffffff]
  4. [    0.652018] pci_bus 0000:00: root bus resource [io  0x0000]
  5. [    0.658348] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
  6. [    0.666052] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
  7. [    0.675113] pci 0000:00:00.0: invalid calibration data
  8. [    0.681448] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x101fffff 64bit]
  9. [    0.689809] pci 0000:00:00.0: BAR 6: assigned [mem 0x10200000-0x1020ffff pref]
  10. [    0.698015] pci 0000:00:00.0: using irq 40 for pin 1
  11. [    0.704517] clocksource: Switched to clocksource MIPS
复制代码


启动无线后会频繁出现firmware crashed
  1. root@OpenWrt:/# [   49.457292] ath10k_pci 0000:00:00.0: failed to get board id: -122
  2. [   49.463894] ath10k_pci 0000:00:00.0: failed to read device EEPROM at 0000
  3. [   49.470958] ath10k_pci 0000:00:00.0: failed to read calibration data from EEPROM: -22
  4. [   51.090499] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
  5. [   51.111273] br-lan: port 2(wlan0) entered blocking state
  6. [   51.116863] br-lan: port 2(wlan0) entered disabled state
  7. [   51.122851] device wlan0 entered promiscuous mode
  8. [   51.495367] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
  9. [   51.502281] br-lan: port 2(wlan0) entered blocking state
  10. [   51.507869] br-lan: port 2(wlan0) entered forwarding state
  11. [   57.570345] ath10k_pci 0000:00:00.0: firmware crashed! (guid 227aa385-0d40-4947-8fe9-fa5f6600554c)
  12. [   57.579650] ath10k_pci 0000:00:00.0: qca9887 hw1.0 target 0x4100016d chip_id 0x004000ff sub 0000:0000
  13. [   57.589198] ath10k_pci 0000:00:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 0 testmode 1
  14. [   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
  15. [   57.618480] ath10k_pci 0000:00:00.0: board_file api 1 bmi_id N/A crc32 4f42c725
  16. [   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
  17. [   57.647810] ath10k_pci 0000:00:00.0: failed to get memcpy hi address for firmware address 4: -16
  18. [   57.656900] ath10k_pci 0000:00:00.0: failed to read firmware dump area: -16
  19. [   57.664091] ath10k_pci 0000:00:00.0: Copy Engine register dump:
  20. [   57.670228] ath10k_pci 0000:00:00.0: [00]: 0x00057400   4   4   3   3
  21. [   57.676900] ath10k_pci 0000:00:00.0: [01]: 0x00057800  28  28  66  67
  22. [   57.683570] ath10k_pci 0000:00:00.0: [02]: 0x00057c00  21   3   1   3
  23. [   57.690253] ath10k_pci 0000:00:00.0: [03]: 0x00058000  26  25  27  25
  24. [   57.696925] ath10k_pci 0000:00:00.0: [04]: 0x00058400   4   4  44   4
  25. [   57.703587] ath10k_pci 0000:00:00.0: [05]: 0x00058800  15  14  44  46
  26. [   57.710267] ath10k_pci 0000:00:00.0: [06]: 0x00058c00  13   0  13   0
  27. [   57.716943] ath10k_pci 0000:00:00.0: [07]: 0x00059000   1   0   1   0
  28. [   57.726912] ath10k_pci 0000:00:00.0: failed to set dtim period for vdev 0: -143
  29. [   57.734777] ath10k_pci 0000:00:00.0: failed to read hi_board_data address: -28
  30. [   57.866938] ieee80211 phy0: Hardware restart was requested
  31. [   57.874160] ath10k_pci 0000:00:00.0: failed to recalculate rts/cts prot for vdev 0: -143
  32. [   57.882591] ath10k_pci 0000:00:00.0: failed to set cts protection for vdev 0: -143
  33. [   57.890429] ath10k_pci 0000:00:00.0: failed to set preamble for vdev 0: -143
  34. [   58.038263] ath10k_pci 0000:00:00.0: failed to poke copy engine: -16
  35. [   58.208351] ath10k_pci 0000:00:00.0: failed to poke copy engine: -16
  36. [   58.368243] ath10k_pci 0000:00:00.0: failed to poke copy engine: -16
  37. [   58.659761] ath10k_pci 0000:00:00.0: failed to get board id: -122
  38. [   58.666250] ath10k_pci 0000:00:00.0: failed to read device EEPROM at 0000
  39. [   58.673269] ath10k_pci 0000:00:00.0: failed to read calibration data from EEPROM: -22
  40. [   59.905569] ath10k_pci 0000:00:00.0: device successfully recovered
复制代码


有人试过用新版本编译9887的固件吗?


我的恩山、我的无线 The best wifi forum is right here.
发表于 2018-12-6 19:51 | 显示全部楼层
你看看我之前发的帖子,希望对你有所帮助,祝你玩机愉快

[2018-11-13] 分享 TL-WDR5600 v3.0 自编译8M固件 QCA9561+QCA9887 相同配置机器可刷

点评

哈哈 我刚刚还在参考你的贴子,奇怪的是art的部分,tp这个板子校准数据要这么大的吗? 看了一下其他9887校准数据好像都是2116  详情 回复 发表于 2018-12-6 23:00
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2018-12-6 23:00 | 显示全部楼层
hello_limin 发表于 2018-12-6 19:51
你看看我之前发的帖子,希望对你有所帮助,祝你玩机愉快

[2018-11-13] 分享 TL-WDR5600 v3.0 自编译8 ...

哈哈  我刚刚还在参考你的贴子,奇怪的是art的部分,tp这个板子校准数据要这么大的吗?
看了一下其他9887校准数据好像都是2116

点评

而且我看了一下你用的那个旧版本,firmware都是一样的,莫非就是art的问题。。。 我去尝试一下  详情 回复 发表于 2018-12-6 23:02
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2018-12-6 23:02 | 显示全部楼层
moonleon 发表于 2018-12-6 23:00
哈哈  我刚刚还在参考你的贴子,奇怪的是art的部分,tp这个板子校准数据要这么大的吗?
看了一下其他988 ...

而且我看了一下你用的那个旧版本,firmware都是一样的,莫非就是art的问题。。。

我去尝试一下
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-12-7 09:49 来自手机 | 显示全部楼层
我这个机器比较特殊,mac地址的偏移量在art里的0x80d处,2g数据在0x1000,5g数据在0x2000处,844 byte,所以5g只要往后偏移2128即可,祝你玩机愉快 (*^_^*)
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-26 11:25

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表