I figured out the problem with the daughter card was that it was not reading and writing to the correct registers. Everything in the register was written twice so the offset had to be shifted left to get the correct offset.
Here is the output when I fixed the offset.
Copyright 1996-2008 by InterNiche Technologies. All rights reserved.
Your Ethernet MAC address is 00:07:ed:ff:75:4a
prepped 1 interface, initializing...
Created "Inet main" task (Prio: 2)
Created "clock tick" task (Prio: 3)
smsc91c111 Auto-negotiation: 100 Mbps, Full Duplex
SMSC ethernet Rev: 0x3391, ram: 8192
mctest init called
IP address of et1 : 0.0.0.0
However the DHCP doesn't work, so there are still some problems. I found out the offset only fixed the 16DIRECT RD/WR function, but the 8DIRECT RD/WR function is not RD/WR correctly.
I checked by read the mac address which uses 8DIRECT RD/WR.
Here is what I found.
MAC Offset Register Data Written to
0x00 4 8,9
0x07 5 8,9
0xed 6 12,13
0xff 7 12,13
0x75 8 16,17
0x4a 9 16,17
No comments:
Post a Comment