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:zyxel:zyxel_gs1900-10hp [2021/03/09 17:41] – note about tested SFP module reichharttoh:zyxel:gs1900-10hp [2023/04/27 19:29] – [PoE configuration] Update to realtek-poe with GitHub links and buildroot integration. borromini
Line 7: Line 7:
 {{:media:zyxel:gs1900-10hp:gs1900-10hp-angled.jpg?178|ZyXEL GS1900-10HP angled view}} {{:media:zyxel:gs1900-10hp:gs1900-10hp-angled.jpg?178|ZyXEL GS1900-10HP angled view}}
  
-===== OpenWrt support ===== +===== Supported Versions =====
- +
-<WRAP> +
-<tabbox Supported Versions>+
 ---- datatable ---- ---- datatable ----
 cols    : Brand, Model, Versions, Supported Current Rel, OEM device homepage URL_url, OWrt Forum Topic URL_url, Device Techdata_pageid cols    : Brand, Model, Versions, Supported Current Rel, OEM device homepage URL_url, OWrt Forum Topic URL_url, Device Techdata_pageid
 headers : Brand, Model, Version, Current Release, OEM Info, Forum Topic, Technical Data headers : Brand, Model, Version, Current Release, OEM Info, Forum Topic, Technical Data
-align   : c,c,c,c,c,c,c,c+align   : c,c,c,c,c,c,c
 filter  : Brand=Zyxel filter  : Brand=Zyxel
 filter  : Model=GS1900-10HP filter  : Model=GS1900-10HP
 ---- ----
  
-<tabbox Hardware Highlights>+===== Hardware Highlights =====
 ---- datatable ---- ---- datatable ----
-cols    : Model, Versions, CPU, CPU MHz, CPU Cores_numcores_, Flash MB_mbflashs, RAM MB_mbram, WLAN Hardware, WLAN 2.4Ghz, WLAN 5.0Ghz, Ethernet 100M ports_, Ethernet Gbit ports_, Modem, USB ports_ +cols    : Model, Versions, CPU, CPU MHz, Flash MB_mbflashs, RAM MB_mbram, WLAN Hardware, WLAN 2.4Ghz, WLAN 5.0Ghz, Ethernet 100M ports_, Ethernet Gbit ports_, Modem, USB ports_ 
-header  : Model, Version,SoC,CPU MHz,CPU Cores,Flash MB,RAM MB,WLAN Hardware,WLAN2.4,WLAN5.0,100M ports,Gbit ports,Modem,USB+header  : Model, Version,SoC,CPU MHz,Flash MB,RAM MB,WLAN Hardware,WLAN2.4,WLAN5.0,100M ports,Gbit ports,Modem,USB
 align   : c,c,c,c,c,c,c,c,c,c,c,c,c align   : c,c,c,c,c,c,c,c,c,c,c,c,c
 filter  : Brand=Zyxel filter  : Brand=Zyxel
 filter  : Model=GS1900-10HP filter  : Model=GS1900-10HP
 ---- ----
- 
-</tabbox> 
-</WRAP> 
- 
  
  
 ===== Development thread ===== ===== Development thread =====
   * Development can be tracked in the following OpenWrt thread: [[https://forum.openwrt.org/t/support-for-rtl838x-based-managed-switches/57875/|Support for Realtek RTL838x based managed switches]].   * Development can be tracked in the following OpenWrt thread: [[https://forum.openwrt.org/t/support-for-rtl838x-based-managed-switches/57875/|Support for Realtek RTL838x based managed switches]].
-  * OpenWrt support was originally added by bkobl, his GitHub repo can be found [[https://github.com/bkobl/openwrt/tree/rtl83xx_dev|here]]. Until target and device support have matured in upstream OpenWrt, bkobl's tree might be more usable. +  * A very complete source of information is [[https://svanheule.net/switches/gs1900-10hp|Svanheule's wiki entry on the GS1900-10HP]].
-  * A very complete source of information is [[https://biot.com/switches/gs1900-10hp|Biot's wiki entry on the GS1900-10HP]].+
  
  
 ===== Installation ===== ===== Installation =====
 +/* stable release */
 +
 ---- datatable ---- ---- datatable ----
 cols    : Model, Versions, Supported Current Rel, Firmware OpenWrt Install URL_url, Firmware OpenWrt Upgrade URL_url, Firmware OEM Stock URL_url 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 align   : c,c,c
 filter  : Brand=Zyxel filter  : Brand=Zyxel
Line 47: Line 42:
 ---- ----
  
-See [[docs:guide-user:installation:generic.flashing|Install OpenWrt (generic)]] for generic installation procedures.+ 
 + 
 + 
 + 
 +-> [[docs:guide-user:installation:generic.flashing|Install OpenWrt (generic explanation)]]
  
 ==== OEM installation using the TFTP method ==== ==== OEM installation using the TFTP method ====
Line 70: Line 69:
     * First you'll copy over the OpenWrt RAM disk image, then boot it.     * First you'll copy over the OpenWrt RAM disk image, then boot it.
     * Once OpenWrt is running from RAM, you can write the sysupgrade image as if you were running an already installed OpenWrt image.     * Once OpenWrt is running from RAM, you can write the sysupgrade image as if you were running an already installed OpenWrt image.
-  * The device comes with exposed UART pins that are easily usable without needing to open the case. See the [[toh:zyxel:zyxel_gs1900-10hp#serial|serial section below]] for how to wire your serial cable and the serial connection parameters.+  * The device comes with exposed UART pins that are easily usable without needing to open the case. See the [[toh:zyxel:gs1900-10hp#serial|serial section below]] for how to wire your serial cable and the serial connection parameters.
   * Configure your computer with a static IP (e.g. 192.168.1.111).   * Configure your computer with a static IP (e.g. 192.168.1.111).
   * The bootloader contains a TFTP client. Set up a TFTP server on your computer as per the instructions above and copy the RAM disk image into the server directory.   * The bootloader contains a TFTP client. Set up a TFTP server on your computer as per the instructions above and copy the RAM disk image into the server directory.
   * Wire up your device and open a serial terminal (see 'Serial' above) with the connection parameters specified in the serial section below.   * Wire up your device and open a serial terminal (see 'Serial' above) with the connection parameters specified in the serial section below.
   * Power up the router and interrupt the bootloader by hitting the space bar.   * Power up the router and interrupt the bootloader by hitting the space bar.
-  * Since the GS1900-10HP is a dual-partition device, you want to keep the OEM firmware on the backup partition for the time being. OpenWrt can only boot off the first partition (this is hardcoded in the DTS). To make sure we are manipulating the first partition, issue the following commands: ''setsys bootpartition 0 && savesys''.+  * Since the GS1900-10HP is a dual-partition device, you want to keep the OEM firmware on the backup partition for the time being. OpenWrt can only boot off the first partition (this is hardcoded in the DTS). To make sure we are manipulating the first partition, issue the following commands: ''setsys bootpartition 0savesys''.
   * Activate the network functionality by typing ''rtk network on'' and hitting Enter.   * Activate the network functionality by typing ''rtk network on'' and hitting Enter.
   * If your TFTP server is functional, the following command will transfer the RAM disk onto the router: ''tftpboot 0x84f00000 192.168.1.111:openwrt-realtek-generic-zyxel_gs1900-10hp-initramfs-kernel.bin'', which you can then boot by issuing ''bootm''.   * If your TFTP server is functional, the following command will transfer the RAM disk onto the router: ''tftpboot 0x84f00000 192.168.1.111:openwrt-realtek-generic-zyxel_gs1900-10hp-initramfs-kernel.bin'', which you can then boot by issuing ''bootm''.
Line 82: Line 81:
 ---- ----
  
-| {{:meta:icons:tango:48px-emblem-important.svg.png?nolink}} | <color #ed1c24>**OpenWrt configures the switch by default with a management VLAN ID 100 on the LAN**</color>, so keep your serial connection until you have made sure you can SSH into it after flashing so you don't lock yourself out. If you would like a 'clean' ''/etc/config/network'' without VLANs (replace macaddr values by your own!), you can start with the configuration below. |+| {{:meta:icons:tango:48px-emblem-important.svg.png?nolink}} | <color #ed1c24>**OpenWrt configures the switch by default with a management VLAN ID 100 on the LAN port 1**</color>, so keep your serial connection until you have made sure you can SSH into it after flashing so you don't lock yourself out. If you would like a 'clean' ''/etc/config/network'' without VLANs (replace macaddr values by your own!), you can start with the configuration below. |
  
 <code bash> <code bash>
Line 164: Line 163:
  
 ==== PoE configuration ==== ==== PoE configuration ====
-For PoE control, you'll need the rtl83xx-poe package, which at this point is only available in [[commit>?p=openwrt/staging/blogic.git;a=tree;f=package/rtl83xx-poe;hb=2540faec92abf8f5e52eae0e77bfbdb47457252d|blogic's tree]]. Either compile it yourself or copy the following files over manually: +For PoE control, you'll need the realtek-poe package, which is hosted on [[https://github.com/Hurricos/realtek-poe.git|GitHub]]. A patch to integrate the package into an OpenWrt buildroot can be found [[https://paste.debian.net/1278695/|here]].
-  * ''/bin/poe.lua'' +
-  * ''/etc/init.d/poe'' +
-  * ''/etc/config/poe'' +
-The first two should be executable (''+x''). Keep in mind the rtl83xx-poe package so far only speaks the Broadcom PoE 'dialect', so **you can only use it on boards with Broadcom PoE controllers**. (Packages required: lua lua-rs232 libubus-lua libubox-lua).+
  
 The **power budget** is set per board in ''/etc/board.d/02_network''. If yours isn't in there yet, please consider [[:submitting-patches|submitting a patch]] with the power budget as specified by the manufacturer. The **power budget** is set per board in ''/etc/board.d/02_network''. If yours isn't in there yet, please consider [[:submitting-patches|submitting a patch]] with the power budget as specified by the manufacturer.
Line 277: Line 272:
  
 ==== Serial ==== ==== Serial ====
 +
 +It looks like pin order is wrong. The real is GND RX TX VCC
 +
 -> [[docs:techref:hardware:port.serial]] general information about the serial port, serial port cable, etc. -> [[docs:techref:hardware:port.serial]] general information about the serial port, serial port cable, etc.
  
Line 284: Line 282:
   * RX   * RX
   * GND   * GND
 +
 +Photo of serial connector - no need to open the case to hook up serial:
 +
 +{{:media:zyxel:gs1900-10hp:zyxel-serial-pins.jpg?direct&400|}}
 +
 +If you require to use it frequently then one solution is to solder an adapter cable with an audio jack and then connect an FTDI TTL-232R-3V3-AJ cable to it ({{:media:zyxel:gs1900-10hp:zyxel-serial-audio-jack-adapter.jpg?linkonly|photo}}).
  
 ^ Serial connection parameters for ZyXEL GS1900-10HP v1 | 115200 baud, 8N1 | ^ Serial connection parameters for ZyXEL GS1900-10HP v1 | 115200 baud, 8N1 |
  
-See above for a detailed shot of the PCB (no need to open the case to hook up serial). 
  
 ==== JTAG ==== ==== JTAG ====
Line 694: Line 697:
  
 ===== Tags ===== ===== Tags =====
-{{tagpage>GigabitEthernet}} {{tagpage>MIPS}} {{tagpage>realtek}} {{tagpage>PoE}} {{tagpage>SFP}}+[[meta:tags|How to add tags]] 
 +{{tag>GigabitEthernet MIPS realtek PoE SFP}}
  • Last modified: 2024/12/07 09:13
  • by monomartin