Dynamically creating the volume based on the size of ubifs image size -


i have requirement create new volume (it can static) based on size of ubifs image (say rootfs.ubifs) going write volume. aim create volume minimum possible size required write 'rootfs.ubifs' volume , boot device it.

can please me in regard?

the difference overhead of ubi layer. documented o in web page or,

  • o - overhead related storing ec , vid headers in bytes, i.e. o = sp - sl.

sp physical erase block size , sl ubifs get. usually, minimum page size times two. 1 ec , vid; these 2 structures ubi uses manage flash. both defined in ubi-media.h. ec ubi_ec_hdr structure , vid ubi_vid_hdr structure. ec or erase count written every time erase block erased , responsible wear leveling.note vid or volume id header allows ubi support multiple volumes , provide peb leb (physical logical erase block) management.

so 2k page nand flash without sub-pages, 4k; if sub-pages supported possible put both headers in same page , 2k needed. if flash page size differs, need multiply 2 without sub-pages , add page overhead if have sub-pages. overhead nor flash 256 bytes doesn't have idea of pages.

in order create rootfs.ubifs, must have specified logic erase block size (to mkfs.ubifs). difference between logical erase block (leb) , physical erase block (peb) overhead documented above. multiply rootfs.ubifs peb/leb minimum possible size ubi volume.

note: if erase interrupted (reset/power cycle) between actual erase , ec write, average of other erase blocks used set erase count when ubi re-reads ubi device.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -