I've uploaded the code here if anyone wants to tinker with it. It's hard without owning the device to troubleshoot the nand ecc issues you're seeing:
Recently I saw that the Xiaomi ax 6000 has started to support openwrt, the Xiaomi Mi 6000 and the Redmi ax 5400, The two machines are homologous, and most of the chips are the same. The change is the loss of a set of aiot antennas and a 2.5g port, I tried to brush the ax 6000 openwrt firmware into the Redmi ax 5400, and he still had problems with the Flash ecc drive,and the LAN port seems to be not accessible,i think it's switch chip driver problem[ 2.124265] UBI error: cannot open mtd rootfs_1, error -2 [ 2.124333] ubi0: attaching mtd19 [ 2.129373] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 0:0, read only 64 bytes, retry [ 2.132729] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 0:0, read only 64 bytes, retry [ 2.143536] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 0:0, read only 64 bytes, retry [ 2.154583] ubi0 error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 0:0, read 64 bytes [ 2.165164] CPU: 1 UID: 0 PID: 1 Comm: swapper/0 Not tainted 6.12.34 #0
How is Immortalwrt related to this forum ?
I forgot to take a screenshot of the original openwrt, so I posted immortalwrt, which has very similar functions to openwrt. Immortalwrt is a branch of openwrt and is very popular in China. Both firmwares have the ECC problem of this flash memory.
The problem I encountered is exactly the same as yours. The flash memory cannot be started in ECC. It may also be a problem with the flash drive.
But I still haven't found the reason why it can't start? Theoretically, Xiaomi's ax6000 has no problem, so Redmi's ax5400 chips are the same, and even lack a 2.5g switch chip, so it shouldn't have any problems?