美文网首页
mt7628 源码编译

mt7628 源码编译

作者: only_cherry | 来源:发表于2018-06-30 14:30 被阅读0次

    1.linux环境

    建议使用:Ubuntu16.04,使用的Ubuntu16.04,搭配的VMware虚拟机。

    2.安装依赖库:

    sudo apt-get install g++s
    sudo apt-get install libncurses5-dev
    sudo apt-get install zlib1g-dev
    sudo apt-get install bison
    sudo apt-get install flex
    sudo apt-get install unzip
    sudo apt-get install autoconf
    sudo apt-get install gawk
    sudo apt-get install make
    sudo apt-get install gettext
    sudo apt-get install gcc
    sudo apt-get install binutils
    sudo apt-get install patch
    sudo apt-get install bzip2
    sudo apt-get install libz-dev
    sudo apt-get install asciidoc
    sudo apt-get install subversion
    sudo apt-get install libssl-dev
    

    可以一个一个的手动安装,也可以将这些命令写入shell脚本中,方法如下:
    创建一个文件:touch env.sh
    修改文件权限:chmod 777 env.sh
    使用vim env.sh打开该文件输入如下内容:

    #!/bin/bash
    sudo apt-get install g++
    sudo apt-get install libncurses5-dev
    sudo apt-get install zlib1g-dev
    sudo apt-get install bison
    sudo apt-get install flex
    sudo apt-get install unzip
    sudo apt-get install autoconf
    sudo apt-get install gawk
    sudo apt-get install make
    sudo apt-get install gettext
    sudo apt-get install gcc
    sudo apt-get install binutils
    sudo apt-get install patch
    sudo apt-get install bzip2
    sudo apt-get install libz-dev
    sudo apt-get install asciidoc
    sudo apt-get install subversion
    sudo apt-get install libssl-dev
    wq保存退出
    

    ./env.sh执行shell脚本

    3.下载OpenWrt源码:

    下载源码之前先创建一个目录

    mkdir mt7628
    chmod 777 mt7628
    cd mt7628
    

    使用如下命令下载 源码:

    git clone https://git.openwrt.org/openwrt.git
    (其他版本可到官网上找:https://git.openwrt.org/)
    

    下载完成后进入openwrt项目的目录执行下面两条命令

    ./scripts/feeds update -a 
    ./scripts/feeds install -a
    

    4.make menuconfig

    在控制台生成的图形化配置窗口,进入之后就能配置自己的固件了,对应固件的硬件信息,标准软件包。

    5.编译

    make V=99 -j8

    相关文章

      网友评论

          本文标题:mt7628 源码编译

          本文链接:https://www.haomeiwen.com/subject/orptuftx.html