Hello,
if the interface of the EmacLite ethernet driver is configured by
"ifconfig" the MAC address of the device drops to zero.
The driver only works when we set the HW MAC address explicitly by
executing the following before setting the IP address:
# ifconfig eth0 hw ether 00:00:C0:A3:E5:44
Nevertheless, if you connect more than one device to the same ethernet
segment, you have to set the MAC address explicitly :-(.
Here is a little patch to correct this problem.
------------------------------------------------------------------------
EmacLite driver does not set the MAC address correctly
---
commit 1a7b45c382a4b00e4b03a580680170b9b04fcdd2
tree 109fe0edbb1034fd158710d25a31cb4e05206dd0
parent 05d02c027180ed8344afc39b934f1968a0c48a78
author Dr. Johann Pfefferl <pfefferl@xxxxxxx> Mon, 13 Nov 2006 14:11:54 +0100
committer Dr. Johann Pfefferl <pfefferl@xxxxxxxxxxxxxxx> Mon, 13 Nov 2006 14:11:54 +0100
drivers/net/xilinx_emaclite/adapter.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/net/xilinx_emaclite/adapter.c b/drivers/net/xilinx_emaclite/adapter.c
index d68a97a..118775f 100644
--- a/drivers/net/xilinx_emaclite/adapter.c
+++ b/drivers/net/xilinx_emaclite/adapter.c
@@ -592,6 +592,7 @@ probe(int index)
}
/* Copy MAC address in from descriptor table */
+ memcpy(dev->dev_addr, ether_table[index].macaddr, IFHWADDRLEN);
XEmacLite_SetMacAddress(&lp->EmacLite, ether_table[index].macaddr);
printk(KERN_ERR "%s: using fifo mode.\n", dev->name);