This is the mail archive of the ecos-discuss@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 ram filesystem


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 --

This is what I did: I booted the pc with redboot
floppy. I have simple 'hello world' application that
wants to read and write to a file. This app is
compiled into the ecos image. Then i load this ecos
image into memory and type 'go'. This just starts the
app and I cannot give any commands to ecos. (also i
havent been able to get my console working). The
printf statements just go to my pc monitor.

How do I tell ecos where my ramdisk is or how to mount
my image.

Any help would be greatly appreciated.

Thanks
Sagar

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


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