From: Chris W. <whi...@gm...> - 2010-12-24 03:43:46
|
Following up my own email here, since this might be of interest to others... To write to the EEPROM of the LAN9221, you need to bitbake ethtool and copy it over to your overo. Then you can examine the eeprom contents with something like "./ethtool -e eth1". To set a mac address, first set the byte at address 0 to the magic number of 0xa5 with: ./ethtool -E eth1 value 0xa5 offset 0 Then follow that up with the 6 bytes of your MAC address: ./ethtool -E eth1 value 0x00 offset 1 ./ethtool -E eth1 value 0x11 offset 2 ./ethtool -E eth1 value 0x22 offset 3 ./ethtool -E eth1 value 0x33 offset 4 ./ethtool -E eth1 value 0x44 offset 5 ./ethtool -E eth1 value 0x55 offset 6 That should do it. regards, chris Chris Whittenburg wrote: > > How can I store my company's MAC address permanently in the eeprom > attached to the LAN9221 (from the cmdline)? We are using a custom > carrier board, with an uninitialized eeprom, but linux always seems to > be using the same mac address (which I don't recognize, so I assume it > was generated randomly and written to the eeprom by something? > > thanks, > chris > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, > and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users > > -- View this message in context: http://old.nabble.com/Writing-to-EEPROM-of-LAN9221-tp30525092p30526568.html Sent from the Gumstix mailing list archive at Nabble.com. |