Hi Paul,
On Tue, May 21, 2013 at 11:02:58AM -0700, Paul B. Henson wrote:
> I have an embedded use case where I need the -m option to ubimkvol
> and the ubiformat utility. As busybox doesn't currently support
> either, I am pulling in the full binaries from the mtd-utils
> package.
>
> I haven't had a chance to review the code yet, but presumably if the
> -m option was as simple to implement as it would intuitively appear
> to be, somebody would have already done it :).
>
> Before I go spend a lot of time getting familiar with busybox and
> mtd-utils code in the pursuit of adding this functionality, I wanted
> to get a little feedback if possible if anybody's already tried that
> and run into issues or determined that it's fairly complex and not
> worth doing within busybox.
>
> Thanks much…
I've take a short look at the mtd-utils code, and doesn't looks so hard to
implement in Busybox. From the code it looks like you may even be able to
calculate the volume size in a shell script (by parsing the UBI sysfs
entries), and then give that size to the already implemented -s option. So
maybe adding this convenience option to Busybox is not worth it.
baruch
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- [email protected] - tel: +972.2.679.5364, http://www.tkos.co.il -
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox