Re: [leaf-devel] Cramfs

2005-06-22 Thread Charles Steinkuehler

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Erich Titl wrote:
| Hi folks
|
| I would like to use cramfs to store static filesystems on flash. I know
| lince and wisp-dist did that before, I just seem to miss the point on
| how to get the xx.cramfs file to the flash medium.
|
| Do I have to treat it like a binary file system image or can I copy it
| to a partition.
|
| If so what would be the partition type to use.
|
| Thanks for pointers

I believe it's a binary file system image, which you should be able to test
by mounting it via a loop-back device.  Note that AFAIK, being a binary
filesystem image doesn't mean you can't copy it to a partition.

Copying it to flash, however, is another story.  What kind of flash are you
talking about?  If this is an embedded system, you have to compile things
like pointers to the flash memory into the device driver so the system knows
how to talk to it, and get your flash programmed somehow.  If you're talking
about one of the flash cards that does disk emulation (ie: CF card or
similar), I think you can just copy the image over (ie: dd if=image.cramfs
of=/dev/hda1).

- --
Charles Steinkuehler
[EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFCuWfKLywbqEHdNFwRAuqyAJ9RExra5Grtn1RtBNZb9Qt+HWmnxACcDmoL
hx1l4qYq64TioZVoCEbt7uk=
=K5Ky
-END PGP SIGNATURE-


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click

___
leaf-devel mailing list
leaf-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-devel


Re: [leaf-devel] Cramfs

2005-06-22 Thread Erich Titl
Charles

Charles Steinkuehler wrote:
 Erich Titl wrote:
 | Hi folks
 |
 | I would like to use cramfs to store static filesystems on flash. I know
 | lince and wisp-dist did that before, I just seem to miss the point on
 | how to get the xx.cramfs file to the flash medium.
 |
 | Do I have to treat it like a binary file system image or can I copy it
 | to a partition.
 |
 | If so what would be the partition type to use.
 |
 | Thanks for pointers
 

I was assuming this, I could, of course, loop mount the cramfs file. I
am just wondering about partition type and size if I just copy the
cramfs image to a partition.

Thanks

Erich



---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click

___
leaf-devel mailing list
leaf-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-devel


Re: [leaf-devel] Cramfs

2005-06-22 Thread Charles Steinkuehler

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Erich Titl wrote:

| Charles
|
| Charles Steinkuehler wrote:
| Erich Titl wrote:
| | Hi folks
| |
| | I would like to use cramfs to store static filesystems on flash. I know
| | lince and wisp-dist did that before, I just seem to miss the point on
| | how to get the xx.cramfs file to the flash medium.
| |
| | Do I have to treat it like a binary file system image or can I copy it
| | to a partition.
| |
| | If so what would be the partition type to use.
| |
| | Thanks for pointers
|
|
| I was assuming this, I could, of course, loop mount the cramfs file. I
| am just wondering about partition type and size if I just copy the
| cramfs image to a partition.

AFAIK, the partition (or chunk of raw flash) you copy the cramfs image file
to simply has to be *BIGGER* than the image.  Any extra space is simply
wasted (this is a read-only filesystem, after all).

Also, I don't think there is a partition type code specific for cramfs (this
FS is mainly used in raw flash or as a ramdisk image, after all).  That
shouldn't be a problem, however...just use whatever code you want (ie: 0x83,
0xcf, whatever).  The kernel typically identifies cramfs partitions via a
'magic number' at the start of the filesystem data, rather than via
partition type codes (only available on HDD and similar media) anyway.

- --
Charles Steinkuehler
[EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFCuYnxLywbqEHdNFwRAlGXAKCizcCVtCF7PFLevlog+R2bosP00ACeN5Xt
J//w+orAVsEN63JxR/aV4Lo=
=aglg
-END PGP SIGNATURE-


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click

___
leaf-devel mailing list
leaf-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-devel