This is the mail archive of the ecos-discuss@sources.redhat.com 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: DHCP problem with interrupt eth driver


On Fri, 2005-01-21 at 11:44 +0100, Stefan Rosinger wrote:
> Hi all!
> 
> I still have a problem with getting a DHCP address with interrupt driver  
> and FreeBSD stack.
> 
> The problem with the interrupt is, that i cant cancel it when it appears.
> Mainly i think that is not a failure of my interrupt controller because  
> other network test worked fine.(e.g. ping)
> 
> I have no idea whats going on with the dhcp routine.
> 
> For a better imagination of my problem, i added the diagnostic output and  
> the sniffed packages from ethereal.
> 
> Init device '/dev/edip0'
> Init eDip 240-7 serial channel: ff1019f8
> Init device '/dev/ser1'
> VIRTEX2P SERIAL init - Device: ff0e0900 - IRQ#: 3
> Set output buffer - buf: ff103dc8 len: 128
> Set input buffer - buf: ff103e48 len: 128
> Network stack using 69632 bytes for misc space
>                      69632 bytes for mbufs
>                      139264 bytes for mbuf clusters
> [cyg_net_init] Init: mbinit(0x00000000)
> [cyg_net_init] Init: cyg_net_init_devs(0x00000000)
> Init device 'dm9000_eth0'
> [cyg_net_init] Init: loopattach(0x00000000)
> [cyg_net_init] Init: ifinit(0x00000000)
> [cyg_net_init] Init: domaininit(0x00000000)
> [cyg_net_init] Init: cyg_net_add_domain(0xff1010ac)
> New domain internet at 0x00000000
> [cyg_net_init] Init: cyg_net_add_domain(0xff100e30)
> New domain route at 0x00000000
> [cyg_net_init] Init: call_route_init(0x00000000)
> [cyg_net_init] Init: sysctl_register_all(0x00000000)
> [cyg_net_init] Done
> Entering twothreads' cyg_user_start() function
> Device edip lookuped
> eDip server...running: 1
> [eth_drv_ioctl] Warning: Driver can't set multi-cast mode
> [eth_drv_ioctl] Warning: Driver can't set multi-cast mode
> ---------DHCPSTATE_INIT sending:
> BOOTP[eth0] op: REQUEST
>         htype: Ethernet
>          hlen: 6
>          hops: 0
>           xid: 0x63b70107
>          secs: 0
>         flags: 0x8000
>         hw_addr: 00:60:6e:00:01:07
>       client IP: 0.0.0.0
>           my IP: 0.0.0.0
>       server IP: 0.0.0.0
>      gateway IP: 0.0.0.0
>    options:
>          DHCP message: 1 DISCOVER
>          DHCP option: 37/55.9: 54 51 58 59 1 3 6 15 28
>          DHCP option: 39/57.2: 576
> Sending 342 bytes
> xmit 42 bytes at ff11a4d6 sg[1]
> FF11A4D6: FF FF FF FF FF FF 00 60  6E 00 01 07 08 00 45 00   
> |.......`n.....E.|
> FF11A4E6: 01 48 00 01 00 00 40 11  79 A5 00 00 00 00 FF FF   
> |.H....@.y.......|
> FF11A4F6: FF FF 00 44 00 43 01 34  F0 E3                     
> |...D.C.4..      |
> xmit 300 bytes at ff12b57c sg[2]
> FF12B57C: 01 01 06 00 63 B7 01 07  00 00 80 00 00 00 00 00   
> |....c...........|
> FF12B58C: 00 00 00 00 00 00 00 00  00 00 00 00 00 60 6E 00   
> |.............`n.|
> FF12B59C: 01 07 00 00 00 00 00 00  00 00 00 00 00 00 00 00   
> |................|
> FF12B5AC: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   
> |................|
> FF12B5BC: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   
> |................|
> FF12B5CC: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   
> |................|
> FF12B5DC: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   
> |................|
> FF12B5EC: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   
> |................|
> FF12B5FC: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   
> |................|
> FF12B60C: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   
> |................|
> FF12B61C: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   
> |................|
> FF12B62C: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   
> |................|
> FF12B63C: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   
> |................|
> FF12B64C: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   
> |................|
> FF12B65C: 00 00 00 00 00 00 00 00  00 00 00 00 63 82 53 63   
> |............c.Sc|
> FF12B66C: 35 01 01 37 09 36 33 3A  3B 01 03 06 0F 1C 39 02   
> |5..7.63:;.....9.|
> FF12B67C: 02 40 FF 00 00 00 00 00  00 00 00 00 00 00 00 00   
> |.@..............|
> FF12B68C: 00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   
> |................|
> FF12B69C: 00 00 00 00 00 00 00 00  00 00 00 00               
> |............    |
> ---------DHCPSTATE_INIT sending:
> BOOTP[eth0] op: REQUEST
  <snip>
> ---------DHCPSTATE_INIT sending:
> BOOTP[eth0] op: REQUEST
>         htype: Ethernet
>          hlen: 6
>          hops: 0
>           xid: 0x63b70107
>          secs: 66
>         flags: 0x8000
>         hw_addr: 00:60:6e:00:01:07
>       client IP: 0.0.0.0
>           my IP: 0.0.0.0
>       server IP: 0.0.0.0
>      gateway IP: 0.0.0.0
>    options:
>          DHCP message: 1 DISCOVER
>          DHCP option: 37/55.9: 54 51 58 59 1 3 6 15 28
>          DHCP option: 39/57.2: 576
> ---------DHCPSTATE_INIT sending:
> BOOTP[eth0] op: REQUEST
>         htype: Ethernet
>          hlen: 6
>          hops: 0
>           xid: 0x63b70107
>          secs: 66
>         flags: 0x8000
>         hw_addr: 00:60:6e:00:01:07
>       client IP: 0.0.0.0
>           my IP: 0.0.0.0
>       server IP: 0.0.0.0
>      gateway IP: 0.0.0.0
>    options:
>          DHCP message: 1 DISCOVER
>          DHCP option: 37/55.9: 54 51 58 59 1 3 6 15 28
>          DHCP option: 39/57.2: 576
> ---------DHCPSTATE_INIT sending:
> BOOTP[eth0] op: REQUEST
>         htype: Ethernet
>          hlen: 6
>          hops: 0
>           xid: 0x63b70107
>          secs: 66
>         flags: 0x8000
>         hw_addr: 00:60:6e:00:01:07
>       client IP: 0.0.0.0
>           my IP: 0.0.0.0
>       server IP: 0.0.0.0
>      gateway IP: 0.0.0.0
>    options:
>          DHCP message: 1 DISCOVER
>          DHCP option: 37/55.9: 54 51 58 59 1 3 6 15 28
>          DHCP option: 39/57.2: 576
> ---------DHCPSTATE_INIT sending:
> BOOTP[eth0] op: REQUEST
>         htype: Ethernet
>          hlen: 6
>          hops: 0
>           xid: 0x63b70107
>          secs: 67
>         flags: 0x8000
>         hw_addr: 00:60:6e:00:01:07
>       client IP: 0.0.0.0
>           my IP: 0.0.0.0
>       server IP: 0.0.0.0
>      gateway IP: 0.0.0.0
>    options:
>          DHCP message: 1 DISCOVER
>          DHCP option: 37/55.9: 54 51 58 59 1 3 6 15 28
>          DHCP option: 39/57.2: 576
> BOOTP/DHCP failed on eth0
> 
> 
> why come the DHCPSTATE_INIT so often?

Because you're still not receiving any packets!  Are you sure
that you are getting Rx interrupts (more than one)?

> 
> 
> //ethereal output
> No.     Time        Source                Destination           Protocol  
> Info
>        7 3.840461    0.0.0.0               255.255.255.255       DHCP      
> DHCP Discover - Transaction ID 0x63b70107
>        8 3.857470    192.168.0.1           Broadcast             ARP       
> Who has 192.168.0.17?  Tell 192.168.0.1
>        9 3.986614    192.168.0.1           255.255.255.255       DHCP      
> DHCP Offer    - Transaction ID 0x63b70107
>       12 4.287656    0.0.0.0               255.255.255.255       DHCP      
> DHCP Discover - Transaction ID 0x63b70107
>       13 4.292514    192.168.0.1           Broadcast             ARP       
> Who has 192.168.0.17?  Tell 192.168.0.1
> 
> 
> thx for any help or ideas!
> 
> greetings
> stefan

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