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.
已解决! 转到解答。
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!
-----------------------------------------------------------------------------------------------------------------------
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!
-----------------------------------------------------------------------------------------------------------------------
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.
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.