Yocto 4.1 where in build to tweak nand parameters?

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

Yocto 4.1 where in build to tweak nand parameters?

ソリューションへジャンプ
1,002件の閲覧回数
edwardtyrrell
Senior Contributor I

We've changed the nand to a slightly smaller variant but within the device blocks and pages sizes are considerable different. Problem is the device id is the same for both confusing pretty much everything, mainly uboot.

1) The old LTIB build I could tweak the parameters in nand_device_info.c but how is the equivalent achieved in Yocto? 

 2) How where/does Yocto detect the type of nand, more importantly in my immediate case is this information passed to uboot?

Thanks.

ラベル(5)
0 件の賞賛
1 解決策
766件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Edward

one can look in

linux/drivers/mtd/nand/nand_ids.c
linux-imx.git - i.MX Linux Kernel 
uboot/drivers/mtd/nand/nand_ids.c
uboot-imx.git - Freescale i.MX u-boot Tree 

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

元の投稿で解決策を見る

0 件の賞賛
5 返答(返信)
767件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Edward

one can look in

linux/drivers/mtd/nand/nand_ids.c
linux-imx.git - i.MX Linux Kernel 
uboot/drivers/mtd/nand/nand_ids.c
uboot-imx.git - Freescale i.MX u-boot Tree 

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

0 件の賞賛
766件の閲覧回数
edwardtyrrell
Senior Contributor I

Thanks, does modern linux and u-boot set a specific nand device in the BSP like 2.6 did or is this just achieved by probing?

Headache is I need to change the page size in my nand - more so uboot at the moment. I have a nand chip which shares its device id with its bigger version - but paging size etc is different.

0 件の賞賛
766件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

you can debug these sources and add necessary record for that particular nand.

0 件の賞賛
766件の閲覧回数
edwardtyrrell
Senior Contributor I

Found info in nand.h. Thanks.

0 件の賞賛
766件の閲覧回数
edwardtyrrell
Senior Contributor I

Cheers, just a little more info, what are the exact descriptions of the parameters in RED ( for me to match my nand )

{"MT29F4G08ABAEAH4:E 4G 3.3V 8-bit",

{ .id = {0x2c, 0xdc, 0x90, 0xA6, 0x54} },

SZ_8K, SZ_8K, SZ_2M, 0, 8, 640, NAND_ECC_INFO(40, SZ_1K) },

I need to know which one is page size, block size, page size in bytes etc.

0 件の賞賛