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]

RE: How to make eCos app run on i386 pc without stubs?


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

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