Discussion:
[U-Boot-Users] eth0: Invalid ethernet MAC address
kabbin
2006-09-01 06:22:23 UTC
Permalink
Dear All
I faild to mount NFS, but TFTPis fine in U-boot.

//**************************************************************
eth0: SMC91C94 (rev 9) at 0xc4858300 IRQ 188 [nowait]
eth0: Invalid ethernet MAC address. Please set using ifconfig
.
.
.
IP-Config: Failed to open eth0
IP-Config: Guessing netmask 255.255.0.0
IP-Config: Complete:
device=tap0, addr=140.92.60.146, mask=255.255.0.0, gw=255.255.255.255,
host=140.92.60.146, domain=, nis-domain=(none),
bootserver=255.255.255.255, rootserver=140.92.60.138, rootpath=
Looking up port of RPC 100003/2 on 140.92.60.138
portmap: server 140.92.60.138 not responding, timed out
//**************************************************************

How can I use the correct MAC address?

I have read the FAQ, so maybe there are some problems on linux kernel side.
http://www.denx.de/wiki/view/DULG/EthernetDoesNotWorkInLinux
I also reference to
http://lists.arm.linux.org.uk/pipermail/linux-arm-kernel/2004-July/023579.html
But I still have no idea how to deal with it.
Could someone help me please?





___________________________________________________
??????? ? ????????????????
http://messenger.yahoo.com.tw/
kabbin
2006-09-01 07:57:51 UTC
Permalink
Dear all
I reference to
http://blackfin.uclinux.org/forum/forum.php?thread_id=2299&forum_id=51

u-boot has "eeprom" command ? But I cannot find it!
as I got MAC addresses don't match.
Can u-boot allow me to change HW MAC address?

Best regards.

--- kabbin <kabbin26 at yahoo.com.tw> ??
Post by kabbin
Dear All
I faild to mount NFS, but TFTPis fine in U-boot.
//**************************************************************
eth0: SMC91C94 (rev 9) at 0xc4858300 IRQ 188 [nowait]
eth0: Invalid ethernet MAC address. Please set using ifconfig
.
.
.
IP-Config: Failed to open eth0
IP-Config: Guessing netmask 255.255.0.0
device=tap0, addr=140.92.60.146, mask=255.255.0.0, gw=255.255.255.255,
host=140.92.60.146, domain=, nis-domain=(none),
bootserver=255.255.255.255, rootserver=140.92.60.138, rootpath=
Looking up port of RPC 100003/2 on 140.92.60.138
portmap: server 140.92.60.138 not responding, timed out
//**************************************************************
How can I use the correct MAC address?
I have read the FAQ, so maybe there are some problems on linux kernel side.
http://www.denx.de/wiki/view/DULG/EthernetDoesNotWorkInLinux
I also reference to
http://lists.arm.linux.org.uk/pipermail/linux-arm-kernel/2004-July/023579.html
But I still have no idea how to deal with it.
Could someone help me please?
___________________________________________________
??????? ? ????????????????
http://messenger.yahoo.com.tw/
Daniel Alomar
2006-09-01 08:00:07 UTC
Permalink
Hi,

No, you must erase the flash region where the MAC address is stored.

Daniel Alomar i Claramonte
Research & Development Electronic Dept.
SERRA SOLDADURA, S.A.
WEB Site: http://www.serrasold.com
Knowledge Site: http://serratron.serrasold.com

-----Mensaje original-----
De: u-boot-users-bounces at lists.sourceforge.net
[mailto:u-boot-users-bounces at lists.sourceforge.net] En nombre de kabbin
Enviado el: viernes, 01 de septiembre de 2006 9:58
Para: u-boot-users at lists.sourceforge.net
Asunto: Re: [U-Boot-Users] eth0: Invalid ethernet MAC address


Dear all
I reference to
http://blackfin.uclinux.org/forum/forum.php?thread_id=2299&forum_id=51

u-boot has "eeprom" command ? But I cannot find it!
as I got MAC addresses don't match.
Can u-boot allow me to change HW MAC address?

Best regards.

--- kabbin <kabbin26 at yahoo.com.tw> ?f??
Post by kabbin
Dear All
I faild to mount NFS, but TFTPis fine in U-boot.
//**************************************************************
eth0: SMC91C94 (rev 9) at 0xc4858300 IRQ 188 [nowait]
eth0: Invalid ethernet MAC address. Please set using ifconfig .
.
.
IP-Config: Failed to open eth0
IP-Config: Guessing netmask 255.255.0.0
device=tap0, addr=140.92.60.146, mask=255.255.0.0,
gw=255.255.255.255,
Post by kabbin
host=140.92.60.146, domain=, nis-domain=(none),
bootserver=255.255.255.255, rootserver=140.92.60.138, rootpath=
Looking up port of RPC 100003/2 on 140.92.60.138
portmap: server 140.92.60.138 not responding, timed out
//**************************************************************
How can I use the correct MAC address?
I have read the FAQ, so maybe there are some problems on linux kernel
side. http://www.denx.de/wiki/view/DULG/EthernetDoesNotWorkInLinux
I also reference to
http://lists.arm.linux.org.uk/pipermail/linux-arm-kernel/2004-July/023579.
html
Post by kabbin
But I still have no idea how to deal with it.
Could someone help me please?
___________________________________________________
???????????r?? ?? ????????????????????????????????
http://messenger.yahoo.com.tw/
Wolfgang Denk
2006-09-01 08:17:57 UTC
Permalink
Post by kabbin
I faild to mount NFS, but TFTPis fine in U-boot.
... FAQ ...
Post by kabbin
How can I use the correct MAC address?
Set it. Either in the driver, or in user space.
Post by kabbin
I have read the FAQ, so maybe there are some problems on linux kernel side.
http://www.denx.de/wiki/view/DULG/EthernetDoesNotWorkInLinux
Indeed.
Post by kabbin
I also reference to
http://lists.arm.linux.org.uk/pipermail/linux-arm-kernel/2004-July/023579.html
But I still have no idea how to deal with it.
Maybe you should read the ARM mailing list archive. And follow the
advice you there on your posting on that list.

And stop posting the same questions to several mailing lists. That's a
violation of netiquette.


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
What is mind? No matter. What is matter? Never mind.
-- Thomas Hewitt Key, 1799-1875
Wolfgang Denk
2006-09-01 08:25:23 UTC
Permalink
Post by kabbin
I reference to
http://blackfin.uclinux.org/forum/forum.php?thread_id=2299&forum_id=51
u-boot has "eeprom" command ? But I cannot find it!
The set of available commands depends on your board configuration.
Probably the eeprom command is not selected in your board config
file. Eventually there is even no EEPROM on your board at all. We
don't know - it's your hardware.
Post by kabbin
as I got MAC addresses don't match.
Then set it correctly in the environment.
Post by kabbin
Can u-boot allow me to change HW MAC address?
Yes, on some systems.
Post by kabbin
Post by kabbin
eth0: Invalid ethernet MAC address. Please set using ifconfig
But this won't help you. You still need to implement a way that the
Linux driver sets a correct MAC address. Solutions have been posted
on the ARM mailing list. See the links and suggestions provided
before.

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
Alan Turing thought about criteria to settle the question of whether
machines can think, a question of which we now know that it is about
as relevant as the question of whether submarines can swim.
-- Edsger Dijkstra
kabbin
2006-09-01 08:24:41 UTC
Permalink
Dear Daniel
When I use "NFS" command in u-boot, I got
Warning: MAC addresses don't match:
HW MAC address: 00:00:00:00:00:00
"ethaddr" value: 00:50:C2:42:B2:62

--- Daniel Alomar <dalomar at serrasold.com> ???G
Post by Daniel Alomar
Hi,
No, you must erase the flash region where the MAC address is stored.
Daniel Alomar i Claramonte
Research & Development Electronic Dept.
SERRA SOLDADURA, S.A.
WEB Site: http://www.serrasold.com
Knowledge Site: http://serratron.serrasold.com
-----Mensaje original-----
Dear all
I reference to
http://blackfin.uclinux.org/forum/forum.php?thread_id=2299&forum_id=51
u-boot has "eeprom" command ? But I cannot find it!
as I got MAC addresses don't match.
Can u-boot allow me to change HW MAC address?
Best regards.
--- kabbin <kabbin26 at yahoo.com.tw> ?f??
Post by kabbin
Dear All
I faild to mount NFS, but TFTPis fine in U-boot.
//**************************************************************
eth0: SMC91C94 (rev 9) at 0xc4858300 IRQ 188 [nowait]
eth0: Invalid ethernet MAC address. Please set using ifconfig .
.
.
IP-Config: Failed to open eth0
IP-Config: Guessing netmask 255.255.0.0
device=tap0, addr=140.92.60.146, mask=255.255.0.0,
gw=255.255.255.255,
Post by kabbin
host=140.92.60.146, domain=, nis-domain=(none),
bootserver=255.255.255.255, rootserver=140.92.60.138, rootpath=
Looking up port of RPC 100003/2 on 140.92.60.138
portmap: server 140.92.60.138 not responding, timed out
//**************************************************************
How can I use the correct MAC address?
I have read the FAQ, so maybe there are some problems on linux kernel
side. http://www.denx.de/wiki/view/DULG/EthernetDoesNotWorkInLinux
I also reference to
http://lists.arm.linux.org.uk/pipermail/linux-arm-kernel/2004-July/023579.
html
Post by kabbin
But I still have no idea how to deal with it.
Could someone help me please?
___________________________________________________
???????????r?? ?? ????????????????????????????????
http://messenger.yahoo.com.tw/
___________________________________________________
?z???????Y???q ?? ???q?B?T???B?????B?u?@?@???d?w?I
http://messenger.yahoo.com.tw/
Wolfgang Denk
2006-09-01 08:28:58 UTC
Permalink
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

Please read http://www.netmeister.org/news/learn2quote.html
Post by Daniel Alomar
No, you must erase the flash region where the MAC address is stored.
...
Post by Daniel Alomar
Post by kabbin
Can u-boot allow me to change HW MAC address?
Your reply does not answer the OP's question and is incomplete or
wrong.

The OP asked about the hardware MAC address, but you are probably
talking about the "ethaddr" environment variable, which is a very
different thing.

Also, if the "ethaddr" is write protected or not depends on your board
configuration.

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
: ... and it's got weird formatting - Notepad, Write, Works 3 can't
: decipher it, and it's too big to go in DOS Edit. Help!
Install an operating system. :-) -- Tom Christiansen
kabbin
2006-09-01 08:30:15 UTC
Permalink
Dear Daniel
When I use "NFS" command in u-boot, I got:

Warning: MAC addresses don't match:
HW MAC address: 00:00:00:00:00:00
"ethaddr" value: 00:50:C2:42:B2:62

How can I find the right flash region where the MAC address is stored ? (and then modify the data)
Do I need rebuild u-boot or linux kerenl?

Best regards.

--- Daniel Alomar <dalomar at serrasold.com> ??
Post by Daniel Alomar
Hi,
No, you must erase the flash region where the MAC address is stored.
Daniel Alomar i Claramonte
Research & Development Electronic Dept.
SERRA SOLDADURA, S.A.
WEB Site: http://www.serrasold.com
Knowledge Site: http://serratron.serrasold.com
-----Mensaje original-----
Dear all
I reference to
http://blackfin.uclinux.org/forum/forum.php?thread_id=2299&forum_id=51
u-boot has "eeprom" command ? But I cannot find it!
as I got MAC addresses don't match.
Can u-boot allow me to change HW MAC address?
Best regards.
--- kabbin <kabbin26 at yahoo.com.tw> ??
Post by kabbin
Dear All
I faild to mount NFS, but TFTP is fine in U-boot.
//**************************************************************
eth0: SMC91C94 (rev 9) at 0xc4858300 IRQ 188 [nowait]
eth0: Invalid ethernet MAC address. Please set using ifconfig .
.
.
IP-Config: Failed to open eth0
IP-Config: Guessing netmask 255.255.0.0
device=tap0, addr=140.92.60.146, mask=255.255.0.0,
gw=255.255.255.255,
Post by kabbin
host=140.92.60.146, domain=, nis-domain=(none),
bootserver=255.255.255.255, rootserver=140.92.60.138, rootpath=
Looking up port of RPC 100003/2 on 140.92.60.138
portmap: server 140.92.60.138 not responding, timed out
//**************************************************************
How can I use the correct MAC address?
I have read the FAQ, so maybe there are some problems on linux kernel
side. http://www.denx.de/wiki/view/DULG/EthernetDoesNotWorkInLinux
I also reference to
http://lists.arm.linux.org.uk/pipermail/linux-arm-kernel/2004-July/023579.
html
Post by kabbin
But I still have no idea how to deal with it.
Could someone help me please?
___________________________________________________
??????? ? ????????????????
http://messenger.yahoo.com.tw/
Ladislav Michl
2006-09-01 11:51:15 UTC
Permalink
Post by kabbin
Dear Daniel
HW MAC address: 00:00:00:00:00:00
"ethaddr" value: 00:50:C2:42:B2:62
kabbin,

I already answered you on linux-omap-open-source and you ignored my
reply. Why? Again, more detailed. Your omap2420h4 board uses smc91x
compatible chip. This chip uses 128bit serial eeprom to store
configuration. This configuration includes MAC address. Default
configuration is load after chip reset. In U-Boot, you set MAC address
directly into LAN registers (ethaddr), but eeprom remains unprogrammed.
Linux driver resets chip. Program eeprom with valid MAC address. See for
example board/voiceblue/eeprom.c source.

Best regards,
ladis

Wolfgang Denk
2006-09-01 09:06:29 UTC
Permalink
Post by kabbin
How can I find the right flash region where the MAC address is stored ? (and then modify the data)
Forget his reply. It was plain wrong and does not help you at all.
Post by kabbin
--- Daniel Alomar <dalomar at serrasold.com> ???G
And please stop top-posting / full quoting.


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
"Nobody will ever need more than 640k RAM!" -- Bill Gates, 1981
"Windows 95 needs at least 8 MB RAM." -- Bill Gates, 1996
"Nobody will ever need Windows 95." -- logical conclusion
Loading...