jffs2 on ubi volume
manoj23 at gmail.com
Tue Jun 23 20:46:16 EDT 2009
Answering my own question, I got it to work by creating a /dev/ubi0_1
device file and then using ubiupdatevol.
>./ubimkvol /dev/ubi0 -s25MiB -Nubivol1 -n1
> mknod /dev/ubi0_1 c 253 2
> ./ubiupdatevol /dev/ubi0_1 sum.jffs2.rootfs
> mkdir /tmp/flash
> mount -t jffs2 /dev/mtdb-nvdata /tmp/flash
On Mon, Jun 22, 2009 at 7:18 PM, Manoj<manoj23 at gmail.com> wrote:
> I would like to use JFFS2 on top of UBI. I have enabled
> CONFIG_MTD_UBI_GLUEBI in kernel config.
> I have been able to create an empty FS by doing:
>> modprobe ubi mtd=1
>> ubimkvol /dev/ubi0 -s 25MiB -N ubivol1
>> mount -t jffs2 /dev/mtdb-nvdata /tmp/flash
> I can read and write files to /tmp/flash.
> How do I write a jffs2 filesystem image to a ubi volume? I tried
> ubiupdatevol but I think I am not passing the right parameters.
> Do I need to use ubinize to create the UBI image that can be then
> programmed to the UBI volume?
> Thanks for any help.
More information about the linux-mtd