5 Flash Partitioning
Linux Software Developers Kit (SDK) User Guide
41
5. Since you have decided not to change the partition layout in the kernel source (maybe
changing the kernel source would require intensive testing of the whole kernel again), the
mptpart kernel command line option can be used to overwrite the partition scheme that is
hard coded in the kernel.
To do this we will need to determine the sizes in KB of the kernel and jffs2 partitions. The size
of the kernel partition here is 0x1C0000 bytes (0x180000 bytes on XPort Pro), which works
out to be 1792KB (1536KB on XPort Pro). The size of the jffs2 partition is 0x600000 bytes
(6144KB). Note that a flash partition may be larger than its corresponding image because
they must begin and end on flash erase block boundaries.
For MatchPort AR or EDS1100 / 2100
dBUG> set kcl noinitrd rw rootfstype=jffs2 root=/dev/mtdblock5
mtdparts=mpt:64k(LTRXbloader),64k(LTRXconfig),64k(bootloader),64k(dB
ugConfig),1792k(kernel),6144k(jffs2)
For XPort Pro
‘dBUG> set kcl noinitrd rw rootfstype=jffs2 root=/dev/mtdblock5
mtdparts=mpt:128k(LTRXbloader),128k(LTRXconfig),128k(bootloader),128
k(dBugConfig),1536k(kernel),6144k(jffs2)
6. And run the freshly installed new ROMFS with:
dBUG> gfl
Further details about the mtdparts kcl option can be found in (<install-dir>/linux/linux-2.6.x
/drivers/mtd/cmdlinepart.c)