AnsweredAssumed Answered

Uboot support for NAND Flash TC58NVG1S3H

Question asked by abutter gao on Nov 20, 2018
Latest reply on Dec 6, 2018 by abutter gao

I am working on board with I.MX6ULL and NAND Flash TC58NVG1S3H. I run nandtest on Linux to test this chip and also try wrinting and then dumping a mtd partition, all seems well.

When uboot reads kernel image and dts from NAND, something wrong happend, the first 256 bytes are good but the remains of the data seems random.

The I added something for this nand flash into nand_flash_ids table as per the datasheet

+#if 1
+       {"TC58NVG1S3H 2G 3.3V 8-bit",
+               { .id = {0x98, 0xda, 0x90, 0x15, 0x76, 0x16, 0x08, 0x00} },
+                 SZ_2K, SZ_256, SZ_128K, 0, 8, 128, NAND_ECC_INFO(8, SZ_512) },
        {"TC58NVG2S0H 4G 3.3V 8-bit",
                { .id = {0x98, 0xdc, 0x90, 0x26, 0x76, 0x16, 0x08, 0x00} },
                  SZ_4K, SZ_512, SZ_256K, 0, 8, 256, NAND_ECC_INFO(8, SZ_512) },

The U-boot didn't complain about unknow flash any more, but when I failed to run nand read command, it just said something wrong.

I am working on checking the timing and layout in BCH and GPMI registers. While, any suggestion is appreciated.