Download the source

From UBIFSWiki

Jump to: navigation, search
  • Clone our code:
git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git linux-2.6
git clone --reference linux-2.6 git://git.infradead.org/~dedekind/ubifs-2.6.git
  • Clone mtd-utils (it contains the ubi_tools which is necessary to create UBI user volumes):
git clone git://git.infradead.org/mtd-utils.git
  • Clone ubifs-userspace testsuit (it contains the ubifs tools such as mkfs.ubifs):
git clone git://git.infradead.org/~dedekind/ubifs-userspace.git
 or
git clone http://osl.sed.hu/git/ubifs-userspace/

Simple example how to mount UBIFS on an empty NAND simulator

Load the NandSim module (default it emulates a 128MiB flash):

$ modprobe nandsim

Load UBI module and attach the UBI to mtd0

$ modprobe ubi mtd=0

Create a user volume on ubi device with ubimkvol.

$ ubimkvol -d 0 -n 0 -N ubifs -s 120MiB

Where "-n" defines the <volume id>, "-N" defines the <volume name> and "-s" defines the size of the volume.

Mount the filesystem

$ mount -t ubifs ubi0:ubifs /mnt
Personal tools
Navigation