当前位置:   article > 正文

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

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.

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

我所采用的Older advice:

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

3. git openwrt系统项目 ( 在科学上网模式下 )
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
  1. git clone -b v23.05.0 https://github.com/openwrt/openwrt.git
  2. 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目录下,运行

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

倘若有报错,重新audio install

5. 指定定制openwrt系统配置

make menuconfig

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

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/神奇cpp/article/detail/960928
推荐阅读
相关标签
  

闽ICP备14008679号