Chapter 12. Config Region - Configuration
File Storage
The config region is a flash memory region used to save files in order to maintain data even after hardware resets. The
flatfsd command is used to write data to and read data from the config region.
12.1. Reading from the Config Region
The command shown below is used to read from the config region. The files read from the config region are created under
the
/etc/config
directory.
[armadillo ~]# flatfsd -r
Figure 12.1. Reading from the Config Region
In the default software, the files are automatically read out from the config region
at boot time. If the config region data has been damaged, it is replaced with the
contents of the
/etc/default
directory.
12.2. Saving to the Config Region
The command shown below is used to save to the config region. The files saved to the config region are those present
under the /etc/config directory.
[armadillo ~]# flatfsd -s
Figure 12.2. Saving to the Config Region
If the save to the config region is not carried out, then changes to the files under
the
/etc/config
directory will be lost when power is cut.
12.3. Initializing the Config Region
The command shown below is used to initialize the config region. On initialization, the files under the
/etc/default
directory are saved to the config region and are then also reproduced under the
/etc/config
directory.
Armadillo-440 LCD Model Development Set Startup Guide
Config Region - Configuration File Storage
66