感谢comquter,呵呵终于有进展了,困惑了我好多天的事!
加上了step=4.
io-pkt-v4 -d dm9000 ioport=0x30000300,irq=15,step=4
居然能读到ID(奇怪了devn-dm9000.use里明明说的
step=num The offset between the data and I/O port (default=4),)
现在sloginfo里:
Jan 01 00:00:14 5 14 0 tcpip starting
Jan 01 00:00:14 3 14 0 Unable to attach to pci server: No such file or directory
Jan 01 00:00:14 3 14 0 Using pseudo random generator. See “random” option
Jan 01 00:00:15 6 14 0 id = 90000a46
Jan 01 00:00:15 6 14 0 Fastether
现在nicinfo:
#nicinfo
en0:
Davicom DM9000A Ethernet Controller
Link is DOWN
Physical Node ID … 000000 000000
Current Physical Node ID … 000000 000000
Current Operation Rate … Unknown
Active Interface Type … MII
Active PHY address … 1
Maximum Transmittable data Unit … 1514
Maximum Receivable data Unit … 1514
Hardware Interrupt … 0xf
I/O Aperture … 0x30000300
Promiscuous Mode … Off
Multicast Support … Enabled
Packets Transmitted OK … 0
Bytes Transmitted OK … 0
Packets Received OK … 0
Bytes Received OK … 0
Single Collisions on Transmit … 0
Multiple Collisions on Transmit … 0
Deferred Transmits … 0
Late Collision on Transmit errors … 0
Transmit Underruns … 0
Receive Alignment errors … 0
Received packets with CRC errors … 0
Packets Dropped on receive … 0
Ethernet Headers out of range … 0
Oversized Packets received … 0
Short packets … 0
Total Frames experiencing Collison(s) … 0
看起来好像还有很多问题,不知道是不是只是中断的问题?请问你提的GPIO interrupt callout 挂在PD上具体怎么做?能不能指点详细一些。:oops:
谢谢!