Lantronix EDS2100 Linux SDK - User Guide - Page 35

Flash Partitioning, Linux Software Developers Kit SDK User Guide, DEFAULT_FLASH_SIZE / 2 - 0x40000

Page 35 highlights

5 Flash Partitioning }, { .name = "LTRXconfig", .size = 0x10000, .offset = MTDPART_OFS_NXTBLK, .mask_flags = MTD_WRITEABLE /* force read-only */ }, { .name = "dBug", .size = 0x10000, .offset = MTDPART_OFS_NXTBLK, .mask_flags = MTD_WRITEABLE /* force read-only */ }, { .name = "dBugConfig", .size = 0x10000, .offset = MTDPART_OFS_NXTBLK, }, { .name = "Kernel", .size = (DEFAULT_FLASH_SIZE / 2) - 0x40000, .offset = MTDPART_OFS_NXTBLK, .mask_flags = MTD_WRITEABLE /* force read-only */ }, }; static struct mtd_partition m520x_romfs_in_flash_partition[] = { { .name = "Romfs", .size = 0, /* needs to be adjusted dynamically */ .offset = 0, /* needs to be adjusted dynamically */ .mask_flags = MTD_WRITEABLE /* force read-only */ }, }; static struct mtd_partition m520x_partitions_after_romfs[] = { { .name = "UserSpace", .size = MTDPART_SIZ_FULL, // gets overwritten below .offset = MTDPART_OFS_NXTBLK }, { .name = "WritableFlash", .size = MTDPART_SIZ_FULL, .offset = 0x40000 } #ifdef CONFIG_MTD_RECOVER_PARAMS , { .name = "UserExtra", .size = 0x30000, .offset = 0x400000 // gets overwritten below }, { .name = "dBugConfBackup", .size = 0x10000, .offset = 0x430000 // gets overwritten below Linux Software Developers Kit (SDK) User Guide 35

  • 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
35
},
{
.name = "LTRXconfig",
.size = 0x10000,
.offset = MTDPART_OFS_NXTBLK,
.mask_flags = MTD_WRITEABLE /* force read-only */
},
{
.name = "dBug",
.size = 0x10000,
.offset = MTDPART_OFS_NXTBLK,
.mask_flags = MTD_WRITEABLE /* force read-only */
},
{
.name = "dBugConfig",
.size = 0x10000,
.offset = MTDPART_OFS_NXTBLK,
},
{
.name = "Kernel",
.size
= (DEFAULT_FLASH_SIZE / 2) - 0x40000,
.offset = MTDPART_OFS_NXTBLK,
.mask_flags = MTD_WRITEABLE /* force read-only */
},
};
static struct mtd_partition m520x_romfs_in_flash_partition[] = {
{
.name = "Romfs",
.size = 0,
/* needs to be adjusted dynamically */
.offset = 0,
/* needs to be adjusted dynamically */
.mask_flags = MTD_WRITEABLE /* force read-only */
},
};
static struct mtd_partition m520x_partitions_after_romfs[] = {
{
.name = "UserSpace",
.size = MTDPART_SIZ_FULL,
// gets overwritten below
.offset = MTDPART_OFS_NXTBLK
},
{
.name = "WritableFlash",
.size = MTDPART_SIZ_FULL,
.offset = 0x40000
}
#ifdef CONFIG_MTD_RECOVER_PARAMS
,
{
.name = "UserExtra",
.size = 0x30000,
.offset = 0x400000
// gets overwritten below
},
{
.name = "dBugConfBackup",
.size = 0x10000,
.offset = 0x430000
// gets overwritten below