Build for Netgear R7800

well on raspbian there's no package gcc-multilib
and i get some warning during install

WARNING: Makefile 'package/utils/busybox/Makefile' has a dependency on 'libpam', which does not exist
WARNING: Makefile 'package/utils/busybox/Makefile' has a build dependency on 'libpam', which does not exist
WARNING: Makefile 'package/network/utils/curl/Makefile' has a dependency on 'libgnutls', which does not exist
WARNING: Makefile 'package/network/utils/curl/Makefile' has a dependency on 'libopenldap', which does not exist
WARNING: Makefile 'package/network/utils/curl/Makefile' has a dependency on 'libidn2', which does not exist
WARNING: Makefile 'package/network/utils/curl/Makefile' has a dependency on 'libssh2', which does not exist
WARNING: Makefile 'package/boot/kexec-tools/Makefile' has a dependency on 'liblzma', which does not exist
WARNING: Makefile 'package/network/services/lldpd/Makefile' has a dependency on 'libnetsnmp', which does not exist

but eventually the build started :sunny:
i think it's also working on a single core so it's really gonna take forever, but that's nice :slight_smile:
(i also run it from a ssh session so no, i'm not gonna see how long will it take to die :))

Use the parallel build script or make - j 2 to run on two cores.

That's a massive drop in performance must be OpenWrt related. My WRT32X runs about 80-100MB/s both read and write over USB 3.0.

I understand that your WRT32X works on the latest openwrt. I am surprised, however, that there are so many R7800 users with openwrt and this problem does not bother them at all. The whole openwrt is great but slow transfers after USB 3 unfortunately ruined everything. I do not want another device in the form of Nas. Is there a chance to fix this. It would be great that the speed after USB 3 approached the original netgear software.

What is TFTP flash? Would like to use newer builds but no clue what this method is.

R7800 has an easy-to-use TFTP recovery mode in the bootloader

1 Like

Reliability of community-based firmware is directly proportional to how mainstream your profile of usage is. This is due to abysmal QA protocols and decentralized nature of development.

So if you want USB to work properly, you may want to start hunting DD-WRT forums for some random build for R7800 which makes USB work, but breaks something you don't use, like VPN. Because something will always be broken.

IMO you're better off not using a router as a network media sharing server. It's kinda like buying a VHS player that doubles as a clothes iron. Just dedicate a device to serving the files, and let the router route.

not an optimistic way to look at the world :slight_smile:
But yes, trying different version of LEDE to see if one of them has USB fast enough would be a good place to start.
If you find one, you should go up version by version looking for the specific one breaking USB
then you should find out which modification is breaking usb
and then you can try to fix it
easy, isn't it? :slight_smile:

You may try SATA interface, but ned cable eSATA+USB-to-SATA+power or eSATA-SATA and additional power, yes - R7800 doesn't provide power on eSATA.
This is old 2.5" Hitachi HDD 5400rpm:

#hdparm -Tt /dev/sda1
/dev/sda1:
 Timing cached reads:   1204 MB in  2.00 seconds = 602.20 MB/sec
 Timing buffered disk reads: 132 MB in  3.01 seconds =  43.87 MB/sec

My theoretical parameters of the usb 3.0 drive are not bad. But this has nothing to do with the real transfers I get from the cable or wifi :frowning:

hdparm -Tt /dev/sda1

/dev/sda1:
Timing cached reads: 1146 MB in 2.00 seconds = 572.94 MB/sec
Timing buffered disk reads: 172 MB in 3.00 seconds = 57.30 MB/sec

IMO you're better off not using a router as a network media sharing server. It's kinda like buying a VHS player that doubles as a clothes iron. Just dedicate a device to serving the files, and let the router route.

Could not have said it better. I started down the USB support path way back and was never happy with how it worked no matter the firmware being run, OEM or 3rd party.

I finally figured out what is said above. Routers are for routing and supporting clients and not for things like media server. Only time I have had a flash drive connected to a router in the recent past was when I was trying Yamon on a dd-wrt server and Yamon required a flash drive for support. A network attached NAS is the only way to go.

Just MHO and $.02.

2 Likes

I've been using hnyman's build for months now. I went back to OG FW for a month just too contrast as I thought wifi speeds might improve, they didnt. So Im back on this build. I love the flexibility, interface and want to thanks hnyman and the community. I love the NAT speed, the massive set of add on packages. network gear vendors really need to lift their game. open source will win, maybe if they stop chasing proprietary "gaming" RGB LED sales and focus on customer features and stability??

Slighty off topic, I switched from raid to DrivePool software raid, it is awesome, plz consider it before buying a proprietary nas.

Interesting product you point out, DrivePool. If I did not already have NAS support I would probably take one of the older PC's I have and use it as a NAS with this product. Probably wasn't around when I did the NAS as that was years ago.

connect via ssh and type these two commands

echo 35 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
echo 10 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor

then let me know if that improves your network transfer speeds (it did for me, it also improved my overall network speeds)

3 Likes

Wow, this command/setting helped bump up my wireless throughput by about 100 Mbps. I have a pretty beefy connection @ 480 Mbps and before using these settings I was lucky to see 350 over WiFi, but now I can sustain 450. Is there anything I need to worry about with this is as far as stability? What exactly does this do? Something to do with the clockspeed I suspect, correct?

1 Like

It modifies the decision logic for adjusting CPU frequency. Likely a ramp-up with somewhat lower CPU load and a bit later ramp-down.

Of course, if you want to maximise the CPU power, just disable the ondemand governor and select performance instead. (so that CPU frequency is maxed out all the time.)

more info at https://www.kernel.org/doc/Documentation/cpu-freq/governors.txt

1 Like

Would there be any reason not to use the performance governor on a device like this? There's no concern about battery life... but perhaps the lifespan of the router could be reduced?

Well, as a typical home router sits most of the time rather idle, so running the CPU all the time at 1700 MHz instead of 384 MHz seems wasteful and causes higher thermal load on the device.

No it does not, at least in my case. The temperature did not change at all.

What SSH command would I use to set the governor to performance? I tried looking it up but have been unsuccessful.