Skip to content

patch of OpenWrt 23.x source to build firmware for the Xiaomi AX3000T

Notifications You must be signed in to change notification settings

Ser9ei/xiaomi_ax3000t-openwrt23_patch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 

Repository files navigation

OpenWrt firmware build

Simple compilation without external packages, similar to the official build please find by link below:
https://drive.google.com/drive/folders/1lsYUxoyvi-zqXln8qlYRa4Y5rIMDfy-P

What's New?

  • Add support for the new spi-nand flash - W25N01KV. This patch is available in SNAPSHOT and is not yet present in the 23.x release.
  • 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. The boot loop bug may only be reproducible with the stock u-boot.
  • "kernel: Fix section mismatch in ubi" patch has been moved from the SNAPSHOT to the 23.x branch. https://github.com/openwrt/openwrt/commit/089c25f466dd496d165a02ab026fe55dbb802a8e

How to build the firmware yourself

  1. 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

  1. Navigate to the downloaded source directory:

cd openwrt-23.05.5

  1. Get patch from git:

git clone https://github.com/Ser9ei/xiaomi_ax3000t-openwrt23_patch

  1. Execute patch:

patch -p1 -N < xiaomi_ax3000t-openwrt23_patch/xiaomi_ax3000t-dts.patch

  1. 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

  1. Check erros
  2. Copy config file:

cp xiaomi_ax3000t-openwrt23_patch/openwrt.config .config

  1. 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

About

patch of OpenWrt 23.x source to build firmware for the Xiaomi AX3000T

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published