2024年4月15日构建多分支 可以编译7981芯片的路由器 此项目源于ImmortalWrt,源代码来自 https://github.com/hanwckf/immortalwrt-mt798x.git
默认IP: http://192.168.1.7 or http://immortalwrt.lan
用户名: root 密码: none
-
要使用这个项目进行构建,首选ubuntu 20.04 lts。你需要使用amd64架构上的代码,至少有4gb的内存和25 gb的可用磁盘空间。确保互联网是可访问的。
-
安装依赖
1.使用普通用户身份 2.安装依赖 方式一:
sudo apt update -y sudo apt full-upgrade -y sudo apt install -y ack antlr3 asciidoc autoconf automake autopoint binutils bison build-essential \ bzip2 ccache clang clangd cmake cpio curl device-tree-compiler ecj fastjar flex gawk gettext gcc-multilib \ g++-multilib git gperf haveged help2man intltool lib32gcc-s1 libc6-dev-i386 libelf-dev libglib2.0-dev \ libgmp3-dev libltdl-dev libmpc-dev libmpfr-dev libncurses5-dev libncursesw5 libncursesw5-dev libreadline-dev \ libssl-dev libtool lld lldb lrzsz mkisofs msmtp nano ninja-build p7zip p7zip-full patch pkgconf python2.7 \ python3 python3-pip python3-ply python-docutils qemu-utils re2c rsync scons squashfs-tools subversion swig \ texinfo uglifyjs upx-ucl unzip vim wget xmlto xxd zlib1g-dev
方式二:
sudo bash -c 'bash <(curl -s https://build-scripts.immortalwrt.eu.org/init_build_environment.sh)'注意:
- 使用非root用户
- 路径或者文件名不能有空格或者非ascii字符
- 有问题参照以下文档 https://openwrt.org/docs/guide-developer/build-system/install-buildsystem
- 拉取源码
git clone --depth=1 https://github.com/reflander/flawrt.git- 转到文件夹
cd flawrt- 更新安装包
./scripts/feeds update -a- 安装包
./scripts/feeds install -a-
从
defconfig文件夹复制配置文件并重命名为.config# MT7981 cp -f defconfig/mt7981-ax3000.config .config # MT7986 cp -f defconfig/mt7986-ax6000.config .config # MT7986 256M Low Memory cp -f defconfig/mt7986-ax6000-256m.config .config # x86 cp -f defconfig/x86.config .config -
选择您偏好的工具链、目标系统和固件包的配置
make menuconfig- 构建您的固件。这将下载所有源代码,构建交叉编译工具链,然后为您的目标系统交叉编译 GNU/Linux 内核和所有选择的应用程序。
make V=s -j$(nproc)- 清除全部构建环境、回复到源代码状态
make distclean主存储库使用多个子存储库来管理不同类别的软件包。所有软件包均通过 ImmortalWrt 软件包管理器 opkg 安装。如果您想开发 Web 界面或将软件包移植到 ImmortalWrt,请在下面找到相应的存储库。
- LuCI Web 界面:现代化和模块化的界面,可通过 Web 浏览器控制设备。
- ImmortalWrt 软件包:移植软件包的社区存储库。
- OpenWrt 路由:专注于(网状)路由的软件包。
有关受支持设备的列表,请参阅OpenWrt 硬件数据库
- 支持聊天: group @ctcgfw_openwrt_discuss on Telegram.
- 支持聊天: group #immortalwrt on Matrix.
ImmortalWrt is licensed under GPL-2.0-only.
![]() |
![]() |

