summaryrefslogtreecommitdiffstats
path: root/Documentation/filesystems/ubootvarfs.rst
blob: 0433b1294428c9441671d6a4beca30b9b8aa1437 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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)