finally not work for me
after sysupgrade first boot fine after reboot
ubi error and next reboot kernel error and next boot loop .
No Idea?
Presumably the 'right' way to go is to create a dual boot layout like other 128MB devices https://openwrt.org/toh/linksys/wrt1900ac#flash_layout
I am new to editing uboot but presumably as we have control of uboot and can flash it, we can create a version that supports this quite easily.
i think will wait for beter version or another methode
Can someone help me undertstand the mechanism here.
flag_try_sys1_failed 0
- this is a flag the the xaomi uboot loader reads to detect whether a boot was successful on the 'sys1' partition? Presumably the stock firmware sets this upon successful boot, similar functions are included in other devices https://github.com/openwrt/openwrt/blob/7a7ea98400a80d762e1f6e6d29ceb25a13a997e0/target/linux/mvebu/cortexa9/base-files/etc/init.d/bootcount
So if the xaomi uboot loader sees this flag reach a threshold value, it tries the other image (sys0)?
Because the OpenWRT hack for this router is not populating the other image, this also fails?
Then it goes to failsafe mode? (not sure I understand the 'restore default' comment - is it really restoring default or just loading the initramfs fallback image?) How would the uboot loader cause an OpenWRT rootfs to restore defaults?
Just saw your analysis which matches my assumptions above! Thanks.
I don't think this is nesscarily to detect non-official firmware or because it is non-official firmware, this is just quite a common mechanism for a router to detect a successful boot (of any firmware). The bootloader relies on the firmware to set the flag once booted to a point that qualifies a successful boot, if it doesn't get this it assumes the firmware is corrupted and attempts to boot an alternate or recovery image.
Linksys routers did the same and the 'fix' is included in the target build for those devices https://github.com/openwrt/openwrt/blob/7a7ea98400a80d762e1f6e6d29ceb25a13a997e0/target/linux/mvebu/cortexa9/base-files/etc/init.d/bootcount
EDIT: in fact this is already implemented for some other mediatek based routers, this is how we make this fix permanent.
I think we just need to add this to that case block:
xaomi,mi-router-ax3000t|\
xaomi,mi-router-ax3000t-ubootmod)
fw_setenv flag_try_sys1_failed 0
;;
Same question though... how is the bootloader effecting the revert to default settings? Clearing the overlay?
Hello,
I want to install the latest official build, but I need to make sure if my router is not using the NAND flash chip Winbond 25n01kvzeir.
Where do I have to check it?
root@OpenWrt:~# ubus call system board
{
"kernel": "6.1.82",
"hostname": "OpenWrt",
"system": "ARMv8 Processor rev 4",
"model": "Xiaomi Mi Router AX3000T",
"board_name": "xiaomi,mi-router-ax3000t",
"rootfs_type": "squashfs",
"release": {
"distribution": "OpenWrt",
"version": "SNAPSHOT",
"revision": "r25899-98235e60ed",
"target": "mediatek/filogic",
"description": "OpenWrt SNAPSHOT r25899-98235e60ed"
}
}
Since this issue is only for the RD23 (Global version), how would this effect those of us with the RD03 (Chinese version)? Would there need to be two builds for the AX3000T?
Someone would need to test, I don't expect it will cause an issue for the RD03 as the same flags exist according to https://openwrt.org/inbox/toh/xiaomi/ax3000t
To be honest I'm unsure why this isn't an issue on the RD03, unless it has a slightly different bootloader that doesn't verify successful boots.
I'm pretty sure it's benign for RD03 users either way.
F0: 102B 0000
FA: 1040 0000
FA: 1040 0000 [0200]
F9: 0000 0000
V0: 0000 0000 [0001]
00: 0000 0000
BP: 2400 0041 [0000]
G0: 1190 0000
EC: 0000 0000 [1000]
T0: 0000 0239 [010F]
Jump to BL
NOTICE: BL2: v2.9.0(release):OpenWrt v2023.10.13~0ea67d76-1 (mt7981-spim-nand-ddr3)
NOTICE: BL2: Built : 19:04:08, May 20 2024
NOTICE: WDT: Cold boot
NOTICE: WDT: disabled
NOTICE: EMI: Using DDR3 settings
NOTICE: EMI: Detected DRAM size: 256MB
NOTICE: EMI: complex R/W mem test passed
NOTICE: CPU: MT7981 (1300MHz)
NOTICE: SPI_NAND parses attributes from parameter page.
NOTICE: SPI_NAND Detected ID 0xc8
NOTICE: Page size 2048, Block size 131072, size 134217728
NOTICE: BL2: Booting BL31
NOTICE: BL31: v2.9(release):OpenWrt v2023-07-24-00ac6db3-2 (mt7981-spim-nand-ddr3)
NOTICE: BL31: Built : 22:14:18, Jul 15 2024
U-Boot 2023.07.02-OpenWrt-r24012-d8dd03c46f (Jul 15 2024 - 22:14:18 +0000)
CPU: MediaTek MT7981
Model: Xiaomi Router AX3000T
DRAM: 256 MiB
Core: 32 devices, 14 uclasses, devicetree: embed
Loading Environment from UBI... spi-nand: spi_nand spi_nand@0: GigaDevice SPI NAND was found.
spi-nand: spi_nand spi_nand@0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
Volume ubootenv not found!
** Unable to read env from ubi:ubootenv **
Volume ubootenv2 not found!
** Unable to read redundant env from ubi:ubootenv2 **
*** Error - No Valid Environment Area found
*** Warning - bad env area, using default environment
In: serial@11002000
Out: serial@11002000
Err: serial@11002000
reset button found
Loading Environment from UBI... UBI partition 'ubi' already selected
Volume ubootenv not found!
** Unable to read env from ubi:ubootenv **
Volume ubootenv2 not found!
** Unable to read redundant env from ubi:ubootenv2 **
*** Error - No Valid Environment Area found
*** Warning - bad env area, using default environment
Net:
Warning: ethernet@15100000 (eth0) using random MAC address - e2:81:d7:07:07:d8
eth0: ethernet@15100000
Creating dynamic volume ubootenv of size 1048576
ubi0 error: ubi_create_volume: volume 0 already exists
ubi0 error: ubi_create_volume: cannot create volume 0, error -17
Saving Environment to UBI... UBI partition 'ubi' already selected
Writing to redundant UBI... Volume ubootenv2 not found!
** Unable to write env to ubi:ubootenv2 **
Failed (1)
Saving Environment to UBI... UBI partition 'ubi' already selected
Writing to redundant UBI... Volume ubootenv2 not found!
** Unable to write env to ubi:ubootenv2 **
Failed (1)
off
( ( ( OpenWrt ) ) ) U-Boot 2023.07.02-OpenWrt-r24012-d8dd03c46f (Jul 15 2024 - 22:14:18 +0000)
1. Run default boot command.
2. Boot system via TFTP.
3. Boot production system from NAND.
4. Boot recovery system from NAND.
5. Load production system via TFTP then write to NAND.
6. Load recovery system via TFTP then write to NAND.
7. Load BL31+U-Boot FIP via TFTP then write to NAND.
8. Load BL2 preloader via TFTP then write to NAND.
9. Reboot.
a. Reset all settings to factory defaults.
0. U-Boot console
Press UP/DOWN to move, ENTER to select, ESC to quit
No size specified -> Using max size (10285056)
Read 10285056 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-6.6.47
Type: Kernel Image
Compression: gzip compressed
Data Start: 0x46001000
Data Size: 5914980 Bytes = 5.6 MiB
Architecture: AArch64
OS: Linux
Load Address: 0x48000000
Entry Point: 0x48000000
Hash algo: crc32
Hash value: 1271b76d
Hash algo: sha1
Hash value: c99670d172fca96363e9c981123711666ef58923
Image 1 (fdt-1)
Description: ARM64 OpenWrt xiaomi_mi-router-ax3000t-ubootmod device tree blob
Type: Flat Device Tree
Compression: uncompressed
Data Start: 0x465a6000
Data Size: 23023 Bytes = 22.5 KiB
Architecture: AArch64
Hash algo: crc32
Hash value: 12b3dbff
Hash algo: sha1
Hash value: 946030b9c7488f6da2917989f90f80bbc30c821e
Image 2 (rootfs-1)
Description: ARM64 OpenWrt xiaomi_mi-router-ax3000t-ubootmod rootfs
Type: Filesystem Image
Compression: uncompressed
Data Start: 0x465ac000
Data Size: 4231168 Bytes = 4 MiB
Hash algo: crc32
Hash value: 0b1a3663
Hash algo: sha1
Hash value: 2b77932c1a556849c626420c234332a8154b895e
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-6.6.47
Type: Kernel Image
Compression: gzip compressed
Data Start: 0x46001000
Data Size: 5914980 Bytes = 5.6 MiB
Architecture: AArch64
OS: Linux
Load Address: 0x48000000
Entry Point: 0x48000000
Hash algo: crc32
Hash value: 1271b76d
Hash algo: sha1
Hash value: c99670d172fca96363e9c981123711666ef58923
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 blob
Type: Flat Device Tree
Compression: uncompressed
Data Start: 0x465a6000
Data Size: 23023 Bytes = 22.5 KiB
Architecture: AArch64
Hash algo: crc32
Hash value: 12b3dbff
Hash algo: sha1
Hash value: 946030b9c7488f6da2917989f90f80bbc30c821e
Verifying Hash Integrity ... crc32+ sha1+ OK
Booting using the fdt blob at 0x465a6000
Working FDT set to 465a6000
## 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: 0x465ac000
Data Size: 4231168 Bytes = 4 MiB
Hash algo: crc32
Hash value: 0b1a3663
Hash algo: sha1
Hash value: 2b77932c1a556849c626420c234332a8154b895e
Verifying Hash Integrity ... crc32+ sha1+ OK
Uncompressing Kernel Image
Loading Device Tree to 000000004f7f1000, end 000000004f7f99ee ... OK
Working FDT set to 4f7f1000
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 6.6.47 (builder@buildhost) (aarch64-openwrt-linux-musl-gcc (OpenWrt GCC 13.3.0 r27217-ae5489e578) 13.3.0, GNU ld (GNU Binutils) 2.42) #0 SMP Sat Aug 24 13:14:40 2024
<6>[ 0.000000] Machine model: Xiaomi Mi Router AX3000T (OpenWrt U-Boot layout)
<6>[ 0.000000] OF: reserved mem: 0x0000000042ff0000..0x0000000042ffffff (64 KiB) map non-reusable ramoops@42ff0000
<6>[ 0.000000] OF: reserved mem: 0x0000000043000000..0x000000004302ffff (192 KiB) nomap non-reusable secmon@43000000
<6>[ 0.000000] OF: reserved mem: 0x0000000047c80000..0x0000000047d7ffff (1024 KiB) nomap non-reusable wmcpu-reserved@47c80000
<6>[ 0.000000] OF: reserved mem: 0x0000000047d80000..0x0000000047dbffff (256 KiB) nomap non-reusable wo-emi@47d80000
<6>[ 0.000000] OF: reserved mem: 0x0000000047dc0000..0x0000000047ffffff (2304 KiB) nomap non-reusable wo-data@47dc0000
<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-0x000000004fffffff]
<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 s35112 r8192 d30424 u73728
<7>[ 0.000000] pcpu-alloc: s35112 r8194096
<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 configuration
<6>[ 0.000000] alternatives: applying boot alternatives
<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] Built 1 zonelists, mobility grouping on. Total pages: 64512
<6>[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
<6>[ 0.000000] software IO TLB: SWIOTLB bounce buffer size adjusted to 0MB
<6>[ 0.000000] software IO TLB: area num 2.
<6>[ 0.000000] software IO TLB: SWIOTLB bounce buffer size roundup to 0MB
<6>[ 0.000000] software IO TLB: mapped [mem 0x000000004fe47000-0x000000004fec7000] (0MB)
<6>[ 0.000000] Memory: 239180K/262144K available (8896K kernel code, 904K rwdata, 2592K rodata, 448K init, 304K bss, 22964K 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] Root IRQ handler: gic_handle_irq
<6>[ 0.000000] GICv3: GICv3 features: 16 PPIs
<6>[ 0.000000] GICv3: CPU0: found redistributor 0 region 0:0x000000000c080000
<6>[ 0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
<6>[ 0.000000] arch_timer: cp15 timer(s) running at 13.00MHz (phys).
<6>[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2ff89eacb, max_idle_ns: 440795202429 ns
<6>[ 0.000000] sched_clock: 56 bits at 13MHz, resolution 76ns, wraps every 4398046511101ns
<6>[ 0.000073] Calibrating delay loop (skipped), value calculated using timer frequency.. 26.00 BogoMIPS (lpj=130000)
<6>[ 0.000081] pid_max: default: 32768 minimum: 301
<6>[ 0.002942] Mount-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
<6>[ 0.002950] Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
<4>[ 0.005098] cacheinfo: Unable to detect cache hierarchy for CPU 0
<6>[ 0.005627] RCU Tasks Trace: Setting shift to 1 and lim to 1 rcu_task_cb_adjust=1.
<6>[ 0.005768] rcu: Hierarchical SRCU implementation.
<6>[ 0.005771] rcu: Max phase no-delay instances is 1000.
<6>[ 0.006170] smp: Bringing up secondary CPUs ...
<6>[ 0.006533] Detected VIPT I-cache on CPU1
<6>[ 0.006578] GICv3: CPU1: found redistributor 1 region 0:0x000000000c0a0000
<6>[ 0.006608] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
<6>[ 0.006675] smp: Brought up 1 node, 2 CPUs
<6>[ 0.006681] SMP: Total of 2 processors activated.
<6>[ 0.006684] CPU features: detected: 32-bit EL0 Support
<6>[ 0.006686] CPU features: detected: CRC32 instructions
<6>[ 0.006718] CPU features: emulated: Privileged Access Never (PAN) using TTBR0_EL1 switching
<6>[ 0.006721] CPU: All CPU(s) started at EL2
<6>[ 0.006723] alternatives: applying system-wide alternatives
<6>[ 0.010368] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
<6>[ 0.010383] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
<6>[ 0.011631] pinctrl core: initialized pinctrl subsystem
<6>[ 0.012727] NET: Registered PF_NETLINK/PF_ROUTE protocol family
<6>[ 0.013305] DMA: preallocated 128 KiB GFP_KERNEL pool for atomic allocations
<6>[ 0.013333] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
<6>[ 0.013354] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
<6>[ 0.013712] thermal_sys: Registered thermal governor 'fair_share'
<6>[ 0.013716] thermal_sys: Registered thermal governor 'bang_bang'
<6>[ 0.013719] thermal_sys: Registered thermal governor 'step_wise'
<6>[ 0.013721] thermal_sys: Registered thermal governor 'user_space'
<6>[ 0.013788] ASID allocator initialised with 65536 entries
<6>[ 0.014793] pstore: Using crash dump compression: deflate
<6>[ 0.014799] pstore: Registered ramoops as persistent store backend
<6>[ 0.014801] ramoops: using 0x10000@0x42ff0000, ecc: 0
<6>[ 0.021701] Modules: 29440 pages in range for non-PLT usage
<6>[ 0.021709] Modules: 520960 pages in range for PLT usage
<6>[ 0.022551] cryptd: max_cpu_qlen set to 1000
<5>[ 0.023665] SCSI subsystem initialized
<7>[ 0.023869] libata version 3.00 loaded.
<6>[ 0.025357] clocksource: Switched to clocksource arch_sys_counter
<6>[ 0.027619] NET: Registered PF_INET protocol family
<6>[ 0.027721] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear)
<6>[ 0.028968] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear)
<6>[ 0.028982] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
<6>[ 0.028991] TCP established hash table entries: 2048 (order: 2, 16384 bytes, linear)
<6>[ 0.029008] TCP bind hash table entries: 2048 (order: 4, 65536 bytes, linear)
<6>[ 0.029059] TCP: Hash tables configured (established 2048 bind 2048)
<6>[ 0.029132] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
<6>[ 0.029156] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
<6>[ 0.029425] NET: Registered PF_UNIX/PF_LOCAL protocol family
<6>[ 0.029452] PCI: CLS 0 bytes, default 64
<6>[ 0.030793] workingset: timestamp_bits=46 max_order=16 bucket_order=0
<6>[ 0.035676] squashfs: version 4.0 (2009/01/31) Phillip Lougher
<6>[ 0.035685] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
<6>[ 0.068903] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
<6>[ 0.079387] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
<6>[ 0.083025] printk: console [ttyS0] disabled
<6>[ 0.103409] 11002000.serial: ttyS0 at MMIO 0x11002000 (irq = 72, base_baud = 2500000) is a ST16650V2
<6>[ 0.103449] printk: console [ttyS0] enabled
<6>[ 0.884125] loop: module loaded
<6>[ 0.889597] spi-nand spi0.0: ESMT SPI NAND was found.
<6>[ 0.894912] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
<5>[ 0.903803] 9 fixed-partitions partitions found on MTD device spi0.0
<5>[ 0.910545] Creating 9 MTD partitions on "spi0.0":
<5>[ 0.915610] 0x000000000000-0x000000100000 : "BL2"
<5>[ 0.922005] 0x000000100000-0x000000140000 : "Nvram"
<5>[ 0.927841] 0x000000140000-0x000000180000 : "Bdata"
<5>[ 0.933604] 0x000000180000-0x000000380000 : "Factory"
<5>[ 0.941012] 0x000000380000-0x000000580000 : "FIP"
<5>[ 0.947853] 0x000000580000-0x0000005c0000 : "crash"
<5>[ 0.953602] 0x0000005c0000-0x000000600000 : "crash_log"
<5>[ 0.959718] 0x000007600000-0x000007640000 : "KF"
<5>[ 0.965214] 0x000000600000-0x000007600000 : "ubi"
<3>[ 1.157118] mtk_soc_eth 15100000.ethernet: generated random MAC address 65:74:68:25:64:00
<6>[ 1.181236] mtk_soc_eth 15100000.ethernet eth0: mediatek frame engine at 0xffffffc081780000, irq 75
<6>[ 1.191230] i2c_dev: i2c /dev entries driver
<6>[ 1.198392] mtk-wdt 1001c000.watchdog: Watchdog enabled (timeout=31 sec, nowayout=0)
<6>[ 1.207713] NET: Registered PF_INET6 protocol family
<6>[ 1.213848] Segment Routing with IPv6
<6>[ 1.217823] In-situ OAM (IOAM) with IPv6
<6>[ 1.222044] NET: Registered PF_PACKET protocol family
<6>[ 1.227406] 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.240806] 8021q: 802.1Q VLAN Support v1.8
<6>[ 1.340524] mt7530-mdio mdio-bus:1f: configuring for fixed/2500base-x link mode
<6>[ 1.349784] mt7530-mdio mdio-bus:1f: Link is Up - 2.5Gbps/Full - flow control rx/tx
<6>[ 1.360546] mt7530-mdio mdio-bus:1f wan (uninitialized): PHY [mt7530-0:00] driver [MediaTek MT7531 PHY] (irq=80)
<6>[ 1.382991] mt7530-mdio mdio-bus:1f lan2 (uninitialized): PHY [mt7530-0:01] driver [MediaTek MT7531 PHY] (irq=81)
<6>[ 1.405301] mt7530-mdio mdio-bus:1f lan3 (uninitialized): PHY [mt7530-0:02] driver [MediaTek MT7531 PHY] (irq=82)
<6>[ 1.427625] mt7530-mdio mdio-bus:1f lan4 (uninitialized): PHY [mt7530-0:03] driver [MediaTek MT7531 PHY] (irq=83)
<6>[ 1.439458] mtk_soc_eth 15100000.ethernet eth0: entered promiscuous mode
<6>[ 1.446497] DSA: tree 0 setup
<5>[ 1.450305] UBI: auto-attach mtd8
<5>[ 1.453889] ubi0: default fastmap pool size: 40
<5>[ 1.458698] ubi0: default fastmap WL pool size: 20
<5>[ 1.463736] ubi0: attaching mtd8
<5>[ 1.839142] ubi0: scanning is finished
<5>[ 1.849007] ubi0: attached mtd8 (name "ubi", size 112 MiB)
<5>[ 1.854759] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
<5>[ 1.861900] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
<5>[ 1.868943] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
<5>[ 1.876159] ubi0: good PEBs: 896, bad PEBs: 0, corrupted PEBs: 0
<5>[ 1.882413] ubi0: user volume: 3, internal volumes: 1, max. volumes count: 128
<5>[ 1.889884] ubi0: max/mean erase counter: 47/30, WL threshold: 4096, image sequence number: 1764461142
<5>[ 1.899439] ubi0: available PEBs: 0, total reserved PEBs: 896, PEBs reserved for bad PEB handling: 20
<5>[ 1.908913] ubi0: background thread "ubi_bgt0d" started, PID 608
<7>[ 1.910183] FIT: Selected configuration: "config-1" (OpenWrt xiaomi_mi-router-ax3000t-ubootmod)
<7>[ 1.924147] FIT: kernel sub-image 0x00001000..0x005a5163 "kernel-1" (ARM64 OpenWrt Linux-6.6.47)
<7>[ 1.934152] FIT: flat_dt sub-image 0x005a6000..0x005ab9ee "fdt-1" (ARM64 OpenWrt xiaomi_mi-router-ax3000t-ubootmod device tree blob)
<7>[ 1.947193] FIT: filesystem sub-image 0x005ac000..0x009b4fff "rootfs-1" (ARM64 OpenWrt xiaomi_mi-router-ax3000t-ubootmod rootfs)
<7>[ 1.959620] FIT: selecting configured loadable "rootfs-1" to be root filesystem
<6>[ 1.967178] ubiblock0_1: p1(rootfs-1)
<6>[ 1.967392] block ubiblock0_1: created from ubi0:1(fit)
<6>[ 1.976994] clk: Disabling unused clocks
<6>[ 1.985308] VFS: Mounted root (squashfs filesystem) readonly on device 259:0.
<6>[ 1.992916] Freeing unused kernel memory: 448K
<6>[ 1.997700] Run /sbin/init as init process
<7>[ 2.002048] with arguments:
<7>[ 2.005262] /sbin/init
<7>[ 2.008229] with environment:
<7>[ 2.011617] HOME=/
<7>[ 2.014225] TERM=linux
<14>[ 2.194804] init: Console is alive
<14>[ 2.198766] init: - watchdog -
<14>[ 2.542391] kmodloader: loading kernel modules from /etc/modules-boot.d/*
<4>[ 2.569216] gpio_button_hotplug: loading out-of-tree module taints kernel.
<14>[ 2.579095] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
<14>[ 2.595988] init: - preinit -
<5>[ 2.765387] random: crng init done
<6>[ 2.955749] mtk_soc_eth 15100000.ethernet eth0: configuring for fixed/2500base-x link mode
<6>[ 2.964459] mtk_soc_eth 15100000.ethernet eth0: Link is Up - 2.5Gbps/Full - flow control rx/tx
<6>[ 2.995802] mt7530-mdio mdio-bus:1f lan4: configuring for phy/gmii link mode
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
<6>[ 4.815666] mt7530-mdio mdio-bus:1f lan4: Link is Up - 1Gbps/Full - flow control off
<5>[ 5.173614] UBIFS (ubi0:2): Mounting in unauthenticated mode
<5>[ 5.179660] UBIFS (ubi0:2): background thread "ubifs_bgt0_2" started, PID 740
<5>[ 5.212575] UBIFS (ubi0:2): recovery needed
<5>[ 5.315462] UBIFS (ubi0:2): recovery completed
<5>[ 5.320224] UBIFS (ubi0:2): UBIFS: mounted UBI device 0, volume 2, name "rootfs_data"
<5>[ 5.328315] UBIFS (ubi0:2): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
<5>[ 5.338479] UBIFS (ubi0:2): FS size: 91422720 bytes (87 MiB, 720 LEBs), max 731 LEBs, journal size 4571136 bytes (4 MiB, 36 LEBs)
<5>[ 5.350381] UBIFS (ubi0:2): reserved for root: 4318121 bytes (4216 KiB)
<5>[ 5.357252] UBIFS (ubi0:2): media format: w5/r0 (latest is w5/r0), UUID F0FCE31F-002A-4B7D-A274-8319F65C9058, small LPT model
<14>[ 5.375044] mount_root: switching to ubifs overlay
<4>[ 5.385885] overlayfs: null uuid detected in lower fs '/', falling back to xino=off,index=off,nfs_export=off.
<15>[ 5.401028] urandom-seed: Seeding with /etc/urandom.seed
<6>[ 5.451423] mt7530-mdio mdio-bus:1f lan4: Link is Down
<14>[ 5.464963] procd: - early -
<14>[ 5.468330] procd: - watchdog -
<14>[ 6.019214] procd: - watchdog -
<14>[ 6.023732] procd: - ubus -
<14>[ 6.177984] procd: - init -
Please press Enter to activate this console.
<14>[ 6.466607] kmodloader: loading kernel modules from /etc/modules.d/*
<6>[ 6.504568] 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.532270] Loading modules backported from Linux version v6.9.9-0-g28fdf4518483
<6>[ 6.539953] Backport generated by backports.git v6.1.97-1-29-gf1d24a3683b2
<14>[ 6.683673] urngd: v1.0.2 started.
<6>[ 6.895783] mt798x-wmac 18000000.wifi: HW/SW Version: 0x8a108a10, Build Time: 20221208201745a
<6>[ 6.895783]
<6>[ 7.069784] mt798x-wmac 18000000.wifi: WM Firmware Version: ____000000, Build Time: 20221208201806
<6>[ 7.163602] mt798x-wmac 18000000.wifi: WA Firmware Version: DEV_000000, Build Time: 20221208202048
<4>[ 7.255750] mt798x-wmac 18000000.wifi: eeprom load fail, use default bin
<4>[ 7.262787] mt798x-wmac 18000000.wifi: Direct firmware load for mediatek/mt7981_eeprom_mt7976_dbdc.bin failed with error -2
<4>[ 7.274172] mt798x-wmac 18000000.wifi: Falling back to sysfs fallback for: mediatek/mt7981_eeprom_mt7976_dbdc.bin
<4>[ 7.324183] mt798x-wmac: probe of 18000000.wifi failed with error -12
<6>[ 7.353503] PPP generic driver version 2.4.2
<6>[ 7.359170] NET: Registered PF_PPPOX protocol family
<14>[ 7.367783] kmodloader: done loading kernel modules from /etc/modules.d/*
<6>[ 10.482681] mtk_soc_eth 15100000.ethernet eth0: Link is Down
<6>[ 10.517646] mtk_soc_eth 15100000.ethernet eth0: configuring for fixed/2500base-x link mode
<6>[ 10.534194] mtk_soc_eth 15100000.ethernet eth0: Link is Up - 2.5Gbps/Full - flow control rx/tx
<6>[ 10.553628] mt7530-mdio mdio-bus:1f lan2: configuring for phy/gmii link mode
<6>[ 10.567426] br-lan: port 1(lan2) entered blocking state
<6>[ 10.572923] br-lan: port 1(lan2) entered disabled state
<6>[ 10.578521] mt7530-mdio mdio-bus:1f lan2: entered allmulticast mode
<6>[ 10.585051] mtk_soc_eth 15100000.ethernet eth0: entered allmulticast mode
<6>[ 10.595257] mt7530-mdio mdio-bus:1f lan2: entered promiscuous mode
<6>[ 10.620539] mt7530-mdio mdio-bus:1f lan3: configuring for phy/gmii link mode
<6>[ 10.638606] br-lan: port 2(lan3) entered blocking state
<6>[ 10.644103] br-lan: port 2(lan3) entered disabled state
<6>[ 10.649681] mt7530-mdio mdio-bus:1f lan3: entered allmulticast mode
<6>[ 10.663064] mt7530-mdio mdio-bus:1f lan3: entered promiscuous mode
<6>[ 10.692404] mt7530-mdio mdio-bus:1f lan4: configuring for phy/gmii link mode
<6>[ 10.726162] br-lan: port 3(lan4) entered blocking state
<6>[ 10.731659] br-lan: port 3(lan4) entered disabled state
<6>[ 10.737267] mt7530-mdio mdio-bus:1f lan4: entered allmulticast mode
<6>[ 10.746543] mt7530-mdio mdio-bus:1f lan4: entered promiscuous mode
<6>[ 10.765827] mt7530-mdio mdio-bus:1f wan: configuring for phy/gmii link mode
<6>[ 13.670683] mt7530-mdio mdio-bus:1f lan4: Link is Up - 1Gbps/Full - flow control off
<6>[ 13.812577] br-lan: port 3(lan4) entered blocking state
<6>[ 13.818102] br-lan: port 3(lan4) entered forwarding state
<6>[ 15.177027] mt7530-mdio mdio-bus:1f wan: Link is Up - 1Gbps/Full - flow control rx/tx
RD23 version
No wireless function was shown on Luci web.
Check the /etc/config/wireless is also empty.
Any idea, please~
problem is here.
maybe try stable release, so my works perfectly
did you erase Factory partition?
7.255750] mt798x-wmac 18000000.wifi: eeprom load fail, use default bin
Also you can extract eeprom from Factory partition and place it in file
/lib/firmware/mediatek/mt7981_eeprom_mt7976_dbdc.bin
<4>[ 7.262787] mt798x-wmac 18000000.wifi: Direct firmware load for mediatek/mt7981_eeprom_mt7976_dbdc.bin failed with error -2
Do you have the procedure for this?
Is the “openwrt Uboot” that’s referred in the instructions something that has been complied specifically for this router? Or is it a binary imported from somewhere else? Does anyone know the provenance of it?
Not super comfortable with using Chinese factory stock bootloader but also don’t know much about the alternative.
Maybe I accidentally erase it. The problem is I didn't know where is Factory partition. Who can share the RD23 version mt7981_eeprom_mt7976_dbdc.bin file for me? Thanks
just search in post:
Did you try that with hardware offload and WED enabled? CPU load drops from ~30% to ~5% with it, so I suppose also power usage will be lower...
Hi Again Dude
after use this command
Summary
fw_setenv boot_wait on
fw_setenv uart_en 1
fw_setenv ssh_en 1
fw_setenv boot_fw1 "run boot_rd_img;bootm"
fw_setenv flag_boot_rootfs 0
fw_setenv flag_last_success 1
fw_setenv flag_boot_success 1
fw_setenv flag_try_sys1_failed 0
boot faild and ubi lost and after kernel error
help me plz!!!
ubi error
Summary
NOTICE: Hello BL31!!!
In: serial@11002000
Out: serial@11002000
Err: serial@11002000
Net: eth0: ethernet@15100000
detect button reset released!
Reading from 0x0 to 0x4f7fdd7c, size 0x4 ... OK
Reading from 0x0 to 0x4f7fdd7c, size 0x4 ... OK
Saving Environment to MTD... Erasing on MTD device 'nmbm0'... OK
Writing to MTD device 'nmbm0'... OK
OK
[Dual Image] Booting System 1, sys1_failed = 0, sys2_failed = 0
ubi0: attaching mtd10
ubi0: scanning is finished
ubi0 error: vtbl_check: too large reserved_pebs 564, good PEBs 272
ubi0 error: vtbl_check: volume table check failed: record 1, error 9
Volume table record 1 dump:
reserved_pebs 564
alignment 1
data_pad 0
vol_type 1
upd_marker 0
name_len 11
name rootfs_data
crc 0xaf0c46c7
ubi0 error: ubi_attach_mtd_dev: failed to attach mtd10, error -22
UBI error: cannot attach mtd10
UBI error: cannot initialize UBI, error -22
*** Failed to attach UBI ***
*** Rebuilding UBI ***
Erasing from 0x0 to 0x21fffff, size 0x2200000 ... OK
*** UBI is read-only mode ***
resetting ...
ok DUDE I FIX Every Thing on RD23 OpenWrt 23.05.4
whitout any problem in instalation process some line corupted mtd after one week fix it
take a time
i make installation process for all tanx soo
Hey guys,
My router is actually in factory partitions, problem similar to @FlopMan64 here : PREVIOUS POST, with this clear error Reading from volume 'kernel' to 0x46000000, size 0x0 ... *** Cannot find volume 'kernel' ***
But thing is, there's no keyboard input detected on my PuTTY window.
Even tried through MobaXterm's serial connection or even with a Mac directly in the terminal : everytime I can't select any options from the uboot menu, staying in this endless loop of rebooting.
Tried to do my research on the web without any success so far.
Any help would be appreciated.
Thanks.