This is the mail archive of the ecos-devel@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]