编译环境:
apt install gcc g++ binutils patch bzip2 flex bison make autoconf gettext texinfo unzip sharutils subversion libncurses5-dev ncurses-term zlib1g-dev gawk
使用普通用户编译,编译成功的文件位于bin/target目录下。
useradd -m -s /bin/bash openwrt
su -l openwrt
git clone --single-branch --depth=1 https://github.com/hanwckf/immortalwrt-mt798x.git
cd immortalwrt-mt798x
./scripts/feeds update -a
./scripts/feeds install -a
cp defconfig/mt7986-ax6000.config .config
#t7
#cp defconfig/mt7981-ax3000.config .config
make menuconfig
make -j 2
远程更新后本地更新并二次编译:
git pull
./scripts/feeds update -a
./scripts/feeds install -a
#有增减base system内置命令需clean
make clean
make -j 2
替换iproute2及添加mdns-repeater:
cd
git clone --single-branch --depth=1 https://github.com/immortalwrt/immortalwrt.git
git clone --single-branch --depth=1 https://github.com/immortalwrt/packages.git
mv immortalwrt-mt798x/package/network/utils/iproute2 ./
mv immortalwrt/package/network/utils/iproute2 immortalwrt-mt798x/package/network/utils/
mv packages/net/mdns-repeater immortalwrt-mt798x/package/network/
标签:none
大佬可以分享一下固件吗,谢谢。
恩山有很多。