Comments

The partitions are all sorted well by the @offset.
But we should check if there are errors in the partitions.
The following cases are regarded as errors:
[1] There is a hole in the partitions, such as
#gpmi-nand:100m(boot),100m@100m(kernel),1g@200m(rootfs)
[2] There is a overlap in the partitions, such as
#gpmi-nand:100m@0(boot),100m@50m(kernel),1g@150m(rootfs)
[3] Not all the partitions are set with @offset, and there are
more then one partion whose offset is OFFSET_CONTINUOUS.
#gpmi-nand:100m@0(boot),100m(kernel),-(usr)
Signed-off-by: Huang Shijie <b32955@freescale.com>
---
drivers/mtd/cmdlinepart.c | 55 +++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 55 insertions(+), 0 deletions(-)