|
The EMAC 10/100 driver is the same, as the
source code shows: /* FIXME hardcoded MAC addresses */ #define CONFIG_XILINX_ETHERNET_0_MACADDR
{0x00, 0x00, 0xC0, 0xA3, 0xE5, 0x44} #define CONFIG_XILINX_ETHERNET_1_MACADDR
{0x00, 0x00, 0xC0, 0xA3, 0xE5, 0x45} #define CONFIG_XILINX_ETHERNET_2_MACADDR
{0x00, 0x00, 0xC0, 0xA3, 0xE5, 0x46} Depending upon your hardware, the 6-byte
MAC address could be stored in a PROM, in FLASH, set with dip switches on your
board, etc. One board that I’ve worked on had a DS2401 chip on it from Dallas
Semiconductor. This chip is termed a “Silicon Serial Number” chip has
a factory-lasered 64-bit serial number embedded in it that can be useful as a
MAC address. Steve From: Ujwal
[mailto:ujwal.mailinglist@xxxxxxxxx] Hi John, The Xilinx Ethernetlite driver that is available at present doesnt work
fine.. It doesnt have a mac-address assigned to it... Since the
mac-address is not available, ping doesnt work. As a result , when i was using it, i had to hard code a mac-address to
it in the adapter.c file In Adapter.c : in the function int static xemaclite_open ( ...... ) { ..... before calling the function XEmaclite_SetMacAddress(&lp->Emaclite,
dev-> dev_addr); pls hard code a Mac-address like this... ================ dev->dev_addr[0] = 0x00; dev->dev_addr[1] = 0x11; dev->dev_addr[2] = 0x22; dev->dev_addr[3] = 0x33; dev->dev_addr[4] = 0x44; dev->dev_addr[5] = 0x55; John, do u have any other idea than hard coding??? Regards, Ujwal |