Netgear GS308T OpenWrt installation failed?

Feel free to correct me if I'm wrong.

Things I need to do:

  • Check if I have free memory on my switch.

  • Transfer the sysupgrade file to temp folder?

  • Checksum validate the file integrity in case of mismatch.

  • Install the sysupgrade image.

  • Install Luci (the webUI that allows me to access my switch via browser which is what I need).

And Profit? And my bufferbloat score will be hopefully be better XD

Yes, but you do (128 MB RAM, half of that configured for tmpfs).

/tmp/, to be exact.

Always a good idea, sha256sum is preinstalled.

sysupgrade -n /tmp/openwrt-xxx-sysupgrade.bin

The easiest way to approach this, would be leaving your PC on port1 (and VID100) alone, but connecting one of the other ports to your uplink router (your LAN). The other ports are configured as WAN by default, will fetch an IP via DHCP and then provide internet access to the switch (allowing you to use opkg); just make sure that the IP subnets don't overlap (192.168.1.x is on the LAN side of your switch, so the WAN side should be in a different subnet).

A switch can't affect your bufferbloat issues.

1 Like

I'm a little lost on the checking the integrity of the file.

**DOWNLOAD_LINK="http://URLOFFIRMWAREBIN"; SHA256SUMS="http://URLOFSHA256"**

I was able to download the .bin but for the second part of the command SHA256SUMS I'm not seeing a URL that I can use under the Netgear page

root@xxx:/tmp# wget https://downloads.openwrt.org/snapshots/targets/realtek/generic/openwrt-realtek-generic-netgear_gs308t-v1-squashfs-sysupgrade.bin
--2021-06-30 22:51:06--  https://downloads.openwrt.org/snapshots/targets/realtek/generic/openwrt-realtek-generic-netgear_gs308t-v1-squashfs-sysupgrade.bin
Resolving downloads.openwrt.org (downloads.openwrt.org)... 2a01:4f8:251:321::2, 168.119.138.211
Connecting to downloads.openwrt.org (downloads.openwrt.org)|2a01:4f8:251:321::2|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 4456760 (4.2M) [application/octet-stream]
Saving to: 'openwrt-realtek-generic-netgear_gs308t-v1-squashfs-sysupgrade.bin'

openwrt-realtek-generic-n 100%[==================================>]   4.25M  2.89MB/s    in 1.5s    

2021-06-30 22:51:07 (2.89 MB/s) - 'openwrt-realtek-generic-netgear_gs308t-v1-squashfs-sysupgrade.bin' saved [4456760/4456760]
root@xxx:/tmp# sha256sum -b /tmp/openwrt-realtek-generic-netgear_gs308t-v1-squashfs-sysupgrade.bin 
d19e168216a6ebf17aad98794a0e476ef95bc617ba0e6ec5f2e764d2e0d3dde9 */tmp/openwrt-realtek-generic-netgear_gs308t-v1-squashfs-sysupgrade.bin

Compare the checksum with https://downloads.openwrt.org/snapshots/targets/realtek/generic/sha256sums

root@xxx:/tmp# sysupgrade -n /tmp/openwrt-realtek-generic-netgear_gs308t-v1-squashfs-sysupgrade.bin

Attempting to compare it says "not found"...

Is it because the .bin file is downloaded but isn't placed into the /temp location? When I attempt to redownload the .bin it says "cannot open output file: file exists" which means downloading it is done.

While not quite as crucial on an initramfs, do all of that within /tmp/, so cd /tmp/ first.

Okay, I'm in the /tmp/

When I do compare the checksum there should be some sort of output correct? Something that states FILE_NAME: OK

But nothing is showing after I input the command. Maybe I should start from step 1 of downloading the .bin again. Is there a way to clear the downloaded .bin?

Checksum is good to go. Sorry I thought there was supposed to be an output since I was following these instructions.

Looks like I can just run the sysupgrade command now.

…many ways to accomplish the same goal.

--
That said, 'realtek' is a modern target with image metadata being in use, so you already get image checksumming 'for free' and verified by sysupgrade.

After installing Luci and the SSL I should be able to access the webUI right?

I've tried both https://192.168.1.1/ and http://127.0.0.1:8000/

Or am I missing another step or misreading...

EDIT: Nvm. I got access to the Luci.

Now that I have access to Luci all my configurations should save from now on. And now I can install luci-app-sqm which should let me manage my bufferbloat and hopefully solve my internet lag.

But other than that my switch is all good to go? Do I need to close my SSH connection for security reasons and only use Luci? Anything else worth noting?

Your switch is a switch, not a router - its rtl388x SOC is a single-core 500 MHz mips 4Kec CPU, it doesn't have the capacity to do SQM at any considerable throughput. For typical switch usage, the actual package processing is offloaded to hardware into the switch fabric - SQM however needs to have the router's CPU in charge of every single packet, a CPU that is mostly intended to run the webinterface, but not to do anything with the packets flow.

Unless you're on an old and slow ADSL contract (not VDSL), the gs308t will be hopelessly underpowered to route, let alone do SQM.

1 Like

What router model would you recommend for someone who wants SQM to fix their lag/bandwidth issue? A popular model is the Archer C7 but some say it's outdated.

EDIT: I get supposedly 100Mbps from Xfinity. And have around 20+ devices on my network at a time.

That depends on your WAN speed, as that dictates what kind of power the router needs to have in order to do SQM (I'm not really an expert in regards to SQM, don't need it myself).

The archer c7 is a solid device, but it shows its age by now and there are better devices in the same price bracket (ipq40xx, mt7621+mt7615n) - or slightly above that the first wifi6 devices (mt7622bv+mt7915e or in the near'ish future ipq8071a).

Okay, thanks for all your help! I really appreciate.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.