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

  • 其他
相关推荐
groundhappy3 小时前
idalib安装和codex ida-mcp配置
linux·开发语言·python
通信小小昕3 小时前
Ubuntu 26.04 中文输入法安装
linux·运维·ubuntu
张小姐的猫5 小时前
【Linux】网络编程 —— HTTP协议(上)
linux·运维·服务器·网络·http·单例模式·策略模式
栩栩云生5 小时前
AI 写代码犯的错,早被写进了错题集
linux·安全·ai编程
imc.116 小时前
linux基础IO
linux·运维·服务器
BelongPanda8 小时前
Linux Nginx 纯手动 Let‘s Encrypt 泛域名证书配置教程
linux·nginx
酷可达拉斯8 小时前
Linux操作系统-shell编程(0)
linux·运维·服务器·python·云计算
2301_777998349 小时前
Linux中断机制:操作系统如何高效运行
linux·运维·服务器
yunwei379 小时前
eBPF 教程:检查 exec 后真正安装的可执行镜像
linux·开源
笑锝没心没肺9 小时前
yum update 报错:GPG key retrieval failed: [Errno 14] HTTPS Error 404 - Not Found
linux·运维·服务器