ubi: Make attaching UBI more convenient

Sascha Hauer s.hauer at pengutronix.de
Fri Jun 26 00:30:59 PDT 2015


Using UBI is a matter of using 'ubiattach' before UBI volumes can
be used. This makes it hard to use since the various autodetection
mechanisms can't be used. This series changes this. We introduce
predictable names for UBI devices and volumes and hook UBI attachment
into the mtd devices detect callback. This makes these commands possible:

# UBI attach nand0.root and mount to /mnt/nand0.root.ubi.root:
mount nand0.root.ubi.root

or:

# boot bootspec entry on an UBIFS found on the
# UBI volume 'root' on nand0.root:
boot nand0.root.ubi.root

or just:

# If there's UBI found on nand0.root then attach it:
detect nand0.root

Sascha

----------------------------------------------------------------
Sascha Hauer (8):
      commands: detect: use device_detect_by_name
      driver: detect: detect parent devices aswell
      blspec: Use device_detect_by_name
      ubi: Use preditable device names
      mtd: detect ubi devices automatically
      ubi: Lower 'already attached' message to debug level
      commands: mount: detect the device to be mounted
      ubi: Update documentation

 Documentation/user/ubi.rst | 44 +++++++++++++++-----------------------------
 commands/detect.c          |  5 +----
 commands/mount.c           |  2 ++
 common/blspec.c            |  9 +--------
 drivers/base/driver.c      | 25 ++++++++++++++++++++-----
 drivers/mtd/core.c         | 40 ++++++++++++++++++++++++++++++++++++++++
 drivers/mtd/ubi/build.c    |  9 +++------
 drivers/mtd/ubi/cdev.c     |  4 ++--
 8 files changed, 84 insertions(+), 54 deletions(-)



More information about the barebox mailing list