Skip to contentSkip to conversation

JFFS-help!

DISCUSSION John Praveen 2 participants 2 messages Aug 24, 2003 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

Hi,

I have an embedded device based on ARM processor.

My device has 32 Flash memory, 64MB SDRAM. The OS is
linux OS. My linux OS will be in Flash memory. I need to have a file system for Flash memory. Hope I shall use jffs2 filesystem.

I dont have the target system right now. So i have to
create the filesystem in my host system now and use that filesystem in my target device later.

mkfs.jffs -d /home/jffsstuff -o /tmp/jffs.image

/home/jffsstuff - stuff to put in flash

Is this jffs.image to be put in the Flash memory in
the target?

What confuses me is, is the command mkfs.jffs is to
be executed with the target flash in the host system? or is this to be executed without the
target solely on the host system and later the image file can be put in the target when the target is ready?

Regards,
John.

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

#1 lore raw
Quoted 6 lines

What confuses me is, is the command mkfs.jffs is to
be executed with the target flash in the host system? or is this to be executed without the
target solely on the host system and later the image file can be put in the target when the target is ready?

mkfs.jffs is to create a jffs image file (on the host). Typically, you would then transfer the file (say jffs.image) onto your target machine and do a cp jffs.image > /dev/mtd0,1,2... The steps are explained in mtd-jffs-Howto.

Basically, mkfs.jffs is just a utility to create a jffs file image. Think of it as a variant of mkfs command.

-siddharth