[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