On Tue, 2009-08-04 at 04:34 -0700, Vijay Soni wrote:
> Can anybody tell me how we can concatenate the last two partitions in board
> file:
>
>
>
> static struct mtd_partition nand_partitions[] = {
> /* bootloader (UBL, U-Boot, BBT) in sectors: 0 - 14 */
> {
> .name = "bootloader",
> .offset = 0,
> .size = 15*NAND_BLOCK_SIZE,
> .mask_flags = MTD_WRITEABLE, /* force read-only */
> },
> /* bootloader params in the next sector 15 */
> {
> .name = "params",
> .offset = MTDPART_OFS_APPEND,
> .size = 1*NAND_BLOCK_SIZE,
> .mask_flags = MTD_WRITEABLE, /* force read-only */
> },
> /* kernel in sectors: 16 */
> {
> .name = "kernel",
> .offset = MTDPART_OFS_APPEND,
> .size = SZ_4M,
> .mask_flags = 0
> },
> {
> .name = "filesystem1",
> .offset = MTDPART_OFS_APPEND,
> .size = SZ_256M,
> .mask_flags = 0
> }
> };
>
You can do something like
{
.name = "filesystem",
.offset = MTDPART_OFS_APPEND,
.size = MTDPART_SIZ_FULL,
.mask_flags = 0
}
To get everything after "kernel" into filesystem partition... if that is
what you are asking.
Regards,
Steve
_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source