Files
u-boot-tk1-som/include
Christian Gmeiner 59e890ef7b fs: make it possible to read the filesystem UUID
Some filesystems have a UUID stored in its superblock. To
allow using root=UUID=... for the kernel command line we
need a way to read-out the filesystem UUID.

changes rfc -> v1:
 - make the environment variable an option parameter. If not
   given, the UUID is printed out. If given, it is stored in the env
   variable.
 - corrected typos
 - return error codes

changes v1 -> v2:
 - fix return code of do_fs_uuid(..)
 - document do_fs_uuid(..)
 - implement fs_uuid_unsuported(..) be more consistent with the
   way other optional functionality works

changes v2 -> v3:
 - change ext4fs_uuid(..) to make use of #if .. #else .. #endif
   construct to get rid of unreachable code

Hit any key to stop autoboot:  0
=> fsuuid
fsuuid - Look up a filesystem UUID

Usage:
fsuuid <interface> <dev>:<part>
    - print filesystem UUID
fsuuid <interface> <dev>:<part> <varname>
    - set environment variable to filesystem UUID

=> fsuuid mmc 0:1
d9f9fc05-45ae-4a36-a616-fccce0e4f887
=> fsuuid mmc 0:2
eb3db83c-7b28-499f-95ce-9e0bb21cda81
=> fsuuid mmc 0:1 uuid1
=> fsuuid mmc 0:2 uuid2
=> printenv uuid1
uuid1=d9f9fc05-45ae-4a36-a616-fccce0e4f887
=> printenv uuid2
uuid2=eb3db83c-7b28-499f-95ce-9e0bb21cda81
=>

Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Acked-by: Stephen Warren <swarren@nvidia.com>
2014-11-23 06:49:01 -05:00
..
2014-10-27 14:35:55 +01:00
2014-11-07 16:32:02 +01:00
2014-07-30 08:48:03 -04:00
2014-07-18 19:42:16 +01:00
2014-07-18 19:42:10 +01:00
2014-11-13 14:49:01 +01:00
2014-02-04 16:32:20 +01:00
2014-10-27 14:35:55 +01:00
2014-02-21 08:42:47 -05:00
2014-05-27 10:21:32 -04:00
2014-06-21 10:06:58 -06:00
2014-10-06 17:34:40 +02:00
2014-10-25 15:27:36 -04:00
2014-08-09 11:16:57 -04:00
2014-10-23 06:54:03 -04:00
2014-11-19 08:48:41 +01:00
2014-11-19 08:48:42 +01:00
2014-06-19 11:18:55 -04:00
2014-02-20 06:48:23 +01:00
2013-09-24 09:10:33 -04:00
2014-10-25 15:27:37 -04:00
2014-05-28 10:58:19 +09:00
2014-06-20 11:54:29 -06:00
2014-10-22 16:56:41 -06:00
2013-09-20 10:30:54 -04:00
2014-10-25 15:27:37 -04:00
2014-05-30 14:03:24 -04:00
2013-11-09 17:21:01 +01:00
2014-08-01 18:44:56 +03:00
2014-03-17 20:05:49 -06:00
2014-10-27 14:35:55 +01:00
2014-10-22 10:36:50 -06:00
2014-10-22 10:36:46 -06:00
2014-10-27 14:35:55 +01:00
2014-06-11 16:27:06 -04:00
2013-12-04 08:11:28 -05:00