Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
12408 Discussions

Troubele passing bootargs to set open ethernet mac address

Altera_Forum
Honored Contributor I
823 Views

Hi, 

 

I am having trouble passing the mac address from u-boot. 

I am using the nios2-linux-20100621.tar.gz distribution with OpenCores ethernet 10/100 MAC. 

 

My bootargs passes this to linux 

CONSOLE=/dev/ttyS0 root=/dev/ram0 rw panic=10 mtdparts=flash-0:256k(PART0)ro,128k(PART1),128k(PART2),1536k(PART3),32m(PART4),16m(PART5),8m(PART6),5088k(PART7),256k(PART8)ro oeth_mac=00:1b:97:00:01:3b mzt_diag 

 

And this is reported on console 0.000000] Kernel command line: CONSOLE=/dev/ttyS0 root=/dev/ram0 rw panic=10 mtdparts=flash-0:256k(PART0)ro,128k(PART1),128k(PART2),1536k(PART3),32m(PART4),16m(PART5),8m(PART6),5088k(PART7),256k(PART8)ro oeth_mac=00:1b:97:00:01:3b mzt_diag 

 

However, ifconfig reports the hardcoded mac address 

root:~> ifconfig -a 

eth0 Link encap:Ethernet HWaddr 00:07:ED:0A:03:29  

inet addr:10.1.2.104 Bcast:10.1.2.255 Mask:255.255.255.0 

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 

RX packets:1238 errors:0 dropped:21 overruns:0 frame:16 

TX packets:6 errors:0 dropped:0 overruns:0 carrier:0 

collisions:0 txqueuelen:1000  

Interrupt:4 Base address:0x1000 Memory:4000-7fff  

 

 

I have selected the parse command line option in kernel config. 

 

Any ideas whats wrong? Is oeth_mac the correct bootargs variable? 

 

BTW, the ethernet link is up and working albeit with the wrong mac address. I can do telnet from and to my controller. 

 

Thanks in advance, 

Barada
0 Kudos
0 Replies
Reply