MTK7688 固件编译步骤(从无到有)

linkit-smart-feed

This feeds holds the SDK wifi driver and the config/meta package for the LinkIt Smart 7688 (Duo)

Note: LinkIt Smart 7688 uses the MediaTek proprietary Wi-Fi driver. While OpenWrt Chaos Calmer is evolving, only selected Linux kernel versions of it are supported by the Wi-Fi driver (3.18.21 ~ 3.18.44). If you are looking for a non-proprietary Wi-Fi driver, the mt76 project would be a reference of the choice.

Build the firmware from sources

This section describes how to build the firmware for LinkIt Smart 7688 and LinkIt Smart 7688 Duo from source codes.

Host environment

The following operations are performed under a Ubuntu LTS 14.04.3 environment. For a Windows or a Mac OS X host computer, you can install a VM for having the same environment:

  • Download Ubuntu 14.04.3 LTS image from http://www.ubuntu.com
  • Install this image with VirtualBox (http://virtualbox.org) on the host machine. 50GB disk space reserved for the VM is recommanded

步骤

在Ubuntu系统中,键入相关命令:

  1. 安装构成固件所需要的安装包:

    $ sudo apt-get install git g++ make libncurses5-dev subversion libssl-dev gawk libxml-parser-perl unzip wget python xz-utils
    
  2. 下载OpenWrt CC 源码:


  $ git clone https://github.com/openwrt/chaos_calmer.git openwrt
$ cd openwrt
$ git tag -l
$ git checkout tags/v15.05.1 -b linkit7688
$ 
  1. Prepare the default configuration file for feeds:

    $ cd openwrt
    $ cp feeds.conf.default feeds.conf
    
  2. Add the LinkIt Smart 7688 feed:

    $ echo src-git linkit https://github.com/MediaTek-Labs/linkit-smart-7688-feed.git >> feeds.conf
    
  3. Update the feed information of all available packages for building the firmware:

    $ ./scripts/feeds update
    
  4. Install all packages:

    $ ./scripts/feeds install -a
    
  5. Prepare the kernel configuration to inform OpenWrt that we want to build an firmware for LinkIt Smart 7688:

    $ make menuconfig
    
    • Select the options as below:
      • Target System: Ralink RT288x/RT3xxx
      • Subtarget: MT7688 based boards
      • Target Profile: LinkIt7688
    • Save and exit (use the deafult config file name without changing it)
  6. Start the compilation process:

    $ make V=99
    
  7. After the build process completes, the resulted firmware file will be under bin/ramips/openwrt-ramips-mt7688-LinkIt7688-squashfs-sysupgrade.bin. Depending on the H/W resources of the host environment, the build process may take more than 2 hours.

  8. You can use this file to do the firmware upgrade through the Web UI. Or rename it to lks7688.img for upgrading through a USB drive.

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值