This is the mail archive of the ecos-discuss@sourceware.org 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]

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


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