Info |
---|
This page is under development |
Table of Contents |
---|
maxLevel | 1 |
---|
outline | true |
---|
style | none |
---|
|
PSM
...
Introduction
- PSM (Persistent Storage Manager) component is responsible for the storage of default/system configurations.
- Provides software interfaces and abstractions to read/write variables stored in persistent storage and read factory config variables.
- PSM holds mainly parameters related to hardware configuration.
- In dual processor architecture a process running in peer processor can access PSM DB over DBUS.
- All defaults/system configuration which are not modified during runtime are part of PSM.
- PSM should be up and running for normal configuration of RDKB unit.
- For WiFi initialization, PSM holds all default values of OEM specific custom parameters which is fetched through PSM HAL.
Architecture
Image Modified
Figure 1 - Architectural view of PSM sub-system
Code Flow
Initialization
Image Modified
Figure 2 - Initialization of PSM sub-system
...
Configuration files are saved as below on the device:
- /fss/gw/usr/ccsp/config/bbhm_def_cfg.xml
- /nvram/bbhm_bak_cfg.xml
- /nvram/bbhm_cur_cfg.xml
Factory reset removes the configuration files from nvram and copies default file to nvram.
...
Figure 3 - Reading Configuration
- PsmSysroCfmReadCurConfig/PsmSysroCfmReadDefConfig - This function is called to read the current or default Psm configuration into the memory.
- AnscReadFile - performs a sequential read
Restore configuration is tried first from the current system file. If it passes the verification, read is done otherwise restore configuration is tried from the backup system file. If it passes the verification, read is done otherwise restores the factory default configuration. This step has to succeed since there is no any other plan to back it up.
...