NAND chip not detected under linux

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

NAND chip not detected under linux

2,409 Views
harshithak
Contributor I

Hi,

We've got a  Freescale 2012 sabreauto custom board , where we've mounted a IC FLASH 64GBIT 48TSOP NAND chip ( Mfg ID -MT29F64G08CFACAWP:C TR).  We cannot, however, seem to find an existing i.MX6 board that uses any chips like this. The NAND chip is working under u-boot as I can Erase/Read/Write the chip. But Linux is unable to load the NAND driver successfully.

Here are my dtsi settings:

imx6qdl-sabreauto.dtsi :-

&ecspi1 {
    fsl,spi-num-chipselects = <1>;
    cs-gpios = <&gpio3 19 0>;
    pinctrl-names = "default";
    pinctrl-0 = <&pinctrl_ecspi1 &pinctrl_ecspi1_cs>;
    status = "disabled"; /* pin conflict with WEIM NOR */

    flash: m25p80@0 {
        #address-cells = <1>;
        #size-cells = <1>;
        compatible = "st,m25p32";
        spi-max-frequency = <20000000>;
        reg = <0>;
    };
};

&gpmi {
    pinctrl-names = "default";
    pinctrl-0 = <&pinctrl_gpmi_nand>;
    status = "okay"; /* pin conflict with uart3 */
    nand-on-flash-bbt;
};

&weim {
    pinctrl-names = "default";
    pinctrl-0 = <&pinctrl_weim_nor &pinctrl_weim_cs0>;
    #address-cells = <2>;
    #size-cells = <1>;
    ranges = <0 0 0x08000000 0x08000000>;
    status = "disabled"; /* pin conflict with SPI NOR */

    nor@0,0 {
        compatible = "cfi-flash";
        reg = <0 0 0x02000000>;
        #address-cells = <1>;
        #size-cells = <1>;
        bank-width = <2>;
        fsl,weim-cs-timing = <0x00620081 0x00000001 0x1c022000
                0x0000c000 0x1404a38e 0x00000000>;
    };
};

Can you please help us to solve the NAND issue in linux?

Thanks In Advance.

Tags (1)
0 Kudos
9 Replies

1,779 Views
harshithak
Contributor I

Hi,

We had enabled all the Linux configuration according to sect.33.3.1 Menu Configuration Options as in the attached Linux Manual, but still we are not able to detect the NAND chip under the linux section. Currently we are working on evolution board.

The following are the log, dtsi and config attched files:

0 Kudos

1,779 Views
igorpadykov
NXP Employee
NXP Employee

please try to test this nand with nxp sabre ai reference board

and use Demo Images from

i.MX 6 Series Software and Development Tool|NXP 

0 Kudos

1,779 Views
harshithak
Contributor I

Hi igorpadykov,

We tried with the demo images by replacing all the zImage and *.dtb files in the SD card, but still the cat /proc/mtd shows nothing in the console.

The following attachment shows the imx6q-sabreauto evolution board that we are using.IMG_20161025_185350516.jpg

0 Kudos

1,779 Views
igorpadykov
NXP Employee
NXP Employee

Linux version 4.1.29-fslc (from attached log) is not supported by nxp,

please try official nxp bsps from link

i.MX 6 Series Software and Development Tool|NXP 

Best regards
igor

0 Kudos

1,779 Views
harshithak
Contributor I

hi igorpadykov,

we replaced the imx6qsabreauto zImage and all dtb files with the imx6qsabreauto demo images of Linux version L4.1.15_2.0.0_MX6QDLSOLO, but still it displays nothing for cat /proc/mtd in the console.

0 Kudos

1,779 Views
igorpadykov
NXP Employee
NXP Employee

had you changed also uboot, it should be uboot-imx_v2015.04_4.1.15 ?

Is it working ok with default nand presented on board ?

0 Kudos

1,779 Views
harshithak
Contributor I

Hi,

As the nand chip is getting detected under uboot but not under Linux So I had replaced only the sabreauto zImage and dtb files in the SD card. But still its not getting detected under linux , so can you please tell me how to change the uboot?

0 Kudos

1,779 Views
igorpadykov
NXP Employee
NXP Employee

please try Demo Images found on

i.MX 6 Series Software and Development Tool|NXP 

use mfg tools for programming board

0 Kudos

1,778 Views
igorpadykov
NXP Employee
NXP Employee

Hi Harshitha

what exact i.MX6 part used in the case, BSP. Could you attach log.

In general one can use default sabre-ai dts files, without changes,

please check attached Release Notes Table 11. Common kernel boot

parameters p.23 "mtdparts" and Linux Guide sect.4.6.2 NAND flash memory map, p.26.

Programming image to nand should be made using mfg tools with vbs script

containing name "nand", like mfgtool2-yocto-mx-sabreauto-nand.vbs

Use u-boot-imx6dlsabreauto_nand.imx and recheck Linux configuration according to

sect.33.3.1 Menu Configuration Options attached Linux Manual

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos