diff options
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/user/variables.rst | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Documentation/user/variables.rst b/Documentation/user/variables.rst index 0abc25d98a..89aadf58fd 100644 --- a/Documentation/user/variables.rst +++ b/Documentation/user/variables.rst @@ -66,6 +66,24 @@ examples: model: myboard barebox@yourboard:/ +Non volatile device variables +----------------------------- + +Non volatile device variables are used to make device parameters persistent. They +are regular nv variables but are linked with other devices instead of the global +device. Every nv variable in the form nv.dev.<devname>.<paramname> will be mirrored +to the corresponding <devname>.<paramname> variable. + +This example changes the partitioning of the nand0 device: + +.. code-block:: sh + barebox@Phytec phyCARD-i.MX27:/ nv dev.nand0.partitions: 4M(barebox),1M(barebox-environment),-(root) + barebox@Phytec phyCARD-i.MX27:/ devinfo nand0 + Parameters: + [...] + partitions: 4M(barebox),1M(barebox-environment),8M(kernel),1011M(root) + [...] + .. _magicvars: Magic variables |