This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: RE: ecos kernel build flag
- From: Gary Thomas <gary at mlbassoc dot com>
- To: Lu Chih Wen <rudolph at jmicron dot com>
- Cc: ecos-discuss at ecos dot sourceware dot org
- Date: Wed, 16 Dec 2009 09:43:04 -0700
- Subject: Re: [ECOS] RE: ecos kernel build flag
- References: <200912161638.nBGGcL3B009531@jmr105.jmicron.com>
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