This is the mail archive of the ecos-patches@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: lwIP on SLIP interface


On Sat, Mar 14, 2009 at 06:53:23PM +0200, Sergei Gavrikov wrote:
> On Sat, Mar 14, 2009 at 06:05:31PM +0200, Sergei Gavrikov wrote:
> > On Sat, Mar 14, 2009 at 09:46:46AM -0600, Gary Thomas wrote:
> > > Sergei Gavrikov wrote:
> > > > Hi
> > > > 
> > > > A few days ago I needed to run lwIP on sl0. I ran into two problems. It
> > > > seemed for me what a medice can be interesting. Please, look at the
> > > > http://bugs.ecos.sourceware.org/show_bug.cgi?id=1000717 for details.
> > > 
> > > is it working with these changes?
> > 
> > It works with my tweaks the slipif.c and sio.c. I attach minimal ecm
> > what I use on olpce2294 here.
> 
> Garry, I would want tojthat another person test it on another platform.
> Perhaps, I must investigate a bit more time to be sure that tweaks do
> not break PPP stuff. I did not test eCos lwIP PPP with and without the
> tweaks. I will do it and then report about.

It was surprise for me that I could not build PPP with CYGDBG_LWIP_DEBUG:
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1000719

Then I built it. It ran, my tweaks no break input. I'm sorry, I have no
time this sunday to set up host side PPP things. Instead, I write a memo
what I done _exactly_ when I tested SLIP. Perhaps, the next weekend,
I'll get and PPP memo, but, I wonder, is eCos lwIP PPP worked without
the dances before?


Sergei


Appendix

The first run lwIP PPP in GDB

Continuing.
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.0.0.0
netif: GW address of interface  set to 127.0.0.1
netif: added interface lo IP addr 127.0.0.1 netmask 255.0.0.0 gw 127.0.0.1
lcp_init: xmit_accm=0 0 0 0
upap_init: 0
lcp_init: xmit_accm=0 0 0 0
pbuf_alloc(length=1504)
pbuf_alloc(length=1504) == 0x8105a654
pppMain: unit 0: Connecting
tcpip_thread: CALLBACK 0x8105be78
pppStartCB: unit 0
ppp_set_xaccm[0]: outACCM=0 0 0 0
ppp_send_config[0]: outACCM=FF FF FF FF
ppp_recv_config[0]: inACCM=0 0 0 0
lcp_lowerup: asyncmap=0 0 0 0
LCP: lowerup state 0 -> 2
auth_reset: 0
lcp_addci: L opt=2 0
lcp_addci: L opt=5 52181044
lcp_addci: opt=7
lcp_addci: opt=8
pbuf_alloc(length=0)
pbuf_alloc: allocated pbuf 0x8105bf78
pbuf_alloc(length=0) == 0x8105bf78
pppWrite[0]: len=46
pbuf_free(0x8105bf78)
pbuf_free: deallocating 0x8105bf78
fsm_sdata(LCP): Sent code 1,1,20.
LCP: sending Configure-Request, id 1
LCP: open state 2 -> 6
tcpip_thread: API message 0x8105be78
tcpip_thread: API message 0x8105be78
tcp_bind: bind to port 7
tcpip_thread: API message 0x8105be78
pppMainWakeup: unit 0 sio_read len=1504 returned 0
pppMainWakeup: unit 0 sio_read len=1504 returned 0
pppMainWakeup: unit 0 sio_read len=1504 returned 0

[snip]

tcpip: ip_reass_tmr()
pppMainWakeup: unit 0 sio_read len=1504 returned 0
pppMainWakeup: unit 0 sio_read len=1504 returned 0
pppMainWakeup: unit 0 sio_read len=1504 returned 0
pppMainWakeup: unit 0 sio_read len=1504 returned 0
LCP: timeout resending Config-Request state=6
lcp_addci: L opt=2 0
lcp_addci: L opt=5 52181044
lcp_addci: opt=7
lcp_addci: opt=8
pbuf_alloc(length=0)
pbuf_alloc: allocated pbuf 0x8105bf78
pbuf_alloc(length=0) == 0x8105bf78
pppWrite[0]: len=47
pbuf_free(0x8105bf78)
pbuf_free: deallocating 0x8105bf78
fsm_sdata(LCP): Sent code 1,1,20.
LCP: sending Configure-Request, id 1
pppMainWakeup: unit 0 sio_read len=1504 returned 0
pppMainWakeup: unit 0 sio_read len=1504 returned 0

[snip]

Attachment: README.lwip_over_serial
Description: Text document


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