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


[leaf-devel] Cramfs

2005-06-21 Thread Erich Titl

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

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


[leaf-devel] Cramfs packages support

2003-08-14 Thread Juan Jesus Prieto
Hi Vladimir, jacques and all,

  I am plannig to use a cramfs image (like wisp-dist) in LEAF/Lince to include 
all the basic binaries from the distribution and a lrp package as the 
configuration backup file. the system boot will be like:

   GRUB or Syslinux -- kernel + initrd -- 
-- linuxrc -- lince.cfs + lince.lrp + extra lrp packages -- init 2 ...

  At the beginning, only one cfs package will be in the core dist (like a 
firmware) but my intention is to grant support for any kind of cfs package. 
The structure of the cfs will be the same as LRP: a special /var/lib/lrpkg 
directory with all the configuration files and a new package.inst file to 
content a script that the system will execute untill the symbolic links are 
created (for example, to create the nedeed directories not considered in the 
system until the package.list is parsed). In wisp-dist, in the linuxrc script 
there are a block program to install the cfs packages, mountig the cfs images 
and creating the simbolic links, but it considers only some predefined 
directories (/bin, /sbin, /usr/sbin, ...) restricting the use of another 
directories not considered from the beginning.

   I like the wisp system, so I want to extend it and use a core cfs package 
like a firmware system. This core cfs pack will contain the main lince 
software: core system (modules, ulog, dhcpd, sshd, ...), VPN (ipsec), content 
filtering (squid, dansguardian), firewall (shorewall), QoS (htb.init), virus 
scanner (pop3vscan). The Lince system will be LEAF compliance, so any lrp 
packages will be installable. Any software update in Lince system will be 
treated as a firmware update (only the lince.cfs).

   Suggestions are wellcome.

Regards.
-- 
Juan Jesus Prieto - Dtor. Tecnico
[EMAIL PROTECTED]
http://www.eneotecnologia.com
---
fingerprint: BFC2 0370 7708 F800 0BEC  60A4 EC71 4BB1 CC85 99F5
http://pgp.rediris.es:11371/pks/lookup?op=getsearch=0xCC8599F5



---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01

___
leaf-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-devel