darkxst / ha-operating-system

HAOS for iHost
Apache License 2.0
36 stars 4 forks source link

[Bug] MAC address for Ethernet changes after each reboot #1

Closed blakadder closed 8 months ago

blakadder commented 8 months ago

MAC address on the Ethernet interface changes after each reboot.

Possible fix https://forum.armbian.com/topic/28005-mac-adress-change-everyboot-orange-5

darkxst commented 8 months ago

As a workaround setting a cloned mac address via network manager nmcli should work. nmcli con modify <uuid> ethernet.cloned-mac-address <mac addr>

However I took a brief look at this arvo, things are vastly different between the Rockchip kernel vs mainline kernel (which we have here). From what I saw, It seems for most of the Rockchip SoC's, U-Boot will read the cpuid from OTP and derive a constant mac address from that which gets inserted into the device tree for the kernel to grab. OTP is not hooked up yet, and rv1126 may need soc specific patches to u-boot for it work.

darkxst commented 8 months ago

dev3 hooks up OTP, so u-boot can generate MAC Address from CPU ID and pass it onto kernel. This should be fixed with that.

blakadder commented 8 months ago

yep its fixed now