|
|
2013-02-25
, 13:39
|
|
Posts: 2,145 |
Thanked: 8,424 times |
Joined on May 2010
|
#12
|
$ umount ubi:rootfs $ ubidetach /dev/ubi_ctrl -d 0
$ ubiformat /dev/<mtd_rootfs>
$ ubiformat /dev/<mtd_rootfs> -s 512 -O 512 -f <image.ubi>
$ ubiattach /dev/ubi_ctrl -p /dev/<mtd_rootfs>
$ mount ubi:rootfs </mountpoint> -t ubifs
| The Following 3 Users Say Thank You to pali For This Useful Post: | ||
|
|
2013-02-25
, 13:40
|
|
Posts: 2,145 |
Thanked: 8,424 times |
Joined on May 2010
|
#13
|
$ modprobe nandsim first_id_byte=0x20 second_id_byte=0xaa third_id_byte=0x00 fourth_id_byte=0x15 parts=1,3,2,16,16,2010
$ modprobe ubi $ modprobe ubifs
$ ubiformat /dev/mtd5 -s 512 -O 512 -f <rootfs_image>
$ ubiattach /dev/ubi_ctrl -p /dev/mtd5
$ mkdir -p /mnt/n900 $ mount ubi:rootfs /mnt/n900 -t ubifs
$ umount /mnt/n900 $ ubidetach /dev/ubi_ctrl -d 0 $ rmmod ubifs $ rmmod ubi $ rmmod nandsim
| The Following 5 Users Say Thank You to pali For This Useful Post: | ||
There are tools that are specifically built to deal with bad blocks on mtd, e.g mtd_debug is one of them I'd assume, available in fremantle.
/j
Maemo Community Council member [2012-10, 2013-05, 2013-11, 2014-06 terms]
Hildon Foundation Council inaugural member.
MCe.V. foundation member
EX Hildon Foundation approved Maemo Administration Coordinator (stepped down due to bullying 2014-04-05)
aka "techstaff" - the guys who keep your infra running - Devotion to Duty http://xkcd.com/705/
IRC(freenode): DocScrutinizer*
First USB hostmode fanatic, father of H-E-N