This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: to Vladimir Sterjantov
- From: Vladimir Sterjantov <vfs at tersy dot ru>
- To: zhulin at digitalchina dot com
- Cc: "'ecos-discuss at sources dot redhat dot com'" <ecos-discuss at sources dot redhat dot com>
- Date: Sat, 28 Sep 2002 14:07:07 +0400
- Subject: Re: [ECOS] to Vladimir Sterjantov
- Organization: Tersy Ltd.
- References: <OF1C63DD07.942B3B31-ON48256C42.002D7C67@digitalchina.com.cn>
- Reply-to: vfs at tersy dot ru
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