The TL-SG2452P, also known as T1600G-52PS, is a 48 (52) port Gigabit switch with PoE on all 48 RJ45 ports and 4 additional SFP ports. Only v4 is supported by OpenWrt, the earlier versions are based on a Broadcom SoC and cannot be supported.
The U-Boot firmware drops to a TP-Link specific “BOOTUTIL” shell at 38400 baud. There is no known way to exit out of this shell, and no way to do anything useful.
Ideally, one would trick the bootloader into flashing the sysupgrade image first. However, if the image exceeds 6MiB in size, it will not work. To install OpenWRT:
Prepare a tftp server with:
Power on device, and stop boot by pressing any key. Once the shell is active:
This method works when it's not feasible to install a serial header.
Prepare a tftp server with:
The PoE modules and the kernel hwmon driver work, but the ICs are not in the correct mode during startup. In order to enable them, the package `i2c-tools` needs to installed and a startup script is required (e.g. /etc/rc.local):
i2cset -y 0 0x30 0x12 0xff for i in `seq 3 14`; do echo 1 > /sys/class/hwmon/hwmon$i/in0_enable echo 1 > /sys/class/hwmon/hwmon$i/in1_enable echo 1 > /sys/class/hwmon/hwmon$i/in2_enable echo 1 > /sys/class/hwmon/hwmon$i/in3_enable done
The following commands enable the LEDs on the ports - you can put them into /etc/rc.local:
cd /sys/kernel/debug/rtl838x/led echo 0x0060f568 > led_glb_ctrl echo 0x00007dea > led_set_0_1 echo 0xffffffff > led_copr_pmask_ctrl_0 echo 0x000fffff > led_copr_pmask_ctrl_1 echo 0xffffffff > led_combo_ctrl_0 echo 0x000fffff > led_combo_ctrl_1
Architecture | MIPS |
---|---|
Vendor | Realtek |
Bootloader | (Crippled) U-Boot |
System-On-Chip | RTL8393M |
CPU/Speed | 500 MHz |
Flash-Chip | Winbond |
Flash size | 32 MiB |
RAM | 256 MiB |
Wireless | None |
Ethernet | 1GBit |
Switch | 48x GBit, 4x SFP |
USB | none |
Serial | Yes |
JTAG | No |