[ECOS] Could the application in the floppy boot the target of PC?
zhang
lczhang@csrd.org
Fri May 12 00:50:00 GMT 2000
ÃÂHi I want to build an application booting from floppy on
target of pc.My host system is ecos1.3.1 on Redhat linux6.1.The commands what I
have used as followed(source file of the application is
hello.c): ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ
mkdirÃÂ
/ecos-work ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ
ecosconfig new pc then I edited the ecos.ecc,and changing the configuration
option CYG_HAL_STARTUP to floppy, i.e. to: ÃÂ ÃÂ cdl_component
CYG_HAL_STARTUP { ÃÂ ÃÂ ÃÂ # Flavor: data ÃÂ ÃÂ ÃÂ #
No user value, uncomment the following line to provide one. ÃÂ ÃÂ
user_value FLOPPY ÃÂ ÃÂ ÃÂ # value_source
default ÃÂ ÃÂ ÃÂ # Default value: RAM ÃÂ ÃÂ ÃÂ # Legal
values: "RAM" "FLOPPY" ÃÂ next
: ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ
ecosconfig check ÃÂ ÃÂ (the result shows no conflict; I continued to
do
follows) ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ
ecosconfig
tree ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ
make ÃÂ Now I began bulid the
application: ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ
i386-elf-gcc -g -I/ecos-work/install/include -o hello
hello.c -L/ecos-work/install/lib -Ttarget.ld
-nostdlib ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ
i386-elf-objcopy -O binary hello hello.bin ÃÂ Then I use the next command
to copy hello to a
floppy: ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ ÃÂ
dd if=hello.bin of=/dev/fd0 Finally I use the floppy to boot the target, but
no success. What is wrong with it? And I found the document
RELEASENOTES.txt in the directory packages\hal\i386\pc\v1_3_1\doc;it points out
: "ÃÂ There are a number of things that are currently incomplete and
are listed here to indicate where this code is expected to change in
the future. These include: ÃÂ -At present the stub monitor can only
boot from floppy disk . Support for applications that can boot in this way
should also ÃÂ be possible, as is booting viaÃÂ ÃÂ BOOTP/TFTP from
a network interface. " SoÃÂ I want to know whether the application
can bootÃÂ from flopp;Is itÃÂ supported by current version ofÃÂ
ecos?
ÃÂ
Thanks a lot !
ÃÂ
Please mail back to lczhang@csrd.org
ÃÂ
ÃÂ
ÃÂ
More information about the Ecos-discuss
mailing list