modprobe mtd
2001 modprobe mtdblock
2002 modprobe ubi
2003 modprobe nandsim first_id_byte=0x20 second_id_byte=0xac third_id_byte=0x00 fourth_id_byte=0x15
2004 cat /proc/mtd
2005 mtdinfo /dev/mtd0
2006 dd if=/mnt/hgfs/shared/ubi.img of=/dev/mtd0 bs=2048
2007 ubiattach /dev/ubi_ctrl -m 0 -O 2048
2008 pwd
2009 mkdri mntdir
2010 mkdir mntdir
2011 mount -t ubifs ubi0_0 ./mntdir
2012 cd mntdir
2013 ls
2014 tar xvfj rootfs.tar.bz2 *
2015 tar cvfj rootfs.tar.bz2 *
2016 history