Simple compilation without external packages, similar to the official build please find by link below:
https://drive.google.com/drive/folders/1lsYUxoyvi-zqXln8qlYRa4Y5rIMDfy-P
- W25N01KV spi-nand supported in the firmware (OOB=64). openwrt/openwrt#16669
- W25N01KV spi-nand supported in the OpenWrt U-Boot (ubootmod). 'ubootmod'firmware type can be installed to the router with Winbond spi-nand. Patch has been merged from the SNAPSHOT. https://forum.openwrt.org/t/openwrt-support-for-xiaomi-ax3000t/180490/1934
- Anti-Bootloop (nvram fix). Fix work with u-boot variables for the stock u-boot. The new version of the stock u-boot has an updated algorithm for multi-slot switching. In some cases, the router may enter a boot loop after installing OpenWrt. https://forum.openwrt.org/t/openwrt-support-for-xiaomi-ax3000t/180490/1761
- "kernel: Fix section mismatch in ubi" patch has been merged from the SNAPSHOT. https://github.com/openwrt/openwrt/commit/089c25f466dd496d165a02ab026fe55dbb802a8e
- Fix memory corruption during fq dma init. Patch has been merged from the SNAPSHOT. https://github.com/openwrt/openwrt/blob/master/target/linux/generic/pending-6.6/735-net-ethernet-mtk_eth_soc-fix-memory-corruption-durin.patch
- Continue to support dts configuration for '112M NMBM' type firmware (as ImmortalWrt). You can find MTK U-Boot for this firmware in the Google Drive by the link above.
- List of packages in the build were changes: wget-ssl, ipset and ip-full were added; dnsmasq replaced by the dnsmasq-full; l2tp protocol supports added
AN8855 support not included in current patch!
- Download OpenWrt source code to the local disk:
wget -t5 --timeout=20 --no-check-certificate -O openwrt-23.05.5.zip https://github.com/openwrt/openwrt/archive/refs/tags/v23.05.5.zip
unzip -q openwrt-23.05.5.zip
rm -f openwrt-23.05.5.zip
- Navigate to the downloaded source directory:
cd openwrt-23.05.5
- Get patch from git:
git clone https://github.com/Ser9ei/xiaomi_ax3000t-openwrt23_patch
- Execute patch:
patch -p1 -N < xiaomi_ax3000t-openwrt23_patch/xiaomi_ax3000t-dts.patch
- fix permissions to the bootcount file (see issue from the SNAPSHOT https://github.com/openwrt/openwrt/commit/cb86e313d3ad6faf894b626bdd311fb106223ddf)
chmod 755 target/linux/mediatek/filogic/base-files/etc/init.d/bootcount
- Check erros
- Copy config file:
cp xiaomi_ax3000t-openwrt23_patch/openwrt.config .config
- Build firmware from the patched sources
see more details by the link: https://openwrt.org/docs/guide-developer/toolchain/use-buildsystem
- Update the feed:
./scripts/feeds update -a
./scripts/feeds install -a
- Configure the firmware image:
make menuconfig
- Build the firmware image:
make -j$(($(nproc)+1)) V=-1