
tis 2007-10-30 klockan 08:53 -0400 skrev Robin Cutshaw:
Does Atmel not have an Ethernet vendor allocation? Ideally, a unique MAC would be included on a sticker on each board. This would provide something for each developer to use. I'm not crazy about having a "default" address for reasons already mentioned. What about a randomly generated MAC address should there not be one already set in flash? This would provide for Ulf's no touch initial setup and still provide for a mostly non-dup solution?
I have long proposed that we deliver development kits with preprogrammed Ethernet addresses, with little success. Allocating a random address within this address is the worst of all ideas. In my own version of U-Boot, I allow for generation of a default ethernet address at compile time, but this only becomes valid, if the user runs a special command "defenv".
If the user does not run the command, then the machine does not have an ethernet address.
This allows the user to set the environment without big hassle, and then the user can automatically configure the machine by an autoscript which downloaded from default server defined at compile time.
Haavards stuff is for people which compile their own version of u-boot, and they will be responsible for allocating their own address when they configure the board.