All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] Query on MAC address for OMAP3 boards
@ 2009-06-18 10:29 Pillai, Manikandan
  2009-06-18 11:52 ` Mike Frysinger
  2009-06-18 13:16 ` Wolfgang Denk
  0 siblings, 2 replies; 3+ messages in thread
From: Pillai, Manikandan @ 2009-06-18 10:29 UTC (permalink / raw)
  To: u-boot

Hi,

I am seeing an issue with the OMAP3 EVM boards.

The MAC address for the SMC911x Ethernet chip is passed from u-boot to the kernel using the
SMC911x chip memory - "addrh" and "addrl" registers on the SMC chip.

Scenario 1:
The ipaddr, serverip and ethaddr environment variables are correct.
Booting linux from u-boot using either a tftp command to download either the ramdisk or uImage,
and then giving the bootm commands works fine.

Scenario 2:
The ipaddr, serverip and ethaddr environment variables are correct.
The linux image(uImage) and the ramdisk are both stored on the nand flash. After powering on the
board, if the uImage and ramdisk is copied from the nand( no network commands are issued).

Linux boots up but the MAC address when linux boots up, the MAC address seen on the linux
prompt is different.

The reason seems to be that the MAC address is not initialized in the SMC911x chipset if no
network commands are issued. I tested it by issuing a 'dchp' commands in scenario 2 and it works
fine.

Please suggest how to fix this issue.

Regards
Mani

-------------------------------------------------------------------
Manikandan Pillai
BCG-PSP Project Lead
(Type "pspproducts" in you web browser for PSP info)
http://dbdwss01.india.ti.com/pspproducts/
PSP downloads at : http://software.ti.com/swcoe/intranet/reports/pds/PSP_releases.php
Office : +91-80-25048069
-------------------------------------------------------------------

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

* [U-Boot] Query on MAC address for OMAP3 boards
  2009-06-18 10:29 [U-Boot] Query on MAC address for OMAP3 boards Pillai, Manikandan
@ 2009-06-18 11:52 ` Mike Frysinger
  2009-06-18 13:16 ` Wolfgang Denk
  1 sibling, 0 replies; 3+ messages in thread
From: Mike Frysinger @ 2009-06-18 11:52 UTC (permalink / raw)
  To: u-boot

On Thursday 18 June 2009 06:29:28 Pillai, Manikandan wrote:
> The MAC address for the SMC911x Ethernet chip is passed from u-boot to the
> kernel using the SMC911x chip memory - "addrh" and "addrl" registers on the
> SMC chip.

read the faq:
http://www.denx.de/wiki/view/DULG/EthernetDoesNotWorkInLinux
-mike

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

* [U-Boot] Query on MAC address for OMAP3 boards
  2009-06-18 10:29 [U-Boot] Query on MAC address for OMAP3 boards Pillai, Manikandan
  2009-06-18 11:52 ` Mike Frysinger
@ 2009-06-18 13:16 ` Wolfgang Denk
  1 sibling, 0 replies; 3+ messages in thread
From: Wolfgang Denk @ 2009-06-18 13:16 UTC (permalink / raw)
  To: u-boot

Dear Mani,

In message <19F8576C6E063C45BE387C64729E739404327A0A22@dbde02.ent.ti.com> you wrote:
> 
> I am seeing an issue with the OMAP3 EVM boards.
> 
> The MAC address for the SMC911x Ethernet chip is passed from u-boot to the =
> kernel using the
> SMC911x chip memory - "addrh" and "addrl" registers on the SMC chip.

If that is really the case, then I would not rely on this feature, as
it is a  violation  of  U-Boot  design  philosophy  which  says  that
hardware  (including  MAC address registers) must only be initialized
if actually used by U-Boot commands itself. On a  system  which  does
not  performa  nay  network  related  functions  in  U-Boot,  such an
initialization should not happen.

> Scenario 2:
> The ipaddr, serverip and ethaddr environment variables are correct.
> The linux image(uImage) and the ramdisk are both stored on the nand flash. After powering on the
> board, if the uImage and ramdisk is copied from the nand( no network commands are issued).
>
> Linux boots up but the MAC address when linux boots up, the MAC address seen on the linux
> prompt is different.

This is a well-known problem of the Linux Ethernet driver.

And this has been discussed here many, many times before. Please
search the mailing list archives for details.

> The reason seems to be that the MAC address is not initialized in the SMC911x chipset if no
> network commands are issued. I tested it by issuing a 'dchp' commands in scenario 2 and it works
> fine.
>
> Please suggest how to fix this issue.

Define a method for U-Boot to pass the MAC address to Linux, and fix
the Linux driver.

If you are interested in a seminal solution you  might  want  combine
your  efforts  with Grant Likely's recent efforts to introduce device
tree support for ARM Linux. If we had this, the simple solution would
be that U-Boot fills in the correct MAC address in  the  device  tree
passed to Linux.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Far back in the mists of ancient time, in the great and glorious days
of the former Galactic Empire, life was wild, rich  and  largely  tax
free.         - Douglas Adams, _The Hitchhiker's Guide to the Galaxy_

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

end of thread, other threads:[~2009-06-18 13:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-18 10:29 [U-Boot] Query on MAC address for OMAP3 boards Pillai, Manikandan
2009-06-18 11:52 ` Mike Frysinger
2009-06-18 13:16 ` Wolfgang Denk

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.