Lantronix EDS1100 Linux SDK - User Guide - Page 32

Flash Partitioning, Intro to Partitioning, Dual Bank - price

Page 32 highlights

5. Flash Partitioning Intro to Partitioning The idea of partitioning is to optimize the usage of the available flash space to meet your requirements. A Linux file system encompasses many files with different characteristics. There are binaries and data files. Some of them are crucial for the operation of the system all the time, while some need to be available in certain conditions only. Most files do not need to (and must not) be modified, some files are important, but variable (e.g. persistent configuration files) and then there are temporary files like logs. Linux supports these requirements by letting the user mount different file system types into one file system tree. Some of them were described in the previous chapter. Ideally all crucial static files should reside on a compressed read-only file system, nice to have ones on a separate read-only file system so they can be updated independently, variable files on a compressed write-enabled file system, and volatile files on a RAM disk. This luxury comes at a price:  Each supported file system type costs scarce RAM  Managing different file systems on one flash chip is not trivial - what do you do when file system sizes have to be adjusted to accommodate the space requirements of a new firmware version? Depending on the requirements of your application you will have to make your choice between the various tradeoffs. To keep things reasonably simple, but still extensible, we went with a rather minimalist default flash layout. Dual Bank Flash Partitioning depends on the Dual Bank setting of dBUG (single|1|2). When using flash in a single bank configuration, Linux can use the entire flash memory for kernel and root file system. When using flash in a dual bank configuration, the flash space is divided into two banks. Linux boots using one bank and keeps another bank unused. The bootbank parameter of dBUG specifies the bank to be used. Linux Software Developers Kit (SDK) User Guide 32

  • 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

Linux Software Developers Kit (SDK) User Guide
32
5. Flash Partitioning
Intro to Partitioning
The idea of partitioning is to optimize the usage of the available flash space to meet your
requirements. A Linux file system encompasses many files with different characteristics. There
are binaries and data files. Some of them are crucial for the operation of the system all the time,
while some need to be available in certain conditions only. Most files do not need to (and must
not) be modified, some files are important, but variable (e.g. persistent configuration files) and
then there are temporary files like logs.
Linux supports these requirements by letting the user mount different file system types into one
file system tree. Some of them were described in the previous chapter.
Ideally all crucial static files should reside on a compressed read-only file system, nice to have
ones on a separate read-only file system so they can be updated independently, variable files on
a compressed write-enabled file system, and volatile files on a RAM disk.
This luxury comes at a price:
Each supported file system type costs scarce RAM
Managing different file systems on one flash chip is not trivial - what do you do when file
system sizes have to be adjusted to accommodate the space requirements of a new firmware
version?
Depending on the requirements of your application you will have to make your choice between
the various tradeoffs. To keep things reasonably simple, but still extensible, we went with a rather
minimalist default flash layout.
Dual Bank
Flash Partitioning depends on the Dual Bank setting of dBUG (single|1|2).
When using flash in a single bank configuration, Linux can use the entire flash memory for kernel
and root file system.
When using flash in a dual bank configuration, the flash space is divided into two banks. Linux
boots using one bank and keeps another bank unused. The bootbank parameter of dBUG
specifies the bank to be used.