This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Run application question
- From: davidw at dedasys dot com (David N. Welton)
- To: Francesco Regazzoni <fregazzo at erasmus dot cdc dot polimi dot it>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: 14 May 2002 11:04:28 +0200
- Subject: Re: [ECOS] Run application question
- References: <3CE0E00A.1070000@erasmus.cdc.polimi.it>
Francesco Regazzoni <fregazzo@erasmus.cdc.polimi.it> writes:
> Dear anyone,
>
> I compiled hello.c (ECOS is the directory of kernel for an i386 target):
>
> - SRCS=file.c DST=file build_Makefile ECOS
> - make
>
> Then I have an executable file hello.
>
> Is it possible make a bootable disk and run it directly?
If you made it as a floppy target, and in Linux, you have done
something like this:
objcopy -O binary hello hello.bin
then you can copy hello.bin to the floppy, doing something like cp
hello.bin /dev/fd0 (or use dd if you like obscure commands).
Ciao,
--
David N. Welton
Consulting: http://www.dedasys.com/
Personal: http://www.dedasys.com/davidw/
Free Software: http://www.dedasys.com/freesoftware/
Apache Tcl: http://tcl.apache.org/
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss