[PATCH 0/3] Add support for UBI and UBIFS

Corentin Chary corentin.chary at gmail.com
Thu Sep 24 18:41:40 EDT 2009

On Thu, Sep 24, 2009 at 4:06 PM, Karel Zak <kzak at redhat.com> wrote:
> On Mon, Aug 24, 2009 at 01:11:53PM +0200, Corentin Chary wrote:
>> Hi,
>> Here is some patchs to add support for UBI and UBIFS in libblkid.
>> UBIFS works on top of UBI volumes, there are 3 subsystems involved:
>>   * MTD subsystem, which provides uniform interface to access flash chips.
>>     MTD provides an notion of MTD devices (e.g., /dev/mtd0) which basically represents raw flash;
>>   * UBI subsystem, which is a wear-leveling and volume management system for flash devices;
>>     UBI works on top of MTD devices and provides a notion of UBI volumes (e.g.m /dev/ubi0_0);
>>   * UBIFS file system, which works on top of UBI volumes.
>  Applied.
>  Please, "git pull" and test "mics-utils/blkid -p" against a real UBI
>  device. I did some minor changes to the code (it was necessary to
>  rebase your patches to the current HEAD).
>  Thanks for your patience :-)
>    Karel

$ ../../misc-utils/blkid /dev/ubi0_0
/dev/ubi0_0: UUID="6358dcea-6e46-40c9-8d76-072eac24d909" TYPE="ubifs"


$ ../../mount/mount /dev/ubi0_0 /mnt/key
UBIFS error (pid 28250): ubifs_get_sb: cannot open "/dev/ubi0_0", error -22

*patching UBIFS*

$ sudo ../../mount/mount /dev/ubi0_0 /mnt/key/
Yeah, working !

Corentin Chary

More information about the linux-mtd mailing list