summaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2016-07-11 07:58:34 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2016-07-11 07:58:34 +0200
commit202cda9475558213cf799206caf0130d45164d7f (patch)
treeabe9c88fbf8336e9c89aa22cd1b7ad8cfbf23ed1 /Documentation
parentbb73cb9427cdef4bb3a45ccfa10e30a50940ff09 (diff)
parent699b4f80254de45a6ff45dff0a863e457dea7d89 (diff)
downloadbarebox-202cda9475558213cf799206caf0130d45164d7f.tar.gz
barebox-202cda9475558213cf799206caf0130d45164d7f.tar.xz
Merge branch 'for-next/nvdevvars'
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/user/variables.rst18
1 files changed, 18 insertions, 0 deletions
diff --git a/Documentation/user/variables.rst b/Documentation/user/variables.rst
index 0abc25d98..89aadf58f 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