linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* problem about mac address
@ 2002-11-25 12:25 Li Xiangrong
  2002-11-25 16:14 ` Wolfgang Denk
  0 siblings, 1 reply; 3+ messages in thread
From: Li Xiangrong @ 2002-11-25 12:25 UTC (permalink / raw)
  To: wd@denx.de; +Cc: linuxppc-embedded@lists.linuxppc.org


Hello, Mr. Denk,
I am now using the PPCBOOT in my system. I boot my board(mpc860t) by ppcboot and then port the hardhat linux. However, i got a problem with the mac address. I have set the mac address(CONFIG_ETHADDR 00:10:EC:00:23:20) in ppcboot. It's okay in ppcboot, but when the kernel boots up i find the kernel config the mac of eth0 (08:00:3e:26:15:59).That means the parameters of mac have not been transfered to kernel.However, the other paras, such as ip addr., host addr., netmask and such other is the same that i configured.I searched the kernel and have not find the place to set that addr. The kernel gets the mac addr. from and only from the SDRAM(enet.c):

				mcptr = (u_char *)dmi->dmi_addr + 5;
				tdptr = (u_char *)&ep->sen_taddrh;
				for (j=0; j<6; j++)
					*tdptr++ = *mcptr--;

The samethig happened with the fec mac. I read the fec.c and noticed that we use a random mac address tmpaddr[6], but the kernel config the fec mac of (08:00:be:26:15:59). The issue results that i can debug and test only one board in my group. How does this happen and may u give me an advice to solve it?
I really appreciat ur help


Best regards.

Li Xiangrong
lixiangrong@china.com
2002-11-25

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

* Re: problem about mac address
       [not found] <20021125130931.B001542D98@denx.de>
@ 2002-11-25 13:31 ` Wolfgang Denk
  0 siblings, 0 replies; 3+ messages in thread
From: Wolfgang Denk @ 2002-11-25 13:31 UTC (permalink / raw)
  To: Li Xiangrong; +Cc: linuxppc-embedded


In message <20021125130931.B001542D98@denx.de> you wrote:
>
> I am now using the PPCBOOT in my system. I boot my board(mpc860t) by ppcboot and then port the hardhat linux. However, i got a problem with the mac address. I have set the mac address(CONFIG_ETHADDR 00:10:EC:00:23:20) in ppcboot. It's okay in ppcboot, b
> ut when the kernel boots up i find the kernel config the mac of eth0 (08:00:3e:26:15:59).That means the parameters of mac have not been transfered to kernel.However, the other paras, such as ip addr., host addr., netmask and such other is the same that
> i configured.I searched the kernel and have not find the place to set that addr. The kernel gets the mac addr. from and only from the SDRAM(enet.c):

PPCBoot passes the MAC address as part of the bd_info structure.  The
Linux  kernel  must  pick it up there. Either you missed to adapt the
kernel header files so that your Linux kernel does not use  the  same
layout of bd_info as used by PPCBoot, or your kernel sources miss the
part that extracts the MAC address from the bd_info struct.

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
To be sure of hitting the target, shoot first and, whatever you  hit,
call it the target.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

* Re: problem about mac address
  2002-11-25 12:25 problem about mac address Li Xiangrong
@ 2002-11-25 16:14 ` Wolfgang Denk
  0 siblings, 0 replies; 3+ messages in thread
From: Wolfgang Denk @ 2002-11-25 16:14 UTC (permalink / raw)
  To: Li Xiangrong; +Cc: linuxppc-embedded@lists.linuxppc.org


In message <200211251219.GAA14313@lists.linuxppc.org> you wrote:
>
> i configured.I searched the kernel and have not find the place to set that addr. The kernel gets the mac addr. from and only from the SDRAM(enet.c):

I don't know where you're looking, but I have a line

	iap = bd->bi_enetaddr;

in our FEC code, which reads the MAC address as passed  by  the  boot
loader in the bd_info struncture.

> this happen and may u give me an advice to solve it?

You provide too little information to allow a really helpful  answer.
Which  CPU?  Which board? Which kernel version? Where did you get the
source from? Who ported the source to your board?

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
"The one charm of marriage is that it makes a  life  of  deception  a
neccessity."                                            - Oscar Wilde

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

end of thread, other threads:[~2002-11-25 16:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-25 12:25 problem about mac address Li Xiangrong
2002-11-25 16:14 ` Wolfgang Denk
     [not found] <20021125130931.B001542D98@denx.de>
2002-11-25 13:31 ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).