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系统项目 ( 在科学上网模式下 )
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等,以达到更好的使用效果。可以搜索相关文章进行设置。

  • 2
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

翎风世界

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值