This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Run application question
- From: Francesco Regazzoni <fregazzo at erasmus dot cdc dot polimi dot it>
- To: "David N. Welton" <davidw at dedasys dot com>
- Cc: ecos-discuss at sources dot redhat dot com
- Date: Mon, 20 May 2002 19:39:36 +0200
- Subject: Re: [ECOS] Run application question
- Organization: Politecnico di Milano
- References: <3CE0E00A.1070000@erasmus.cdc.polimi.it> <871ycfm76r.fsf@dedasys.com>
David N. Welton wrote:
> 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,
>
What I have to do "to make it as a floppy target"?
I build eCos with this:
ecosconfig -v new pc
ecosconfig tree
make
Then I compiled hello.c and I used objcopy to have a binary, but it
isn't bootable.
Then I tried to use:
ecosconfig -v new pc stubs
ecosconfig tree
make
then I compiled hello.c and I used objcopy to have binary: I tryed to
reboot, but I can see only some points in the top of screen (like a
progress bar), but then it crashes.
Where's the error?
Thanks for help
Francesco
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss