zoukankan      html  css  js  c++  java
  • openwrt下载编译

    1. 安装依赖包:

    yum install autoconf binutils bison bzip2 flex gawk gcc gcc-c++ gettext make ncurses-devel patch unzip wget zlib-devel

    2. 下载openwrt源码, 更新:

    svn checkout svn://svn.openwrt.org/openwrt/trunk

    cd trunk

    ./scripts/feeds update -a

    ./scripts/feeds install -a

       若update过程中出现error: SSL certificate problem, verify that the CA cert is OK. Details。出现这样的情况是因为git clone默认采用SSL认证的时候,本地找不到对应证书,所以可以通过关掉验证来解决这一问题,
    就是在git clone命令前面加上:
    env GIT_SSL_NO_VERIFY=true  
    或者export GIT_SSL_NO_VERIFY=true

    3. Make menuconfig配置:

    Target System (Atheros AR7xxx/AR9xxx)

    Target Profile (TP-LINK TL-WR841N/ND)  --->

    LuCI—>Collections—– <*> luci 添加Luci

    4. Make V=99

    在编译过程中可能会出现如下错误:

    make[4]: Entering directory `/xxx/openwrt/build_dir/host/patch-2.7.1'
    make[4]: *** No targets specified and no makefile found.  Stop.

    这是需要安装xz。xz的安装如下:

    1. 下载xz-5.0.5.tar.bz2

    2. 解压文件。tar -jxvf  xz-5.0.5.tar.bz2

    3. ./configure --disable-shared

    4. make -C po update-po

    5. make install

    安装完成之后,将build_dir文件夹删除,然后重新编译openwrt

  • 相关阅读:
    正则表达式 \n和\r
    【转】单循环赛赛程安排算法研究
    Iterator效率
    Map获取键值
    PL/SQL语法详解(pdf)
    Iterator模式
    测试js函数的静态页面
    【转】java的一些基本概念
    Oracle 11g用户解锁
    oracle官方文档
  • 原文地址:https://www.cnblogs.com/chenxuelian/p/4717225.html
Copyright © 2011-2022 走看看