Kernel panic using add_mtd_partitions

ANDY KENNEDY ANDY.KENNEDY at adtran.com
Tue Feb 1 17:13:15 EST 2011


123456789012345678901234567890123456789012345678901234567890123456789012
I have gotten past the issue of not being able to see the NAND chip and
am working that issue (a symptom of an unrelated issue).

Now I'm attempting to use add_mtd_partitions() to specify the
partitions.
In the original kernel I was using (2.6.29) this worked without any
issue.  In 2.6.36.1, the kernel panics.  The code I'm attempting to use
to configure the partitions is as follows:

__maybe_unused static struct    mtd_partition   nand_partition_info[] =
{
        { .name =  "Kernel partition",
          .offset = 0,
          .size =   4 * 1024 * 1024,
        },
        { .name =  "Root partition",
          .offset = MTDPART_OFS_APPEND,
          .size =   MTDPART_SIZ_FULL,
        },
};



        add_mtd_partitions(&board_mtd, nand_partition_info,
ARRAY_SIZE(nand_partition_info));

Any help would be great!

Thanks,
Andy



More information about the linux-mtd mailing list