Skip to contentSkip to conversation

ethernet on FCC

U-Boot-Users Lei Sun 2 participants 5 messages Nov 8, 2006

lore
Share & tools
lore

Lei Sun

author
#0 lore raw

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.

#1 lore raw
Quoted 5 lines · Lei Sun

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?

author
#2 lore raw

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

#3 lore raw
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

author
#4 lore raw

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