Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
toh:netgear:gs308t_1 [2023/09/21 19:31] – more images 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?500|Netgear GS308T V1 Front}} {{media:netgear:gs308t:front.jpeg?500|Netgear GS308T V1 Front}}
Line 10: Line 10:
 {{media:netgear:gs308t:pcb-anotated.jpeg?500|Netgear GS308T V1 PCB with Anotations}} {{media:netgear:gs308t:pcb-anotated.jpeg?500|Netgear GS308T V1 PCB with Anotations}}
  
 +---- datatable ----
 +cols    : Brand, Model, Versions, Supported Current Rel, OEM device homepage URL_url, Forum Search_search-forums, Device Techdata_pageid
 +headers : Brand, Model, Version, Current Release, OEM Info, Forum Search, Technical Data
 +align   : c,c,c,c,c,c,c
 +filter  : Brand=NETGEAR
 +filter  : Model=GS308T
 +filter  : Versions~1
 +----
  
-===== Hardware Features ===== +===== Hardware Highlights ===== 
-  * 8 GBit Ethernet Ports +---- datatable ---- 
-  * 1 virtual GBit Port to CPU +cols    : Model, Versions, CPU, CPU MHz, CPU Cores_numcores, Flash MB_mbflashs, RAM MB_mbram, Ethernet 1Gbit ports_ 
-  * 128 MB RAM +header  : Model, Version, SoC, CPU MHz, CPU Cores, Flash MBRAM MB, Gbit ports 
-  * 256 MB Flash (Split into Bootloader and two Boot-Images for usable Size of TODO) +align   : c,c,c,c,c,c,c,c 
-  * 500 MHz mips_4kec CPU +filter  : Brand=NETGEAR 
-  * Up to 8 LAGs manged in Hardware +filter  : Model=GS308T 
-  * Up to 4096 VLANs manged in Hardware +filter  : Versions~
-  Bi-Color LED (Green/Orange) per Port +----
-  * 1 Bi-Color LED (Green/Orange) for System Status +
-  * 1 Software Key (Recessed, Reset Button) +
-  * PSU: 12V 1A with Center Negative Barrel Connector+
  
-===== Flashing Procedure ===== +===== Installation ===== 
-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, 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 
 +----
  
-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''-PartitionThen 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.+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.
  
-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.+Update the switch to the latest [[https://www.netgear.com/support/product/gs308t#download|OEM firmware]]) first, before trying to flash OpenWrtUnzip the downloaded file and upload the ''.bix''-File as firmware to the ''image1''-partitionThen 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.
  
-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.+Download the ''initramfs'' image for the //GS308T// switch and check the sha256sum.
  
-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).+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.
  
-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.+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).
  
-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.+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.
  
-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.+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