Command line partition table parsing on MX53

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

Command line partition table parsing on MX53

跳至解决方案
887 次查看
Rooney
Contributor III

Hello!

Can anyone explain how to get my u-boot partions parsed via command line to the kernel to get rid of the board specific mapping (see nand_flash_partitions in mx53_evk.c)?

The relevant options have already been enabled in the kernel (v2.6.35.3, "Command line partition table parsing") so I'm sure the relevant functions are build in.

If I set the command line nothing happens.

console=ttymxc0,115200n8 video=mxcdi0fb:RGB24,XGA di0_primary ldb=di0 mtdparts=mxc_nandv2_flash.0:512k@0x0(u-boot),128k@0x80000(u-bootenv),5Mk(kernel),-(rootfs) root=/dev/nfs ip=dhcp nfsroot=192.168.1.122:/tftpboot/rootfs,v3,tcp

The function parse_cmdline_partitions in drivers/mtd/cmdlinepart.c is called and the parsed partitions are correct (did a printk), but why are they not created? Must these partitions additionally passed to the board specific code? Are the partitions stored in a global variable so I can assign them to the struct nand_flash_partitions?

Regards,

Rooney

标签 (1)
0 项奖励
1 解答
592 次查看
max_tsai
NXP Employee
NXP Employee

hi

if parse_cmdline_partitions allocates memory for pparts well, your nand driver should get the partition information from uboot. Or your nand driver should define static partition infromation by self. You might refer to drivers/mtd/nand/*

Regards,

Max

在原帖中查看解决方案

0 项奖励
1 回复
593 次查看
max_tsai
NXP Employee
NXP Employee

hi

if parse_cmdline_partitions allocates memory for pparts well, your nand driver should get the partition information from uboot. Or your nand driver should define static partition infromation by self. You might refer to drivers/mtd/nand/*

Regards,

Max

0 项奖励