2011年6月18日 星期六

UBIFS - UBI File-System

UBI文件系统简介
http://www.dzsc.com/data/html/2009-7-22/77782.html

ubi以及ubifs
http://www.cublog.cn/u3/105635/showart_2090477.html

UBI - Unsorted Block Images
http://www.linux-mtd.infradead.org/doc/ubi.html

UBIFS - UBI File-System
http://www.linux-mtd.infradead.org/doc/ubifs.html

Raw flash vs. FTL devices
http://www.linux-mtd.infradead.org/doc/ubifs.html#L_raw_vs_ftl

What are the differences between flash devices and block drives?
http://www.linux-mtd.infradead.org/faq/general.html#L_mtd_vs_hdd



block2mtd and ubi are initialized too early when compiled in on 2.6.31-rc2
http://lkml.org/lkml/2009/7/15/143
http://patchwork.ozlabs.org/patch/29807/
http://patchwork.ozlabs.org/patch/29864/


CONFIG_MTD_UBI
CONFIG_UBIFS_FS

CONFIG_MTD_BLOCK2MTD (needed only if you need use UBI on block device)


modprobe block2mtd block2mtd=/dev/mmcblk0p2,128KiB
ubiformat /dev/mtd0
modprobe ubi mtd=0
ubimkvol /dev/ubi0 -N rootfs -s 10MiB
mount -t ubifs ubi0:rootfs /mnt


//rootwait doen't work, only roodelay do
set bootargs block2mtd.block2mtd=/dev/mmcblk0p2,128KiB ubi.mtd=0 root=ubi0:rootfs rootfstype=ubifs rw rootdelay=5


mkfs.ubifs

沒有留言: