
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.

On Wed, 2006-11-08 at 12:16 -0500, Lei Sun wrote:
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.
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
On 11/8/06, Ben Warren bwarren@qstreams.com wrote:
On Wed, 2006-11-08 at 12:16 -0500, Lei Sun wrote:
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.
Does it have a valid, unique MAC address?

On Wed, 2006-11-08 at 13:59 -0500, Lei Sun wrote:
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?
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
On 11/8/06, Ben Warren bwarren@qstreams.com wrote:
On Wed, 2006-11-08 at 13:59 -0500, Lei Sun wrote:
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?
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
participants (2)
-
Ben Warren
-
Lei Sun