How to add a NAND partition in the kernel for LS1043ardb

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to add a NAND partition in the kernel for LS1043ardb

1,224件の閲覧回数
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 返答(返信)

910件の閲覧回数
michaelchen_nsb
Contributor II

hi Hoa,

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

0 件の賞賛
返信

910件の閲覧回数
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 件の賞賛
返信