Hi all,
I want my imx6ul custom board boot from NAND flash,so I flash NAND with UUU.
The NAND flash on my custom board is IS34ML02G084-BLI_63BGA,and bsp version is sumo L4.14.98-2.3.1
I modified u-boot-imx\2018.03-r0\git\include\linux\mtd\rawnand.h :
#define NAND_MFR_SANDISK 0x45
#define NAND_MFR_INTEL 0x89
#define NAND_MFR_ATO 0x9b
#define NAND_MFR_ISSI 0xc8 //add this line
and u-boot-imx\2018.03-r0\git\drivers\mtd\nand\nand_ids.c:
{"IS34ML02G084 2G 3.3V 8-bit",
{ .id = {0xc8, 0xda, 0x90, 0x95, 0x44, 0x7f, 0x7f, 0x7f} },
SZ_64K, SZ_256, SZ_128K, 0, 8, 64,NAND_ECC_INFO(4, SZ_512),4 },
struct nand_manufacturers nand_manuf_ids[] = {
{NAND_MFR_ISSI, "ISSI"},//add this line
When UUU load u-boot to ram: SDP: boot -f u-boot-nand-2018.03-r0.imx
The log from terminal showed:
U-Boot 2018.03-4.14.98-2.3.1+gb1840a0 (Aug 19 2020 - 03:43:18 +0000)
CPU: Freescale i.MX6UL rev1.2 528 MHz (running at 396 MHz)
CPU: Industrial temperature grade (-40C to 105C) at 38C
Reset cause: POR
Model: Freescale i.MX6 UltraLite 14x14 EVK Board
Board: MX6UL 14x14 EVK
DRAM: 256 MiB
NAND: 256 MiB
MMC: FSL_SDHC: 0
Loading Environment from NAND... MXS NAND: BCH read timeout
MXS NAND: BCH read timeout
MXS NAND: BCH read timeout
MXS NAND: BCH read timeout
MXS NAND: BCH read timeout
MXS NAND: BCH read timeout
MXS NAND: BCH read timeout
MXS NAND: BCH read timeout
How to fix it and make the flash progress continue?
Hi west
for "MXS NAND: BCH read timeout" error one can consider below patch
[U-Boot] MTD: mxs_nand: Fix BCH read timeout error on boards requiring ECC - Patchwork
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Igor,
Could you give me some more further information to deal with this problem?
Hi Igor,
Thanks for your quick reply.
I checked the file in patch and add:
diff --git a/drivers/mtd/nand/raw/mxs_nand_spl.c b/drivers/mtd/nand/raw/mxs_nand_spl.cindex c628f3adec..ba85baac60 100644 --- a/drivers/mtd/nand/raw/mxs_nand_spl.c +++ b/drivers/mtd/nand/raw/mxs_nand_spl.c @@ -201,6 +201,7 @@ static int mxs_nand_init(void) /* setup flash layout (does not scan as we override that) */ mtd->size = nand_chip.chipsize; nand_chip.scan_bbt(mtd); + mxs_nand_setup_ecc(mtd); return 0; }
After rebuild u-boot-nand,the BCH read timeout problem still there.