diff options
author | Andrey Smirnov <andrew.smirnov@gmail.com> | 2019-06-03 22:20:01 -0700 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-06-07 09:04:44 +0200 |
commit | 8daaa21b3949e5e327586a49a63dfcacd5600aba (patch) | |
tree | fa9d459acc1e363c2f2708ff655904d2b37b06f1 /Documentation | |
parent | 9fdbd39f320a4dca62c2537dd3b62ed4030b3c38 (diff) | |
download | barebox-8daaa21b3949e5e327586a49a63dfcacd5600aba.tar.gz barebox-8daaa21b3949e5e327586a49a63dfcacd5600aba.tar.xz |
fs: Add a driver to access U-Boot environment variables
Add a driver working on top of ubootvar device and exposing U-Boot
environment variable data as files.
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Cory Tusar <cory.tusar@zii.aero>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/filesystems/ubootvarfs.rst | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Documentation/filesystems/ubootvarfs.rst b/Documentation/filesystems/ubootvarfs.rst new file mode 100644 index 0000000000..0433b12944 --- /dev/null +++ b/Documentation/filesystems/ubootvarfs.rst @@ -0,0 +1,28 @@ +.. index:: ubootvarfs (filesystem) + +.. _filesystems_ubootvarfs: + +U-Boot environment filesystem +============================= + +barebox supports accessing U-Boot environment contents as a regular +filesystems in both read and write modes. U-Boot environment data +(ubootvar) device supports automount, so no explicit mount command +should be necessary and accessing the environment should be as easy +as: + +.. code-block:: console + + barebox:/ ls -l /mnt/ubootvar0 + +However the filesystem can be explicitly mounted with the following +command: + +.. code-block:: console + + barebox:/ mount -t ubootvarfs /dev/device /mnt/path + +**NOTE** Current implementation of the filesystem driver uses lazy +synchronization, any changes made to the environment will not be +written to the medium until the filesystem is unmounted (will happen +automatically on Barebox shutdown) |