Hello Frank,
sorry, my fault: HDMI is working. Only my 4k display can’t find the R2 as a valid source (even not in PIP with a smaller picture size).
Does anybody know how to change ethernet names? WAN port is eth1 and LAN ports are eth0.
If created an static MAC address mapping, based on this article: Static MAC-Address for Bananapi
cat /etc/udev/rules.d/69-static-mac.rules
# MAC address for eth0 / WAN
ACTION=="add", SUBSYSTEM=="net", ATTR{dev_id}=="0x0", ATTR{ifindex}=="6" RUN+="/sbin/ip link set dev %k address 26:bf:b5:59:15:d0"
# MAC address for eth1 / LAN
ACTION=="add", SUBSYSTEM=="net", ATTR{dev_id}=="0x0", ATTR{ifindex}=="5" RUN+="/sbin/ip link set dev %k address 26:bf:b5:59:15:d1"
The only way to identify the interfaces is, in my opinion, the value of ifindex
:
ls -d /sys/class/net/eth? | while read _DEV ; do echo ${_DEV} ; udevadm info -a ${_DEV} | grep ifindex ; done
/sys/class/net/eth0
ATTR{ifindex}=="5"
/sys/class/net/eth1
ATTR{ifindex}=="6"
And switching the interface names…
cat /etc/udev/rules.d/70-persistent-net.rules
# static interface name for WAN
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="26:bf:b5:59:15:d0", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# static interface name for LAN
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="26:bf:b5:59:15:d1", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
udev sets successfully the static MAC addresses but can’t switch names. Maybe the name eth1 is present when udev tries to change eth0 to eth1. So I decide to switch eth1 to wan0 and eth0 to lan0. After a restart the MACs are correct but not the names.
When I run udevadm test /sys/class/net/eth0
udev switched the device name from eth0 to lan0. Running udevadm test /sys/class/net/eth1
fails (see udev_eth1.txt (5,5 KB))
Any ideas?