This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Problem in running Hello world
- From: "kanishk rastogi" <kanishk dot 85 at gmail dot com>
- To: ecos-discuss at ecos dot sourceware dot org
- Date: Thu, 18 Jan 2007 17:29:01 +0530
- Subject: [ECOS] Problem in running Hello world
hi all,
i configured and build ecos for an i386pc target(selected it from
templates). And set the startup type as Grub.
After this i got the required library. then i wrote a simple hello
world program (with while(1); at the end ) and build it with command:
i386-elf-gcc -I/home/linux/i386-grub_install/include/
-L/home/linux/i386-grub_install/lib/
-T/home/linux/i386-grub_install/lib/target.ld -nostdlib -g hello1.c.
and copied the a.out file to my /boot directory (i am using an i686
machine with FC4 installed).
when i load it using grub and run it doesn't prints anything on the screen.
I checked that the output to screen was configured.
Am i right on my approach to build and run the hello world prgram.
Where am i going wrong.
regards
kanishk
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss