AnsweredAssumed Answered

How to add a NAND partition in the kernel for LS1043ardb

Question asked by Hoa Nguyen on Jun 29, 2016
Latest reply on Aug 29, 2017 by Michael Chen

I am adding a new NAND partition for the ls1043ardb (SDK 2.0) in the u-boot as follows:

 

/include/configs/ls1043ardb_common.h

 

#define MTDPARTS_DEFAULT "mtdparts=60000000.nor:1m(nor_bank0_rcw)," \

            "1m(nor_bank0_uboot),1m(nor_bank0_uboot_env)," \

            "1m(nor_bank0_fman_uconde),40m(nor_bank0_fit)," \

            "1m(nor_bank4_rcw),1m(nor_bank4_uboot)," \

            "1m(nor_bank4_uboot_env),1m(nor_bank4_fman_ucode)," \

            "40m(nor_bank4_fit);7e800000.flash:" \

            "1m(nand_uboot),1m(nand_uboot_env)," \

            "20m(nand_fit);spi0.0:1m(uboot)," \

            "5m(kernel),1m(dtb),9m(file_system)"

 

Changed to:

 

#define MTDPARTS_DEFAULT "mtdparts=60000000.nor:1m(nor_bank0_rcw)," \

            "1m(nor_bank0_uboot),1m(nor_bank0_uboot_env)," \

            "1m(nor_bank0_fman_uconde),40m(nor_bank0_fit)," \

            "1m(nor_bank4_rcw),1m(nor_bank4_uboot)," \

            "1m(nor_bank4_uboot_env),1m(nor_bank4_fman_ucode)," \

            "40m(nor_bank4_fit),10m(new_nand_part);7e800000.flash:" \

            "1m(nand_uboot),1m(nand_uboot_env)," \

            "20m(nand_fit);spi0.0:1m(uboot)," \

            "5m(kernel),1m(dtb),9m(file_system)"

 

My questions are:

1) Is it the right way to add new partition in u-boot?

2) I don't find much information in the kernel for adding new partition rather than the following 2 files:

arm64/boot/dts/freescale/fsl-ls1043a.dtsi and fsl-ls1043a-rdb.dts

How can I add new partition in kernel?

 

thanks,

Hoa

Outcomes