mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-01-28 02:27:18 +01:00
Some checks are pending
Build Kernel / Build all affected Kernels (push) Waiting to run
Add support for the Edgecore ECS4100-12PH, an 8-port 802.3bt PoE Gigabit Ethernet switch with 2 combo RJ45/SFP and 2 SFP ports. Hardware: * SoC: RTL8393M * RAM: 256MiB * Flash: 32MiB SPI-NOR * Ethernet: * 8x GbE RJ45 PoE (external RTL8218B) * 2x GbE RJ45 / SFP combo (external RTL8214FC) * 2x SFP (external RTL8214FC) * Console: RJ45 RS232 port on front panel * PoE: Nuvoton M0516 + 2x Broadcom BCM59121 PSE Installation via bootloader: * open serial console (baud rate 115200) * interrupt boot process by pressing any key during boot * boot the OpenWrt initramfs: # rtk network on # tftpboot 0x8f000000 /tftpboot/openwrt-realtek-rtl839x-edgecore_ecs4100-12ph-initramfs-kernel.bin # bootm * copy openwrt-realtek-rtl839x-edgecore_ecs4100-12ph-squashfs-sysupgrade.bin to /tmp and use sysupgrade to install it: # sysupgrade /tmp/openwrt-realtek-rtl839x-edgecore_ecs4100-12ph-squashfs-sysupgrade.bin Even though U-Boot claims the switch is based on the RTL8392M SoC, my device is based on the RTL8393M SoC. I have confirmed this by removing the heatsink, and the Linux kernel agrees with this. Therefore the DTS has the rtl8393_ prefix. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
99 lines
2.3 KiB
Makefile
99 lines
2.3 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
include ./common.mk
|
|
|
|
define Device/d-link_dgs-1210-52
|
|
$(Device/d-link_dgs-1210)
|
|
SOC := rtl8393
|
|
DEVICE_MODEL := DGS-1210-52
|
|
endef
|
|
TARGET_DEVICES += d-link_dgs-1210-52
|
|
|
|
define Device/edgecore_ecs4100-12ph
|
|
$(Device/uimage-rt-loader)
|
|
SOC := rtl8393
|
|
DEVICE_VENDOR := Edgecore
|
|
DEVICE_MODEL := ECS4100-12PH
|
|
IMAGE_SIZE := 14336k
|
|
DEVICE_PACKAGES := \
|
|
kmod-eeprom-at24 \
|
|
kmod-hwmon-adt7470 \
|
|
kmod-hwmon-lm75 \
|
|
kmod-thermal \
|
|
realtek-poe
|
|
endef
|
|
TARGET_DEVICES += edgecore_ecs4100-12ph
|
|
|
|
define Device/hpe_1920-48g
|
|
$(Device/hpe_1920)
|
|
SOC := rtl8393
|
|
DEVICE_MODEL := 1920-48G (JG927A)
|
|
H3C_DEVICE_ID := 0x0001002a
|
|
endef
|
|
TARGET_DEVICES += hpe_1920-48g
|
|
|
|
define Device/hpe_1920-48g-poe
|
|
$(Device/hpe_1920)
|
|
SOC := rtl8393
|
|
DEVICE_MODEL := 1920-48G-PoE (JG928A)
|
|
DEVICE_PACKAGES += realtek-poe kmod-hwmon-gpiofan
|
|
H3C_DEVICE_ID := 0x0001002b
|
|
endef
|
|
TARGET_DEVICES += hpe_1920-48g-poe
|
|
|
|
# When the factory image won't fit anymore, it can be removed.
|
|
# New installation will be performed booting the initramfs image from
|
|
# ram and then flashing the sysupgrade image from OpenWrt
|
|
define Device/netgear_gs750e
|
|
SOC := rtl8393
|
|
IMAGE_SIZE := 7552k
|
|
FACTORY_SIZE := 6528k
|
|
DEVICE_VENDOR := NETGEAR
|
|
DEVICE_MODEL := GS750E
|
|
UIMAGE_MAGIC := 0x174e4741
|
|
IMAGES += factory.bix
|
|
IMAGE/factory.bix := \
|
|
append-kernel | \
|
|
pad-to 64k | \
|
|
append-rootfs | \
|
|
pad-rootfs | \
|
|
check-size $$$$(FACTORY_SIZE)
|
|
endef
|
|
TARGET_DEVICES += netgear_gs750e
|
|
|
|
define Device/panasonic_m48eg-pn28480k
|
|
SOC := rtl8393
|
|
IMAGE_SIZE := 16384k
|
|
DEVICE_VENDOR := Panasonic
|
|
DEVICE_MODEL := Switch-M48eG
|
|
DEVICE_VARIANT := PN28480K
|
|
DEVICE_PACKAGES := \
|
|
kmod-hwmon-gpiofan \
|
|
kmod-hwmon-lm75 \
|
|
kmod-i2c-mux-pca954x \
|
|
kmod-thermal
|
|
endef
|
|
TARGET_DEVICES += panasonic_m48eg-pn28480k
|
|
|
|
define Device/tplink_sg2452p-v4
|
|
SOC := rtl8393
|
|
KERNEL_SIZE := 6m
|
|
IMAGE_SIZE := 26m
|
|
DEVICE_VENDOR := TP-Link
|
|
DEVICE_MODEL := SG2452P
|
|
DEVICE_VARIANT := v4
|
|
DEVICE_PACKAGES := \
|
|
kmod-hwmon-gpiofan \
|
|
kmod-hwmon-tps23861
|
|
endef
|
|
TARGET_DEVICES += tplink_sg2452p-v4
|
|
|
|
define Device/zyxel_gs1900-48-a1
|
|
$(Device/zyxel_gs1900)
|
|
SOC := rtl8393
|
|
DEVICE_MODEL := GS1900-48
|
|
DEVICE_VARIANT := A1
|
|
ZYXEL_VERS := AAHN
|
|
SUPPORTED_DEVICES += zyxel,gs1900-48
|
|
endef
|
|
TARGET_DEVICES += zyxel_gs1900-48-a1
|