[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microblaze-uclinux] MAC Address Configuration



Hello John,
I think, the MAC address must be stored on each board in Flash or any kind of PROM, since it's not very nice to make an individual (SW or FW) image for each board on your desk with individual MAC addresses.

So nicest would be a definable address (might be defined in mss), where the MAC address is stored and the read access preferably should be bytewise to work best with any underlying hardware.
A check for all 0 or all 1 at this location could be implemented to prevent misconfigurations of uninitialised boards. In such a case a default MAC address could be assigned.
This splendid soulution would also be good for starter designs, that just want to test the ethernet without big investments in configuration.

Kind regards,
Andreas.

Andreas Roland
Murwiesenstr. 47
8057
Zürich
Switzerland
Tel: +41-1-313 12 16
Mobile: +41-78 656 0 323
Email: arol'#'wolke7.net




John Williams wrote:
Hi Andreas,

The MAC addresses are sadly still coded into
drivers/net/xilinx_emac/adapter.c.

It would be simple (and pretty general) to add a parameter to the
autoconfig architecture to define the MAC address in the MSS file.

It seems common on uclinux platforms to use an MTD partition to hold the
MAC address, my only discomfort there is that it ties the ethernet
driver with a particular MTD asddress map - a bit tightly coupled for my
liking.

If there's interest I can quickly modify the auto-config scripts
(MLD/TCL) to support an MSS-defined MAC address.  Maybe a good start?

If anyone has comments or suggestions on a nice, loosely coupled and
generic way of doing this, I'm all ears.

Cheers,

John

Andreas Roland wrote:

  
Hello,
Now that some messages where about DHCP. I've a point that's also about
the ethernet:
The MAC adress is defined somewhere in the code, where I also was able
to find it once ;-), but that's not very satisfying, when using several
boards.
Wouldn't it be better to define it, to be located somewhere in the
Flash. So each card could have it's individual MAC address.

Did somebody already implement this?

Regards,
Andreas.


    


___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/


  
___________________________ microblaze-uclinux mailing list microblaze-uclinux@itee.uq.edu.au Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/