This is the mail archive of the ecos-discuss@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]

PXA255, SMSC 91C111, interrupt only fires twice.


All,
	Using the devs_eth_smsc_lan91cxx on a PXA255, I can send and receive
packets with ping under Redboot without a problem (poll mode).
	When including the devs_eth_smsc_lan91cxx driver in my application
code (interrupt mode I assume) I can not receive any packets and the receive
interrupt only fires twice during startup.
	I can see 4 ARP packets being transmitted when the driver starts.
After several seconds I stop the code and can see that my interrupt count is
at two.  I also can examine my edge detected register, interrupt mask, and
interrupt enable and they are all in a start that should be firing another
Ethernet interrupt, but it does not seem to occur.
	Any ideas where to look next?
	I also don't understand why I am logging "[eth_drv_ioctl] Warning:
Driver can't set multi-cast mode".  This did not occur under redboot.
	Any help would be greatly appreciated.
Thanks,

Here's my trace

ABCDBA98754300002[cyg_net_init] Init: mbinit(0x00000000)
[cyg_net_init] Init: cyg_net_init_devs(0x00000000)
Init device 'lan91cxx_eth0'
smsc_lan91cxx_init
LAN91CXX - supposed BankReg @ 800030e = 3300
LAN91CXX - type: 9, rev: 2
LAN91CXX - status: 0000
Got ESA from cpd
LAN91CXX - ESA: 00:80:66:ff:ff:ff
[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(0x0005073c)
New domain internet at 0x00000000
[cyg_net_init] Init: cyg_net_add_domain(0x0004fecc)
New domain route at 0x00000000
[cyg_net_init] Init: call_route_init(0x00000000)
[cyg_net_init] Done
1Start Main
Start NET test
BOOTP[eth0] op: REPLY
       htype: Ethernet
        hlen: 6
        hops: 0
         xiä: 0x0
        secs: 0
       flags: 0x0
       hw_addr: 00:80:66:nf:ff:ff
     client IP: 172.16.8.111
         my IP: 172.16.8.q11
     server IP: 172.16.8.109
    gateway IP: 172.1 IP broadcast: 172>16.1.255
            gateway: 172.1>.0.1
lan91cxx_start
lan91cxx_can_send
lan91cxx_send
lan91cxx_send: allocated packet 0000
#####Tx packet allocated 0 (previous 0)
lan91cxx_isr
lan91cxx_send:END: ints at TX: 030c
lan91cxx_can_send
lan91cxx_TxEvent
lan91cxx_TxEvent:START: fifo 8000 ints 0100
#####Tx packet freed 0 (expected 0)
lan91cxx_TxEvent:END: fifo 8080 ints 010c
lan91cxx_deliver
lan91cxx_control
[eth_drv_ioctl] Warning: Driver can't set multi-cast mode
lan91cxx_start
lan91cxx_control
[eth_drv_ioctl] Warning: Driver can't set multi-cast mode
lan91cxx_can_send
lan91cxx_send
lan91cxx_send: allocated packet 0000
#####Tx packet allocated 0 (previous 0)
llan91cxx_isr
an91cxx_send:END: ints at TX: 030c
lan91cxx_can_send
lan91cxx_TxEvent
lan91cxx_TxEvent:START: fifo 8000 ints 0100
#####Tx packet freed 0 (expected 0)
lan91cxx_TxEvent:END: fifo 8080 ints 010c
lan91cxx_deliver
lan91cxx_stop
lan91cxx_start
lan91cxx_control
[eth_drv_ioctl] Warning: Driver can't set multi-cast mode
Start SERVER test
lan91cxx_start
lan91cxx_control
[eth_drv_ioctl] Warning: Driver can't set multi-cast mode
lan91cxx_can_send
lan91cxx_send
lan91cxx_send: allocated packet 0000
#####Tx packet allocated 0 (previous 0)
lan91cxx_send:END: ints at TX: 030c
lan91cxx_can_send
lan91cxx_TxEvent
lan91cxx_TxEvent:START: fifo 8000 ints 0100
#####Tx packet freed 0 (expected 0)
lan91cxx_TxEvent:END: fifo 8080 ints 010c
lan91cxx_start
lan91cxx_control
[eth_drv_ioctl] Warning: Driver can't set multi-cast mode
lan91cxx_can_send
lan91cxx_send
lan91cxx_send: allocated packet 0000
#####Tx packet allocated 0 (previous 0)
lan91cxx_send:END: ints at TX: 030c
lan91cxx_can_send
lan91cxx_TxEvent
lan91cxx_TxEvent:START: fifo 8000 ints 0100
#####Tx packet freed 0 (expected 0)
lan91cxx_TxEvent:END: fifo 8080 ints 010c
lan91cxx_stop
lan91cxx_start
lan91cxx_control
[eth_drv_ioctl] Warning: Driver can't set multi-cast mode
Route - dst: 0.0.0.0, mask: 0.0.0.0, gateway: 172.16.0.1

Joe Porthouse
Toptech Systems, Inc.
Longwood, FL 32750



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