* how to properly calculate max-leb-cnt and vol_size for ubifs @ 2009-12-03 17:30 twebb 2009-12-04 11:38 ` Adrian Hunter 0 siblings, 1 reply; 3+ messages in thread From: twebb @ 2009-12-03 17:30 UTC (permalink / raw) To: linux-mtd I'm using ubifs for the first time and am confused about how to calculate two parameters: "max-leb-cnt" for mkfs.ubifs "vol_size" for ubinize cfg file How should "max-leb-cnt" be calculated? In the examples, how is "-c 2047" determined? Should the max-leb-cnt calculation somehow include the overhead calculated per the ubifs documentation page? Should the reserved PEBs (1% default for NAND flash) be somehow taken into account? How should "vol_size" be calculated? Is it simply max-leb-cnt * LEB_size? Should overhead somehow be included in this calculation also? Thanks for the help, twebb ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: how to properly calculate max-leb-cnt and vol_size for ubifs 2009-12-03 17:30 how to properly calculate max-leb-cnt and vol_size for ubifs twebb @ 2009-12-04 11:38 ` Adrian Hunter 2009-12-21 16:00 ` twebb 0 siblings, 1 reply; 3+ messages in thread From: Adrian Hunter @ 2009-12-04 11:38 UTC (permalink / raw) To: twebb; +Cc: linux-mtd@lists.infradead.org twebb wrote: > I'm using ubifs for the first time and am confused about how to > calculate two parameters: > > "max-leb-cnt" for mkfs.ubifs > "vol_size" for ubinize cfg file > > How should "max-leb-cnt" be calculated? In the examples, how is "-c > 2047" determined? Should the max-leb-cnt calculation somehow include > the overhead calculated per the ubifs documentation page? Should the > reserved PEBs (1% default for NAND flash) be somehow taken into > account? > > How should "vol_size" be calculated? Is it simply max-leb-cnt * > LEB_size? Should overhead somehow be included in this calculation > also? Have you read: http://linux-mtd.infradead.org/faq/ubifs.html#L_max_leb_cnt http://linux-mtd.infradead.org/faq/ubi.html#L_ubi_mkimg http://linux-mtd.infradead.org/doc/ubi.html#L_autoresize ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: how to properly calculate max-leb-cnt and vol_size for ubifs 2009-12-04 11:38 ` Adrian Hunter @ 2009-12-21 16:00 ` twebb 0 siblings, 0 replies; 3+ messages in thread From: twebb @ 2009-12-21 16:00 UTC (permalink / raw) To: Adrian Hunter; +Cc: linux-mtd@lists.infradead.org >> >> I'm using ubifs for the first time and am confused about how to >> calculate two parameters: >> >> "max-leb-cnt" for mkfs.ubifs >> "vol_size" for ubinize cfg file >> >> How should "max-leb-cnt" be calculated? In the examples, how is "-c >> 2047" determined? Should the max-leb-cnt calculation somehow include >> the overhead calculated per the ubifs documentation page? Should the >> reserved PEBs (1% default for NAND flash) be somehow taken into >> account? >> >> How should "vol_size" be calculated? Is it simply max-leb-cnt * >> LEB_size? Should overhead somehow be included in this calculation >> also? > > Have you read: > > http://linux-mtd.infradead.org/faq/ubifs.html#L_max_leb_cnt > > http://linux-mtd.infradead.org/faq/ubi.html#L_ubi_mkimg > > http://linux-mtd.infradead.org/doc/ubi.html#L_autoresize > > I have, and I'm still pretty confused. I just posted some additional questions I'm hoping perhaps you or someone else may be able to help with. Thanks, twebb ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-12-21 16:00 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2009-12-03 17:30 how to properly calculate max-leb-cnt and vol_size for ubifs twebb 2009-12-04 11:38 ` Adrian Hunter 2009-12-21 16:00 ` twebb
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox