[U-Boot-Users] Initialize MAC Address w/out running dhcp

I just had to get in on the MAC address conversation, but in a different way.
I have observed on my omap1510inn based board that Linux does not correctly receive the MAC address unless I make use of networking in U-Boot prior to bootm.
This network access can be either tftp'ing a file to the board or running "dhcp".
Is there a way that I can set up the Ethernet chip (or is this in the board info structure that U-Boot shares with Linux?) to have the "ethaddr" MAC address without actually running a network command? I.e., I don't want to depend on a TFTP or DHCP server being present on the network in order to start Linux with a static IP and valid MAC.
-Michael Bendzick Systems and Software Engineering Logic Product Development michael.b@logicpd.com 612-436-5122 www.logicpd.com

In message 31ADFA827355984B9E2A161514595B561C3395@lpdsrv04.logicpd.com you wrote:
I have observed on my omap1510inn based board that Linux does not correctly receive the MAC address unless I make use of networking in U-Boot prior to bootm.
This is a FAQ. Please see http://www.denx.de/twiki/bin/view/DULG/EthernetDoesNotWorkInLinux
Best regards,
Wolfgang Denk

On Fri, Aug 27, 2004 at 01:14:37AM +0200, Wolfgang Denk wrote:
In message 31ADFA827355984B9E2A161514595B561C3395@lpdsrv04.logicpd.com you wrote:
I have observed on my omap1510inn based board that Linux does not correctly receive the MAC address unless I make use of networking in U-Boot prior to bootm.
This is a FAQ. Please see http://www.denx.de/twiki/bin/view/DULG/EthernetDoesNotWorkInLinux
Actually, in the case of the Innovator OMAP1510, the Linux smc919x or smc9194 driver (depending on which you're using) should do the right thing independent of u-boot. Perhaps you don't have the SMC91C96 DIP switches set correctly on the Innovator break-out-board. Mine are SW1 1,2,3 OFF, 4 ON. If those DIP switch settings are wrong, then the SMC91C96 serial EEPROM may be disabled and this u-boot dependency may be a side effect since u-boot doesn't use the serial EEPROM MAC address. Then again, I haven't tested booting Linux w/o first doing u-boot bootp/tftp lately. So maybe there is a regression in the Linux network driver(s). : P Also, some early Innovator BOB's didn't have serial EEPROM MAC address programmed which may also cause this problem. If the Innovator BOB has MAC address label attached to it (mine is lower right corner below the power supply binding posts) then the serial EEPROM MAC has most likely been programmed at the factory. Else, you'll need to program the serial EEPROM yourself. IIRC, others have posted tools to set the serial EEPROM MAC address.
HTH!
-- Regards, George
Best regards,
Wolfgang Denk
-- Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd@denx.de egrep patterns are full regular expressions; it uses a fast determi- nistic algorithm that sometimes needs exponential space.
- unix manuals
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
participants (3)
-
George G. Davis
-
Michael Bendzick
-
Wolfgang Denk