Open main menu

DAVE Developer's Wiki β

Changes

Memory Tecnology Device (MTD)

No change in size, 16:40, 11 May 2012
UBI
To access and use UBIFS:
# * Add the ubi.mtd=X parameter to the kernel command line, where X is the number of the mtd partition# * Erase the MTD partition:
<pre class="board-terminal">
flash_eraseall /dev/mtdX
</pre>
# * As an alternative to point 1, launch the following command:
<pre class="board-terminal">
ubiattach /dev/ubi_ctrl -m X
</pre>
# * The device /dev/ubi0 is now available. To create the UBI volume, launch the following command (-N sets the name and -s sets the size of the volume):
<pre class="board-terminal">
ubimkvol /dev/ubi0 -N rootfs -s 128MiB
</pre>
# * The device /dev/ubi0_0 is now available and can be mounted with one of the following comands:
<pre class="board-terminal">
mount -t ubifs ubi0_0 /mnt/ubifs
mount -t ubifs ubi0:rootfs /mnt/ubifs
</pre>
# * To mount the UBI file system as root file system, the binding between MTD and UBI must be specified from the kernel command line, adding the following parameters:
<pre class="board-terminal">
ubi.mtd=6 root=ubi0_0 rootfstype=ubifs rw
customer
235
edits