Re: ath79: mikrotik mac issue
Hi Roger, I just confirmed that MAC's are properly set using master OpenWRT. Will look into this. I noticed you say this and OpenWRT master also shows it: eth1: /sys/firmware/mikrotik/hard_config/mac_base eth0: /sys/firmware/mikrotik/hard_config/mac_base+1 wlan0: /sys/firmware/mikrotik/hard_config/mac_base+2 I just checked on a fresh board using routerOS and it should be: eth0: /sys/firmware/mikrotik/hard_config/mac_base eth1: /sys/firmware/mikrotik/hard_config/mac_base+1 //SFP wlan0: /sys/firmware/mikrotik/hard_config/mac_base+2 So the macs from Eth and SFP (eth1) need to be switched. Regards, Koen On 18.04.21 19:00, Roger Pueyo Centelles wrote: Hi, Sorry, no clue. I am getting MAC addresses correctly assigned on a MikroTik RB922UAGS-5HPacD running OpenWrt SNAPSHOT, r16574-f7e00d81bc. As expected, random MAC addresses appear for both eth0 and eth1 on a fresh boot after flashing with "sysupgrade -v -n. At around ~40 seconds uptime, the network is activated with the correct MAC addresses enabled (same as in /etc/config/network): eth1: /sys/firmware/mikrotik/hard_config/mac_base eth0: /sys/firmware/mikrotik/hard_config/mac_base+1 wlan0: /sys/firmware/mikrotik/hard_config/mac_base+2 The behaviour is correct on rebooting or reflashing. Roger El 16/4/21 a les 17:04, Koen Vandeputte ha escrit: Hi all, I found another interesting issue testing on a rb922 The board gets a random mac on each boot. This is normal and should be automatically corrected by 02_network afterwards when hard_config is available, but it seems it's not getting applied correctly. Debugging the 02_network script shows that the actual value is properly fetched from hard_config, but it's not getting applied for some reason .. /etc/board.json shows the correct ones, but the interfaces still carry the random MAC. Judging by the flow in the script, I guess this issue will be present on all ath79 Mikrotik targets. Anyone got a clue? Regards, Koen ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: ath79: mikrotik mac issue
Hi, I gave it a try with OpenWrt SNAPSHOT, r16574-f7e00d81bc and Linux OpenWrt 5.10.31 #0 Sun Apr 18 14:14:52 2021 mips GNU/Linux. The MAC addresses are correct too. Do we have the same file and drivers? root@OpenWrt:/# md5sum /etc/*/02_network* 02ddf92ac3486bc00a25e0fa436bbba6 /etc/board.d/02_network root@OpenWrt:/# dmesg | grep -i mikrotik | grep -i driver [ 1.369453] MikroTik RouterBOARD hardware configuration sysfs driver v0.06 [ 1.378313] MikroTik RouterBOARD software configuration sysfs driver v0.03 Roger El 20/4/21 a les 10:45, Koen Vandeputte ha escrit: > Hi Roger, > > An important detail: > I'm testing using kernel 5.10 :-) > > Regards, > > Koen > ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: ath79: mikrotik mac issue
Hi Roger, An important detail: I'm testing using kernel 5.10 :-) Regards, Koen On 18.04.21 19:00, Roger Pueyo Centelles wrote: Hi, Sorry, no clue. I am getting MAC addresses correctly assigned on a MikroTik RB922UAGS-5HPacD running OpenWrt SNAPSHOT, r16574-f7e00d81bc. As expected, random MAC addresses appear for both eth0 and eth1 on a fresh boot after flashing with "sysupgrade -v -n. At around ~40 seconds uptime, the network is activated with the correct MAC addresses enabled (same as in /etc/config/network): eth1: /sys/firmware/mikrotik/hard_config/mac_base eth0: /sys/firmware/mikrotik/hard_config/mac_base+1 wlan0: /sys/firmware/mikrotik/hard_config/mac_base+2 The behaviour is correct on rebooting or reflashing. Roger El 16/4/21 a les 17:04, Koen Vandeputte ha escrit: Hi all, I found another interesting issue testing on a rb922 The board gets a random mac on each boot. This is normal and should be automatically corrected by 02_network afterwards when hard_config is available, but it seems it's not getting applied correctly. Debugging the 02_network script shows that the actual value is properly fetched from hard_config, but it's not getting applied for some reason .. /etc/board.json shows the correct ones, but the interfaces still carry the random MAC. Judging by the flow in the script, I guess this issue will be present on all ath79 Mikrotik targets. Anyone got a clue? Regards, Koen ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: ath79: mikrotik mac issue
Hi, Sorry, no clue. I am getting MAC addresses correctly assigned on a MikroTik RB922UAGS-5HPacD running OpenWrt SNAPSHOT, r16574-f7e00d81bc. As expected, random MAC addresses appear for both eth0 and eth1 on a fresh boot after flashing with "sysupgrade -v -n. At around ~40 seconds uptime, the network is activated with the correct MAC addresses enabled (same as in /etc/config/network): eth1: /sys/firmware/mikrotik/hard_config/mac_base eth0: /sys/firmware/mikrotik/hard_config/mac_base+1 wlan0: /sys/firmware/mikrotik/hard_config/mac_base+2 The behaviour is correct on rebooting or reflashing. Roger El 16/4/21 a les 17:04, Koen Vandeputte ha escrit: > Hi all, > > I found another interesting issue testing on a rb922 > The board gets a random mac on each boot. > > This is normal and should be automatically corrected by 02_network > afterwards when hard_config is available, but it seems it's not > getting applied correctly. > Debugging the 02_network script shows that the actual value is > properly fetched from hard_config, but it's not getting applied for > some reason .. > /etc/board.json shows the correct ones, but the interfaces still carry > the random MAC. > > Judging by the flow in the script, I guess this issue will be present > on all ath79 Mikrotik targets. > > Anyone got a clue? > > Regards, > > Koen > ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
ath79: mikrotik mac issue
Hi all, I found another interesting issue testing on a rb922 The board gets a random mac on each boot. This is normal and should be automatically corrected by 02_network afterwards when hard_config is available, but it seems it's not getting applied correctly. Debugging the 02_network script shows that the actual value is properly fetched from hard_config, but it's not getting applied for some reason .. /etc/board.json shows the correct ones, but the interfaces still carry the random MAC. Judging by the flow in the script, I guess this issue will be present on all ath79 Mikrotik targets. Anyone got a clue? Regards, Koen ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel