This is the mail archive of the
ecos-devel@sources.redhat.com
mailing list for the eCos project.
Re: ecos ramdisk
- From: Jonathan Larmour <jifl at eCosCentric dot com>
- To: G V Sagar <gvsagar at secf dot com>
- Cc: ecos-devel at sources dot redhat dot com
- Date: Tue, 26 Aug 2003 17:07:53 +0100
- Subject: Re: ecos ramdisk
- References: <WorldClient-F200308221326.AA26450029@secf.com>
G V Sagar wrote:
hello,
i am tyring to create an ecos image on a floppy (for i386) that has
ramdisk file system support.
I included the packages: RAM filesystem and also the FILE IO support in my
ecos image. However I dont know how to proceed further.
I realize that you can create a ramdisk using a script as follows:
@echo -- START --
dd if=/dev/zero of=rootfs.img bs=1k count=$1
/sbin/mkfs.minix -c rootfs.img
mount -o loop -t minix rootfs.img /mnt
cp -av rootdir/* /mnt
umount /mnt
gzip -9c rootfs.img > rootfs.gz
@echo -- DONE --
Assume that I have a simple hello world application compiled into the ecos
image. How do I tell ecos where my ramdisk is or how to mount my image.
I think you need to read the documentation!
The eCos RAMFS is a filesystem in its own right. It's nothing to do with
minix or anything else. If you want a preinitialized disk, then in fact
you want the ROMFS. If you want to be able to rewrite files in that FS
then you would want to copy the ROMFS to a RAMFS at system startup time.
Jifl
--
eCosCentric http://www.eCosCentric.com/ The eCos and RedBoot experts
--[ "You can complain because roses have thorns, or you ]--
--[ can rejoice because thorns have roses." -Lincoln ]-- Opinions==mine