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

  • 其他
相关推荐
arvin_xiaoting30 分钟前
#zsh# #Ubuntu# 一键安装zsh、oh-my-zsh、常用插件
linux·ubuntu·elasticsearch
脏脏a40 分钟前
【Linux】Linux工具漫谈:yum 与 vim,高效操作的 “左膀右臂”
linux·运维·服务器
APItesterCris1 小时前
构建弹性数据管道:利用淘宝商品 API 进行流式数据采集与处理
linux·数据库·windows
艾莉丝努力练剑1 小时前
【C++STL :stack && queue (一) 】STL:stack与queue全解析|深入使用(附高频算法题详解)
linux·开发语言·数据结构·c++·算法
kyle~1 小时前
计算机系统---CPU的进程与线程处理
linux·服务器·c语言·c++·操作系统·计算机系统
NiKo_W2 小时前
Linux 进程通信——基于责任链模式的消息队列
linux·服务器·消息队列·责任链模式·进程通信
云飞云共享云桌面2 小时前
广东某模具制造工厂用一台云服务器供8个研发设计同时用
linux·运维·服务器·网络·自动化·制造
江公望3 小时前
Ubuntu /usr/include/x86_64-linux-gnu目录的作用浅谈
linux·ubuntu
报错小能手3 小时前
linux学习笔记(31)网络编程——TCP time_wait机制
linux·笔记·学习
Raymond运维3 小时前
MySQL源码编译安装
linux·数据库·mysql