[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [microblaze-uclinux] How microblaze linux get its mac address



I got it. CONFIG_SYSTEM_MAC_ADDRESS is used by petalinux-uboot-config to copy to ethaddr variable in u-boot.

U-boot will write to the ethernet mac registers: station address high and station address low register. Linux will then read from these registers.

-----Original Message-----
From: YEO,VICTOR-SV (A-Malaysia,ex1) 
Sent: Wednesday, July 30, 2008 10:23 AM
To: 'microblaze-uclinux@xxxxxxxxxxxxxx'
Subject: RE: [microblaze-uclinux] How microblaze linux get its mac address

I am using Xilinx Emac opb_ethernet.

I am wondering how the mac address in "Network Addresses" field of make
Menuconfig gets passed into the Xilinx Emac driver in microblaze linux?

Any idea?

-----Original Message-----
From: owner-microblaze-uclinux@xxxxxxxxxxxxxx [mailto:owner-microblaze-uclinux@xxxxxxxxxxxxxx] On Behalf Of A. Bose
Sent: Tuesday, July 29, 2008 9:03 PM
To: microblaze-uclinux@xxxxxxxxxxxxxx
Subject: RE: [microblaze-uclinux] How microblaze linux get its mac address

Here is a way to assign the MAC address from ifconfig:


ifconfig eth0 down
ifconfig eth0 hw ether 11:22:33:44:55:66
ifconfig eth0 up

-A Bose

-----Original Message-----
From: owner-microblaze-uclinux@xxxxxxxxxxxxxx
[mailto:owner-microblaze-uclinux@xxxxxxxxxxxxxx] On Behalf Of
victor-sv_yeo@xxxxxxxxxxx
Sent: Tuesday, July 29, 2008 6:25 AM
To: microblaze-uclinux@xxxxxxxxxxxxxx
Subject: [microblaze-uclinux] How microblaze linux get its mac address

Hi,

I use a home-developed bootloader, it is able to load microblaze linux
v0.30-rc1. However, the mac address field is always 00:00:00:00:00:00. I
have specified the mac address in "Network Addresses" field of make
menuconfig. But when I issue ifconfig, the mac address is still zero.

How does linux get the mac address if I am not using u-boot?

Regards,
Victor Yeo


___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive :
http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/

No virus found in this incoming message.
Checked by AVG. 
Version: 7.5.526 / Virus Database: 270.5.6/1578 - Release Date: 7/28/2008
5:13 PM
 

No virus found in this outgoing message.
Checked by AVG. 
Version: 7.5.526 / Virus Database: 270.5.6/1578 - Release Date: 7/28/2008
5:13 PM
 

___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/




___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/