All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot-Users] MAC address setting
@ 2006-07-06  5:53 Jevgeni Zolotarjov
  2006-07-06  6:34 ` Wolfgang Denk
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Jevgeni Zolotarjov @ 2006-07-06  5:53 UTC (permalink / raw)
  To: u-boot

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 

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [U-Boot-Users] MAC address setting
  2006-07-06  5:53 [U-Boot-Users] MAC address setting Jevgeni Zolotarjov
@ 2006-07-06  6:34 ` Wolfgang Denk
  2006-07-06  6:34 ` Kiran Jammula
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 9+ messages in thread
From: Wolfgang Denk @ 2006-07-06  6:34 UTC (permalink / raw)
  To: u-boot

In message <e8i8ho$5ch$1@sea.gmane.org> 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

-- 
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.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [U-Boot-Users] MAC address setting
  2006-07-06  5:53 [U-Boot-Users] MAC address setting Jevgeni Zolotarjov
  2006-07-06  6:34 ` Wolfgang Denk
@ 2006-07-06  6:34 ` Kiran Jammula
  2006-07-06  7:58   ` Wolfgang Denk
  2006-07-06  6:37 ` Mirco Fuchs
                   ` (2 subsequent siblings)
  4 siblings, 1 reply; 9+ messages in thread
From: Kiran Jammula @ 2006-07-06  6:34 UTC (permalink / raw)
  To: u-boot

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.




>From: "Jevgeni Zolotarjov" <zhenja@zlo.ee>
>To: u-boot-users at lists.sourceforge.net
>Subject: [U-Boot-Users] MAC address setting
>Date: Thu, 6 Jul 2006 08:53:17 +0300
>
>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
>
>
>
>
>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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [U-Boot-Users] MAC address setting
  2006-07-06  5:53 [U-Boot-Users] MAC address setting Jevgeni Zolotarjov
  2006-07-06  6:34 ` Wolfgang Denk
  2006-07-06  6:34 ` Kiran Jammula
@ 2006-07-06  6:37 ` Mirco Fuchs
  2006-07-06  8:02   ` Wolfgang Denk
  2006-07-06  9:41 ` Peter Menzebach
  2006-07-06 11:09 ` Zhukov
  4 siblings, 1 reply; 9+ messages in thread
From: Mirco Fuchs @ 2006-07-06  6:37 UTC (permalink / raw)
  To: u-boot

> 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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [U-Boot-Users] MAC address setting
  2006-07-06  6:34 ` Kiran Jammula
@ 2006-07-06  7:58   ` Wolfgang Denk
  0 siblings, 0 replies; 9+ messages in thread
From: Wolfgang Denk @ 2006-07-06  7:58 UTC (permalink / raw)
  To: u-boot

In message <BAY121-F10E8C00BC2499BA458BAC9C3770@phx.gbl> 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.

> you can hard code the MAC address in include/configs/xxx.h where xxx.h is 
> 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!

> 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.

> >From: "Jevgeni Zolotarjov" <zhenja@zlo.ee>
> >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

-- 
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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [U-Boot-Users] MAC address setting
  2006-07-06  6:37 ` Mirco Fuchs
@ 2006-07-06  8:02   ` Wolfgang Denk
  0 siblings, 0 replies; 9+ messages in thread
From: Wolfgang Denk @ 2006-07-06  8:02 UTC (permalink / raw)
  To: u-boot

In message <44ACCBE1.32244.109A0E@mircofuchs.web.de> 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 in 
> start_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

-- 
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.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [U-Boot-Users] MAC address setting
  2006-07-06  5:53 [U-Boot-Users] MAC address setting Jevgeni Zolotarjov
                   ` (2 preceding siblings ...)
  2006-07-06  6:37 ` Mirco Fuchs
@ 2006-07-06  9:41 ` Peter Menzebach
  2006-07-06  9:50   ` Wolfgang Denk
  2006-07-06 11:09 ` Zhukov
  4 siblings, 1 reply; 9+ messages in thread
From: Peter Menzebach @ 2006-07-06  9:41 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [U-Boot-Users] MAC address setting
  2006-07-06  9:41 ` Peter Menzebach
@ 2006-07-06  9:50   ` Wolfgang Denk
  0 siblings, 0 replies; 9+ messages in thread
From: Wolfgang Denk @ 2006-07-06  9:50 UTC (permalink / raw)
  To: u-boot

In message <44ACDAB8.1000101@mw-itcon.de> 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.]

> 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

-- 
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 /

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [U-Boot-Users] MAC address setting
  2006-07-06  5:53 [U-Boot-Users] MAC address setting Jevgeni Zolotarjov
                   ` (3 preceding siblings ...)
  2006-07-06  9:41 ` Peter Menzebach
@ 2006-07-06 11:09 ` Zhukov
  4 siblings, 0 replies; 9+ messages in thread
From: Zhukov @ 2006-07-06 11:09 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2006-07-06 11:09 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-06  5:53 [U-Boot-Users] MAC address setting Jevgeni Zolotarjov
2006-07-06  6:34 ` Wolfgang Denk
2006-07-06  6:34 ` Kiran Jammula
2006-07-06  7:58   ` Wolfgang Denk
2006-07-06  6:37 ` Mirco Fuchs
2006-07-06  8:02   ` Wolfgang Denk
2006-07-06  9:41 ` Peter Menzebach
2006-07-06  9:50   ` Wolfgang Denk
2006-07-06 11:09 ` Zhukov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.