Hi,

I am trying to move linux-socfpga from v4.6 to v4.13(or higher)  on a propriety 
Arria V board and facing following  issues with  Micron NAND flash 
MT29F4G08ABADAWP bring up:

See following error  message with  linux-socfpga-4.13/4.14-rc2 :

[    0.654264] nand: device found, Manufacturer ID: 0x00, Chip ID: 0x2c
[    0.660625] nand: Unknown denali-nand
[    0.664273] nand: bus width 8 instead of 16 bits
[    0.668868] nand: No NAND device found
[    0.672661] denali-nand-dt: probe of ff900000.nand failed with error -22

See following  messages with  linux-socfpga -4.12:
4.12

[    0.644656] denali-nand-dt ff900000.nand: Dump timing register values:
[    0.644656] acc_clks: 4, re_2_we: 20, re_2_re: 20
[    0.644656] we_2_re: 12, addr_2_data: 14, rdwr_en_lo_cnt: 2
[    0.644656] rdwr_en_hi_cnt: 2, cs_setup_cnt: 2
[    0.665964] nand: Could not find valid ONFI parameter page; aborting
[    0.672297] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xdc
[    0.678643] nand: Micron NAND 512MiB 3,3V 8-bit
[    0.683173] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB 
size: 64
[    0.690899] 2 ofpart partitions found on MTD device denali-nand
[    0.696814] Creating 2 MTD partitions on "denali-nand":
[    0.702021] 0x000000000000-0x000018000000 : "terraindb"
[    0.715542] random: fast init done
[    0.911647] 0x000018000000-0x000020000000 : "logs"

Also, fail to mount both the partition.


I had added following in our dts:

/* Micron NAND flash MT29F4G08ABADAWP 4Gb (512MB) */
&nand0 {
    status = "okay";
    compatible = "altr,socfpga-denali-nand";
    have-hw-ecc-fixup;

 /* Now add our own scheme */
                partition@nand0-terraindb {
                                /* 384MB for terrain database */
                                label = "terraindb";
                                reg = <0x00000000 0x18000000>;
                };
                partition@nand0-logs {
                                /* 128MB for event & fault logs */
                                label = "logs";
                                reg = <0x18000000 0x08000000>;
                };
};

Also tried to add following  in dts, but no  success:
nand-ecc-mode = "hw";
 nand-ecc-step-size = <512>;
 nand-ecc-strength  = <8>;

See following  messages with  linux-socfpga -4.6 (works fine):
-------------------------
[    0.649715] denali-nand-dt ff900000.nand: Dump timing register values:
[    0.649715] acc_clks: 4, re_2_we: 20, re_2_re: 20
[    0.649715] we_2_re: 12, addr_2_data: 14, rdwr_en_lo_cnt: 2
[    0.649715] rdwr_en_hi_cnt: 2, cs_setup_cnt: 2
[    0.671160] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xdc
[    0.677504] nand: Micron MT29F4G08ABADAWP
[    0.681501] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB 
size: 64
[    0.689232] Bad block table found at page 262080, version 0x01
[    0.695160] Bad block table found at page 262016, version 0x01
[    0.701274] 2 ofpart partitions found on MTD device denali-nand
[    0.707194] Creating 2 MTD partitions on "denali-nand":
[    0.712401] 0x000000000000-0x000018000000 : "terraindb"
[    0.720700] 0x000018000000-0x000020000000 : "logs"

And can see that both the partition are mounted properly
/dev/ubi0_0 on /terraindb type ubifs (rw,relatime)
/dev/ubi1_0 on /logs type ubifs (rw,relatime)


Any thoughts on what I  am doing wrong or to correct these issues will be very 
helpful.

Thanks in advance.

Regards
Shrikrishna

_______________________________________________
Rfi mailing list
Rfi@lists.rocketboards.org
http://lists.rocketboards.org/cgi-bin/mailman/listinfo/rfi

Reply via email to