Am 17.09.2009, 13:48 Uhr, schrieb Simon Kallweit
<[email protected]>:
Bob Brusa wrote:
Am 17.09.2009, 09:51 Uhr, schrieb Simon Kallweit
<[email protected]>:
Well, if you have configured the Sequential mode, I guess this is a
problem with the indexer of eclipse. Eclipse seems to not have found
the CYGIMP_LWIP_MODE_Sequential. I've had similar problems.
The way I currently work inside eclipse is to create a C/C++ project
using the 'build' directory as the projectss main directory (the
directory where you run ecosconfig).
Do you mean "as workspace"?
Create a new 'C Project' and select 'Makefile Project' -> 'Empty
Project'. Specify a project name and as the 'Location' use the build
directory where you have your ecos source tree.
Then I add the ecos repository as a
linked folder (I usually directly add the packages folder, as this is
There are several ways of doing this. What is the method of your
choice?
I understand your link in "path2ECOSroot"/packages ?
Exactly. Right click on the project you just created in the 'Project
Explorer' on the left. Then select 'New' -> 'Folder'. Enter a 'Folder
name' like 'ecos' and click the 'Advanced >>' button then select the
path of your ecos repository (or it's packages subfolder).
This is just the way I use eclipse with my eCos projects. I have my
sources split up in multiple ecos repositories, which I all add as
linked folders. Only drawback is that I you cannot use version control
on these folders. But I'm used to do this on the console anyway. Maybe
there are better ways of doing this?!?
Simon
Hi Simon
I did what I understood from your text - and it got messy. It seems I did
not understand correctly ;-).
Anyway, I reverted back to my own eclipse-methodology and also decided to
go for your most recent lwip-port
http://download.westlicht.ch/lwip-20090903.tar.gz (which Mandeep had
mentioned). And with this it looks much more promising.
Running the tcpecho.c program, I can see that the DHCP-server on our LAN
recognizes the board, even assigns it an address, but somehow the thing is
not really working. I have not sent any tcp-packages to the board yet, but
I get a lot of timeout errors in the debug output (see attachment). Only -
I do not understand why and what all this output means. Something seems to
be unconfigured yet and this then causes these timeouts? How to fix that?
Further: How do I send tcp-packet to port 7. Will a browser where I enter
192.168.0.10:7 send a tcp-package to port 7?
Thanks for help and regards
Robert
INFO:<Testing TCP>
This test will echo TCP packets on local port 7
igmp_init: initializing
sys_timeout: 0x00208c48 msecs=1000 h=0x002060ac arg=0x00000000
sys_timeout: 0x00208c0c msecs=5000 h=0x002060ac arg=0x00000000
sys_timeout: 0x00208bd0 msecs=60000 h=0x002060ac arg=0x00000000
sys_timeout: 0x00208b94 msecs=500 h=0x002060ac arg=0x00000000
sys_timeout: 0x00208b58 msecs=100 h=0x002060ac arg=0x00000000
netif_set_ipaddr: netif address being changed
netif: IP address of interface set to 127.0.0.1
netif: netmask of interface set to 255.255.255.0
netif: GW address of interface set to 127.0.0.1
netif: added interface lo IP addr 127.0.0.1 netmask 255.255.255.0 gw 127.0.0.1
AT91_ETH: Initialising @ fffdc000
AT91_ETH: Installing Interrupts on IRQ 16
AT91_ETH - Warning! ESA unknown
AT91_ETH: 12:34:56:78:9a:bc
AT91_ETH: No Link
netif: IP address of interface set to 0.0.0.0
netif: netmask of interface set to 0.0.0.0
netif: GW address of interface set to 0.0.0.0
netif: added interface et IP addr 0.0.0.0 netmask 0.0.0.0 gw 0.0.0.0
netif: setting default interface et
etharp_request: sending ARP request.
pbuf_alloc(length=42)
pbuf_alloc(length=42) == 0x002067d8
etharp_raw: sending raw ARP packet.
pbuf_free(0x002067d8)
pbuf_free: deallocating 0x002067d8
dhcp_start(netif=0x002016fc) et1
dhcp_start(): starting new DHCP client
dhcp_start(): allocated dhcpudp_bind(ipaddr = 0.0.0.0, port = 68)
udp_bind: bound to 0.0.0.0, port 68
udp_connect: connected to 0.0.0.0,port 67
dhcp_start(): starting DHCP configuration
dhcp_discover()
pbuf_alloc(length=308)
pbuf_alloc(length=308) == 0x00206838
transaction id xid(abcd0001)
dhcp_discover: making request
dhcp_discover: realloc()ing
udp_connect: connected to 0.0.0.0,port 67
dhcp_discover: sendto(DISCOVER, IP_ADDR_BROADCAST, DHCP_SERVER_PORT)
pbuf_header: old 0x00206880 new 0x00206878 (8)
udp_send: added header in given pbuf 0x00206838
udp_send: sending datagram of length 316
udp_send: UDP packet length 316
inet_chksum_pseudo(): checksumming pbuf 0x00206838 (has next 0x00000000)
inet_chksum_pseudo(): pbuf chain lwip_chksum()=c192
udp_send: UDP checksum 0x3e6d
udp_send: ip_output_if (,,,,IP_PROTO_UDP,)
pbuf_header: old 0x00206878 new 0x00206864 (20)
ip_output_if: et1
IP header:
+-------------------------------+
| 4 | 5 | 0x00 | 336 | (v, hl, tos, len)
+-------------------------------+
| 0 |000| 0 | (id, flags, offset)
+-------------------------------+
| 255 | 17 | 0xba9d | (ttl, proto, chksum)
+-------------------------------+
| 0 | 0 | 0 | 0 | (src)
+-------------------------------+
| 255 | 255 | 255 | 255 | (dest)
+-------------------------------+
netif->output()pbuf_header: old 0x00206864 new 0x00206856 (14)
etharp_send_ip: sending packet 0x00206838
dhcp_dpbuf_alloc(length=64)
pbuf_alloc: allocated pbuf 0x0020a270
pbuf_alloc(length=64) == 0x0020a270
iscover: deleting()ing
pbuf_free(0x00206838)
pbuf_free: deallocating 0x00206838
dhcp_discover: SELECTING
dhcp_discover(): set request timeout 2000 msecs
tcpip_thread: PACKET 0x002082c4
ethernet_input: dest:ff:ff:ff:ff:ff:ff, src:00:02:cf:cc:89:c1, type:%hx
update_arp_entry()
update_arp_entry: 192.168.0.1 - 00:02:cf:cc:89:c1
find_entry: found empty entry 0
find_entry: selecting empty entry 0
update_arp_entry: updating stable entry 0
etharp_arp_input: incoming ARP request
etharp_arp_input: we are unconfigured, ARP request ignored.
pbuf_free(0x0020a270)
pbuf_free: deallocating 0x0020a270
tcpip_thread: API message 0x002041ac
tcpip_thread: API message 0x002041b0
tcp_bind: bind to port 7
tcpip_thread: API message 0x002041b0
Stack usage for thread 00203860: 312
smf calling h=0x002060b4(0x00000000)
tcpip: igmp_tmr()
sys_timeout: 0x00208b58 msecs=100 h=0x00206098 arg=0x00000000
smf calling h=0x002060b4(0x00000000)
tcpip: igmp_tmr()
sys_timeout: 0x00208b58 msecs=100 h=0x00206098 arg=0x00000000
smf calling h=0x002060b4(0x00000000)
tcpip: igmp_tmr()
sys_timeout: 0x00208b58 msecs=100 h=0x00206098 arg=0x00000000
smf calling h=0x002060b4(0x00000000)
tcpip: igmp_tmr()
sys_timeout: 0x00208b58 msecs=100 h=0x00206098 arg=0x00000000
smf calling h=0x002060b4(0x00000000)
tcpip: dhcp_fine_tmr()
sys_timeout: 0x00208b94 msecs=500 h=0x00206098 arg=0x00000000
smf calling h=0x002060b4(0x00000000)
tcpip: igmp_tmr()
sys_timeout: 0x00208b58 msecs=100 h=0x00206098 arg=0x00000000
smf calling h=0x002060b4(0x00000000)
tcpip: igmp_tmr()
sys_timeout: 0x00208b58 msecs=100 h=0x00206098 arg=0x00000000
smf calling h=0x002060b4(0x00000000)
tcpip: igmp_tmr()
sys_timeout: 0x00208b58 msecs=100 h=0x00206098 arg=0x00000000
smf calling h=0x002060b4(0x00000000)
tcpip: igmp_tmr()
sys_timeout: 0x00208b58 msecs=100 h=0x00206098 arg=0x00000000
smf calling h=0x002060b4(0x00000000)
tcpip: igmp_tmr()
sys_timeout: 0x00208b58 msecs=100 h=0x00206098 arg=0x00000000
smf calling h=0x002060b4(0x00000000)
tcpip: ip_reass_tmr()
sys_timeout: 0x00208c48 msecs=1000 h=0x00206098 arg=0x00000000
smf calling h=0x002060b4(0x00000000)
tcpip: dhcp_fine_tmr()
sys_timeout: 0x00208b94 msecs=500 h=0x00206098 arg=0x00000000
smf calling h=0x002060b4(0x00000000)
tcpip: igmp_tmr()
sys_timeout: 0x00208b58 msecs=100 h=0x00206098 arg=0x00000000
smf calling h=0x002060b4(0x00000000)
tcpip: igmp_tmr()
sys_timeout: 0x00208b58 msecs=100 h=0x00206098 arg=0x00000000
pbuf_alloc(length=90)
pbuf_alloc: allocated pbuf 0x0020a270
pbuf_alloc(length=90) == 0x0020a270
tcpip_thread: PACKET 0x002082c4
ethernet_input: dest:ff:ff:ff:ff:ff:ff, src:00:02:cf:cc:89:c1, type:%hx
etharp_ip_input: updating ETHARP table.
update_arp_entry()
update_arp_entry: 192.168.0.1 - 00:02:cf:cc:89:c1
update_arp_entry: updating stable entry 0
pbuf_header: old 0x0020a280 new 0x0020a28e (-14)
ip_input: iphdr->dest 0xff00a8c0 netif->ip_addr 0x0 (0x0, 0x0, 0xff00a8c0)
ip_input: iphdr->dest 0xff00a8c0 netif->ip_addr 0x100007f (0xa8c0, 0x7f,
0xff000000)
ip_input: UDP packet to DHCP client port 520
ip_input: packet not for us.
pbuf_free(0x0020a270)
pbuf_free: deallocating 0x0020a270
smf calling h=0x002060b4(0x00000000)
tcpip: igmp_tmr()
sys_timeout: 0x00208b58 msecs=100 h=0x00206098 arg=0x00000000
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss