第11章 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.

11.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

図11.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.

11.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

図11.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.

11.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 ~]# flatfsd -w

図11.3 Config Region Initialization