Mac addresses in fuses aren't set correctly in linux

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Mac addresses in fuses aren't set correctly in linux

771 Views
ambroisealgrin
Contributor II

Hi,

I'm working on an iMX6 solo X with two ethernet interfaces.

I set both mac addresses in fuses following this : Two mac address in fuse .

Fuses are correctly set : (reading from uboot)

Fuses read from uboot

=> fuse read 4 2 1

Reading bank 4:

Word 0x00000002: d56a2000

=> fuse read 4 3 1

Reading bank 4:

Word 0x00000003: 200170b3

=> fuse read 4 4 1

Reading bank 4:

Word 0x00000004: 70b3d56a

=>

But I have the same Mac Address for both interfaces in linux :

ifconfig result

eth0      Link encap:Ethernet  HWaddr 70:B3:D5:6A:20:01 

          UP BROADCAST MULTICAST  MTU:1500  Metric:1

          RX packets:0 errors:0 dropped:0 overruns:0 frame:0

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

          collisions:0 txqueuelen:1000

          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

eth1      Link encap:Ethernet  HWaddr 70:B3:D5:6A:20:01 

          UP BROADCAST MULTICAST  MTU:1500  Metric:1

          RX packets:0 errors:0 dropped:0 overruns:0 frame:0

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

          collisions:0 txqueuelen:1000

          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

Am I missing something ? Any idea ?

I'm working with U-Boot 2015.04-imx_v2015.04_3.14.52_1.1.0_ga+g6cf684a and Linux 3.14.28-1.0.0_ga+g91cf351

Labels (2)
0 Kudos
1 Reply

410 Views
alejandrolozan1
NXP Employee
NXP Employee

Hi,

I just tried that in L3.14.52 and just like you said when enabling the second FEC, both interfaces have same MAC address. But I tried modifying the  ethaddr environment variable  in Uboot to the first one (ethaddr=00:04:9f:03:2b:16) and after that  after enabling the second eth interface (eth1) this showed the a different MAC address (00:04:9f:03:2b:17).

Then I had both eth interfaces with different MAC address.

root@imx6sxsabresd:~# ifconfig

eth0      Link encap:Ethernet  HWaddr 00:04:9F:03:2B:16

          UP BROADCAST MULTICAST  MTU:1500  Metric:1

          RX packets:0 errors:0 dropped:0 overruns:0 frame:0

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

          collisions:0 txqueuelen:1000

          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

eth1      Link encap:Ethernet  HWaddr 00:04:9F:03:2B:17

          inet addr:192.168.1.119  Bcast:255.255.255.255  Mask:255.255.255.0

          inet6 addr: fe80::204:9fff:fe03:2b17/64 Scope:Link

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:3 errors:0 dropped:0 overruns:0 frame:0

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

          collisions:0 txqueuelen:1000

          RX bytes:1252 (1.2 KiB)  TX bytes:1192 (1.1 KiB)

lo        Link encap:Local Loopback

          inet addr:127.0.0.1  Mask:255.0.0.0

          inet6 addr: ::1/128 Scope:Host

          UP LOOPBACK RUNNING  MTU:65536  Metric:1

          RX packets:0 errors:0 dropped:0 overruns:0 frame:0

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

          collisions:0 txqueuelen:0

          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

Please try that and let me know how it goes.

Best Regards,

Alejandro

0 Kudos