05/21/2010 5:39 AM
devnp-mpc85xx - how to load ethernet devices with different MAC Addresses?
How can I load the ethernet drivers devnp-mpc85xx from the MPC8548 bsp with differenz MAC addresses for each device?
If I use the command
io-pkt-v4-hc -dmpc85xx mac=001122334455,verbose -ptcpip
all three ehternet devices (tsec0,tsec1,tsec2) are loaded with a automatic incrementing MAC address. So in this case:
tsec0 MAC: 001122334455
tsec1 MAC: 001122334456
tsec2 MAC: 001122334457
but how can I determine other MAC addresses for each device? The driver options "channel" and "phy" doesn't work, so I
io-pkt-v4-hc -dmpc85xx phy=0,channel=1,mac=001122334455,verbose -ptcpip
io-pkt-v4-hc -dmpc85xx phy=1,channel=2,mac=001122334490,verbose -ptcpip
io-pkt-v4-hc -dmpc85xx phy=2,channel=3,mac=001122334499,verbose -ptcpip
I stored the MAC addresses in an I2C EEPROM and I can read them in my bootloader and a little application I wrote "