当前位置: 首页 > news >正文

2024年8月份编译Openwrt系统基础

概述:
本文档记录openwrt系统的编译过程,以备后续再用,技术支持与指导!

1.编译环境
环境需要Linux,我使用的环境是WSL2、Ubuntu 20.04 

2.安装编译必须的依赖(wsl、linux)
WSL2:Build system setup WSL
编译该系统所需要的依赖库:Build system setup

Debian / Ubuntu
Ubuntu20.04.

sudo apt update
sudo apt install build-essential clang flex bison g++ gawk gcc-multilib g++-multilib \
gettext git libncurses5-dev libssl-dev python3-distutils rsync unzip zlib1g-dev \
file wget

我所采用的Older advice:

sudo apt update
sudo apt install build-essential ccache ecj fastjar file g++ gawk \
gettext git java-propose-classpath libelf-dev libncurses5-dev \
libncursesw5-dev libssl-dev python python2.7-dev python3 unzip wget \
python3-distutils python3-setuptools python3-dev rsync subversion \
swig time xsltproc zlib1g-dev

3. git openwrt系统项目 ( 在KX上网模式下 )
3.1 openwrt版本选择
可以通过访问OpenWrt的github官网,查看其tab标签或在执行完git clone https://git.openwrt.org/openwrt/openwrt.git命令后,使用cd openwrt/命令进入源码目录,然后使用git tag命令来查看分支版本。

下载 openwrt版本 注意:git openwrt系统项目 ( 在科学上网模式下 )

首先:openwrt版本选择

git clone https://git.openwrt.org/openwrt/openwrt.git
git clone -b v23.05.0 https://github.com/openwrt/openwrt.git
git clone -b v22.03.3 https://github.com/openwrt/openwrt.git
git clone -b 22.03 --single-branch https://github.com/Lienol/openwrt  选择这个快
git clone --depth=1 https://github.com/hanwckf/immortalwrt-mt798x.git

加了CMCC RAX3000M 

git clone https://github.com/lingfengm22/RAX3000emcc
git clone https://github.com/lingfengm22/mt798X-ax6000-ax3000


源地址

https://github.com/AngelaCooljx/immortalwrt

git openwrt系统:

git clone https://github.com/lingfengm22/mt798X-ax6000-ax3000

4. 编译前准备
切换到openwrt目录下,运行

./scripts/feeds update -a
./scripts/feeds install -a

倘若有报错,重新audio install

5. 指定定制openwrt系统配置

make menuconfig

之后有个ui界面进行选择调整,编译前一般可以对源码进行一些修改,如修改入口ip等,以达到更好的使用效果。可以搜索相关文章进行设置。

http://www.lryc.cn/news/423922.html

相关文章:

  • Vue3+vite+ts 项目使用mockjs
  • 动态规划(二)——例题
  • Node.js中判断是文件还是文件夹的多种方法
  • idea 如何打war包
  • 米联客-FPGA程序设计Verilog语法入门篇连载-15 Verilog语法_跨时钟域设计
  • gradio 对话界面实现支持图片、视频正常显示
  • 催收业务怎么提高接通率
  • 动态生成sitemaps和robots.txt文件:提升SEO与网站可爬性
  • LeetCode 第二十五天 2024.8.12
  • Elasticsearch 全文查询详解
  • 20240810在荣品RK3588S-AHD开发板的预置Android13下挂载exFAT的256GB的TF卡
  • java基础进阶——log日志、类加载器、XML、单元测试、注解、枚举类
  • 《向量数据库指南》——控制Chatbot对话内容:Dopple AI的创新实践与用户体验优化
  • 构建实时数据仓库:流式处理与实时计算技术解析
  • python算术表达式遗传算法
  • net.sf.jsqlparser.statement.select.SelectItem
  • lua匹配MAC地址 正则表达式
  • Chainlit快速实现AI对话应用并将聊天数据的AWS S3 和 Azure Blob云服务中
  • 浅谈性能优化(基于C++)
  • Python 报错:ModuleNotFoundError: No module named ‘Crypto‘
  • UE(User Equipment) 和 UA(User Agent)
  • 视觉SLAM ch3补充——在Linux中配置VScode以及CMakeLists如何添加Eigen库
  • 开关电源:优化电子产品中的能源使用
  • Java语言程序设计——篇十三(2)
  • python结合csv和正则实现条件筛选数据统计分数
  • Ubuntu系统的基础操作和使用|Linux|安装|网络连接|更新与升级系统|系统维护|故障排除|监控|桌面环境|虚拟机|快捷键
  • day 38
  • 352532
  • Day.38 | 1143.最长公共子序列 1035.不相交的线 53.最大子序和 392.判断子序列
  • pytorch 3 计算图