[ECOS] How to make eCos app run on i386 pc without stubs?
John
john@imining.com.tw
Thu Feb 22 01:06:00 GMT 2001
Xinghua
Thanks for your help : )
I followed your advice to build a kernel with stub template.
But when I compile the sample hello.c, I get an error that it can't find stdio.h.
What components should I add to the stub template package?
I am new to eCos, so my question may be kind of stupid ones :-P
Thanks again.
-----Original Message-----
From: Li Xinghua [ mailto:ahwa@fudan.edu ]
Sent: Thursday, February 22, 2001 2:26 PM
To: John
Subject: Re: [ECOS] How to make eCos app run on i386 pc without stubs?
John
Select stub as the template.
Set pc platform startup type as "floppy",
and disable all the configurations with gdb stubs and debugging support concerned.
When the build completes,a new eCos kernel is produced.
Compile user applications on this kernel,and get a execute file.
Using objcopy utility,convert it to a binary image file as follows.
i386-elf-objcopy -O binary hello hello.bin
Copy this image to floppy disk and then this disk can be used to boot the system.
Good luck.
Due to my poor English, Here list the translation of my mother tongue,also yours :)
(GB Chinese)
ÃÂáÃÂñpc targetãìÃÂãðÃÂ¥ÃÂêstub
ðÃÂÃÂôöï÷ýÃÂýÃÂèÃÂêôÃÂ"floppy"ÃÂýõüãì
ÃÂÃ¥õôÃÂùÃÂÃÂÃÂëgdb stub ÃÂÃÂùÃÂõÃÂÃÂáÃÂîãì
ÃÂÃ¥õôÃÂùÃÂÃÂÃÂëõ÷ÃÂÃÂÃÂÃÂ
ÃÂâÃÂÃÂùÃÂõÃÂÃÂáÃÂîáã
ñàÃÂëõÃÂõýÃÂÃÂúÃÂãìÃÂÃÂôÃÂÃÂÃÂúÃÂÃÂÃÂñàÃÂëÃÂÃÂûçÃÂæÃÂÃÂóÃÂÃÂòáã
ÃÂûÃÂÃÂobjcopy ÃÂüÃÂîãìñÃÂÃÂçãú i386-elf-objcopy -O binary hello hello.bin.
ðÃÂhello.binøôÃÂÃÂõýÃÂÃÂÃÂ
ÃÂãú$ dd conv=sync if=hello.bin of=/dev/fd0.
ôÃÂÃÂÃÂÃÂ
ÃÂüôÿÃÂÃÂ÷ÃÂêÃÂôöïÃÂ
ÃÂãìÃÂòÃÂÃÂôóüêÃÂòáã
ÃÂÃÂþÃÂÃÂÃÂÃÂâÃÂùÃÂöõÃÂãìûöÃÂÃÂÃÂøýÃÂáã
best regards
Li Xinghua
ahwa@fudan.edu
____________________________
BN3 Hosted Customer Service Solution, basic service FREE.
CRM enable your web site in 5 minutes! http://www.bn3.com
More information about the Ecos-discuss
mailing list