This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Re: to Vladimir Sterjantov


thank you very much!
you give me great help.


                                                                                                               
                      Vladimir Sterjantov                                                                      
                      <vfs@tersy.ru>                    收件人:  zhulin@digitalchina.com                      
                      发件人:                          抄送:    "'ecos-discuss@sources.redhat.com'"          
                      ecos-discuss-owner@sources         <ecos-discuss@sources.redhat.com>                     
                      .redhat.com                       主题:    Re: [ECOS] to Vladimir Sterjantov            
                                                                                                               
                                                                                                               
                      2002-09-28 18:07                                                                         
                      请答复 给 vfs                                                                            
                                                                                                               
                                                                                                               




hello!
Let's suppose, target is i386 PC,
ecos source tree installed, and ECOS_REPOSITORY env. variable set to
correct path, for example, to "/opt/ecos/packages".

The _simplest_ way:

Run commands on host (linux):

# mkdir /tmp/ecos-pc
# cd /tmp/ecos-pc
# ecosconfig new pc
# ecosconfig tree
# make
-----------------------------------
# vi ecos.c

#include <stdio.h>
int main(void)
{
  printf("Hello, eCos world!\n");
  return 0;
}
----------------------------------

# i386-elf-gcc -o ecos -I/tmp/ecos-pc/install/include
-L/tmp/ecos-pc/install/lib  -Ttarget.ld -nostdlib ecos.c
# objcopy -O binary ecos ecos.bin

If SREC file is preferred, then:

# objcopy -O srec ecos ecos.srec

Hope, this will help you.



zhulin@digitalchina.com wrote:

>hi,i am a freshman.
>i read your words.
>could you tell me,how to create ecos.bin with hello world application.
>thank you!
>
>
>
>
--
--
Vladimir Sterjantov
Tersy Ltd., Sarov, Russia,
tel. (83130) 45828
mailto:vfs@tersy.ru



--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]