MAC address setting
Hi all!
I have custom designed ARM board, based on AT91RM9200EK reference design. Hardware works fine.
And I have following problem: When U-boot loads Kernel image from tftp, everything fine. When U-Boot starts kernel from flash, then Linux cannot communicate to ethernet device. I understand, that this is because MAC address was not set by U-Boot. But I could not find a command to initialise Ethernet.
Please advice, how to act.
Best regards,
Jevgeni
Quoted 7 lines · In message <[email protected]> you wrote:
And I have following problem: When U-boot loads Kernel image from tftp, everything fine. When U-Boot starts kernel from flash, then Linux cannot communicate to ethernet device. I understand, that this is because MAC address was not set by U-Boot. But I could not find a command to initialise Ethernet.
Please advice, how to act.
Please read the FAQ: http://www.denx.de/wiki/view/DULG/EthernetDoesNotWorkInLinux
Best regards,
Wolfgang Denk
Signature · 4 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de You can fool some of the people all of the time, and You can fool all of the people some of the time, but You can't fool mom.
There are many ways to set the MAC address with U-boot.
you can hard code the MAC address in include/configs/xxx.h where xxx.h is your board configuration file.
You can also develop command to accept the MAC address and put in EEPROM of MAC controller.
It is not so difficult. Go through the drivers directory and check the file for your MAC controller.
One more way of assigning the MAC address is asign it in your boot scripts using the command
ifconfig eth0 hw ether MACADDR
Best Regards
Kiran Jammula.
Quoted 22 lines
From: "Jevgeni Zolotarjov" <[email protected]>
To: u-boot-users at lists.sourceforge.net
Subject: [U-Boot-Users] MAC address setting
Date: Thu, 6 Jul 2006 08:53:17 +0300Hi all!
I have custom designed ARM board, based on AT91RM9200EK reference design. Hardware works fine.
And I have following problem: When U-boot loads Kernel image from tftp, everything fine. When U-Boot starts kernel from flash, then Linux cannot communicate to ethernet device. I understand, that this is because MAC address was not set by U-Boot. But I could not find a command to initialise Ethernet.
Please advice, how to act.Best regards,
Jevgeni
Quoted 9 lines
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users
_________________________________________________________________
Sexy, sultry, sensuous. - see why Bipasha Basu is all that and more. Try MSN Search http://server1.msn.co.in/Profile/bipashabasu.asp
Quoted 9 lines
Hi all!
I have custom designed ARM board, based on AT91RM9200EK reference design. Hardware works fine.
And I have following problem: When U-boot loads Kernel image from tftp, everything fine. When U-Boot starts kernel from flash, then Linux cannot communicate to ethernet device. I understand, that this is because MAC address was not set by U-Boot. But I could not find a command to initialise Ethernet.
I have the same problem with an other AT91RM9200 based board, but this is not an u-boot issue. The kernel driver for the emac should initialize this correctly, but this is obviously not the case. I worked around this problem by doing a ping manually before booting linux or by inserting the eth_init() function call in start_armboot().
Regards
Mirco
Quoted 1 line · In message <[email protected]> you wrote:
There are many ways to set the MAC address with U-boot.
True. But the fact is, that U-Boot normally doies NOT set the MAC address at all - not unless it needs it for U-0Boot operations like network related commands.
Quoted 2 lines
you can hard code the MAC address in
include/configs/xxx.hwherexxx.his your board configuration file.
I'm sorry, but thisis a really stupid idea. You will end up with many systems all using the same MAC address which is in violation of the standards and will cause lots of nasty trouble later.
DON'T DO THIS!
Quoted 2 lines
You can also develop command to accept the MAC address and put in EEPROM of MAC controller.
Of course. But please understand that this is not U-Boot's responsibility. It's a Linux driver issue.
Quoted 4 lines
Quoted 4 lines
From: "Jevgeni Zolotarjov" <[email protected]>
To: u-boot-users at lists.sourceforge.net
Subject: [U-Boot-Users] MAC address setting
Date: Thu, 6 Jul 2006 08:53:17 +0300
And please don't top post / full quote!!
See http://www.netmeister.org/news/learn2quote.html
Best regards,
Wolfgang Denk
Signature · 4 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Violence in reality is quite different from theory. -- Spock, "The Cloud Minders", stardate 5818.4
Quoted 5 lines · In message <[email protected]> you wrote:
initialize this correctly, but this is obviously not the case. I worked around this problem by doing a ping manually before booting linux or by inserting the
eth_init()function call instart_armboot().
I just want to point out that this is a really bad idea. Instead, you should fixe the problem where it existis, i. e. in the Linux driver. If you want, implement a way to pass the MAC address from U-Boot to Linux, either as a boot argument or by your platform-specific way of passing such parameters [I never understood why nobody came up with an ATAG for the MAC address yet. But maybe this would just be too simple.]
Best regards,
Wolfgang Denk
Signature · 4 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Q: Why do mountain climbers rope themselves together? A: To prevent the sensible ones from going home.
Hi,
as you can read here in the thread, you are sitting exactly between the chairs of Wolfgang and rmk ;) ...
http://lists.arm.linux.org.uk/pipermail/linux-arm-kernel/2004-July/thread.html#23257
So you can either start a general discussion again, or put in the hack with eth_init() as suggested, or look for another bootloader ;) ...
Best regards
Peter
Quoted 3 lines · In message <[email protected]> you wrote:
as you can read here in the thread, you are sitting exactly between the chairs of Wolfgang and rmk ;) ...
Only as far as the ATAG for MAC address is concerned [and actually I don't complain of propose anything - I just don't understand RMK here.]
Quoted 2 lines
So you can either start a general discussion again, or put in the hack with
eth_init()as suggested, or look for another bootloader ;) ...
Or pass some "ethaddr=" boot argument, which is IMHO the most sensible thing to do as it is architecture-independent (guess which options are available on - say - MIPS systems?)
Best regards,
Wolfgang Denk
Signature · 3 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de panic: can't find /
Hello Jevgeni,
1. EMAC-address doesn't matter for Linux.
2. One of the uncountable ways of init Ethernet before Linux bootstrap, is to call ping from the module, which implements the user command "loadm".
Regards,
Andrew Zhukov