openwrt-pf/target/linux/realtek
Carlo Szelinsky aba2818b7c
realtek: add support for Hasivo S1300WP-8XGT-4S+
The Hasivo S1300WP-8XGT-4S+ is a 12-port managed switch based on the
Realtek RTL9313 (RTL931x) SoC.

Tested on hardware revision v1.02 (manufactured 2026-04).

Specifications:
- SoC: Realtek RTL9313
- RAM: 512 MB
- Flash: 32 MB SPI-NOR
- Ethernet: 8x 10GBASE-T (2x RTL8264 quad PHYs), 4x SFP+ (10G)
- Button: 1x reset
- LEDs: 1x system (green) + per-port link/activity via the SoC LED engine
- RTC: NXP PCF8563
- Management MCU (I2C 0x6F): watchdog, CPU/system temperature and fan
  control (hwmon)
- UART: 38400 8N1 on the internal header

Working: switching on all copper and SFP+ ports, per-port and system
LEDs, reset button, RTC, watchdog, temperature/fan monitoring.

Not supported: PoE (the PD69x0x PSE controllers are on the PCB but not
driven), front-panel USB host.

Installation:
Netboot the initramfs image over TFTP, then run sysupgrade from OpenWrt.
Connect to the serial console (38400 8N1) and interrupt the U-Boot
autoboot to reach the prompt (press Ctrl+C, then z, then h), then boot
the initramfs image from a TFTP server:

  RTL9310# setenv boardmodel RTL9313_12XGE
  RTL9310# rtk network on
  RTL9310# rtk 10g 55 fiber1g
  RTL9310# tftpboot 0x84f00000 openwrt-...-initramfs-kernel.bin
  RTL9310# bootm 0x84f00000

Port 55 is front-panel port 12. Use fiber1g for a 1G SFP, fiber10g for
SFP+, and dac50cm for an SFP/RJ45 module. Once OpenWrt has booted, copy
the sysupgrade image over and flash it with sysupgrade.

MAC addresses:
  The base MAC comes from the U-Boot environment variable "ethaddr" in
  the u-boot-env partition (stock BDINFO). These units ship unprovisioned
  (ethaddr = 00:E0:4C:00:00:00); in that case a random MAC is generated
  and persisted. Per-port LAN MACs are derived sequentially.

    eth0 / label    u-boot-env "ethaddr" (random fallback when unset)
    lan1 .. lan12   base MAC + sequential offset

Signed-off-by: Carlo Szelinsky <github@szelinsky.de>
Link: https://github.com/openwrt/openwrt/pull/23775
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
2026-07-06 22:40:14 +02:00
..
base-files realtek: add support for Hasivo S1300WP-8XGT-4S+ 2026-07-06 22:40:14 +02:00
dts realtek: add support for Hasivo S1300WP-8XGT-4S+ 2026-07-06 22:40:14 +02:00
files-6.18 realtek: pcs: use device loop 2026-07-06 22:36:25 +02:00
image realtek: add support for Hasivo S1300WP-8XGT-4S+ 2026-07-06 22:40:14 +02:00
patches-6.18 generic: net: phy: realtek: select rtl826x phy patch table by chip version 2026-07-01 00:13:58 +02:00
profiles
rtl838x realtek: add hasivo-mcu sensor driver 2026-06-14 15:44:24 +02:00
rtl839x realtek: add hasivo-mcu sensor driver 2026-06-14 15:44:24 +02:00
rtl930x realtek: add hasivo-mcu sensor driver 2026-06-14 15:44:24 +02:00
rtl930x_nand realtek: add hasivo-mcu sensor driver 2026-06-14 15:44:24 +02:00
rtl931x kernel: reorder kernel config symbols 2026-06-23 09:03:54 +02:00
rtl931x_nand realtek: add hasivo-mcu sensor driver 2026-06-14 15:44:24 +02:00
Makefile realtek: switch to 6.18 2026-04-11 20:59:10 +02:00
modules.mk realtek: add hasivo-mcu sensor driver 2026-06-14 15:44:24 +02:00