> On Sat, May 8, 2010 at 1:34 PM, Harishkumar V
<
harish...@gmail.com>wrote:
> > Hi,
> >
> > without the patch being applied, it works , these are the steps, i tried,
> > i have spilt the filesystem into equal 2 partitions, so, for me, its
> > /dev/mtd4 and /dev/mtd5.
> >
> > 1) ubinize.cfg
> >
> > [ubifs]
> > mode=ubi
> > image=ubifs.img
> > vol_id=0
> > vol_size=55MiB
> > vol_type=dynamic
> > vol_name=rootfs
> > vol_flags=autoresize
> >
> > 2) ./mkfs.ubifs -e 129024 -c 489 -m 2048 -r filesys -o ubifs.img
> >
> > 3) ./ubinize -o ubi.img -p 128KiB -m 2048 -s 512 ./ubinize.cfg
> >
> > 4) flash_eraseall /dev/mtd5
> >
> > 5) ubiformat /dev/mtd5 -s 512
> >
> > 6) ubiformat /dev/mtd5 -s 512 -f ubi.img
> >
> > 7) ubiattach /dev/ubi_ctrl -m 5
> >
> > o/p :
> >
> > UBI: attaching mtd5 to ubi0^M
> > UBI: physical eraseblock size: 131072 bytes (128 KiB)^M
> > UBI: logical eraseblock size: 129024 bytes^M
> > UBI: smallest flash I/O unit: 2048^M
> > UBI: sub-page size: 512^M
> > UBI: VID header offset: 512 (aligned 512)^M
> > UBI: data offset: 2048^M
> > UBI: volume 0 ("rootfs") re-sized from 447 to 481 LEBs^M
> > UBI: attached mtd5 to ubi0^M
> > UBI: MTD device name: "filesystem_2"^M
> > UBI: MTD device size: 62 MiB^M
> > UBI: number of good PEBs: 489^M
> > UBI: number of bad PEBs: 7^M
> > UBI: max. allowed volumes: 128^M
> > UBI: wear-leveling threshold: 4096^M
> > UBI: number of internal volumes: 1^M
> > UBI: number of user volumes: 1^M
> > UBI: available PEBs: 0^M
> > UBI: total number of reserved PEBs: 489^M
> > UBI: number of PEBs reserved for bad PEB handling: 4^M
> > UBI: max/mean erase counter: 3/3^M
> > UBI: image sequence number: -1^M
> > UBI: background thread "ubi_bgt0d" started, PID 391^M
> > UBI device number 0, total 489 LEBs (63092736 bytes, 60.2 MiB), available
> > 0 LEBs (0 bytes), LEB size 129024 bytes (126.0
> > KiB)
> >
> >
> > 8) mount -t ubifs ubi0:rootfs /mnt/test
> >
> > o/p:
> >
> > UBIFS: mounted UBI device 0, volume 0, name "rootfs"^M
> > UBIFS: file system size: 60770304 bytes (59346 KiB, 57 MiB, 471 LEBs)^M
> > UBIFS: journal size: 8257536 bytes (8064 KiB, 7 MiB, 64 LEBs)^M
> > UBIFS: media format: w4/r0 (latest is w4/r0)^M
> > UBIFS: default compressor: lzo^M
> > UBIFS: reserved for root: 0 bytes (0 KiB)^M
> >
> > 9) mount
> >
> > o/p:
> >
> > ubi0:rootfs on /mnt/test type ubifs (rw,relatime)^M