Tool/software:
Hello,
I would like to exchange the first network interface name from eth1 to eth0 in the linux-rt kernel from SDK 09.02.
I tried to change the device tree aliases in k3-am62x-sk-common.dtsi, but it seems that it dosen't work :
aliases {
serial0 = &mcu_uart0;
serial1 = &wkup_uart0;
serial2 = &main_uart0;
mmc0 = &sdhci0;
mmc1 = &sdhci1;
mmc2 = &sdhci2;
ethernet2 = &cpsw_port1;
ethernet0 = &cpsw_port2;
usb0 = &usb0;
usb1 = &usb1;
};
More over changing interface name from udev requires to have a fix MAC address associate with the ethernet interface.
From Linux the 2 interfaces have the same MAC address:
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
link/ether 28:b5:e8:c6:fb:56 brd ff:ff:ff:ff:ff:ff
3: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 28:b5:e8:c6:fb:56 brd ff:ff:ff:ff:ff:ff
inet 192.168.1.1/24 brd 192.168.1.255 scope global eth1
valid_lft forever preferred_lft forever
inet6 fe80::2ab5:e8ff:fec6:fb56/64 scope link
valid_lft forever preferred_lft forever
4: can0: <NOARP,UP,LOWER_UP,ECHO> mtu 16 qdisc pfifo_fast state UP group default qlen 10
link/can
Could I change the network interface name from the device tree ?
How could I set the MAC address of the 2 network interface to be able to use udev rules ?
Is there a guideline to write MAC address in AM625 OTP ?
During production cycle how should be managed the MAC address, should we generate 2 MAC addresses for each product ?
Thanks for your help.
Regards,
Alexis.