Patchwork [U-Boot] u-boot UBI support

login
register
mail settings
Submitter Paul B. Henson
Date May 5, 2013, 12:49 a.m.
Message ID <20130505004912.GW30773@bender.unx.csupomona.edu>
Download mbox | patch
Permalink /patch/241497/
State Superseded
Delegated to: Tom Rini
Headers show

Comments

Paul B. Henson - May 5, 2013, 12:49 a.m.
On Wed, May 01, 2013 at 09:31:29AM -0400, Tom Rini wrote:

> Would you mind patching doc/README.ubi ?

Attached. Would you rather I send it to the list as a separate message?
Tom Rini - May 6, 2013, 12:26 p.m.
On Sat, May 04, 2013 at 05:49:12PM -0700, Paul B. Henson wrote:

> On Wed, May 01, 2013 at 09:31:29AM -0400, Tom Rini wrote:
> 
> > Would you mind patching doc/README.ubi ?
> 
> Attached. Would you rather I send it to the list as a separate message?

As a rule, yes.  But patchwork picked this one up, and things look
good so:

Reviewed-by: Tom Rini <trini@ti.com>

And I'll apply it to master soon.  Thanks!
Fabio Estevam - May 6, 2013, 1:07 p.m.
On Sat, May 4, 2013 at 9:49 PM, Paul B. Henson <henson@acm.org> wrote:
> On Wed, May 01, 2013 at 09:31:29AM -0400, Tom Rini wrote:
>
>> Would you mind patching doc/README.ubi ?
>
> Attached. Would you rather I send it to the list as a separate message?

You missed your Signed-off-by in this patch.

Regards,

Fabio Estevam
Paul B. Henson - May 8, 2013, 1:09 a.m.
On Mon, May 06, 2013 at 10:07:07AM -0300, Fabio Estevam wrote:

> You missed your Signed-off-by in this patch.

Oops; sorry, not that familiar with your development conventions and
didn't think to review them before sending in such a simple change. I
can resubmit it with that tag if you'd like.
Tom Rini - May 8, 2013, 3:01 a.m.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 05/07/2013 09:09 PM, Paul B. Henson wrote:
> On Mon, May 06, 2013 at 10:07:07AM -0300, Fabio Estevam wrote:
> 
>> You missed your Signed-off-by in this patch.
> 
> Oops; sorry, not that familiar with your development conventions 
> and didn't think to review them before sending in such a simple 
> change. I can resubmit it with that tag if you'd like.

All changes do, but you can just reply to this thread.

- -- 
Tom
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJRicAPAAoJENk4IS6UOR1W8YoP/iLZjPjFgRoVPJ50qnDWkxYz
W/snk9D5ujDHPaPzY7d6mLHskORhRNyPJB+xpxzzDysM0eR6xqXpAXzH/LAzHpMF
xS20USjdrHjLjm2B5MtYWjov8xBGWPBYTerT5+YB0z2QgzQDYWfR+4GAYybE73Ma
YdZqI25iOreqFYkjqVHz3m2VyHFKnxT1csMEqpFV2s5gE678x5KEayAMK7TZHTjd
Ac4svt4QuMB1IXTNubDzB5z4WQ4EA0QCnPzUYEZWmT6c2Cvjo2GmGLyQou8bXoMS
jXfPbXMU3HuQtRfDodpQVuUF1Sk/+5PxAmHWJwAC3Tc3jlBh+8NQjElY4exu+AD1
l5mxM/63FUZI9E6ELh0P6jGf2S1MOnJTKoUGLq4Gox4X3ZQxoXfXB5DyJc42etXV
++vQia5mVTckUsVMUrJNEFVQu5gfpulpBhpXEAr1eEeO93Bdb8WswZO3mwlr3C9M
0vOv66AHJIQgjZr21SL5iQeqhFXuwGNntGGki+cELRQEQa2g3EJUYFhWmv9avipc
mMpGa7g2WHwNX0Lbw4lBu0HXKoqUD/VXaUMobTbkkp6Z4iMfi5gDDxaQOsQJE9CW
QILnsLMgjj33zVZrGf2doiTwnlfN+WsU0ZgemSPhXf70onHUp/JzNhUya/gNO9ms
k8TRZTUqZmydwcutOaFY
=ACVG
-----END PGP SIGNATURE-----

Patch

From 532cc340712c0542526be601c3f9f886e7054e5c Mon Sep 17 00:00:00 2001
From: "Paul B. Henson" <henson@acm.org>
Date: Sat, 4 May 2013 17:44:43 -0700
Subject: [PATCH] Update doc/README.ubi to add description of accessing ubi
 filesystems.

---
 doc/README.ubi |   80 +++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 79 insertions(+), 1 deletions(-)

diff --git a/doc/README.ubi b/doc/README.ubi
index da2dfac..3cf4ef2 100644
--- a/doc/README.ubi
+++ b/doc/README.ubi
@@ -2,7 +2,8 @@ 
 UBI usage in U-Boot
 -------------------
 
-Here the list of the currently implemented UBI commands:
+UBI support in U-Boot is broken down into five separate commands.
+The first is the ubi command, which has six subcommands:
 
 => help ubi
 ubi - ubi commands
@@ -142,3 +143,80 @@  read 524288 bytes from volume 0 to 900000(buf address)
 
 => cmp.b 800000 900000 80000
 Total of 524288 bytes were the same
+
+
+Next, the ubifsmount command allows you to access filesystems on the
+UBI partition which has been attached with the ubi part command:
+
+=> help ubifsmount
+ubifsmount - mount UBIFS volume
+
+Usage:
+ubifsmount <volume-name>
+    - mount 'volume-name' volume
+
+For example:
+
+=> ubifsmount ubi0:recovery
+UBIFS: mounted UBI device 0, volume 0, name "recovery"
+UBIFS: mounted read-only
+UBIFS: file system size:   46473216 bytes (45384 KiB, 44 MiB, 366 LEBs)
+UBIFS: journal size:       6348800 bytes (6200 KiB, 6 MiB, 50 LEBs)
+UBIFS: media format:       w4/r0 (latest is w4/r0)
+UBIFS: default compressor: LZO
+UBIFS: reserved for root:  0 bytes (0 KiB)
+
+Note that unlike Linux, U-Boot can only have one active UBI partition
+at a time, which can be referred to as ubi0, and must be supplied along
+with the name of the filesystem you are mounting.
+
+
+Once a UBI filesystem has been mounted, the ubifsls command allows you
+to list the contents of a directory in the filesystem:
+
+
+=> help ubifsls
+ubifsls - list files in a directory
+
+Usage:
+ubifsls [directory]
+    - list files in a 'directory' (default '/')
+
+For example:
+
+=> ubifsls
+            17442  Thu Jan 01 02:57:38 1970  imx28-evk.dtb
+          2998146  Thu Jan 01 02:57:43 1970  zImage
+
+
+And the ubifsload command allows you to load a file from a UBI
+filesystem:
+
+
+=> help ubifsload
+ubifsload - load file from an UBIFS filesystem
+
+Usage:
+ubifsload <addr> <filename> [bytes]
+    - load file 'filename' to address 'addr'
+
+For example:
+
+=> ubifsload ${loadaddr} zImage
+Loading file 'zImage' to addr 0x42000000 with size 2998146 (0x002dbf82)...
+Done
+
+
+Finally, you can unmount the UBI filesystem with the ubifsumount
+command:
+
+=> help ubifsumount
+ubifsumount - unmount UBIFS volume
+
+Usage:
+ubifsumount     - unmount current volume
+
+For example:
+
+=> ubifsumount
+Unmounting UBIFS volume recovery!
-- 
1.7.8.6