openwrt源码编译

  • 下载openwrt源码

git clone https://github.com/openwrt/chaos_calmer.git // 官方下载地址

当前我们基于15.05版本开发,如果开发者想用最新的OpenWRT系统,可以下载 https://github.com/openwrt/openwrt.git

git clone https://github.com/Ying-Yun/openwrt.git

  • 源代码主体结构

/config : 菜单设置配置文件

/include : 文件生成配置文件

/package : 用于文件生成和菜单配置的软件包

/scripts : 构建期间用到的各类脚本文件

/target : 构建imagebuilder,内核,sdk和工具链所需的生成文件和配置

/toolchain : 构建工具链所需的生成文件和配置

/tools : 在构建过程中使用的各种工具

  • 如果刷完系统,发现ssh无法远程登录,那么修改防火墙参数即可,vi /etc/config/firewall
config rule
 option name 'Allow-SSH'
 option target ACCEPT
 option src 'wan'
 option dest_port '22'
 option proto 'tcp'
 option family 'ipv4'
config rule
 option name 'Allow-http'
 option src wan
 option dest_port 80
 option target ACCEPT
 option proto tcp

修改源码的防火墙

/home/luke/openwrt_CC_mt76xx_zhuotk_source/package/network/config/firewall/files

  • 其他

相关推荐

  1. openwrt编译

    2024-01-02 18:28:01       43 阅读
  2. [rk3308]编译

    2024-01-02 18:28:01       37 阅读
  3. Windows 编译 MariaDB

    2024-01-02 18:28:01       34 阅读

最近更新

  1. TCP协议是安全的吗?

    2024-01-02 18:28:01       16 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-01-02 18:28:01       16 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-01-02 18:28:01       15 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-01-02 18:28:01       18 阅读

热门阅读

  1. 抓取数据技巧全解析

    2024-01-02 18:28:01       49 阅读
  2. pandas数据结构Series, DataFrame的索引方式总结

    2024-01-02 18:28:01       42 阅读
  3. Elasticsearch 优化常用思路

    2024-01-02 18:28:01       35 阅读
  4. 安卓中ViewPager组件的使用场景与优劣分析

    2024-01-02 18:28:01       29 阅读
  5. git环境配置

    2024-01-02 18:28:01       38 阅读
  6. Docker镜像制作之ZLMediakit镜像制作

    2024-01-02 18:28:01       41 阅读
  7. border设置小于1px,在ios上面不显示的问题

    2024-01-02 18:28:01       36 阅读
  8. 常见的排序算法解析实现

    2024-01-02 18:28:01       29 阅读
  9. 利用进制转换(轻松过期末考试)

    2024-01-02 18:28:01       39 阅读