AR# 69759

2017.1-2017.4 Zynq UltraScale+ MPSoC: Device tree generator does not generate NAND partition node according to arasan NAND template.

Description

PetaLinux does not generate a NAND partition node according to the arasan NAND template, and Linux does not recognize the partitions defined in petalinux-config.

https://github.com/Xilinx/linux-xlnx/blob/master/Documentation/devicetree/bindings/mtd/arasan_nfc.txt

Solution

To work around this issue, delete the flash partitions in petalinux-config and add the NAND partition node to <plnx-proj-root>/project-spec/meta-user/recipes-bsp/device-tree/files/system-user.dtsi

For example:

&nand0 {
    #size-cells = <0x0>;
    arasan,has-mdma;
    nand@0 {
        reg = <0x0>;
        #address-cells = <0x2>;
        #size-cells = <0x1>;
        partition@0 {
            label = "nand-fsbl-uboot";
            reg = <0x0 0x0 0xC000000>;
        };
        partition@1 {
            label = "nand-linux";
            reg = <0x0 0xC000000 0x10000000>;
        };
        partition@2 {
            label = "nand-device-tree";
            reg = <0x0 0x1C000000 0x4000000>;
        };
        partition@3 {
            label = "nand-rootfs";
            reg = <0x0 0x20000000 0x20000000>;
        };
        partition@4 {
            label = "nand-bitstream";
            reg = <0x0 0x40000000 0x8000000>;
        };
        partition@5 {
            label = "nand-misc";
            reg = <0x0 0x48000000 0xA000000>;
        };
    };
};
AR# 69759
Date 03/09/2018
Status Active
Type General Article
Devices
Tools More Less