public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] How to make eCos app run on i386 pc without stubs?
@ 2001-02-21 20:46 John
  0 siblings, 0 replies; 3+ messages in thread
From: John @ 2001-02-21 20:46 UTC (permalink / raw)
  To: ecos-discuss

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 450 bytes --]

Hi all,

I want to make eCos application (ex: hello world) run on x86 target pc without stubs.
I wish the eCos boot from floppy or HDD without any assistance from host.
How should I do?
Thanks in advance.

----
Á»¨­õ
John Hsieh
µo²{ªÌ°ê»ÚªÑ¥÷¦³­­¤½¥q
iMining Technology Co., Ltd.
john@imining.com.tw
TEL: 886-2-27235122
FAX: 886-2-27232287
www.imining.com.tw

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ECOS] How to make eCos app run on i386 pc without stubs?
  2001-02-22  1:06 ` John
@ 2001-02-23 11:43   ` Jonathan Larmour
  0 siblings, 0 replies; 3+ messages in thread
From: Jonathan Larmour @ 2001-02-23 11:43 UTC (permalink / raw)
  To: John; +Cc: ecos-discuss

John wrote:
> 
> 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?

No, you use the stubs template to build a boot loader image which you find
in install/bin.

If you want to build an application you must create a completely new
configuration in a separate directory - don't use the stubs template.

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine

^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: [ECOS] How to make eCos app run on i386 pc without stubs?
       [not found] <200102220620.OAA08682@dns.imining.com.tw>
@ 2001-02-22  1:06 ` John
  2001-02-23 11:43   ` Jonathan Larmour
  0 siblings, 1 reply; 3+ messages in thread
From: John @ 2001-02-22  1:06 UTC (permalink / raw)
  To: Li Xinghua; +Cc: ecos-discuss

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2366 bytes --]

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-02-23 11:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-21 20:46 [ECOS] How to make eCos app run on i386 pc without stubs? John
     [not found] <200102220620.OAA08682@dns.imining.com.tw>
2001-02-22  1:06 ` John
2001-02-23 11:43   ` Jonathan Larmour

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).