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

  • 其他
相关推荐
_lizhiqiang5 分钟前
联想拯救者R9000P 网卡 Realtek 8852CE Ubuntu/Mint linux 系统睡眠后,无线网卡失效
linux·运维·ubuntu·r9000p·无线网卡·8852ce
心随_风动1 小时前
SUSE Linux 发行版全面解析:从开源先驱到企业级支柱
linux·运维·开源
西北大程序猿2 小时前
单例模式与锁(死锁)
linux·开发语言·c++·单例模式
酷爱码3 小时前
在 Linux 中修改 Apache HTTP Server(httpd)默认端口的完整指南
linux·http·apache
jiunian_cn3 小时前
【Linux】Linux权限
linux·服务器·mysql
betazhou3 小时前
有没有 MariaDB 5.5.56 对应 MySQL CONNECTION_CONTROL 插件
linux·数据库·mysql·oracle·mariadb
烟雨书信4 小时前
Linux中MySQL的逻辑备份与恢复
linux·运维·mysql
wkj0014 小时前
QuaggaJS 配置参数详解
java·linux·服务器·javascript·quaggajs
藥瓿亭4 小时前
K8S认证|CKS题库+答案| 5.日志审计
linux·运维·docker·云原生·容器·kubernetes·cka
coder_lorraine5 小时前
【Linux系列】Linux用户大揭秘:从“公寓住户”到“社区管理员”的奇幻之旅
linux