Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
toh:netgear:gs308t_1 [2023/09/21 19:28] – created mazdermindtoh:netgear:gs308t_1 [2023/09/21 20:19] – fix ambiguity in serial pinout mazdermind
Line 1: Line 1:
 ======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 on Switches is not very common and so quite some features of the OEM Firmware are **not yet supported** by OpenWRT.+**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 on switches is not yet very common and so quite some features of the OEM firmware are **not yet supported** by OpenWrt.
  
-{{ media:netgear:gs308t:front.jpeg?500x0 | Netgear GS308T V1 Photo }}+{{media:netgear:gs308t:front.jpeg?500|Netgear GS308T V1 Front}} 
 +{{media:netgear:gs308t:back.jpeg?500|Netgear GS308T V1 Back}} 
 +{{media:netgear:gs308t:bottom.jpeg?500|Netgear GS308T V1 Bottom}} 
 +{{media:netgear:gs308t:pcb.jpeg?500|Netgear GS308T V1 PCB}} 
 +{{media:netgear:gs308t:pcb-anotated.jpeg?500|Netgear GS308T V1 PCB with Anotations}}
  
-===== Hardware Features ===== +---- datatable ---- 
-  * 8 GBit Ethernet Ports +cols    : Brand, Model, Versions, Supported Current Rel, OEM device homepage URL_url, Forum Search_search-forums, Device Techdata_pageid 
-  * 1 virtual GBit Port to CPU +headers : Brand, Model, Version, Current Release, OEM Info, Forum Search, Technical Data 
-  * 128 MB RAM +align   : c,c,c,c,c,c,c 
-  * 256 MB Flash (Split into Bootloader and two Boot-Images for usable Size of TODO) +filter  : Brand=NETGEAR 
-  * 500 MHz mips_4kec CPU +filter  : Model=GS308T 
-  * Up to 8 LAGs manged in Hardware +filter  : Versions~
-  * Up to 4096 VLANs manged in Hardware +----
-  * 1 Bi-Color LED (Green/Orange) per Port +
-  Bi-Color LED (Green/Orange) for System Status +
-  * 1 Software Key (Recessed, Reset Button) +
-  * PSU: 12V 1A with Center Negative Barrel Connector+
  
-===== Flashing Procedure ===== +===== Hardware Highlights ===== 
-Out of the Box the switch comes with DHCP configured. If no DHCP Server is availablethe 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.+---- datatable ---- 
 +cols    : ModelVersions, 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 
 +align   : c,c,c,c,c,c,c,
 +filter  : Brand=NETGEAR 
 +filter  : Model=GS308T 
 +filter  : Versions~1 
 +----
  
-Update the Switch to the latest [[https://www.netgear.com/support/product/gs308t#download|OEM Firmware]]) firstbefore 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 completecopy the new ''image1'' Firmware also to the ''image2'' Slot in case you need to recover to OEM Firmware later on.+===== Installation ===== 
 +---- datatable ---- 
 +cols    Model, Versions, Supported Current Rel, Firmware OpenWrt Install URL_url, Firmware OpenWrt Upgrade URL_url, Firmware OEM Stock URL_url 
 +headers : Model, Version, Current Release, Firmware OpenWrt Install, Firmware OpenWrt Upgrade, Firmware OEM Stock 
 +align   : c,c,c 
 +filter  : Brand=NETGEAR 
 +filter  : Model=GS308T 
 +filter  : Versions~1 
 +----
  
-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.+Out of the box the switch comes with DHCP configuredIf 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 browserThe default password is ''password'' which needs to be changed immediately after login.
  
-Select the Image as File for Firmware-Update in the OEM GUIAlways flash ''image1'' with OpenWRT and leave image2 as OEM Firmware, because the OpenWRT ''sysupgrade''-Tool will only ever write to ''image1'' Partition.+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.
  
-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).+Download the ''initramfs'' image for the //GS308T// switch and check the sha256sum.
  
-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.+Select the image as file for firmware-update in the OEM GUIAlways flash ''image1'' with OpenWrt and leave ''image2'' as OEM firmware, because the OpenWrt ''sysupgrade''-tool will only ever write to ''image1'' partition.
  
-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.+After the upload is done, restart the switch one more timeOpenWrt 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).
  
-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.+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 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.
  
 ===== 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
  
 ===== Port LEDs ===== ===== Port LEDs =====
-The Port-LEDs are not working after flashing OpenWRT, because OpenWRT fails to initialize the Switch-ASIC to control the LEDs. Until this is fixed, you can execute the following command inside OpenWRT:+The Port-LEDs are not working after flashing OpenWrt, because OpenWrt fails to initialize the Switch-ASIC to control the LEDs. Until this is fixed, you can execute the following command inside OpenWrt:
  
   fw_setenv bootcmd "rtk network on; boota"   fw_setenv bootcmd "rtk network on; boota"
   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 Details =====
 +---- datatemplatelist dttpllist ----
 +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 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  : Model=GS308T
 +filter  : Versions=1
 +----
  
 ===== 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)
  • Last modified: 2024/05/08 21:50
  • by andyboeh