Hi,
Le Wed, 5 Sep 2012 21:53:58 -0700 (PDT),
Amjad Afzaal <
bcsf0...@pucit.edu.pk> a écrit :
> *but i don't know what are appropriate values for these arguments. Can
> anybody help me in this regard?*
> *
>
as Chris said you can either boot from a JFFS2 file system or from aNFS
one (or from a ext2/3/4 loaded on a SDCard) and then query the mtd
device which will receive the ubifs. The following is taken from
beagleboard.conf and explains how to get the parameters :
# do ubiattach /dev/ubi_ctrl -m 4
# From dmesg:
# UBI: smallest flash I/O unit: 2048
# UBI: logical eraseblock size: 129024 bytes
# from ubiattach stdout:
# UBI device number 0, total 1996 LEBs
MKUBIFS_ARGS = "-m 2048 -e 129024 -c 1996"
# do ubiattach /dev/ubi_ctrl -m 4
# from dmesg:
# UBI: smallest flash I/O unit: 2048
# UBI: physical eraseblock size: 131072 bytes (128 KiB)
# UBI: sub-page size: 512
UBINIZE_ARGS = "-m 2048 -p 128KiB -s 512"
Eric