zoukankan      html  css  js  c++  java
  • 编译 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/

  • 相关阅读:
    Linux 设备驱动 Edition 3(中文版)
    内核和用户空间共享内存的实现例程proc和mmap
    mmap的详细使用(用户空间)
    使用 I/O 内存from LDD3
    关于strcpy、memset、memcpy的使用详解
    get_free_page 和其友
    Linux调试技术介绍
    关于信息时代的学习
    [恢]hdu 1196
    [恢]hdu 1157
  • 原文地址:https://www.cnblogs.com/ningci/p/6824768.html
Copyright © 2011-2022 走看看