[Buildroot] [PATCH] fs/ubi: add option to use custom volume config file

Ezequiel García ezequiel at vanguardiasur.com.ar
Mon Jan 27 23:17:05 UTC 2014


Hi Thomas and Danomi,

On 15 September 2013 16:16, Thomas Petazzoni
<thomas.petazzoni at free-electrons.com> wrote:
[...]
> On Sun, 15 Sep 2013 15:08:28 -0400, Danomi Manchego wrote:
>
>> That does appeal to me; I think that we can combine the cp and the sed
>> lines as well ...
>>
>>          $(SED) 's/BR2_ROOTFS_UBIFS_PATH/$@fs/'
>> $(UBINIZE_CONFIG_FILE_PATH)  >  $(BUILD_DIR)/ubinize.cfg
>
> That won't work. $(SED) expands to sed -e -i, i.e it does the sed
> in-place.
>

What's the status of this? It would be interesting to pick it up.

I'm currently using a post-image script to create UBI images (using ubinize).
On the other side, I'm not using ubifs but rather squashfs on top of
ubiblock [1].

I was thinking about keeping the post-image script approach, which
means I need host mtd/ubi tools.

Thomas: Do you think adding mtd/ubi host tools is a sane approach?
Something like what Yann recently did for squashfs [2].

Speaking of Yann's, I've also considered an extension of his fs/custom work.
Yann: How do you think that would fit? Ideas?

Just for reference, here's how my post-image script looks like:

# Create UBI rootfs stuff
#
mkdir -p board/ppst/linux/user
fallocate -l 10M board/ppst/linux/user/vfat.img
mkfs.vfat board/ppst/linux/user/vfat.img
mkfs.ubifs -r board/ppst/linux/user/ -m 2048 -o user.ubifs -e 126976 -c 100
mkfs.ubifs -r board/ppst/linux/config/ -m 2048 -o config.ubifs -e 126976 -c 100
ubinize -o output/images/rootfs.ubi.img -p 128KiB -m 2048 -O 2048
board/ppst/linux/ubinize-rootfs.cfg
rm user.ubifs config.ubifs

# Create UBI kernel
#
ubinize -o output/images/linux.ubi.img -p 128KiB -m 2048 -O 2048
board/ppst/linux/ubinize-linux.cfg

[1] http://git.free-electrons.com/users/ezequiel-garcia/linux/log/?h=ubiblock-v4-cache-optional
[2] http://patchwork.ozlabs.org/patch/306629/
-- 
Ezequiel García, VanguardiaSur
www.vanguardiasur.com.ar


More information about the buildroot mailing list