How to add a NAND partition in the kernel for LS1043ardb

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to add a NAND partition in the kernel for LS1043ardb

1,721 次查看
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

标签 (1)
标记 (1)
0 项奖励
回复
2 回复数

1,407 次查看
michaelchen_nsb
Contributor II

hi Hoa,

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

0 项奖励
回复

1,407 次查看
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 项奖励
回复