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]

Re: SO many ecos problems in learning ecos and they has made me crazy....SOS....


sean yang wrote:
> I just learned to use ecos to build a i386 redboot follwing the http://ecos.
> sourceware.org/,and I am confused by what I got:
> 
> 1. I downloaded the ecos via wget as the instruction of
> http://ecos.sourceware.org/getstart.html: wget --passive-ftp
> ftp://ecos.sourceware.org/pub/ecos/ecos-install.tcl and install 
> 
> It,the ecos has been installed with the directory structure such
> as:ecos/ecos-2.0/packages/hal/i386/arch/ecos-2.0;
> 
>  2. Then,I got the snapshot via
> http://www.ecoscentric.com/devzone/snapshots.shtml and reinstalled it ,this
> time the directory structre is ok as normal mentioned:
> 
> ecos/packages/hal/i386/arch/current;
> 
>  3. Then,I use the snapshot version to build the i386 and arm tool
> chains,and then the redboot for i386 with configtool.exe(Version
> 0607)----BTW,and I don’t know how to get the configuretool_v1.3.net for
> MLT---there is a error for building which confusing me so long a time:
> 
>                             
> 
> i386-elf-gcc -c  -I/ecos-d/ecos_working/redboot/example_i386_install/include
> -I/ecos-d/ecos/packages/hal/i386/arch/current
> -I/ecos-d/ecos/packages/hal/i386/arch/current/src
> -I/ecos-d/ecos/packages/hal/i386/arch/current/tests -I.
> -I/ecos-d/ecos/packages/hal/i386/arch/current/src/ -finline-limit=7000 -Wall
> -Wpointer-arith -Wstrict-prototypes -Winline -Wundef  -g -O2
> -ffunction-sections -fdata-sections  -fno-exceptions
> -Wp,-MD,src/hal_syscall.tmp -o src/hal_i386_arch_hal_syscall.o
> /ecos-d/ecos/packages/hal/i386/arch/current/src/hal_syscall.c
> 
> /ecos-d/ecos/packages/hal/i386/arch/current/src/hal_syscall.c: In function
> 'hal_syscall_handler':
> 
> /ecos-d/ecos/packages/hal/i386/arch/current/src/hal_syscall.c:113: warning:
> implicit declaration of function 'get_register'
> 
> /ecos-d/ecos/packages/hal/i386/arch/current/src/hal_syscall.c:113: error:
> 'EAX' undeclared (first use in this function)
> 
> /ecos-d/ecos/packages/hal/i386/arch/current/src/hal_syscall.c:113: error:
> (Each undeclared identifier is reported only once
> 
> /ecos-d/ecos/packages/hal/i386/arch/current/src/hal_syscall.c:113: error:
> for each function it appears in.)
> 
> /ecos-d/ecos/packages/hal/i386/arch/current/src/hal_syscall.c:114: error:
> 'EBX' undeclared (first use in this function)
> 
> /ecos-d/ecos/packages/hal/i386/arch/current/src/hal_syscall.c:115: error:
> 'ECX' undeclared (first use in this function)
> 
> /ecos-d/ecos/packages/hal/i386/arch/current/src/hal_syscall.c:116: error:
> 'EDX' undeclared (first use in this function)
> 
> /ecos-d/ecos/packages/hal/i386/arch/current/src/hal_syscall.c:135: warning:
> implicit declaration of function 'put_register'
> 
> /ecos-d/ecos/packages/hal/i386/arch/current/src/hal_syscall.c:145: error:
> 'SIGTRAP' undeclared (first use in this function)
> 
> In file included from
> /ecos-d/ecos/packages/hal/i386/arch/current/src/redboot_linux_exec.c:52:
> 
> /ecos-d/ecos_working/redboot/example_i386_install/include/redboot.h:66:25:
> error: cyg/crc/crc.h: No such file or directory
> 
> make[1]: Leaving directory
> `/ecos-d/ecos_working/redboot/example_i386_build/hal/i386/arch/current'
> 
> make[1]: *** [src/hal_syscall.o.d] Error 1
> 
> make: Leaving directory `/ecos-d/ecos_working/redboot/example_i386_build'
> 
> make[1]: *** Waiting for unfinished jobs....
> 
> /ecos-d/ecos/packages/hal/i386/arch/current/src/redboot_linux_exec.c: In
> function 'do_exec':
> 
> /ecos-d/ecos/packages/hal/i386/arch/current/src/redboot_linux_exec.c:261:
> warning: implicit declaration of function 'cyg_hal_plf_screen_position'
> 
> make[1]: *** [src/redboot_linux_exec.o.d] Error 1
> 
> make: *** [build] Error 2
> 
>  
> 
> 4. from the make log,there are two errors which I don’t know why at all
> because:
> 
>    1).EAX has been declared in i386_stub.h and this file will be included by
> hal_syscall.c if CYGSEM_REDBOOT_BSP_SYSCALLS defined,and I am sure that the
> MACRO CYGSEM_REDBOOT_BSP_SYSCALLS has been defined;
> 
>    2).the cyg/crc/crc.h:this file will be included in redboot.h,but I
> couldn’t find this file in this directory,why?could anyone tell me ?

Exactly how did you configure eCos (please explain all the steps)?

For example, I can build RedBoot for the i386/PC using these steps:
  % ecosconfig new pc redboot
  % ecosconfig import ${ECOS_REPOSITORY}/hal/i386/pc/current/misc/redboot_GRUB.ecm
  % ecosconfig tree
  % make

> 5.I want to rebuild the confiuretool with the latest snapshot version,and I
> followed the http://www.ecoscentric.com/devzone/configtool.shtml

Why do you want to rebuild the config tool (an arduous task, even for
the seasoned traveler!)??

>   But the $HOME can not be understood by cygwin bash ,why?

You'll need to explain what error you are getting.

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------

-- 
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]