Hi,
I would like to define a static mac address for my rock64. Unfortunately, modifying the boot.txt like in the wiki does not help. My boot.txt has:
$this->bbcode_second_pass_code('', 'setenv macaddr 81 66 53 24 e9 77
')
I also tried:
$this->bbcode_second_pass_code('', 'setenv bootargs console=ttyS2,1500000 mac_addr=81:66:53:24:e9:77
')
no success, random MAC on every start
$this->bbcode_second_pass_code('', '
In: serial@ff130000
Out: serial@ff130000
Err: serial@ff130000
Model: Rockchip RK3328 EVB
Net:
Warning: ethernet@ff540000 (eth0) using random MAC address - 1e:5a:5a:69:a5:28
eth0: ethernet@ff540000
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc0(part 0) is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
')
I am booting from eMMC if that makes a difference. The random MAC address is assigned even before boot.scr is read.
Any idea?
Edit:
Interestingly, the actual mac address seems to be even different to the one in the log.
journalctl shows this:
$this->bbcode_second_pass_code('', '
Sep 14 22:08:05 alarm systemd-udevd[595]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
Sep 14 22:08:05 alarm systemd-udevd[595]: link_config: could not get ethtool features for eth0
Sep 14 22:08:05 alarm systemd-udevd[595]: Could not set offload features of eth0: Device or resource busy
Sep 14 22:08:05 alarm systemd-udevd[595]: Could not generate persistent MAC address for eth0: No such file or directory
')
I am also using the systemd-tool initramfs hook for remote root cryptsetup unlock, but I think it was randomized even with the default setup as described in the wiki.