Simulate MTD device
rmmod mtdram # total_size:Total device size in KiB (ulong) # erase_size: Device erase block size in KiB (ulong) modprobe mtdram total_size=239616 erase_size=16
How to mount UBI image.
cat /proc/mtd flash_erase /dev/mtd1 0 0 ubiformat /dev/mtd1 -f image.ubi ubiattach -p /dev/mtd1 mount -t ubifs /dev/ubi0_0 /mnt/ubifs
flash_erase /dev/mtd1 0 0 ubiformat /dev/mtd1 modprobe ubi ubiattach -m 1 -d 1 ubimkvol /dev/ubi1 -N rootfs -s 210MiB ubiupdatevol /dev/ubi1_0 image.ubi mount /dev/ubi1_0 /mnt