
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 02/21/2013 01:58 AM, Bo Shen wrote:
Hi Tom,
On 2/21/2013 10:05, Tom Rini wrote:
On Wed, Feb 20, 2013 at 06:16:25PM +0800, Bo Shen wrote:
Change nand flash partition tablke according to www.at91.com/linux4sam
more information: http://www.at91.com/linux4sam/bin/view/Linux4SAM/GettingStarted#Linux4SAM_Na...
Signed-off-by: Bo Shen voice.shen@atmel.com
Question. Is there a reason to not being doing the MTDIDS / MTDPARTS and adding CONFIG_CMD_MTDPARTS ?
Yes, MTDIDS/MTDPARTS is missing, however, we can set mtdids and mtdpart environment to use mtdparts command. (Maybe this is not a good idea, will consider to add MTDIDS / MTDPARTS later, not in this patch series.)
Right. But without CONFIG_CMD_MTDPARTS you don't have the mtdparts commands / infrastructure in U-Boot :)
Doing that should also "just" enable the nand info to be passed in the device tree.
I am not fully understand this. You means add MTDIDS / MTDPARTS, it can automatically pass the nand info to device tree, not through the command line, am I right?
I was mis-remembering the code. If you have CONFIG_FDT_FIXUP_PARTITIONS set and the board support code calls fdt_fixup_mtdparts then yes, the mtdparts info will be put into the device tree and then CONFIG_MTD_OF_PARTS in the kernel should take that and run with it. At least I think that's all there is to it, I've meant to, but not had a chance, to try that all out again. Perhaps soon tho.
- -- Tom