下载最新的固件源码
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/