I've recently acquired a FRITZ!Box 7530 and wanted to install OpenWrt on it. Unfortunately, it failed miserably with a blinking red Info LED. An indicator for this is that the initramfs image does not find any UBI volumes. Since it didn't work after a few restore -> reinstall cycles, I disassembled the device and attached serial console:
There seems to be a different NAND chip, reading and writing fails. It's a KIOXIA (Toshiba) TC58NVG0S3HTA00. Since both, U-Boot and OpenWrt are affected, I've also created an issue at https://github.com/chunkeey/FritzBox-4040-UBOOT/issues/7.
I have not much experience with NAND chips, what can I do to fix this issue?
Here is an excerpt from the boot log where U-Boot fails:
[NAND:] 128MB TOSHIBA 2048 Pagesize 128k Blocksize 1024 Blocks HW
[SYSTEM:] CortexA9
Eva_AVM >...Device Tree Blob for SubRevision 3 not found.
Using Device Tree Blob of SubRevision 2
U-Boot 2012.07 [local,r19300-8df161791a] (Apr 03 2022 - 15:56:28)
smem ram ptable found: ver: 1 len: 3
DRAM: 256 MiB
machid : 0x8010001
cdp: get environment part failed
Maximum malloc length: 512 KBytes
mem_malloc_start/brk/end: 0x84140000/84140000/84200000
Relocation offset: 0
NAND: Not an ONFI device
ONFI probe failed
ID = 1580f198
Vendor = 98
Device = f1
SF: Unsupported manufacturer ff
ipq_spi: SPI Flash not found (bus/cs/speed/mode) = (0/0/48000000/0)
128 MiB
*** Warning - bad CRC, using default environment
In: serial
Out: serial
Err: serial
name : offset size
0:SBL1 : 00000000 00080000
0:MIBIB : 00080000 00080000
0:QSEE : 00100000 00080000
0:CDT : 00180000 00040000
0:QSEE_B : 001c0000 00080000
0:APPSBL_B : 00240000 00040000
0:APPSBL : 00280000 00040000
machid: 8010001
Net: Configure GPIOSNand Flash error. Status = 12591152
NAND page read failed. page: 57b status ffffffb6
Read 1024 bytes from 02bd800
maca: ca:0:0:0:0:0
macb: 0:cb:0:0:0:0
MAC0 addr:ca:0:0:0:0:0
PHY ID1: 0x4d
PHY ID2: 0xd0b1
ipq40xx_ess_sw_init done
eth0
Hit any key to stop autoboot: 3 <0x08><0x08><0x08> 2 <0x08><0x08><0x08> 1 <0x08><0x08><0x08> 0
Creating 1 MTD partitions on "nand1":
0x01300000-0x08000000 : "mtd=4"
UBI: attaching mtd1 to ubi0
UBI: physical eraseblock size: 131072 bytes (128 KiB)
UBI: logical eraseblock size: 126976 bytes
UBI: smallest flash I/O unit: 2048
UBI: VID header offset: 2048 (aligned 2048)
UBI: data offset: 4096
Nand Flash error. Status = 12595248
NAND page read failed. page: 2600 status ffffffb6