There are several utilities available from
http://www.linux-mtd.infradead.org/.
* mkfs.jffs - will create a jffs image from a directory.
* eraseall - will erase all the blocks on a MTD partition. I have noticed
the same thing -- JFFS wants unused space in a partition to be 0xFF.
Cliff
>-----Original Message-----
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED]]On Behalf Of
>Ward Willats
>Sent: Tuesday, February 06, 2001 11:02 AM
>To: [EMAIL PROTECTED]
>Subject: ramdisk_ks.gz - bootstrapping
>
>
>At 5:05 PM -0500 2/5/01, Nicolas Pitre wrote:
>>the best I found so far, which consist of using two flash partitions:
>>the first one being a single flash sector long to hold your
>bootloader, and
>>the second one spaning onto the entire remaining flash using JFFS
>
>This sounds great, but any thoughts on the best way to go
>about bootstrapping
>it?
>
>Our automated build kicks out a bootloader, kernel and ramdisk image.
>I can use blob to put the kernel and ramdisk in RAM, boot the system,
>then zmodem the kernel and ramdisk to the running system and use "dd"
>to burn it in a flash partition for all time.
>
>If I use JFFS for the root FS, I'd like to preload it with
>that FS. But,
>as far as I know, there is no "makejffs" or way to stage a
>JFFS filesystem
>on other media.
>
>I don't have a network, only the serial link and/or jtag.
>
>-- Ward
>
>P.S. As an aside, is there an easy way to erase/format a JFFS
>partition? I've
>been using jtag to blow it away when I need to, but that seems
>extreme (and
>a "dd if=/dev/zero of=/flash" doesn't work -- I think JFFS wants 0xFF).
>
>P.S.S. Ever use busybox to "mv" a directory into a directory
>on JFFS? The
>results on my 2.4.0 kernel are not pretty!
>
>_______________________________________________
>http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
>Please visit the above address for information on this list.
_______________________________________________
http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
Please visit the above address for information on this list.