tmshlvck / turris-debian

Debian image creator for Turris Omnia board
29 stars 5 forks source link

Debian Bullseye does not read MAC addresses from EEPROM #13

Closed tmshlvck closed 2 years ago

tmshlvck commented 2 years ago

Debian Bullseye does not read MAC addresses from EEPROM:

root@turris:~# ip link
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1024
    link/ether e6:53:49:08:54:1b brd ff:ff:ff:ff:ff:ff
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1508 qdisc mq state UP mode DEFAULT group default qlen 1024
    link/ether 2e:3d:e1:93:e8:e5 brd ff:ff:ff:ff:ff:ff
4: eth2: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1024
    link/ether 8e:5b:f4:47:0d:a8 brd ff:ff:ff:ff:ff:ff

The reason:

root@turris:~# dmesg | grep mac
[    6.416815] mvneta f1070000.ethernet eth0: Using random mac address ea:46:82:e4:81:b7
[    6.468266] mvneta f1030000.ethernet eth1: Using random mac address ca:3d:cb:16:55:eb
[    6.556958] mvneta f1034000.ethernet eth2: Using random mac address 06:5f:58:d7:26:b6

Workaround: Use hwaddress ether in /etc/network/interfaces

tmshlvck commented 2 years ago

Fixed in 08c1453dd926df3216641e435a926774252bef98 .