openwrt-pf/target/linux/realtek/image
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
..
rt-loader realtek: rt-loader increase gcc optimization level 2026-06-16 20:36:39 +02:00
common.mk realtek: rtl930x: use common DTSI for Zyxel XGS1010-12 2026-06-20 15:26:36 +02:00
Makefile realtek: add xikestor sks7300-img tool 2026-05-17 13:11:05 +02:00
rtl838x.mk realtek: add support for V3 variant of SG2008P 2026-06-16 09:42:19 +02:00
rtl839x.mk realtek: image: add rt-loader-bootbase recipe 2026-04-12 18:23:08 +02:00
rtl930x.mk rtl826x-firmware: ship rtl8261n and rtl8264b in single firmware package 2026-07-01 00:13:59 +02:00
rtl930x_nand.mk realtek: add support for Linksys LGS328MPCv2 2026-05-26 16:10:07 +02:00
rtl931x.mk realtek: add support for Hasivo S1300WP-8XGT-4S+ 2026-07-06 22:40:14 +02:00
rtl931x_nand.mk