有关ath10k的官网介绍如下:
https://wireless.wiki.kernel.org/en/users/drivers/ath10k

1:compat-wireless-2014-05-22 编译时的makefile
\openwrt\package\kernel\mac80211
其中是用的版本信息如下:
PKG_NAME:=mac80211

PKG_VERSION:=2014-05-22
PKG_RELEASE:=1
PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources
PKG_BACKPORT_VERSION:=
PKG_MD5SUM:=367937d4f8c05cb36ca989ee26abc3df

由于在编译完成生成的openwrt\build_dir\target-mips_34kc_uClibc-0.9.33.2\root-ar71xx\lib\firmware\ath10k\QCA988X\hw2.0
中有俩个文件:
root@OpenWrt:/lib/firmware/ath10k/QCA988X/hw2.0# ls
board.bin       firmware-2.bin
其中board.bin 来自root-ar71xx\lib\preinit中的81_load_ath10k_board_bin其内容如下:
下面的脚本主要就是将atheros需要的ART数据copy到board.bin。
在系统启动的时候会生成board.bin这个文件。

#!/bin/sh

. /lib/functions/system.sh
. /lib/ar71xx.sh

do_load_ath10k_board_bin() {
# load board.bin
case $(ar71xx_board_name) in
nbg6716)
dd if=/dev/mtdblock2 \
bs=1 skip=20480 count=2116 \
of=/tmp/ath10k-board.bin
;;
archer-c5 | \
archer-c7)
local mac
mac=$(macaddr_add $(cat /sys/class/net/eth1/address) -2)

dd if=/dev/mtdblock4 \
bs=1 skip=20480 count=6 \
of=/tmp/ath10k-board.bin
macaddr_2bin $mac >> /tmp/ath10k-board.bin
dd if=/dev/mtdblock4 \
bs=1 skip=20492 count=2104 >> /tmp/ath10k-board.bin

;;
esac
[ -f /tmp/ath10k-board.bin ] || {
return
}
cmp -s /tmp/ath10k-board.bin /lib/firmware/ath10k/QCA988X/hw2.0/board.bin || {
cp /tmp/ath10k-board.bin /lib/firmware/ath10k/QCA988X/hw2.0/board.bin
rm /tmp/ath10k-board.bin
}
}

boot_hook_add preinit_main do_load_ath10k_board_bin

同时firmware-2.bin的选择由下面的编译决定的。

define KernelPackage/ath10k/install 
$(INSTALL_DIR) $(1)/lib/firmware/ath10k/QCA988X/hw2.0
ifeq ($(CONFIG_ATH10K_STA_FW),y)
$(INSTALL_DATA) \
$(PKG_BUILD_DIR)/$(PKG_ATH10K_LINUX_FIRMWARE_SUBDIR)/ath10k/QCA988X/hw2.0/board.bin \
$(1)/lib/firmware/ath10k/QCA988X/hw2.0/
$(INSTALL_DATA) \
$(PKG_BUILD_DIR)/$(PKG_ATH10K_LINUX_FIRMWARE_SUBDIR)/main/firmware-2.bin_999.999.0.636 \
$(1)/lib/firmware/ath10k/QCA988X/hw2.0/firmware-2.bin
else
$(INSTALL_DATA) \
$(PKG_BUILD_DIR)/$(PKG_ATH10K_LINUX_FIRMWARE_SUBDIR)/ath10k/QCA988X/hw2.0/board.bin \
$(PKG_BUILD_DIR)/$(PKG_ATH10K_LINUX_FIRMWARE_SUBDIR)/ath10k/QCA988X/hw2.0/firmware-2.bin \
$(1)/lib/firmware/ath10k/QCA988X/hw2.0/
endif
endef

各位兄弟需要注意上买面的install过程,这俩个firmware-2.bin有什么区别?说明在下面。
main branch
Firmware versions 999.999.0.x.
Supports AP mode, STA mode, Ad-Hoc and P2P. But AP mode is not that well tested, especially problems with DFS.
10.1 branch
Firmware versions 10.1.x.
Branch focusing on AP mode. Supports DFS. STA mode works but not well tested. No Ad-Hoc or P2P support.
兄弟们需要注意了:至少本人选择了不同的firmware,ath10K会有不同的结果出现。
[   33.870000] device wlan1 entered promiscuous mode
[   34.880000] ath10k: firmware crashed!
[   34.880000] ath10k: hardware name qca988x hw2.0 version 0x4100016c
[   34.890000] ath10k: firmware version: 999.999.0.636
[   34.890000] ath10k: target register Dump Location: 0x0040AC14
[   34.900000] ath10k: target Register Dump
[   34.900000] ath10k: [00]: 0x4100016C 0x00000000 0x009C4521 0x00000000
[   34.910000] ath10k: [04]: 0x009C4521 0x00060330 0x00000019 0x00955A00
[   34.920000] ath10k: [08]: 0x000131E6 0x00000000 0x0040CC94 0x00000020
[   34.920000] ath10k: [12]: 0x00000000 0x00000000 0x00958360 0x0095836B
[   34.930000] ath10k: [16]: 0x809A0978 0x0040AD94 0x00439304 0x0040D074
[   34.940000] ath10k: [20]: 0x0000FFFF 0x00000000 0x0042E704 0x00000000
[   34.940000] ath10k: [24]: 0x809A0978 0x0040AD94 0x00439304 0x04C79AD3
[   34.950000] ath10k: [28]: 0x809AD1A2 0x0040ADE4 0x00439304 0x0043F68C
[   34.960000] ath10k: [32]: 0x809B5DA3 0x00000000 0x000000FE 0x004440FC
[   34.960000] ath10k: [36]: 0x00000000 0x00000000 0x00000000 0x00000000
[   34.970000] ath10k: [40]: 0x00000000 0x00000000 0x00000000 0x00000000
[   34.980000] ath10k: [44]: 0x00439BB8 0x00000000 0x00000000 0x00400000
[   34.980000] ath10k: [48]: 0x809AE0B4 0x0040AE04 0x00400000 0x0043F68C
[   34.990000] ath10k: [52]: 0x00000001 0x00000000 0x004231F0 0x00400000
[   34.990000] ath10k: [56]: 0x809AE17E 0x0040AE44 0x0040FE6C 0x0040D310
[   35.840000] br-lan: port 2(wlan0) entered forwarding state
[   38.010000] ath10k: failed to to request monitor vdev 1 stop: -11
 [   48.010000] ath10k: failed to synchronise monitor vdev 1: -145
[   48.010000] ath10k: failed to stop monitor vdev: -145
[   51.020000] ath10k: failed to request wmi monitor vdev 1 removal: -11
[   51.020000] ath10k: failed to delete monitor vdev: -11
[   51.550000] ieee80211 phy1: Hardware restart was requested
=============================================================================================
Please press Enter to activate this console.
[   11.110000] NET: Registered protocol family 10
[   11.120000] nf_conntrack version 0.5.0 (1976 buckets, 7904 max)
[   11.130000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   11.150000] Loading modules backported from Linux version master-2014-05-22-0-gf2032ea
[   11.160000] Backport generated by backports.git backports-20140320-37-g5c33da0
[   11.180000] cfg80211: Calling CRDA to update world regulatory domain
[   11.180000] cfg80211: World regulatory domain updated:
[   11.190000] cfg80211:  DFS Master region: unset
[   11.190000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[   11.200000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   11.210000] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   11.220000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[   11.230000] cfg80211:   (5170000 KHz - 5250000 KHz @ 160000 KHz), (N/A, 2000 mBm), (N/A)
[   11.230000] cfg80211:   (5250000 KHz - 5330000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[   11.240000] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[   11.250000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[   11.260000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[   11.360000] ieee80211 phy0: Atheros AR9550 Rev:0 mem=0xb8100000, irq=47
[   11.370000] ath10k_pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x101fffff 64bit]
[   11.380000] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
[   11.410000] cfg80211: Calling CRDA for country: US
[   11.410000] cfg80211: Regulatory domain changed to country: US
[   11.420000] cfg80211:  DFS Master region: FCC
[   11.420000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[   11.430000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 3000 mBm), (N/A)
[   11.440000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 1700 mBm), (N/A)
[   11.450000] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz), (N/A, 2300 mBm), (0 s)
[   11.460000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 3000 mBm), (N/A)
[   11.470000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 4000 mBm), (N/A)
[   11.690000] ath10k: pci irq legacy irq_mode 0 reset_mode 0
[   11.700000] found fw version 10.1.467.2-1
[   11.700000] found fw timestamp 1391440175
[   11.700000] found otp image ie (6917 B)
[   11.710000] found fw image ie (190250 B)
[   11.710000] found firmware features ie (1 B)
[   11.720000] Enabling feature bit: 1
[   11.720000] Enabling feature bit: 2
[   11.720000] #########ath10k_core_start###########
[   11.810000] ath10k: otp stream is empty, using board.bin contents
[   12.640000] ath10k: qca988x hw2.0 (0x4100016c, 0x043202ff) fw 10.1.467.2-1 api 2 htt 2.1
[   12.640000] @@@@@@@@@@@@@@@ qca988x hw2.0 (0x4100016c, 0x043202ff) fw 10.1.467.2-1 api 2 htt 2.1
[   13.180000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   13.240000] xt_time: kernel timezone is -0000
[   13.250000] PPP generic driver version 2.4.2
[   13.250000] NET: Registered protocol family 24
procd: - init complete -
[   20.750000] eth1: link up (1000Mbps/Full duplex)
[   20.750000] device eth1 entered promiscuous mode
[   20.770000] br-lan: port 1(eth1) entered forwarding state
[   20.770000] br-lan: port 1(eth1) entered forwarding state
[   20.840000] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   21.770000] ---------------ath10k_start-------------------
[   22.190000] #########ath10k_core_start###########
[   22.370000] ath10k: otp stream is empty, using board.bin contents
[   22.660000] eth0: link up (1000Mbps/Full duplex)
[   22.770000] br-lan: port 1(eth1) entered forwarding state
[   23.280000] @@@@@@@@@@@@@@@ qca988x hw2.0 (0x4100016c, 0x043202ff) fw 10.1.467.2-1 api 2 htt 2.1
[   23.290000] -------------ath10k_config---------------
[   23.300000] mac config channel 5180MHz flags 0x120 radar 0
[   23.310000] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[   23.330000] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   23.690000] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   23.720000] device wlan0 entered promiscuous mode
[   23.720000] br-lan: port 2(wlan0) entered forwarding state
[   23.730000] br-lan: port 2(wlan0) entered forwarding state
[   23.980000] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   24.470000] wlan1: authenticate with 50:bd:5f:15:68:b8
[   24.480000] -------------ath10k_config---------------
[   24.480000] -------------ath10k_config---------------
[   24.490000] mac config channel 5785MHz flags 0x100 radar 0
[   24.500000] -------------ath10k_config---------------
[   24.500000] -------------ath10k_config---------------
[   24.510000] ===============ath10k_vdev_start============
[   24.520000] wlan1: send auth to 50:bd:5f:15:68:b8 (try 1/3)
[   24.530000] wlan1: authenticated
[   24.540000] wlan1: associate with 50:bd:5f:15:68:b8 (try 1/3)
[   24.590000] wlan1: RX AssocResp from 50:bd:5f:15:68:b8 (capab=0x401 status=0 aid=1)
[   24.600000] -------------ath10k_config---------------
[   24.600000] wlan1: associated
[   24.610000] IPv6: ADDRCONF(NETDEV_CHANGE): wlan1: link becomes ready
[   24.630000] wlan1: Limiting TX power to 27 (30 - 3) dBm as advertised by 50:bd:5f:15:68:b8
[   25.730000] br-lan: port 2(wlan0) entered forwarding state

openwrt ath10k 相关汇总相关推荐

  1. 1.Linux中超频及cpufreq相关汇总

    1.蛤蟆笔记UNIX高级编程--cpufreq相关汇总 其中一些内容摘自网络,此处蛤蟆根据自己阅读习惯和理解进行了一些汇总整理. 随着 energyefficient computing 和 perf ...

  2. Scoop 相关汇总

    标签:windows:scoop Scoop 相关汇总 ◇ Scoop 介绍 * 软件包管理工具 软件包管理工具集搜索.下载.安装.更新软件于一体,可以帮用户一行命令安装 git 工具.java 环境 ...

  3. 免费教材丨第58期:机器学习相关汇总资料大放送(中)

    小编说  上期为大家发放的教材为:经过整理的机器学习相关的经典书籍及经典论文,本期将继续为大家发放哦! 本期教材 本期为大家发放的教材为:经过整理的机器学习相关的教学视频和讲义,可能会跟之前的有重复, ...

  4. OpenWrt 系列教程汇总

    转载地址:http://www.openwrt.org.cn/bbs/thread-60-1-1.html OpenWrt FAQ https://dev.openwrt.org.cn/wiki/fa ...

  5. OpenWrt系列教程汇总

    OpenWrt FAQ https://dev.openwrt.org.cn/wiki/faqs 编译 OpenWrt编译教程 完全新手教程:openwrt编译全过程(sse) 直接编译出带中文的op ...

  6. 面试题简答题——操作系统相关汇总

    目录 1.进程与线程 2.进程间通信方式 3. 线程间的通信方式 4. 操作系统中程序的内存结构 5.fork 和 vfork 6.并发(concurrency)和并行(parallelism) 7. ...

  7. 【备份】r6300v2梅林,过度,dd-wrt,openwrt等相关固件

    路由器出了点问题, 网上好多资源都失效了.好不容易搜到的集中了一下备份.可能还有r6300v2 的用户有这样的需求. 因最新版本的梅林7.9.1设置了处理器亲和性,导致nat性能只跑在1个核心,极限速 ...

  8. 斐讯db2_斐讯N1盒子OpenWRT系统相关问答

    1.旁路由是什么,有什么优缺点? 帖子里已经说过了,这里不再赘述 形象的比喻就是, 相当于抽水机旁边又加了一个小抽水机,水流速度会快一点. 恩山帖子:<[2019.05.20-eMMC刷入OP系 ...

  9. 【更新中】Unity 2020 发行说明(XR相关汇总)

    查阅发行说明是了解Unity版本变化的有效手段.如果当前项目使用的Unity存在一些问题,那么在新的版本中有可能会得到解决:如果项目尝试使用一些新的功能,通过阅读发行说明,或许能够发现新功能目前是否存 ...

最新文章

  1. 确定整数的平方根是否为整数的最快方法
  2. 温州大学《机器学习》课程课件(二)(回归)
  3. 大学计算机专业高考听力,高考英语听力测试对考生听力策略反拨作用的研究
  4. 图论与java_算法笔记_150:图论之双连通及桥的应用(Java)
  5. pytorch实现数据增强的原理
  6. python celery应用场景_Celery使用背景与功能概要
  7. 我的WCF之旅(4):WCF中的序列化[下篇]
  8. mysql 排序速度_MySQL排序速度慢而且可能不稳定
  9. 【软件工程实践 · 团队项目】 第一次作业
  10. css js 代码怎么隐藏,如何仅使用js代码(和css)隐藏元素?
  11. android转usb工具,绿联Type-C转Micro usb数据线,Type-C转安卓接口转换线
  12. Codeforces348B Apple Tree DFS
  13. ISO/IEC 27002:2022中文版
  14. foobar2000 用了那么久 才学会设置 好音质设置
  15. 非线性方程-概念应用及解法
  16. 开发一个简单的Mac应用
  17. 小米笔记本Pro ubuntu 18.04安装显卡驱动
  18. Excel数据分析常用函数②——统计函数(sumproduct,sumif,sumifs,count,countif,countifs,counta…)
  19. oculusHome 无法登录提示显示错误 ovr....
  20. 如何进行电脑远程桌面连接

热门文章

  1. 数据挖掘BUC计算冰山立方体及Python实现
  2. 平台经济中国案例研究平台经济、系统性思考结合个人陈述的分析(Platform-Economics)
  3. 产品经理的核心竞争力是什么?为什么?
  4. 1dB压缩点和三阶交调点、相位差与延时
  5. 软件测试基础-自动化测试技术
  6. 华为OD机试 - 箱子之字形摆放
  7. android开发笔记之多媒体—图形图像处理
  8. 小学生用哪种护眼灯好?四款平价护眼台灯
  9. 《网络基础》课程综合性实验(pkt文件请见我的资源)
  10. 数据结构复习题(绪论)