MT7621 NAND OOB misdetect
Chuanhong Guo
gch981213 at gmail.com
Fri Feb 10 19:41:57 PST 2023
Hi!
On Sat, Feb 11, 2023 at 2:46 AM Peter Naulls <peter at chocky.org> wrote:
>
>
> This is the boot on the vendor legacy code - OpenWrt 18.06ish, with kernel
> 4.14.131, with probably a bunch of their customizations, but:
>
> [ 9.398860] [NAND]select ecc bit:12, sparesize :112 spare_per_sector=28
> [ 9.412077] nand: device found, Manufacturer ID: 0xc2, Chip ID: 0xf1
> [ 9.424719] nand: Macronix NAND 128MiB 3,3V 8-bit
> [ 9.434084] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB
> size: 32
>
> But under 5.10 on 22.03 (I also tried 5.15 with current development, but that
> has unrelated issues):
>
> [ 16.071380] nand: device found, Manufacturer ID: 0xc2, Chip ID: 0xf1
> [ 16.084185] nand: Macronix MX30LF1G28AD
> [ 16.091826] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB
> size: 128
> [ 16.107083] mt7621-nand 1e003000.nand: ECC strength adjusted to 12 bits
> [ 16.163318] 8 fixed-partitions partitions found on MTD device mt7621-nand
>From the datasheet here:
https://www.mxic.com.tw/Lists/Datasheet/Attachments/8858/MX30LF1G28AD,%203V,%201Gb,%20v1.3.pdf
The MX30LF1G28AD actually have 2K+128 flash layout, so it's the old driver
which is incorrectly detecting OOB size.
> Suffice to that accessing the device (nanddump) does not go well.
Could you describe what exactly goes wrong?
--
Regards,
Chuanhong Guo
More information about the openwrt-devel
mailing list