diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2016-06-07 22:16:48 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-07-06 10:09:29 +0200 |
commit | 699b4f80254de45a6ff45dff0a863e457dea7d89 (patch) | |
tree | 13e6a7184f2b9c56d19eb18636e588d59c98d603 /Documentation | |
parent | b17973f8ba8e246628ac62fca9873bf8226a61cf (diff) | |
download | barebox-699b4f80254de45a6ff45dff0a863e457dea7d89.tar.gz barebox-699b4f80254de45a6ff45dff0a863e457dea7d89.tar.xz |
Introduce non volatile device variables
Non volatile device variables are used to make device parameters
persistent. They are like normal non volatile variables, but set
the values of the device parameters with the corresponding name.
Every nv variable beginning with nv.dev is a non volatile device
variable. They have the form nv.dev.<devname>.<paramname> and act
on the parameter <paramname> of the device named <devname>.
The non volatile device variables are designated for example for
video modes, ethernet device ip addresses or mtd partitioning.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
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 |