How to add a NAND partition in the kernel for LS1043ardb

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

How to add a NAND partition in the kernel for LS1043ardb

987 Views
hoanguyen
Contributor II

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

Labels (1)
Tags (1)
0 Kudos
2 Replies

673 Views
michaelchen_nsb
Contributor II

hi Hoa,

I've the same question, do you have any progress on this?

0 Kudos

673 Views
Pavel
NXP Employee
NXP Employee

NXP SDK for LS1043a uses new image source format.

Look at the following pages:

https://casper.berkeley.edu/svn/trunk/roach/sw/uboot/doc/uImage.FIT/source_file_format.txt


Have a great day,
Pavel Chubakov

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

0 Kudos