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

How an application booting from floppy?


­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?



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