| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision |
| toh:netgear:gs308t_1 [2023/09/21 20:02] – add datatables from template mazdermind | toh:netgear:gs308t_1 [2023/09/21 20:19] – fix ambiguity in serial pinout mazdermind |
|---|
| ======Netgear GS308T V1 ====== | ======Netgear GS308T V1 ====== |
| The //Netgear GS308T V1// is a relatively cheap Managed 8-Port Desktop-Switch and could probably be seen as the successor to the trusty //Netgear GS108E//. It is powered by a [[https://www.realtek.com/en/products/communications-network-ics/item/rtl8380m-vb-cg|RTL8380M]] Switch-ASIC [[https://datasheet.lcsc.com/lcsc/2103121437_Realtek-Semicon-RTL8382L-VB-CG_C2760850.pdf|Datasheet]] which comes with an embedded [[https://www.mips.com/products/classic/|MIPS 4KEc CPU Core]] ([[https://www.rockbox.org/wiki/pub/Main/IriverLPlayerPort/MIPS-4KEcDataSheet.pdf|Datasheet]]). The Switch is supported out of the box by OpenWrt and can be flashed from the OEM GUI and recovered with an easily accessible Serial Connection (need to solder on Pin-Headers) in case something goes wrong. The //GS308T// is therefore a good entry-level device for a OpenWrt Managed Switch. | The //Netgear GS308T V1// is a relatively cheap managed 8-port desktop-switch and could probably be seen as the successor to the trusty //Netgear GS108E//. It is powered by a [[https://www.realtek.com/en/products/communications-network-ics/item/rtl8380m-vb-cg|RTL8380M]] Switch-SOC [[https://datasheet.lcsc.com/lcsc/2103121437_Realtek-Semicon-RTL8382L-VB-CG_C2760850.pdf|Datasheet]] which comes with an embedded [[https://www.mips.com/products/classic/|MIPS 4KEc CPU Core]] ([[https://www.rockbox.org/wiki/pub/Main/IriverLPlayerPort/MIPS-4KEcDataSheet.pdf|Datasheet]]). The switch is supported out of the box by OpenWrt and can be flashed from the OEM GUI and recovered with an easily accessible serial connection (need to solder on pin-headers) in case something goes wrong. The //GS308T// is therefore a good entry-level device for a OpenWrt managed switch. |
| |
| **Caution:** The is //GS308T// is a switch, not a router. It can't do NAT, Firewalling or Routing in a performant way. Use dedicated Router for these purposes. Flashing a Switch with OpenWrt gives you a modern OS and GUI, a well defined Configuration-API, the option to log directly to a Grafana Instance via Collectd and much more. //However// running OpenWrt | **Caution:** The is //GS308T// is a switch, not a router. It can't do NAT, firewalling or routing in a performant way. Use a dedicated router for these purposes. Flashing a switch with OpenWrt gives you a modern OS and GUI, a well defined configuration-API, the option to log directly to a grafana instance via collectd and much more. //However// running OpenWrt on switches is not yet very common and so quite some features of the OEM firmware are **not yet supported** by OpenWrt. |
| on Switches is not very common and so quite some features of the OEM Firmware are **not yet supported** by OpenWrt. | |
| |
| {{media:netgear:gs308t:front.jpeg?500|Netgear GS308T V1 Front}} | {{media:netgear:gs308t:front.jpeg?500|Netgear GS308T V1 Front}} |
| headers : Brand, Model, Version, Current Release, OEM Info, Forum Search, Technical Data | headers : Brand, Model, Version, Current Release, OEM Info, Forum Search, Technical Data |
| align : c,c,c,c,c,c,c | align : c,c,c,c,c,c,c |
| filter : Brand=NETGEAR | |
| filter : Model=GS308T | |
| filter : Versions~1 | |
| ---- | |
| |
| /* If no unsupported functions known, comment out the following datatable or delete it. */ | |
| ---- datatable ---- | |
| cols : Unsupported Functions_unsupporteds | |
| filter : Brand=NETGEAR | filter : Brand=NETGEAR |
| filter : Model=GS308T | filter : Model=GS308T |
| ===== Hardware Highlights ===== | ===== Hardware Highlights ===== |
| ---- datatable ---- | ---- datatable ---- |
| cols : Model, Versions, CPU, CPU MHz, CPU Cores_numcores, Flash MB_mbflashs, RAM MB_mbram, Ethernet Gbit ports_ | cols : Model, Versions, CPU, CPU MHz, CPU Cores_numcores, Flash MB_mbflashs, RAM MB_mbram, Ethernet 1Gbit ports_ |
| header : Model, Version, SoC, CPU MHz, CPU Cores, Flash MB, RAM MB, Gbit ports | header : Model, Version, SoC, CPU MHz, CPU Cores, Flash MB, RAM MB, Gbit ports |
| align : c,c,c,c,c,c,c,c | align : c,c,c,c,c,c,c,c |
| ---- | ---- |
| |
| Out of the Box the switch comes with DHCP configured. If no DHCP Server is available, the Switch configures itself with a static ip of ''192.168.0.239/24''. You can then open the Web-GUI via http in your browser. The default password is `password` which needs to be changed immediately after login. | Out of the box the switch comes with DHCP configured. If no DHCP server is available, the switch configures itself with a static ip of ''192.168.0.239/24''. You can then open the Web-GUI via http in your browser. The default password is ''password'' which needs to be changed immediately after login. |
| |
| Update the Switch to the latest [[https://www.netgear.com/support/product/gs308t#download|OEM Firmware]]) first, before trying to flash OpenWrt. Unzip the downloaded File and upload the ''.bix''-File as Firmware to the ''image1''-Partition. Then reboot the Switch. After the Update is complete, copy the new ''image1'' Firmware also to the ''image2'' Slot in case you need to recover to OEM Firmware later on. | Update the switch to the latest [[https://www.netgear.com/support/product/gs308t#download|OEM firmware]]) first, before trying to flash OpenWrt. Unzip the downloaded file and upload the ''.bix''-File as firmware to the ''image1''-partition. Then reboot the switch. After the update is complete, copy the new ''image1'' firmware also to the ''image2'' slot in case you need to recover to OEM firmware later on. |
| |
| Download [[https://downloads.openwrt.org/releases/22.03.5/targets/realtek/rtl838x/openwrt-22.03.5-realtek-rtl838x-netgear_gs308t-v1-initramfs-kernel.bin|the initramfs Image]] for the *GS308T v1* Switch (Update Link to latest Release!) and check the sha256sum. | Download the ''initramfs'' image for the //GS308T// switch and check the sha256sum. |
| |
| Select the Image as File for Firmware-Update in the OEM GUI. Always flash ''image1'' with OpenWrt and leave image2 as OEM Firmware, because the OpenWrt ''sysupgrade''-Tool will only ever write to ''image1'' Partition. | Select the image as file for firmware-update in the OEM GUI. Always flash ''image1'' with OpenWrt and leave ''image2'' as OEM firmware, because the OpenWrt ''sysupgrade''-tool will only ever write to ''image1'' partition. |
| |
| After the Upload is done, restart the Switch one more time. OpenWrt will boot in initramfs (Ramdisk-Mode) and configure itself with a static ip of ''192.168.1.1/24''. During Boot the Power-LED will blink green during boot and become solid green after OpenWrt has finished booting. **Caution:** the Port-LED will stay offline at this point and it might look like you have no Link. This is normal (see Port LEDs below). | After the upload is done, restart the switch one more time. OpenWrt will boot in initramfs (ramdisk-mode) and configure itself with a static ip of ''192.168.1.1/24''. During boot the Power-LED will blink green during boot and become solid green after OpenWrt has finished booting. **Caution:** the Port-LED will stay offline at this point and it might look like you have no link. This is normal (see port leds below). |
| |
| The freshly flashed Switch will not do any DHCP and you need to configure yourself an IP out of the aforementioned net, before you can visit http://192.168.1.1/ and login with an empty password. | The freshly flashed switch will not do any DHCP and you need to configure yourself an IP out of the aforementioned net, before you can visit http://192.168.1.1/ and login with an empty password. |
| |
| Now Download [[https://downloads.openwrt.org/releases/22.03.5/targets/realtek/rtl838x/openwrt-22.03.5-realtek-rtl838x-netgear_gs308t-v1-squashfs-sysupgrade.bin|the sysupgrade Image]] for the *GS308T v1* and once again check the sha265sum. | Now download the ''sysupgrade'' image for the //GS308T// and once again check the sha265sum. |
| |
| Flash this image from within the OpenWrt Web-GUI. During the Flashing the Power-LED will blink orange before changing to solid orange on success, then going off for a couple of seconds and continuing with the usual green blink, then solid green cycle, at which point the Switch has been completely flashed with OpenWrt. The Port LEDs will stay dark, even if there is a link up. | Flash this image from within the OpenWrt Web-GUI. During the flashing the Power-LED will blink orange before changing to solid orange on success, then going off for a couple of seconds and continuing with the usual green blink, then solid green cycle, at which point the switch has been completely flashed with OpenWrt. The Port-LEDs will stay dark, even if there is a link up. |
| |
| ===== Revert to OEM Firmware ===== | ===== Revert to OEM Firmware ===== |
| To temporarily boot into the second firmware image, which still contains the OEM Firmware, run the following command on the OpenWrt Shell: | To temporarily boot into the second firmware image, which still contains the OEM Firmware, run the following command on the OpenWrt shell: |
| |
| fw_setsys bootpartition 1 | fw_setsys bootpartition 1 |
| reboot | reboot |
| |
| The Device will now boot the OEM Firmware from ''image2'' and continue to do so unless you change the boot-image back to ''image1'' (//Maintainace -> File Management -> Dual Image Configuration -> Active Image -> Apply// in the OEM Firmware). If you want you can copy the OEM Firmware from ''image2'' back to ''image1'' to completely erase OpenWrt from the device (//Maintainance -> File Management -> Copy// in the OEM Firmware). | The device will now boot the OEM Firmware from ''image2'' and continue to do so unless you change the boot-image back to ''image1'' (//Maintainace -> File Management -> Dual Image Configuration -> Active Image -> Apply// in the OEM Firmware). If you want you can copy the OEM Firmware from ''image2'' back to ''image1'' to completely erase OpenWrt from the device (//Maintainance -> File Management -> Copy// in the OEM Firmware). |
| |
| To directly and permanently flash the OEM firmware back to ''image1'', download the latest [[https://www.netgear.com/support/product/gs308t#download|OEM Firmware]] and copy the ''.bix'' file from the Zip-Archive to ''/tmp/'' on the OpenWrt installation. Then run this command: | To directly and permanently flash the OEM firmware back to ''image1'', download the latest OEM Firmware and copy the ''.bix'' file from the Zip-Archive to ''/tmp/'' on the OpenWrt installation. Then run this command: |
| |
| sysupgrade -n -F /tmp/GS308T_*.bix | sysupgrade -n -F /tmp/GS308T_*.bix |
| reboot | reboot |
| |
| This configures the Bootloader (U-Boot) to setup the Realtek Network before booting the OS. This features is normally used to boot a Kernel via TFTP, but it has the side-effect of already configuring the Switch-ASIC to control the LEDs. Reboot after changing this Flag. To restore to the original State, execute: | This configures the bootloader (U-Boot) to setup the realtek network before booting the OS. This feature is normally used to boot a kernel via TFTP, but it has the side-effect of already configuring the Switch-ASIC to control the LEDs. Reboot after changing this flag. To restore to the original state, execute: |
| |
| fw_setenv bootcmd "boota" | fw_setenv bootcmd "boota" |
| |
| ===== Configuration ===== | ===== Configuration ===== |
| See [[DSA]] for a List of Commands to manage the Switch from within OpenWrt. | See [[DSA]] for a list of commands to manage the switch from within OpenWrt. |
| |
| |
| ===== Recovery & Serial Console ===== | ===== Recovery & Serial Console ===== |
| not have an externally available console, the Lid can be removed with only two screws and the PCB has easily accessible through-hole pads that expose a 3.3V serial console. The Serial-Format is ''115200 8N1''. The Pin-Header is labeled as ''J1'' on the PCB with the Pin-1 Marker towards the Back of the Device. The Pinout is as follows: | While the GS308T does not have an externally available console, the lid can be removed with only two screws and the PCB has easily accessible through-hole pads that expose a 3.3V serial console. The serial format is ''115200 8N1''. The pin-header is labeled as ''J1'' on the PCB with the pin-1 marker towards the back of the device. The Pinout is as follows: |
| |
| J1 | 1 234 | J1 | 1 234 |
| [o]ooo | [o]ooo |
| ^ ||`------ To GND (3.3 V) | ^ ||`------ GND |
| | |`------- To RXD | | |`------- TXD |
| | `-------- To TXD | | `-------- RXD |
| `---------- Do not connect | `---------- Do not connect |
| |
| |
| ===== Hardware ===== | ===== Hardware Details ===== |
| ---- datatemplatelist dttpllist ---- | ---- datatemplatelist dttpllist ---- |
| template: meta:template_datatemplatelist | template: meta:template_datatemplatelist |
| cols : Brand, Model, Versions, Device Type, Availability, Supported Since Commit_git, Supported since Rel, Supported current Rel, Unsupported, Bootloader, CPU, Target, CPU MHz, Flash MBs, RAM MB, Switch, Ethernet 100M ports_, Ethernet Gbit ports_, Comments network ports_, Modem, VLAN, WLAN 2.4GHz, WLAN 5.0GHz, WLAN Hardwares, WLAN Comments_, Detachable Antennas_, USB ports_, SATA ports_, Comments USB SATA ports_, Serial, JTAG, LED count, Button count, Power supply, Device Techdata_pageid, Forum topic URL_url, wikidevi URL_url, OEM Device Homepage URL_url, Firmware OEM Stock URL_url, Firmware OpenWrt Install URL_url, Firmware OpenWrt Upgrade URL_url, Comments_ | cols : Brand, Model, Versions, Device Type, Availability, Supported Since Commit_git, Supported since Rel, Supported current Rel, Unsupported, Bootloader, CPU, Target, CPU MHz, Flash MBs, RAM MB, Switch, Ethernet 100M ports_, Ethernet 1Gbit ports_, Comments network ports_, Modem, VLAN, WLAN 2.4GHz, WLAN 5.0GHz, WLAN Hardwares, WLAN Comments_, Detachable Antennas_, USB ports_, SATA ports_, Comments USB SATA ports_, Serial, JTAG, LED count, Button count, Power supply, Device Techdata_pageid, Forum topic URL_url, wikidevi URL_url, OEM Device Homepage URL_url, Firmware OEM Stock URL_url, Firmware OpenWrt Install URL_url, Firmware OpenWrt Upgrade URL_url, Comments_ |
| filter : Brand=NETGEAR | filter : Brand=NETGEAR |
| filter : Model=GS308T | filter : Model=GS308T |
| |
| ===== Bootloader ===== | ===== Bootloader ===== |
| The Bootloader is basded on uboot. It supports booting from both images, booting from tftp and booting from the serial console via either ymodem or kermit protocol. | The bootloader is basded on uboot. It supports booting from both images, booting from tftp and booting from the serial console via either ymodem or kermit protocol. |
| |
| A typical Bootloader-Prompt will look like this: | A typical bootloader-prompt will look like this: |
| <code> | <code> |
| BOOT Loader Version 1.0.0.1 (2018-05-18 10:58:12 UTC) | BOOT Loader Version 1.0.0.1 (2018-05-18 10:58:12 UTC) |