linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* Question about ubimkvol vs. mkfs.ubifs
@ 2008-04-06 23:53 Bruce_Leonard
  2008-04-07  0:23 ` Hamish Moffatt
  2008-04-07  7:27 ` Artem Bityutskiy
  0 siblings, 2 replies; 10+ messages in thread
From: Bruce_Leonard @ 2008-04-06 23:53 UTC (permalink / raw)
  To: linux-mtd

Hi all,

This is probably a basic question but I'll admit to being lost.  I'm 
relatively new to kernel coding and up till now I've been focused on the 
very low level stuff, i.e., making hardware work and LEDs go 
blinkey-blinkey.  Currently I'm working on a NAND flash driver that I need 
to tie into UBI/UBIFS.  I've got the driver working, I can 
read/write/erase my flash parts, so the low level stuff that I understand 
is good.  Now I'm working at the higher levels/user space levels that I 
don't understand as well.  Basically my question is, what is the 
difference between ubimkvol and mkfs.ubifs?  I can run through the 
following steps and everything works just fine near as I can tell:

insmod my_flash_driver
insmod ubi mtd=1
insmod ubifs
ubimkvol /dev/ubi0 -m -N ubifs
mount -t ubifs ubi0:ubifs /mnt/nand

Once I do all that I can read/write/copy/delete/etc files just fine on the 
NAND flash.  So, like I said it appears to be working just fine.  But 
everything I see on the mailing list seems to be saying I should be using 
mkfs.ubifs.  But if everything works and I'm mounting the device as a 
UBIFS filesystem, what (if anything) is mkfs.ubifs going to do for me that 
I don't already have done?

Oh, another question.  I've seen reference to an 'fs-test' that's supposed 
to be part of mtd-utils, but I can't seem to find it anywhere.  Can 
someone please point me to the sources?  Is it a good test to run?

Thanks for the help.

See 'ya!

Bruce

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2008-04-08 16:55 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-06 23:53 Question about ubimkvol vs. mkfs.ubifs Bruce_Leonard
2008-04-07  0:23 ` Hamish Moffatt
2008-04-07  2:42   ` Bruce_Leonard
2008-04-07  7:27 ` Artem Bityutskiy
2008-04-07  7:37   ` Artem Bityutskiy
2008-04-07 20:07   ` Bruce_Leonard
2008-04-08  5:43     ` Artem Bityutskiy
2008-04-08 16:45       ` Bruce_Leonard
2008-04-08 16:51         ` Artem Bityutskiy
2008-04-08 16:54         ` Artem Bityutskiy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).