This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
RE: RE: ecos kernel build flag
- From: "Lu Chih Wen" <rudolph at jmicron dot com>
- To: "'Gary Thomas'" <gary at mlbassoc dot com>
- Cc: <ecos-discuss at ecos dot sourceware dot org>
- Date: Thu, 17 Dec 2009 00:50:41 +0800
- Subject: RE: [ECOS] RE: ecos kernel build flag
Hi
Target: ARM base SOC. (JMICRON arm9 SOC board)
Toolchain: GNU toolchain
Target: arm-eabi
Configured with: /home/test/src/toolchains/gcc/gcc-4.3.2/configure -v
--target=arm-eabi --prefix=/home/test/build/toolchains/arm-eabi/tools
--with-newlib --with-gnu-as --with-gnu-ld --enable-languages=c,c++
--disable-__cxa_atexit --enable-threads
--with-bugurl=http://bugs.ecos.sourceware.org/
--with-pkgversion='eCosCentric GNU tools 4.3.2-sw' --with-cpu=arm7tdmi
--with-gmp=/opt/gmp-4.2.2 --with-mpfr=/opt/mpfr-2.3.0
Thread model: single
gcc version 4.3.2 (eCosCentric GNU tools 4.3.2-sw)
-----Original Message-----
From: Gary Thomas [mailto:gary@mlbassoc.com]
Sent: Thursday, December 17, 2009 12:43 AM
To: Lu Chih Wen
Cc: ecos-discuss@ecos.sourceware.org
Subject: Re: [ECOS] RE: ecos kernel build flag
On 12/16/2009 09:38 AM, Lu Chih Wen wrote:
> Hi
> I have done the ecos-3.0 porting that include bsd-tcpip stack and ftp
> server (http://www.meduna.org/sw_ecosftpserver_en.html).
> But I got the problem on ftp client connection, when I try to set
> optimization flag to -O2 with kernel build the bug was fixed!
> When I trace the code i found FILE IO API "getsockname" always sent
wrong
> IP address (0.0.0.0) and this was reason make connection
> fail.
> Is anyone get the same question?
>
>
> cdl_option CYGPKG_KERNEL_CFLAGS_ADD {
> # Flavor: data
> # No user value, uncomment the following line to provide one.
> # user_value -O2
> # value_source default
> # Default value: -O2
What's your target?
What toolchain did you use?
--
------------------------------------------------------------
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