ethernet on FCC
Hi;
Please ignore my first question regarding proff_enet, I wasn't too
careful, it was inialized when defining the array.
But still, can't explain why its not receiving any packets though.
Quoted 5 lines · Lei Sun
Hi;
Please ignore my first question regardingproff_enet, I wasn't too
careful, it was inialized when defining the array.
But still, can't explain why its not receiving any packets though.
Does it have a valid, unique MAC address?
Yeah, i suppose so. I connect my host to the board with a hub, give them static IP, and set the MAC address to be the same as my host's MAC, except one byte. Then I sniff the packet on my host using ethereal.
Is the MAC address being compared in CPM's micro code ?
Thanks
Quoted 9 lines · Ben Warren
Quoted 5 lines · Lei Sun
Hi;
Please ignore my first question regardingproff_enet, I wasn't too
careful, it was inialized when defining the array.
But still, can't explain why its not receiving any packets though.Does it have a valid, unique MAC address?
Quoted 4 lines · Lei Sun
Yeah, i suppose so. I connect my host to the board with a hub, give them static IP, and set the MAC address to be the same as my host's MAC, except one byte. Then I sniff the packet on my host using ethereal.
Which byte do you change? Don't touch the left-most one, as its bits have special meaning. When you say you 'set the MAC address', how do you do it? Does the 'Source Address' field in the ARP packet sent by your board match the MAC address that you set?
Quoted 1 line
Is the MAC address being compared in CPM's micro code ?
Unicast addresses are compared to registers in the CPM, which may be implemented in microcode but that's neither here nor there.
regards,
Ben
I changed the last byte (count start from left). I set the MAC via environment "ethaddr", I've also defined "CONFIG_ETHADDR" so to force it to fixed value. My ethereal did show the correct source MAC address for the broadcast ARP request. The host replied with unicast ARP reply, that's when my board failed to get it. Haven't tried if my board could get broadcasted packet yet.
Thanks
Quoted 19 lines · Ben Warren
Quoted 4 lines · Lei Sun
Yeah, i suppose so. I connect my host to the board with a hub, give them static IP, and set the MAC address to be the same as my host's MAC, except one byte. Then I sniff the packet on my host using ethereal.
Which byte do you change? Don't touch the left-most one, as its bits have special meaning. When you say you 'set the MAC address', how do you do it? Does the 'Source Address' field in the ARP packet sent by your board match the MAC address that you set?
Quoted 1 line
Is the MAC address being compared in CPM's micro code ?
Unicast addresses are compared to registers in the CPM, which may be implemented in microcode but that's neither here nor there.
regards,
Ben