Skip to content

U-Boot environment data as a filesystem

Andrey Smirnov barebox 2 versions – Applied

Status from this message: Applied, thanks

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest7 patches 1 replyApplied
  2. v17 patches 8 repliesSuperseded

Changes in v2 from the cover letter

- ubootvar changed to not rely on struct resource */mem_write/mem_read etc. and use a private pointer instead

- ubootvar changed to handle the case of no valid environment data by allocation parition 0 as empty/new

- Added documentation for ubootvarfs as well as ubootvar DT bindings

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/7filetype: Add "U-Boot environmemnt variable data" filetypecommon/filetype.c include/filetype.h+3 -00 replies
2/7filetype: Allow specifying cdev's filetype explicitlycommon/filetype.c include/driver.h+8 -00 replies
3/7drivers: Introduce late_platform_driver()include/driver.h+2 -00 replies
4/7misc: Add a driver to expose U-Boot environment variable dataDocumentation/devicetree/bindings/barebox/barebox,uboot-environment.rst drivers/misc/Kconfig drivers/misc/Makefile +1 more+416 -00 replies
5/7fs: Add a driver to access U-Boot environment variablesDocumentation/filesystems/ubootvarfs.rst fs/Kconfig fs/Makefile +1 more+536 -00 replies
6/7ARM: rdu2: Add U-Boot environment partitionsarch/arm/dts/imx6qdl-zii-rdu2.dtsi+27 -00 replies
7/7ARM: rdu1: Add U-Boot environment partitionarch/arm/dts/imx51-zii-rdu1.dts+21 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/7] U-Boot environment data as a filesystem

Everyone:

This series adds code needed to expose U-Boot environemnt variable data partition as a regular filesystem in Barebox. It currently only supports the use-case where environment is stored on SD/MMC device, since that is the only use-case I have access to for testing, however adding support for other cases should be relatively straightforward.

Feedback is welcome!

Changes since [v1]:

- ubootvar changed to not rely on struct resource */mem_write/mem_read etc. and use a private pointer instead

- ubootvar changed to handle the case of no valid environment data by allocation parition 0 as empty/new

- Added documentation for ubootvarfs as well as ubootvar DT bindings

Thanks,
Andrey Smirnov

[v1] http://lists.infradead.org/pipermail/barebox/2019-May/038223.html

Andrey Smirnov (6):
filetype: Add "U-Boot environmemnt variable data" filetype
filetype: Allow specifying cdev's filetype explicitly
drivers: Introduce late_platform_driver()
misc: Add a driver to expose U-Boot environment variable data
fs: Add a driver to access U-Boot environment variables
ARM: rdu2: Add U-Boot environment partitions

Cory Tusar (1):
ARM: rdu1: Add U-Boot environment partition

 .../barebox/barebox,uboot-environment.rst     |  43 ++
 Documentation/filesystems/ubootvarfs.rst      |  28 +
 arch/arm/dts/imx51-zii-rdu1.dts               |  21 +
 arch/arm/dts/imx6qdl-zii-rdu2.dtsi            |  27 +
 common/filetype.c                             |   8 +
 drivers/misc/Kconfig                          |  12 +
 drivers/misc/Makefile                         |   1 +
 drivers/misc/ubootvar.c                       | 360 +++++++++++++
 fs/Kconfig                                    |   8 +
 fs/Makefile                                   |   1 +
 fs/ubootvarfs.c                               | 499 ++++++++++++++++++
 include/driver.h                              |   4 +
 include/filetype.h                            |   1 +
 13 files changed, 1013 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/barebox/barebox,uboot-environment.rst
 create mode 100644 Documentation/filesystems/ubootvarfs.rst
 create mode 100644 drivers/misc/ubootvar.c
 create mode 100644 fs/ubootvarfs.c
Signature · 7 lines
2.21.0


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox