Lantronix EDS2100 Linux SDK - User Guide - Page 41

For MatchPort AR or EDS1100 / 2100, For XPort Pro

Page 41 highlights

5 Flash Partitioning 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 kernel + ROMFS with: dBUG> gfl Further details about the mtdparts kcl option can be found in (/linux/linux-2.6.x /drivers/mtd/cmdlinepart.c) Linux Software Developers Kit (SDK) User Guide 41

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76

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 kernel + 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)