编译 AR9271 wifi 网卡固件 htc_9271.fw

下载最新的固件源码
https://github.com/qca/open-ath9k-htc-firmware/archive/1.4.0.zip
得到 open-ath9k-htc-firmware-1.4.0.zip 解压 也可以直接  clone 项目 git clone https://github.com/qca/open-ath9k-htc-firmware.git

编译方法
How do I build it?
------------------
You're in for a treat.
* Install the cmake build tool (http://www.cmake.org/).
  Major distributions have packages for this.
* For FreeBSD - install gmake and wget.
* You first have to build the toolchain.
  * Linux:
  $ make toolchain
  * FreeBSD:
  $ gmake toolchain
  (Yes, I made this work on FreeBSD as well.)
* Next, build the firmware.
  * Linux:
  $ make -C target_firmware
  * FreeBSD:
  $ gmake -C target_firmware
You will end up with two .fw files - one for the AR7010 and one for
the AR9271 in the target_firmware directory.

手猾了一下,打了一个 make
然后等了半个小时,又是下载,又是安装的,没用管它。

安装 cmake
apt-get install cmake 安装不上,使用编译安装,因为我之前是装过 mysql5.5

cmake 安装方法

先装 bison
tar zxvf bison-2.5.tar.gz
cd bison-2.5
./configure
make
make install

装 cmake
tar zxvf cmake-2.8.6.tar.gz
cd cmake-2.8.6
./bootstrap
make
make install

回到 open-ath9k-htc-firmware-1.4.0
make -C target_firmware

得到生成的固件
cp build/k2/htc_*.fw build/magpie/htc_*.fw .
make:离开目录“/home/open-ath9k-htc-firmware-1.4.0/target_firmware”
./target_firmware/htc_9271.fw

将 htc_9271.fw 上传到 ARM 开发板 lib/firmware/

 

转载于:https://www.cnblogs.com/ningci/p/6824768.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值