|
就是按用户使用手册1.4上的步骤一步一步来做的,按照http://bbs.myir-tech.com/thread-6190-1-1.html这个步骤也是一样的。
root@ubuntu:~# lsmod |grep ubi
ubi 75453 0
mtd 18457 5 ubi,mtdchar,nandsim,nand
加载光盘上的rootfs.ubi也是同样的问题。
root@ubuntu:~# apt-get install mtd-utils
Reading package lists... Done
Building dependency tree
Reading state information... Done
mtd-utils is already the newest version.
The following packages were automatically installed and are no longer required:
linux-headers-2.6.32-38 linux-headers-2.6.32-38-generic
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
root@ubuntu:~# modprobe nandsim first_id_byte=0x2c second_id_byte=0xda third_id_byte=0x90 fourth_id_byte=0x95
root@ubuntu:~# ls /dev/mtd*
/dev/mtd0 /dev/mtd0ro
root@ubuntu:~# flash_erase /dev/mtd0 0 0
Erase Total 0 Units
done
root@ubuntu:~# flash_eraseall /dev/mtd0
Erasing 128 Kibyte @ 10000000 -- 100 % complete.
root@ubuntu:~# ubiformat /dev/mtd0 -O 2048 -f /share/share/images/rootfs.ubi
ubiformat: mtd0 (nand), size 268435456 bytes (256.0 MiB), 2048 eraseblocks of 131072 bytes (128.0 KiB), min. I/O size 2048 bytes
libscan: scanning eraseblock 2047 -- 100 % complete
ubiformat: 2048 eraseblocks are supposedly empty
ubiformat: flashing eraseblock 236 -- 100 % complete
ubiformat: formatting eraseblock 2047 -- 100 % complete
root@ubuntu:~# modprobe ubi mtd=0,2048
root@ubuntu:~# ls fsmount
root@ubuntu:~# mount -t ubifs ubi0_0 fsmount/
mount: unknown filesystem type 'ubifs'
|
|