Build for Netgear R7800

This should work:

24.10 for R7800 will use DSA like the whole ipq806x target.

You will need to re-do the network config by hand.

Best is to get new defaults from the system, by not having network and system files in /etc/config at sysupgrade. Then OpenWrt generates new default files for you.

You can just rename the two files before sysupgrade, so that you have them for easy reference. Just rename network to network.swconfig or network.old or..., and same for system.

(I have been testing my 23.05 and master builds by keeping two versions of system, network and sqm config files, and have just been copying the correct one into place before sysupgrade.

Why those files: Network has network settings, sqm refers to wan interface with old name, and system has the compat flag for sysupgrade.

2 Likes

I just upgraded without keeping my settings to 24.10rc4 and had no internet, I noticed that all LAN ports and WAN port had the same MAC address, after chainging MAC address on the WAN it is working again.

Do the LAN ports also need a unique MAC address?

It might be this

I have not used my R7800 much lately, but both of my last builds of 23.05 and main/master worked ok. But I did not test master with initial config.
(I have not built 24.10)

I authored a year ago the commit https://github.com/openwrt/openwrt/commit/8c2df654ad41ad7933984e823d5ab2f0f7c80130 to fix the wan Mac that was broken by https://github.com/openwrt/openwrt/commit/d264d3a60ecc1813a3a10497ad3171605b9faa71

Looking at the nighthawk .dtsi file, I wonder if the LAN Mac nvmem cells definition should be fixed similarly. See https://github.com/openwrt/openwrt/blob/484f670ed3d41e44375bfa7f8892e660d3c8c26a/target/linux/ipq806x/files-6.6/arch/arm/boot/dts/qcom/qcom-ipq8065-nighthawk.dtsi#L436-L459

@Ansuel might have some insight.

Thanks, as always you know the answer, this is exactly the problem I am/was having.

I looked at my old swconfig and noticed:

config device
	option name 'eth1.1'
	option macaddr 'XX:XX:XX:XX:XX:5e'

config device
	option name 'eth0.2'
	option macaddr 'XX:XX:XX:XX:XX:5f'

All LAN ports and WAN port had xx:5e after upgrading and no DHCP on wan interface exactly as described

After changing the MAC address of the wan port to XX:5f it started to work

To be sure the LAN ports can have the same MAC address?
Or should they also have unique MAC addresses?

As always thanks :slight_smile:

@egc
I just tested with my latest main/master build from 21.12.2024, and it got quite normal MACs.

OpenWrt main r28363-f10ee1e209 / 2024-12-21 16:20

 -----------------------------------------------------
root@router1:~# ifconfig | grep HW
br-lan    Link encap:Ethernet  HWaddr DC:EF:09:EF:F3:E4
eth0      Link encap:Ethernet  HWaddr DC:EF:09:EF:F3:E5
eth1      Link encap:Ethernet  HWaddr DC:EF:09:EF:F3:E4
hn2wlan   Link encap:Ethernet  HWaddr DC:EF:09:EF:F3:E7
hn5wpa2r  Link encap:Ethernet  HWaddr 78:00:22:EF:F3:E6
hn5wpa3   Link encap:Ethernet  HWaddr DC:EF:09:EF:F3:E6
ifb-dns   Link encap:Ethernet  HWaddr EE:DE:B0:58:62:B0
ifb4wan   Link encap:Ethernet  HWaddr 82:02:5C:92:3F:8B
lan1      Link encap:Ethernet  HWaddr DC:EF:09:EF:F3:E4
lan2      Link encap:Ethernet  HWaddr DC:EF:09:EF:F3:E4
lan3      Link encap:Ethernet  HWaddr DC:EF:09:EF:F3:E4
lan4      Link encap:Ethernet  HWaddr DC:EF:09:EF:F3:E4
unet      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
wan       Link encap:Ethernet  HWaddr DC:EF:09:EF:F3:E5


after reset, wlan just defaults and sqm missing:

 -----------------------------------------------------
root@OpenWrt:/etc/config# ifconfig | grep HW
br-lan    Link encap:Ethernet  HWaddr DC:EF:09:EF:F3:E4
eth0      Link encap:Ethernet  HWaddr DC:EF:09:EF:F3:E5
eth1      Link encap:Ethernet  HWaddr DC:EF:09:EF:F3:E4
ifb-dns   Link encap:Ethernet  HWaddr 1E:75:2C:3A:A6:34
lan1      Link encap:Ethernet  HWaddr DC:EF:09:EF:F3:E4
lan2      Link encap:Ethernet  HWaddr DC:EF:09:EF:F3:E4
lan3      Link encap:Ethernet  HWaddr DC:EF:09:EF:F3:E4
lan4      Link encap:Ethernet  HWaddr DC:EF:09:EF:F3:E4
phy0-ap0  Link encap:Ethernet  HWaddr DC:EF:09:EF:F3:E7
phy1-ap0  Link encap:Ethernet  HWaddr DC:EF:09:EF:F3:E6
wan       Link encap:Ethernet  HWaddr DC:EF:09:EF:F3:E5

Edit:
And this is after a sysupgrade without settings to a brand new build (before even enabling wifi). Again ok:

 OpenWrt SNAPSHOT, r28534-f5b1d340be

root@OpenWrt:~# ifconfig | grep HW
br-lan    Link encap:Ethernet  HWaddr DC:EF:09:EF:F3:E4
eth0      Link encap:Ethernet  HWaddr DC:EF:09:EF:F3:E5
eth1      Link encap:Ethernet  HWaddr DC:EF:09:EF:F3:E4
ifb-dns   Link encap:Ethernet  HWaddr 8E:64:BF:0D:B0:F2
lan1      Link encap:Ethernet  HWaddr DC:EF:09:EF:F3:E4
lan2      Link encap:Ethernet  HWaddr DC:EF:09:EF:F3:E4
lan3      Link encap:Ethernet  HWaddr DC:EF:09:EF:F3:E4
lan4      Link encap:Ethernet  HWaddr DC:EF:09:EF:F3:E4
wan       Link encap:Ethernet  HWaddr DC:EF:09:EF:F3:E5
2 Likes

Thanks for letting me know.

I just upgraded my main R7800 after an uptime of 4 months running 23.05.5

As I am often away in spring and summer and I need access to my stuff I keep it very simple it only does routing and Wifi with separate IoT network, behind are my (VPN) servers and other routers to play with.
I have an 600 Mb/s ISP plan so that is what I need and I do not want to use any "fancy" offloading tricks.

I am happy to say that after upgrading to 24.10 with your "trick" (rename network, system (I do not use sqm, not necessary) and then force upgrade) it went very well, MAC addresses all OK, speed, with irqbalance active, is around 800 Mb/s LAN<>WAN throughput (I got it off line and tested with iperf3 with one PC connected on LAN and the other on WAN)

So I now can watch it while at home and see if it is as rock stable as 23.05.5 but I am confident it is.

Thanks for all your work for our community :+1:

2 Likes

owrt2410-r28309-3c8b23fad8-20250109

I made the first 24.10 build.
Nothing surprising there, as it is most the same main/master was a few months ago.

Note that it is naturally DSA based, as main/master has been for some time. Upgrading from 23.05 is still easy if network config is simple. Like I wrote above:

2 Likes

A post was split to a new topic: Tailscale in 24.10?

hello, can i use firmware for r7800 for my xr500?

No, your router has its own packaging/IDs, so the firmware is not quite compatible.

OK Thanks for the response, do you know if exist the same for xr500

I do not think that there is any community build for it.

You could take my build scripts (see message 2) or at least the .config recipe and quite easily build almost identical stuff for xr500.

1 Like