[openwrt/openwrt] realtek: add Zyxel GS1900-24 B1 device definition

LEDE Commits lede-commits at lists.infradead.org
Mon Jan 26 16:36:21 PST 2026


hauke pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/17003bb0c56d834d4013083b41f84e421b9dd96a

commit 17003bb0c56d834d4013083b41f84e421b9dd96a
Author: Joe Holden <jwh at zorins.us>
AuthorDate: Sat Aug 30 20:35:28 2025 +0000

    realtek: add Zyxel GS1900-24 B1 device definition
    
    The Zyxel GS1900-24 B1 is a 24 port switch with two SFP ports, it is
    identical to the A1 except for doubling the ram.
    
    Specifications
    --------------
    * Device:    Zyxel GS1900-24 B1
    * SoC:       Realtek RTL8382M 500 MHz MIPS 4KEc
    * Flash:     16 MiB
    * RAM:       128 MiB DDR2 SDRAM
    * Ethernet:  24x 10/100/1000 Mbps, 2x SFP 100/1000 Mbps
    * LEDs:
      * 1 PWR LED (green, not configurable)
      * 1 SYS LED (green, configurable)
      * 24 ethernet port link/activity LEDs (green, SoC controlled)
      * 2 SFP status/activity LEDs (green, SoC controlled)
    * Buttons:
      * 1 "RESET" button on front panel (soft reset)
      * 1 button ('SW1') behind right hex grate (hardwired power-off)
    * Power:     120-240V AC C13
    * UART:      Internal populated 10-pin header ('J5') providing RS232;
                 connected to SoC UART through a SIPEX 3232EC for voltage
                 level shifting.
    
    * 'J5' RS232 Pinout (dot as pin 1):
      2) SoC RXD
      3) GND
      10) SoC TXD
    
    Serial connection parameters: 115200 8N1.
    
    Installation
    ------------
    
    OEM upgrade method:
    
    * Log in to OEM management web interface
    
    * Navigate to Maintenance > Firmware > Management
    
    * If "Active Image" has the first option selected, OpenWrt will need to be
      flashed to the "Active" partition. If the second option is selected,
      OpenWrt will need to be flashed to the "Backup" partition.
    
    * Navigate to Maintenance > Firmware > Upload
    
    * Upload the openwrt-realtek-rtl838x-zyxel_gs1900-24-b1-initramfs-kernel.bin
      file by your preferred method to the previously determined partition.
      When prompted, select to boot from the newly flashed image, and reboot
      the switch.
    
    * Once OpenWrt has booted, scp the sysupgrade image to /tmp and flash it:
    
      > sysupgrade /tmp/openwrt-realtek-rtl838x-zyxel_gs1900-24-b1-squashfs-sysupgrade.bin
    
    U-Boot TFTP method:
    
    * Configure your client with a static 192.168.1.x IP (e.g. 192.168.1.10).
    
    * Set up a TFTP server on your client and make it serve the initramfs
      image.
    
    * Connect serial, power up the switch, interrupt U-boot by hitting the
      space bar, and enable the network:
    
      > rtk network on
    
    > Since the GS1900-24 B1 is a dual-partition device, you want to keep the
      OEM firmware on the backup partition for the time being. OpenWrt can
      only be installed in the first partition anyway (hardcoded in the
      DTS). To ensure we are set to boot from the first partition, issue the
      following commands:
    
      > setsys bootpartition 0
      > savesys
    
    * Download the image onto the device and boot from it:
    
      > tftpboot 0x81f00000 192.168.1.10:openwrt-realtek-rtl838x-zyxel_gs1900-24-b1-initramfs-kernel.bin
      > bootm
    
    * Once OpenWrt has booted, scp the sysupgrade image to /tmp and flash it:
    
      > sysupgrade /tmp/openwrt-realtek-rtl838x-zyxel_gs1900-24-b1-squashfs-sysupgrade.bin
    
    Co-authored-by: Goetz Goerisch <ggoerisch at gmail.com>
    Signed-off-by: Joe Holden <jwh at zorins.us>
    Add memory size and adapt supported device.
    Signed-off-by: Goetz Goerisch <ggoerisch at gmail.com>
    Link: https://github.com/openwrt/openwrt/pull/21595
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
 target/linux/realtek/dts/rtl8382_zyxel_gs1900-24-b1.dts | 12 ++++++++++++
 target/linux/realtek/image/rtl838x.mk                   |  9 +++++++++
 2 files changed, 21 insertions(+)

diff --git a/target/linux/realtek/dts/rtl8382_zyxel_gs1900-24-b1.dts b/target/linux/realtek/dts/rtl8382_zyxel_gs1900-24-b1.dts
new file mode 100644
index 0000000000..216a86a669
--- /dev/null
+++ b/target/linux/realtek/dts/rtl8382_zyxel_gs1900-24-b1.dts
@@ -0,0 +1,12 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "rtl8382_zyxel_gs1900-24.dtsi"
+
+/ {
+	compatible = "zyxel,gs1900-24-b1", "realtek,rtl838x-soc";
+	model = "Zyxel GS1900-24 B1";
+
+	memory at 0 {
+		reg = <0x0 0x8000000>;
+	};
+};
diff --git a/target/linux/realtek/image/rtl838x.mk b/target/linux/realtek/image/rtl838x.mk
index aa07bd371e..0564741c6c 100644
--- a/target/linux/realtek/image/rtl838x.mk
+++ b/target/linux/realtek/image/rtl838x.mk
@@ -418,6 +418,15 @@ define Device/zyxel_gs1900-24-a1
 endef
 TARGET_DEVICES += zyxel_gs1900-24-a1
 
+define Device/zyxel_gs1900-24-b1
+  $(Device/zyxel_gs1900)
+  SOC := rtl8382
+  DEVICE_MODEL := GS1900-24
+  DEVICE_VARIANT := B1
+  ZYXEL_VERS := AAHL
+endef
+TARGET_DEVICES += zyxel_gs1900-24-b1
+
 define Device/zyxel_gs1900-24e-a1
   $(Device/zyxel_gs1900)
   SOC := rtl8382




More information about the lede-commits mailing list