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

Can somebody please share the default config tar.gz for R7800 running OpenWrt 24.10.x (rc5 or SNAPSHOT) (DSA)? Maybe from hnyman's build or just vanilla OpenWrt build.

I had a R7800 running 22.03.3 (swconfig) (last used in March 9, 2023), currently in transit from one remote location to another.

I have the last used 22.03.3 (swconfig) config tar.gz and I want to create a 24.10.0-rc6 (DSA) config tar.gz ready to load when the device reaches the new location (after flashing 24.10.0-rc6).

I am primarily looking for changes from 22.03.3 (swconfig) to 24.10.0-rc6 (DSA) in:

/etc/config/network
/etc/config/dhcp
/etc/config/firewall
/etc/config/wireless
/etc/config/system

I apologize if this is not the correct topic to post this in.

Thanks in advance.

22.03 is so long ago, that hard to remember. But I do not think that there was anything major between 22.03 and 23.05.

For the DSA change after 23.05 to 24.10 and onward, the needed changes depend quite much from for network complexity. With a simple network, the only files are network (actual DSA changes) and system (compatibility value and wan LED config). In addition the config files for those apps that refer to interfaces by name. E.g. for me sqm refers to eth0.2 , which needs now to be wan. Other config files are ok for me. If you have VLANs etc., things might be more complex, but I do not use those.

I have been successfully jumping back and forth between 23.05 and newer main/master by just keeping two versions of those three config files and copying the right one before the sysupgrade.

You can also get the new defaults by simply removing the /etc/config/network and /etc/config/system and rebooting the new version. Or sysupgrading without them.

The default DSA files:

network: (changes in lan ports, wan/wan6 device names)


config interface 'loopback'
	option device 'lo'
	option proto 'static'
	option ipaddr '127.0.0.1'
	option netmask '255.0.0.0'

config globals 'globals'
	option ula_prefix 'fd81:a8a7:15a7::/48'

config device
	option name 'br-lan'
	option type 'bridge'
	list ports 'lan1'
	list ports 'lan2'
	list ports 'lan3'
	list ports 'lan4'

config interface 'lan'
	option device 'br-lan'
	option proto 'static'
	option ipaddr '192.168.1.1'
	option netmask '255.255.255.0'
	option ip6assign '60'

config interface 'wan'
	option device 'wan'
	option proto 'dhcp'

config interface 'wan6'
	option device 'wan'
	option proto 'dhcpv6'

system: (only compat_version option and led_wan section change)


config system
	option hostname 'OpenWrt'
	option timezone 'EET-2EEST,M3.5.0/3,M10.5.0/4'
	option zonename 'Europe/Helsinki'
	option ttylogin '0'
	option log_size '192'
	option urandom_seed '0'
	option compat_version '1.1'

config timeserver 'ntp'
	option enabled '1'
	option enable_server '0'
	list server '0.openwrt.pool.ntp.org'
	list server '1.openwrt.pool.ntp.org'
	list server '2.openwrt.pool.ntp.org'
	list server '3.openwrt.pool.ntp.org'

config led 'led_usb1'
	option name 'USB 1'
	option sysfs 'white:usb1'
	option trigger 'usbport'
	list port 'usb1-port1'
	list port 'usb2-port1'

config led 'led_usb2'
	option name 'USB 2'
	option sysfs 'white:usb2'
	option trigger 'usbport'
	list port 'usb3-port1'
	list port 'usb4-port1'

config led 'led_wan'
	option name 'WAN'
	option sysfs 'white:wan'
	option trigger 'switch0'
	option port_mask '0x20'

config led 'led_esata'
	option name 'eSATA'
	option sysfs 'white:esata'
	option trigger 'disk-activity'

1 Like

Thank you for sharing the /etc/config/network and /etc/config/system.

Other than /etc/config/network and /etc/config/system, are there no other changes related to DSA or otherwise?

I think some devices had wifi-device paths changed in /etc/config/wireless in 24.10.x .

Can you please share the entire default config tar.gz in your Dropbox location where you upload your builds? I am planning to use a tool like meld to merge the changes.

Aren't switch0 and port_mask swconfig terminology?

No, I do not have a clean version of all config files, and sharing my own backup would make no sense.

Same answer as above:

recently flash owrt2305-r24147-b551214c9d-20241221 on my R7800, but sadly, luci web gui looks error, how i can fix this?
thanks for help..