The Following User Says Thank You to joerg_rw For This Useful Post: | ||
|
2013-02-25
, 13:39
|
Posts: 2,154 |
Thanked: 8,464 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 4 Users Say Thank You to pali For This Useful Post: | ||
|
2013-02-25
, 13:40
|
Posts: 2,154 |
Thanked: 8,464 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
|
2022-06-12
, 16:38
|
Posts: 2,154 |
Thanked: 8,464 times |
Joined on May 2010
|
#14
|
[rootfs] mode=ubi image=rootfs_ubifs.jffs2 vol_id=0 vol_size=230MiB vol_type=dynamic vol_name=rootfs vol_flags=autoresize vol_alignment=1
The Following 5 Users Say Thank You to pali For This Useful Post: | ||
|
2022-06-12
, 17:48
|
Posts: 1,424 |
Thanked: 2,622 times |
Joined on Jan 2011
@ Touring
|
#15
|
The Following 4 Users Say Thank You to biketool For This Useful Post: | ||
|
2022-06-12
, 21:33
|
|
Posts: 4,118 |
Thanked: 8,901 times |
Joined on Aug 2010
@ Ruhrgebiet, Germany
|
#16
|
|
2022-07-03
, 01:09
|
Posts: 2,154 |
Thanked: 8,464 times |
Joined on May 2010
|
#17
|
/usr/sbin/mkfs.ubifs -m $MIN_IO_SIZE -e $LEB_SIZE -c $MAX_LEB_CNT -r $ROOT_DIR ubifs.img cat > cfg.ini << EOF [$VOL_NAME] mode=ubi image=ubifs.img vol_id=0 vol_size=$VOL_SIZE vol_type=dynamic vol_name=$VOL_NAME vol_flags=autoresize vol_alignment=1 EOF /usr/sbin/ubinize -o ubi.img -p $PEB_SIZE -m $MIN_IO_SIZE -s $SUB_PAGE_SIZE cfg.ini
The Following 7 Users Say Thank You to pali For This Useful Post: | ||
|
2022-07-03
, 14:12
|
|
Posts: 1,719 |
Thanked: 4,764 times |
Joined on Apr 2018
@ Helsinki, Finland.
|
#18
|
The Following User Says Thank You to Maemish 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