Hi,
I'm developing a new board based on dm6446. I would like to change the
NAND memory, and I'm wondering how this would impact the kernel.
I mean, I saw in arch/arm/mach-davinci/board-dm644x-evm.c that the nand
partitioning is defined in the array davinci_evm_nandflash_partition .
My question is: if I change the NAND memory, what do I have to change?
Further more, I don't underdstand how the total size of the memory is
specified:
The code is
123 struct mtd_partition davinci_evm_nandflash_partition[] = {
124 /* Bootloader layout depends on whose u-boot is installed, but we
125 * can hide all the details.
126 * - block 0 for u-boot environment ... in mainline u-boot
127 * - block 1 for UBL (plus up to four backup copies in blocks 2..5)
128 * - blocks 6...? for u-boot
129 * - blocks 16..23 for u-boot environment ... in TI's u-boot
130 */
131 {
132 .name = "bootloader",
133 .offset = 0,
134 .size = SZ_256K + SZ_128K,
135 .mask_flags = MTD_WRITEABLE, /* force read-only
*/
136 },
137 /* Kernel */
138 {
139 .name = "kernel",
140 .offset = MTDPART_OFS_APPEND,
141 .size = SZ_4M,
142 .mask_flags = 0,
143 },
144 /* File system (older GIT kernels started this on the 5MB mark) */
145 {
146 .name = "filesystem",
147 .offset = MTDPART_OFS_APPEND,
148 .size = MTDPART_SIZ_FULL,
149 .mask_flags = 0,
150 }
151 /* A few blocks at end hold a flash BBT ... created by TI's CCS
152 * using flashwriter_nand.out, but ignored by TI's versions of
153 * Linux and u-boot. We boot faster by using them.
154 */
155 };
so, what is MTDPART_SIZ_FULL? Does it autodetect the size of the memory?
Thank you for your help,
Ottavio
--
Non c'è più forza nella normalità, c'è solo monotonia.
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source