This is the mail archive of the
ecos-devel@sources.redhat.com
mailing list for the eCos project.
ecos ramdisk
- From: "G V Sagar" <gvsagar at secf dot com>
- To: ecos-devel at sources dot redhat dot com
- Date: Fri, 22 Aug 2003 13:26:45 -0700
- Subject: ecos ramdisk
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.
Any help would be greatly appreciated.
Thanks
Sagar