OpenWrt support for Xiaomi AX3000T

it's ESMT, see here.

2 Likes

Thanks @alexq , Sorry for spamming,

i could flash the initramfs

root@XiaoQiang:/tmp# ubiformat /dev/mtd9 -y -f /tmp/openwrt-mediatek-filogic-xiaomi_mi-router-ax3000t-initramfs-factory.ubi
ubiformat: mtd9 (nand), size 35651584 bytes (34.0 MiB), 272 eraseblocks of 131072 bytes (128.0 KiB), min. I/O size 2048 bytes
libscan: scanning eraseblock 271 -- 100 % complete
ubiformat: 184 eraseblocks have valid erase counter, mean value is 0
ubiformat: 88 eraseblocks are supposedly empty
ubiformat: warning!: only 184 of 272 eraseblocks have valid erase counter
ubiformat: mean erase counter 0 will be used for the rest of eraseblock
ubiformat: use erase counter 0 for all eraseblocks
ubiformat: flashing eraseblock 72 -- 100 % complete
ubiformat: formatting eraseblock 271 -- 100 % complete
root@XiaoQiang:/tmp# nvram set boot_wait=on
root@XiaoQiang:/tmp# nvram set uart_en=1
root@XiaoQiang:/tmp# nvram set flag_boot_rootfs=1
root@XiaoQiang:/tmp# nvram set flag_last_success=1
root@XiaoQiang:/tmp# nvram set flag_boot_success=1
root@XiaoQiang:/tmp# nvram set flag_try_sys1_failed=0
root@XiaoQiang:/tmp# nvram set flag_try_sys2_failed=0
root@XiaoQiang:/tmp# nvram commit
root@XiaoQiang:/tmp# reboot

//Edit: works now. Good device.

install Luci, and try Sysupgrade from Luci

1 Like

A big thank you to @Cthulhu88 for the active contribution in updating and refactoring the AX3000T Wiki with accurate technical information and updated Installation process. Enjoy.

2 Likes

Hello. Is there any hope for an OpenWrt firmware for AX3000T with AN8855 support? Or can it all just end in talk? What can ordinary users do to speed up the appearance of such a firmware?

6 Likes

Question: Why copy so many partitions if the instructions for recovery only require 3?

ssh -o StrictHostKeyChecking=no -o HostKeyAlgorithms=+ssh-rsa -o PubkeyAcceptedAlgorithms=+ssh-rsa -v root@192.168.31.1
nanddump -f /tmp/BL2.bin /dev/mtd1
nanddump -f /tmp/Nvram.bin /dev/mtd2
nanddump -f /tmp/Bdata.bin /dev/mtd3
nanddump -f /tmp/Factory.bin /dev/mtd4
nanddump -f /tmp/FIP.bin /dev/mtd5
nanddump -f /tmp/ubi.bin /dev/mtd8
nanddump -f /tmp/KF.bin /dev/mtd12
mtd write /tmp/BL2.bin BL2
mtd write /tmp/FIP.bin FIP
mtd write /tmp/ubi.bin ubi

I just built a custom OpenWrt 23.05.5 firmware, in which I applied this patch for NVRAM parameters:

Download link: https://drive.google.com/drive/folders/1yMpMGr0Qe0zgvXVVRyzj508Wk7aIKZfm

Attention! This patch has not been tested by anyone!

I can’t test this patch myself, because I no longer have this device (I only have AX6S, R3G, R3P, R3D).

2 Likes

In my POV, the goal is to have a complete backup.
E.g. here example when Factory partition is needed.

Join the question

1 Like

https://openwrt.org/infrastructure

There's a team of volunteers, I agree that staff members should be replaced with team members, poking @psherman

Anybody is more than welcome to make the required backport to 5.15 (And no, its not just different locations since the whole WN250xK series doesn't exist in 5.15)

3 Likes

There is nothing about this in the manual. Therefore, after U-Boot, having restored only 3 sections, we will not receive MAC data and Wi-Fi calibration?

Maybe someday someone will add this information to the Wiki in the future. It can even be you if you are willing to invest your personal time and knowledge for contribution and to describe this gap.

If I knew this, I wouldn't ask questions. Right now I have nothing on hand except AN8855 and I can only experiment with it once)))

This How can something help?

The RD23 not retreiving "openwrt-mediatek-filogic-xiaomi_mi-router-ax3000t-ubootmod-initramfs-recovery.itb" via tftp..


No size specified -> Using max size (9650176)
Read 9650176 bytes from volume fit to 0000000046000000

## Checking Image at 46000000 ...
   FIT image found
   FIT description: ARM64 OpenWrt FIT (Flattened Image Tree)
    Image 0 (kernel-1)
     Description:  ARM64 OpenWrt Linux-5.15.167
     Type:         Kernel Image
     Compression:  gzip compressed
     Data Start:   0x46001000
     Data Size:    5176539 Bytes = 4.9 MiB
     Architecture: AArch64
     OS:           Linux
     Load Address: 0x48000000
     Entry Point:  0x48000000
     Hash algo:    crc32
     Hash value:   16764ba9
     Hash algo:    sha1
     Hash value:   5c7bf00478c7d40f3f57c5de60b67be72fd6b362
    Image 1 (fdt-1)
     Description:  ARM64 OpenWrt xiaomi_mi-router-ax3000t-ubootmod device tree b                                                                                                             lob
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x464f1000
     Data Size:    22720 Bytes = 22.2 KiB
     Architecture: AArch64
     Hash algo:    crc32
     Hash value:   b75c5800
     Hash algo:    sha1
     Hash value:   7ea476e5a4240c6552fda0780e6920236cd6798b
    Image 2 (rootfs-1)
     Description:  ARM64 OpenWrt xiaomi_mi-router-ax3000t-ubootmod rootfs
     Type:         Filesystem Image
     Compression:  uncompressed
     Data Start:   0x464f7000
     Data Size:    4427776 Bytes = 4.2 MiB
     Hash algo:    crc32
     Hash value:   e8555445
     Hash algo:    sha1
     Hash value:   8f8a3a96f072cb45ac834a0ba5494c52f4f7fd20
    Default Configuration: 'config-1'
    Configuration 0 (config-1)
     Description:  OpenWrt xiaomi_mi-router-ax3000t-ubootmod
     Kernel:       kernel-1
     FDT:          fdt-1
     Loadables:    rootfs-1
## Checking hash(es) for FIT Image at 46000000 ...
   Hash(es) for Image 0 (kernel-1): crc32+ sha1+
   Hash(es) for Image 1 (fdt-1): crc32+ sha1+
   Hash(es) for Image 2 (rootfs-1): crc32+ sha1+
## Loading kernel from FIT Image at 46000000 ...
   Using 'config-1' configuration
   Trying 'kernel-1' kernel subimage
     Description:  ARM64 OpenWrt Linux-5.15.167
     Type:         Kernel Image
     Compression:  gzip compressed
     Data Start:   0x46001000
     Data Size:    5176539 Bytes = 4.9 MiB
     Architecture: AArch64
     OS:           Linux
     Load Address: 0x48000000
     Entry Point:  0x48000000
     Hash algo:    crc32
     Hash value:   16764ba9
     Hash algo:    sha1
     Hash value:   5c7bf00478c7d40f3f57c5de60b67be72fd6b362
   Verifying Hash Integrity ... crc32+ sha1+ OK
## Loading fdt from FIT Image at 46000000 ...
   Using 'config-1' configuration
   Trying 'fdt-1' fdt subimage
     Description:  ARM64 OpenWrt xiaomi_mi-router-ax3000t-ubootmod device tree b                                                                                                             lob
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x464f1000
     Data Size:    22720 Bytes = 22.2 KiB
     Architecture: AArch64
     Hash algo:    crc32
     Hash value:   b75c5800
     Hash algo:    sha1
     Hash value:   7ea476e5a4240c6552fda0780e6920236cd6798b
   Verifying Hash Integrity ... crc32+ sha1+ OK
   Booting using the fdt blob at 0x464f1000
Working FDT set to 464f1000
## Loading loadables from FIT Image at 46000000 ...
   Trying 'rootfs-1' loadables subimage
     Description:  ARM64 OpenWrt xiaomi_mi-router-ax3000t-ubootmod rootfs
     Type:         Filesystem Image
     Compression:  uncompressed
     Data Start:   0x464f7000
     Data Size:    4427776 Bytes = 4.2 MiB
     Hash algo:    crc32
     Hash value:   e8555445
     Hash algo:    sha1
     Hash value:   8f8a3a96f072cb45ac834a0ba5494c52f4f7fd20
   Verifying Hash Integrity ... crc32+ sha1+ OK
   Uncompressing Kernel Image to 48000000
   Loading Device Tree to 000000004f7f2000, end 000000004f7fa8bf ... OK
Working FDT set to 4f7f2000
Add 'ramoops@42ff0000' node failed: FDT_ERR_EXISTS

Starting kernel ...

<6>[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
<5>[    0.000000] Linux version 5.15.167 (ser9ei@buildhost) (aarch64-openwrt-lin                                                                                                             ux-musl-gcc (OpenWrt GCC 12.3.0 r24106-10cc5fcd00) 12.3.0, GNU ld (GNU Binutils)                                                                                                              2.40.0) #0 SMP Mon Sep 23 12:34:46 2024
<6>[    0.000000] Machine model: Xiaomi Mi Router AX3000T (OpenWrt U-Boot layout                                                                                                             )
<6>[    0.000000] Zone ranges:
<6>[    0.000000]   DMA      [mem 0x0000000040000000-0x000000004fffffff]
<6>[    0.000000]   DMA32    empty
<6>[    0.000000]   Normal   empty
<6>[    0.000000] Movable zone start for each node
<6>[    0.000000] Early memory node ranges
<6>[    0.000000]   node   0: [mem 0x0000000040000000-0x0000000042ffffff]
<6>[    0.000000]   node   0: [mem 0x0000000043000000-0x000000004302ffff]
<6>[    0.000000]   node   0: [mem 0x0000000043030000-0x0000000047c7ffff]
<6>[    0.000000]   node   0: [mem 0x0000000047c80000-0x0000000047ffffff]
<6>[    0.000000]   node   0: [mem 0x0000000048000000-0x000000004fffffff]
<6>[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x000000004ffffff                                                                                                             f]
<6>[    0.000000] psci: probing for conduit method from DT.
<6>[    0.000000] psci: PSCIv1.1 detected in firmware.
<6>[    0.000000] psci: Using standard PSCI v0.2 function IDs
<6>[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
<6>[    0.000000] psci: SMC Calling Convention v1.4
<6>[    0.000000] percpu: Embedded 18 pages/cpu s33112 r8192 d32424 u73728
<7>[    0.000000] pcpu-alloc: s33112 r8192 d32424 u73728 alloc=18*4096
<7>[    0.000000] pcpu-alloc: [0] 0 [0] 1
<6>[    0.000000] Detected VIPT I-cache on CPU0
<6>[    0.000000] CPU features: detected: GIC system register CPU interface
<6>[    0.000000] CPU features: kernel page table isolation disabled by kernel c                                                                                                             onfiguration
<6>[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 64512
<5>[    0.000000] Kernel command line: console=ttyS0,115200n8 console_msg_format                                                                                                             =syslog
<6>[    0.000000] Dentry cache hash table entries: 32768 (order: 6, 262144 bytes                                                                                                             , linear)
<6>[    0.000000] Inode-cache hash table entries: 16384 (order: 5, 131072 bytes,                                                                                                              linear)
<6>[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
<6>[    0.000000] Memory: 241308K/262144K available (8448K kernel code, 904K rwd                                                                                                             ata, 1488K rodata, 448K init, 302K bss, 20836K reserved, 0K cma-reserved)
<6>[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
<6>[    0.000000] rcu: Hierarchical RCU implementation.
<6>[    0.000000] rcu:  RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
<6>[    0.000000]       Tracing variant of Tasks RCU enabled.
<6>[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10                                                                                                              jiffies.
<6>[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
<6>[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
<6>[    0.000000] GICv3: GIC: Using split EOI/Deactivate mode
<6>[    0.000000] GICv3: 640 SPIs implemented
<6>[    0.000000] GICv3: 0 Extended SPIs implemented
<6>[    0.000000] GICv3: Distributor has no Range Selector support
<6>[    0.000000] Root IRQ handler: 0xffffffc008010090
<6>[    0.000000] GICv3: 16 PPIs implemented
<6>[    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x000000000c080000
<6>[    0.000000] arch_timer: cp15 timer(s) running at 13.00MHz (phys).
<6>[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycl                                                                                                             es: 0x2ff89eacb, max_idle_ns: 440795202429 ns
<6>[    0.000001] sched_clock: 56 bits at 13MHz, resolution 76ns, wraps every 43                                                                                                             98046511101ns
<6>[    0.000148] Calibrating delay loop (skipped), value calculated using timer                                                                                                              frequency.. 26.00 BogoMIPS (lpj=130000)
<6>[    0.000158] pid_max: default: 32768 minimum: 301
<6>[    0.000438] Mount-cache hash table entries: 512 (order: 0, 4096 bytes, lin                                                                                                             ear)
<6>[    0.000448] Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes                                                                                                             , linear)
<6>[    0.001736] rcu: Hierarchical SRCU implementation.
<6>[    0.002101] smp: Bringing up secondary CPUs ...
<6>[    0.002422] Detected VIPT I-cache on CPU1
<6>[    0.002449] GICv3: CPU1: found redistributor 1 region 0:0x000000000c0a0000
<6>[    0.002476] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
<6>[    0.002539] smp: Brought up 1 node, 2 CPUs
<6>[    0.002555] SMP: Total of 2 processors activated.
<6>[    0.002560] CPU features: detected: 32-bit EL0 Support
<6>[    0.002565] CPU features: detected: CRC32 instructions
<6>[    0.002595] CPU features: emulated: Privileged Access Never (PAN) using TT                                                                                                             BR0_EL1 switching
<6>[    0.002657] CPU: All CPU(s) started at EL2
<6>[    0.002668] alternatives: patching kernel code
<6>[    0.006013] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff,                                                                                                              max_idle_ns: 19112604462750000 ns
<6>[    0.006036] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
<6>[    0.006176] pinctrl core: initialized pinctrl subsystem
<6>[    0.007019] NET: Registered PF_NETLINK/PF_ROUTE protocol family
<6>[    0.007340] DMA: preallocated 128 KiB GFP_KERNEL pool for atomic allocatio                                                                                                             ns
<6>[    0.007370] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA pool for atomic a                                                                                                             llocations
<6>[    0.007393] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA32 pool for atomic                                                                                                              allocations
<6>[    0.007741] thermal_sys: Registered thermal governor 'fair_share'
<6>[    0.007745] thermal_sys: Registered thermal governor 'bang_bang'
<6>[    0.007750] thermal_sys: Registered thermal governor 'step_wise'
<6>[    0.007755] thermal_sys: Registered thermal governor 'user_space'
<6>[    0.007949] ASID allocator initialised with 65536 entries
<6>[    0.008399] pstore: Registered ramoops as persistent store backend
<6>[    0.008406] ramoops: using 0x10000@0x42ff0000, ecc: 0
<6>[    0.018659] cryptd: max_cpu_qlen set to 1000
<5>[    0.020893] SCSI subsystem initialized
<7>[    0.021044] libata version 3.00 loaded.
<6>[    0.022195] clocksource: Switched to clocksource arch_sys_counter
<6>[    0.022842] NET: Registered PF_INET protocol family
<6>[    0.022931] IP idents hash table entries: 4096 (order: 3, 32768 bytes, lin                                                                                                             ear)
<6>[    0.023346] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 40                                                                                                             96 bytes, linear)
<6>[    0.023363] Table-perturb hash table entries: 65536 (order: 6, 262144 byte                                                                                                             s, linear)
<6>[    0.023372] TCP established hash table entries: 2048 (order: 2, 16384 byte                                                                                                             s, linear)
<6>[    0.023391] TCP bind hash table entries: 2048 (order: 3, 32768 bytes, line                                                                                                             ar)
<6>[    0.023423] TCP: Hash tables configured (established 2048 bind 2048)
<6>[    0.023487] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
<6>[    0.023504] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear                                                                                                             )
<6>[    0.023630] NET: Registered PF_UNIX/PF_LOCAL protocol family
<6>[    0.023666] PCI: CLS 0 bytes, default 64
<6>[    0.026185] workingset: timestamp_bits=46 max_order=16 bucket_order=0
<6>[    0.029751] squashfs: version 4.0 (2009/01/31) Phillip Lougher
<6>[    0.029767] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIO                                                                                                             RITY) (c) 2001-2006 Red Hat, Inc.
<6>[    0.063972] Block layer SCSI generic (bsg) driver version 0.4 loaded (majo                                                                                                             r 251)
<3>[    0.064730] pwm-mediatek 10048000.pwm: clock: top fail: -517
<6>[    0.075333] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
<6>[    0.077535] printk: console [ttyS0] disabled
<6>[    0.097705] 11002000.serial: ttyS0 at MMIO 0x11002000 (irq = 18, base_baud                                                                                                              = 2500000) is a ST16650V2
<6>[    0.752078] printk: console [ttyS0] enabled
<4>[    0.757318] cacheinfo: Unable to detect cache hierarchy for CPU 0
<6>[    0.766928] loop: module loaded
<6>[    0.770332] Loading iSCSI transport class v2.0-870.
<4>[    0.777400] spi spi0.0: setup: ignoring unsupported mode bits a00
<6>[    0.784169] spi-nand spi0.0: Winbond SPI NAND was found.
<6>[    0.789743] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048                                                                                                             , OOB size: 96
<5>[    0.798364] 9 fixed-partitions partitions found on MTD device spi0.0
<5>[    0.804994] Creating 9 MTD partitions on "spi0.0":
<5>[    0.810036] 0x000000000000-0x000000100000 : "BL2"
<5>[    0.816225] 0x000000100000-0x000000140000 : "Nvram"
<5>[    0.821962] 0x000000140000-0x000000180000 : "Bdata"
<5>[    0.827714] 0x000000180000-0x000000380000 : "Factory"
<5>[    0.834919] 0x000000380000-0x000000580000 : "FIP"
<5>[    0.841434] 0x000000580000-0x0000005c0000 : "crash"
<5>[    0.847222] 0x0000005c0000-0x000000600000 : "crash_log"
<5>[    0.853315] 0x000007600000-0x000007640000 : "KF"
<5>[    0.858797] 0x000000600000-0x000007600000 : "ubi"
<6>[    1.068481] mtk_soc_eth 15100000.ethernet eth0: mediatek frame engine at 0                                                                                                             xffffffc009500000, irq 83
<6>[    1.078350] i2c_dev: i2c /dev entries driver
<6>[    1.084881] mtk-wdt 1001c000.watchdog: Watchdog enabled (timeout=31 sec, n                                                                                                             owayout=0)
<6>[    1.093908] NET: Registered PF_INET6 protocol family
<6>[    1.100001] Segment Routing with IPv6
<6>[    1.103987] In-situ OAM (IOAM) with IPv6
<6>[    1.108202] NET: Registered PF_PACKET protocol family
<6>[    1.113556] bridge: filtering via arp/ip/ip6tables is no longer available                                                                                                              by default. Update your scripts to load br_netfilter if you need this.
<6>[    1.126933] 8021q: 802.1Q VLAN Support v1.8
<6>[    1.132502] pstore: Using crash dump compression: deflate
<6>[    1.193688] mt7530-mdio mdio-bus:1f: configuring for fixed/2500base-x link                                                                                                              mode
<6>[    1.203034] mt7530-mdio mdio-bus:1f: Link is Up - 2.5Gbps/Full - flow cont                                                                                                             rol rx/tx
<6>[    1.211983] mt7530-mdio mdio-bus:1f wan (uninitialized): PHY [mt7530-0:00]                                                                                                              driver [MediaTek MT7531 PHY] (irq=92)
<6>[    1.232575] mt7530-mdio mdio-bus:1f lan2 (uninitialized): PHY [mt7530-0:01                                                                                                             ] driver [MediaTek MT7531 PHY] (irq=93)
<6>[    1.253020] mt7530-mdio mdio-bus:1f lan3 (uninitialized): PHY [mt7530-0:02                                                                                                             ] driver [MediaTek MT7531 PHY] (irq=94)
<6>[    1.273466] mt7530-mdio mdio-bus:1f lan4 (uninitialized): PHY [mt7530-0:03                                                                                                             ] driver [MediaTek MT7531 PHY] (irq=95)
<6>[    1.285292] DSA: tree 0 setup
<5>[    1.289309] UBI: auto-attach mtd8
<5>[    1.292921] ubi0: default fastmap pool size: 40
<5>[    1.297702] ubi0: default fastmap WL pool size: 20
<5>[    1.302748] ubi0: attaching mtd8
<5>[    2.034550] ubi0: scanning is finished
<5>[    2.048660] ubi0: attached mtd8 (name "ubi", size 112 MiB)
<5>[    2.054427] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
<5>[    2.061554] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
<5>[    2.068593] ubi0: VID header offset: 2048 (aligned 2048), data offset: 409                                                                                                             6
<5>[    2.075809] ubi0: good PEBs: 896, bad PEBs: 0, corrupted PEBs: 0
<5>[    2.082065] ubi0: user volume: 5, internal volumes: 1, max. volumes count:                                                                                                              128
<5>[    2.089540] ubi0: max/mean erase counter: 11/4, WL threshold: 4096, image                                                                                                              sequence number: 678395591
<5>[    2.098921] ubi0: available PEBs: 0, total reserved PEBs: 896, PEBs reserv                                                                                                             ed for bad PEB handling: 20
<5>[    2.108400] ubi0: background thread "ubi_bgt0d" started, PID 464
<7>[    2.116540] FIT: Selected configuration: "config-1" (OpenWrt xiaomi_mi-rou                                                                                                             ter-ax3000t-ubootmod)
<7>[    2.125551] FIT:           kernel sub-image 0x00001000..0x004f0cda "kernel                                                                                                             -1" (ARM64 OpenWrt Linux-5.15.167)
<7>[    2.135740] FIT:          flat_dt sub-image 0x004f1000..0x004f68bf "fdt-1"                                                                                                              (ARM64 OpenWrt xiaomi_mi-router-ax3000t-ubootmod device tree blob)
<7>[    2.148804] FIT:       filesystem sub-image 0x004f7000..0x0092ffff "rootfs                                                                                                             -1" (ARM64 OpenWrt xiaomi_mi-router-ax3000t-ubootmod rootfs)
<7>[    2.161230] FIT: selecting configured loadable "rootfs-1" to be root files                                                                                                             ystem
<6>[    2.168787]  ubiblock0_3: p1(rootfs-1)
<6>[    2.168975] block ubiblock0_3: created from ubi0:3(fit)
<6>[    2.178694] clk: Disabling unused clocks
<6>[    2.189298] VFS: Mounted root (squashfs filesystem) readonly on device 259                                                                                                             :0.
<6>[    2.196901] Freeing unused kernel memory: 448K
<6>[    2.201640] Run /sbin/init as init process
<7>[    2.205995]   with arguments:
<7>[    2.209210]     /sbin/init
<7>[    2.212164]   with environment:
<7>[    2.215557]     HOME=/
<7>[    2.218165]     TERM=linux
<14>[    2.430433] init: Console is alive
<14>[    2.434381] init: - watchdog -
<14>[    2.851816] kmodloader: loading kernel modules from /etc/modules-boot.d/*
<14>[    2.884418] kmodloader: done loading kernel modules from /etc/modules-boo                                                                                                             t.d/*
<14>[    2.902299] init: - preinit -
<6>[    3.332373] mtk_soc_eth 15100000.ethernet eth0: configuring for fixed/2500                                                                                                             base-x link mode
<6>[    3.341098] mtk_soc_eth 15100000.ethernet eth0: Link is Up - 2.5Gbps/Full                                                                                                              - flow control rx/tx
<6>[    3.342291] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
<6>[    3.362515] mt7530-mdio mdio-bus:1f lan4: configuring for phy/gmii link mo                                                                                                             de
<5>[    3.424153] random: procd: uninitialized urandom read (4 bytes read)
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
<5>[    5.571644] UBIFS (ubi0:4): Mounting in unauthenticated mode
<5>[    5.577685] UBIFS (ubi0:4): background thread "ubifs_bgt0_4" started, PID                                                                                                              584
<5>[    5.635163] UBIFS (ubi0:4): recovery needed
<5>[    5.780776] UBIFS (ubi0:4): recovery completed
<5>[    5.785555] UBIFS (ubi0:4): UBIFS: mounted UBI device 0, volume 4, name "r                                                                                                             ootfs_data"
<5>[    5.793645] UBIFS (ubi0:4): LEB size: 126976 bytes (124 KiB), min./max. I/                                                                                                             O unit sizes: 2048 bytes/2048 bytes
<5>[    5.803810] UBIFS (ubi0:4): FS size: 88375296 bytes (84 MiB, 696 LEBs), ma                                                                                                             x 707 LEBs, journal size 4444160 bytes (4 MiB, 35 LEBs)
<5>[    5.815709] UBIFS (ubi0:4): reserved for root: 4174182 bytes (4076 KiB)
<5>[    5.822575] UBIFS (ubi0:4): media format: w5/r0 (latest is w5/r0), UUID 2C                                                                                                             F80DA2-A5D8-4C9E-82F4-660A75B07767, small LPT model
<14>[    5.838693] mount_root: switching to ubifs overlay
<4>[    5.849158] overlayfs: null uuid detected in lower fs '/', falling back to                                                                                                              xino=off,index=off,nfs_export=off.
<15>[    5.866430] urandom-seed: Seeding with /etc/urandom.seed
<14>[    5.922421] procd: - early -
<14>[    5.925723] procd: - watchdog -
<14>[    6.475945] procd: - watchdog -
<14>[    6.481040] procd: - ubus -
<5>[    6.515260] random: ubusd: uninitialized urandom read (4 bytes read)
<5>[    6.535629] random: ubusd: uninitialized urandom read (4 bytes read)
<5>[    6.543337] random: ubusd: uninitialized urandom read (4 bytes read)
<14>[    6.553729] procd: - init -
Please press Enter to activate this console.
<5>[    6.622216] random: crng init done
<5>[    6.625887] random: 17 urandom warning(s) missed due to ratelimiting
<14>[    6.830625] kmodloader: loading kernel modules from /etc/modules.d/*
<6>[    6.857293] crypto-safexcel 10320000.crypto: EIP97:230(0,1,4,4)-HIA:270(0,                                                                                                             5,5),PE:150/433(alg:7fcdfc00)/0/0/0
<6>[    6.873651] Loading modules backported from Linux version v6.1.110-0-g5f55                                                                                                             cad62cc9d
<6>[    6.881566] Backport generated by backports.git v6.1.110-1-0-g965f73fc
<14>[    7.046147] urngd: v1.0.2 started.
<6>[    7.236735] mt798x-wmac 18000000.wifi: HW/SW Version: 0x8a108a10, Build Ti                                                                                                             me: 20221208201745a
<6>[    7.236735]
<6>[    7.456645] mt798x-wmac 18000000.wifi: WM Firmware Version: ____000000, Bu                                                                                                             ild Time: 20221208201806
<6>[    7.568044] mt798x-wmac 18000000.wifi: WA Firmware Version: DEV_000000, Bu                                                                                                             ild Time: 20221208202048
<6>[    7.659931] mt798x-wmac 18000000.wifi: registering led 'mt76-phy0'
<6>[    7.704056] mt798x-wmac 18000000.wifi: registering led 'mt76-phy1'
<6>[    9.931802] PPP generic driver version 2.4.2
<6>[    9.937926] NET: Registered PF_PPPOX protocol family
<14>[    9.947038] kmodloader: done loading kernel modules from /etc/modules.d/*
<6>[   12.680491] mtk_soc_eth 15100000.ethernet eth0: Link is Down
<6>[   12.701090] mtk_soc_eth 15100000.ethernet eth0: configuring for fixed/2500                                                                                                             base-x link mode
<6>[   12.710130] mtk_soc_eth 15100000.ethernet eth0: Link is Up - 2.5Gbps/Full                                                                                                              - flow control rx/tx
<6>[   12.716490] mt7530-mdio mdio-bus:1f lan2: configuring for phy/gmii link mo                                                                                                             de
<6>[   12.729461] br-lan: port 1(lan2) entered blocking state
<6>[   12.735020] br-lan: port 1(lan2) entered disabled state
<6>[   12.742366] device lan2 entered promiscuous mode
<6>[   12.747258] device eth0 entered promiscuous mode
<6>[   12.756004] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
<6>[   12.775052] mt7530-mdio mdio-bus:1f lan3: configuring for phy/gmii link mo                                                                                                             de
<6>[   12.785207] br-lan: port 2(lan3) entered blocking state
<6>[   12.790725] br-lan: port 2(lan3) entered disabled state
<6>[   12.798232] device lan3 entered promiscuous mode
<6>[   12.811585] mt7530-mdio mdio-bus:1f lan4: configuring for phy/gmii link mo                                                                                                             de
<6>[   12.822463] br-lan: port 3(lan4) entered blocking state
<6>[   12.827973] br-lan: port 3(lan4) entered disabled state
<6>[   12.835356] device lan4 entered promiscuous mode
<6>[   12.849940] mt7530-mdio mdio-bus:1f wan: configuring for phy/gmii link mod                                                                                                             e
<6>[   16.192764] mt7530-mdio mdio-bus:1f lan3: Link is Up - 1Gbps/Full - flow c                                                                                                             ontrol rx/tx
<6>[   16.192789] br-lan: port 2(lan3) entered blocking state
<6>[   16.206425] br-lan: port 2(lan3) entered forwarding state
<6>[   16.212570] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready



BusyBox v1.36.1 (2024-09-23 12:34:46 UTC) built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt 23.05.5, r24106-10cc5fcd00
 -----------------------------------------------------
root@OpenWrt:/# 192.168.1.254

Sorry, but it seems like you have installed custom OpenWrt bootloader. Unfortunately , I have limited knowledge in this area.

Not boot-up with an error:

** Cannot find mtd partition "ubi"
Net:
Warning: ethernet@15100000 (eth0) using random MAC address - ba:11:b9:d7:0a:70
eth0: ethernet@15100000
Error, no UBI device selected!
Error, no UBI device selected!
spi-nand: spi_nand spi_nand@0: unknown raw ID ef ae 21 00
MTD device ubi not found, ret -19
resetting ...

Did you know - how to install current bootloader? Thanks

custom OpenWrt bootloader

When deciding to move to a custom bootloader, one of the biggest disadvantages for me is that the "easy" recovery method via the MiWiFi Repair Tool is NOT available. Other benefits seem minor to me (like faster boot loading {not faster router performance, but just faster router loading is funny}, or an additional 15MB of space {which is also funny}.
I'm sure there are other advantages to using a custom OpenWrt U-boot bootloader, but they are overshadowed for me by the absence of simple recovery via the MiWiFi Repair Tool. °This is all from my personal perspective and I could be wrong..

I see only this in Wiki " Recover bricked bootloader"

1 Like