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

  • 其他
相关推荐
Janspran19 分钟前
嵌入式linux学习 -- 进程和线程
linux·运维·学习
Cosmoshhhyyy1 小时前
linux远程部署dify和mac本地部署dify
linux·运维·macos
路多辛3 小时前
Debian新一代的APT软件源配置文件格式DEB822详解
linux·运维·ubuntu·debian
-VE-3 小时前
Linux线程控制
linux
驱动探索者3 小时前
USB ADB 简介
linux·adb·驱动·usb
dessler4 小时前
Hadoop HDFS-部署和基本操作
linux·运维·hdfs
风静雪冷5 小时前
find命令解读
linux
小米里的大麦5 小时前
026 inode 与软硬链接
linux
₯㎕星空&繁华7 小时前
Linux-地址空间
linux·运维·服务器·经验分享·笔记
小米里的大麦7 小时前
023 基础 IO —— 重定向
linux