Re: MT7621 NAND vs MMC (was: MT7621 NAND OOB misdetect)

2023-03-21 Thread Peter Naulls
On 2/21/23 11:02, Peter Naulls wrote: On 2/15/23 10:17, Chuanhong Guo wrote: Hi! What to try next, thanks! It looks like the detected spare size and ECC strength matches between the two drivers, according to the u-boot message and kernel log. Maybe you can try dumping the nand controller

Re: MT7621 NAND OOB misdetect

2023-02-21 Thread Peter Naulls
On 2/15/23 10:17, Chuanhong Guo wrote: Hi! What to try next, thanks! It looks like the detected spare size and ECC strength matches between the two drivers, according to the u-boot message and kernel log. Maybe you can try dumping the nand controller setup registers and compare the registe

Re: MT7621 NAND OOB misdetect

2023-02-15 Thread Chuanhong Guo
Hi! On Tue, Feb 14, 2023 at 4:01 AM Peter Naulls wrote: > > On 2/11/23 08:10, Chuanhong Guo wrote: > > Hi! > > > > >> > >> # nanddump -a /dev/mtd2 > >> ECC failed: 8 > >> ECC corrected: 0 > >> Number of bad blocks: 0 > >> Number of bbt blocks: 0 > >> Block size 131072, page size 2048, OOB size 12

Re: MT7621 NAND OOB misdetect

2023-02-15 Thread Peter Naulls
On 2/13/23 15:01, Peter Naulls wrote: ich might be the misreporting. In our driver, it comes out as: [   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 I tried adjusting in nand_on

Re: MT7621 NAND OOB misdetect

2023-02-13 Thread Peter Naulls
On 2/11/23 08:10, Chuanhong Guo wrote: Hi! # nanddump -a /dev/mtd2 ECC failed: 8 ECC corrected: 0 Number of bad blocks: 0 Number of bbt blocks: 0 Block size 131072, page size 2048, OOB size 128 Dumping data starting at 0x and ending at 0x0004... libmtd: error!: MEMGETBADBLOCK ioc

Re: MT7621 NAND OOB misdetect

2023-02-11 Thread Chuanhong Guo
Hi! On Sat, Feb 11, 2023 at 8:41 PM Peter Naulls wrote: > > On 2/10/23 22:41, Chuanhong Guo wrote: > > Hi! > > > 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,%20

Re: MT7621 NAND OOB misdetect

2023-02-11 Thread Peter Naulls
On 2/10/23 22:41, Chuanhong Guo wrote: Hi! 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 i

Re: MT7621 NAND OOB misdetect

2023-02-10 Thread Chuanhong Guo
Hi! On Sat, Feb 11, 2023 at 2:46 AM Peter Naulls 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]

MT7621 NAND OOB misdetect

2023-02-10 Thread Peter Naulls
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.42