Confused about how to make a UBIFS root filesystem

Bruce_Leonard at selinc.com Bruce_Leonard at selinc.com
Fri Apr 11 18:06:23 EDT 2008


I'm sorry if this is a basic/dumb question but I'm not really strong yet 
on the higher layer/user space aspects of running the kernel.  I've got my 
NAND flash driver done and now I want to get my root filesystem on the 
NAND flash.  I sort of asked this question a couple of weeks ago when I 
asked about ubimkvol but I didn't know enough then to ask the right 
questions.

I've gotten all the tools I'm just not sure what order to use them in and 
on what devices/files.  If I understand it correctly, I use mkfs.ubifs on 
a filesystem that I want to ultimately be my rfs and output that to 
someother file (say ubi_rootfs.img).  I then process that through ubinize 
which produces a config file (say ubi_rootfs.cfg).  I then use 
ubiupdatevol to write ubi_rootfs.img to the NAND using ubi_rootfs.cfg to 
control the parameters of how the image gets written.  Where I get lost 
(if I'm not already lost) is how do I prep the NAND device to receive the 
image?  Do I use ubimkvol or mkfs.ubifs?  I've looked through the FAQ at 
infradead and if I knew more about filesystems and the kernel it might all 
make sense, but I'm afraid I'm one of those folks that has to have his 
nose rubbed in it to understand, kind of like an irish setter.  Any help 
or pointers to good references are greatly appreciated.  Thanks.

Bruce

------------------------------------------------

This e-mail may contain SEL confidential information.  The opinions
expressed are not necessarily those of SEL.  Any unauthorized disclosure,
distribution or other use is prohibited.  If you received this e-mail in
error, please notify the sender, permanently delete it, and destroy any
printout.

Thank you.

------------------------------------------------



More information about the linux-mtd mailing list