D-Link DGS-1210-52 rev F1

From TechInfoDepot
(Redirected from D-Link DGS-1210-52)
Jump to navigationJump to search
52-Port Gigabit Smart Managed Switch
3rd Party Firmware
dd-wrt Status Unknown
OpenWrt Supported
Tomato any flavor Incompatible
Gargoyle Status Unknown
Platform
Brand • Model • Rev D-Link DGS-1210-52 rev F1
CPU1 checkY Realtek RTL8393M
CPU1 Type MIPS 34Kc
CPU1 Speed 700 MHz 32-bit
Bus 32-bit
Flash1 Size 32 MiB 33,554,432 B <br />262,144 Kib <br />32,768 KiB <br />256 Mib <br />0.0313 GiB <br />
RAM1 Size ? MiB
ETH chip1 Realtek RTL8393M
ETH chip2 Realtek RTL8214FC
ETH chip3 Realtek RTL8218B
ETH chip4 Realtek RTL8218B
ETH chip5 Realtek RTL8218B
ETH chip6 Realtek RTL8218B
Switch Realtek RTL8393M
Ethernet Port Count 52-1GbE
Ethernet connector 8P8C
Wired Standard IEEE 802.3i/3u/3ab
802.1q vlan yes
Auto-MDIX supported
Jumbo frame yes
Switch Class managed

Ethernet OUI: none specified

Expansion IF types SFP/RJ45 Combo
SFP ports 4
Stock bootloader U-Boot
Power 100-240 VAC ~ 50/60 Hz, 0.7 A
Connector type C13
Serial Port (UART) yes, 3.3V TTL, (115200 8N1)
Other
Flags:
Smart switch, 4x SFP/RJ45 Combo ports, SNMP, LACP, MSTP, RSTP, heatsink, metal case
3rd Party Firmware Support OpenWrt • (List | Dev | DLs)
Dimminsions
440 x 210 x 44 mm

For a list of all currently documented Realtek chipsets with specifications, see Realtek.

For a list of all currently documented D-Link devices with specifications, see D-Link.

Overview

Links of Interest

Revision	Port variants			Hardware platform

A1		10P, 16, 24, 48			Marvell
B1		10P, 20, 28(P), 52		Marvell
C1		10(P), 20, 28(P), 52(P/MP)	Broadcom
D1		8(P), 16, 24(P), 48		Broadcom
F1		10(P/MP), 26, 28(P/MP), 52(MP)	Realtek RTL838x
G1		8P, 10, 16, 24(P), 48		Realtek RTL838x
R1		10(P/MP),26,28(P/MP),52(MP/MPP)	Realtek RTL838x

Flashing

Flashing OpenWrt

Target: realtek
Subtarget: rtl839x
Package architecture: mips_24kc
Supported Since Commit
Support started version: 23.05.0
Current supported version: 25.12.1
LAN Hardware: Realtek RTL8393M
LAN Comment: Ethernet ports 49-52 are shared with SFP
WLAN Hardware: none
Installation method(s):
see git-commit
Recovery method(s):
see git-commit
git • >>
realtek: add support for DGS-1210-52
Hardware specification
----------------------

* RTL8393M SoC, 1 MIPS 34Kc core @ 700MHz
* 128MB DRAM
* 32MB NOR Flash
* 48 x 10/100/1000BASE-T ports
  - 6 x External PHY with 8 ports (RTL8218D)
* 4 x Gigabit RJ45/SFP Combo ports
  - External PHY with 4 SFP ports (RTL8214FC)
* Power LED
* Reset button on front panel
* UART (115200 8N1) via unpopulated standard 0.1" pin header marked J14

The gpio-restart node is not required but it does reset the switch.

TODO: The 4 combo ports attached to the RTL8214FC are not detect
properly. Linux kernel reports 49 and 50 as "External RTL8393 SERDES"
and 51 and 52 as "RTL8218B (external)". Those ports only work if
u-boot initialize it (for example, loading initramfs image using one
of those ports). A patch to PHY detection is needed for full support.

The firmware recovery using U-Boot is broken for all DGS-1210 tested
devices as pressing RESET does not trigger it (only if pressed from a
running stock image)

UART pinout
-----------

[o]ooo|J14
 | ||`------ GND
 | |`------- RX
 | `-------- TX
 `---------- Vcc (3V3)

Installation using OEM upgrade
------------------------------

1. Make sure you are running OEM firmware in image2 slot (logged as admin):
   - > config firmware image_id 2 boot_up
   - > reboot
2. Install squashfs-factory_image1.bin to image1 using (logged as admin):
   - > download firmware_fromTFTP <tftpserver> factory_image1.bin
   - > config firmware image_id 1 boot_up
   - > reboot

Installation using serial interface
-----------------------------------

1. Press Escape key during `Hit Esc key to stop autoboot` prompt
2. Press CTRL+C keys to get into real U-Boot prompt
3. Init network with `rtk network on` command
4. Load image with `tftpboot 0x8f000000 openwrt-realtek-rtl839x-d-link_dgs-1210-52-initramfs-kernel.bin` command
5. Boot the image with `bootm` command

Once booted the initramfs, install the squashfs-sysupgrade.bin as a
normal OpenWrt system.

Dual-boot with stock firmware using writable u-boot-env
-------------------------------------------------------

From stock to OpenWrt / boot image 1 (CLI as admin):
   - > config firmware image_id 1 boot_up
   - > reboot

From OpenWrt to stock / boot image 2: (shell as root)
   - # fw_setenv bootcmd 'run addargs ; bootm 0xb4e80000'
   - # fw_setenv image '/dev/mtdblock7'
   - # reboot

Debrick using serial interface
------------------------------

1. Press Escape key during `Hit Esc key to stop autoboot` prompt
2. In a Windows PC, run 'D-Link Network Assistant v2.0.2.4'. It should
   detect the switch
3. Flash the firmware.

Back to stock firmware using dual-boot
--------------------------------------

If you have serial interface, you can change u-boot env vars
interrupting the boot process. If not but you are running OpenWrt, you
can dual-boot (as mentioned eariler) and skip to step 4:

1. Press Escape key during `Hit Esc key to stop autoboot` prompt
2. Press CTRL+C keys to get into real U-Boot prompt
3. Boot the image 2:
   - set image /dev/mtdblock7; run addargs; bootm 0xb4e80000
4. Once booted, log as admin and change the boot image to 2
   - > config firmware image_id 2 boot_up
   - > reboot
5. After the boot, flash image1 with the vendor image

Back to stock firmware using DNA
--------------------------------

1. From an OpenWrt:
   - # fw_setenv bootstop on
   - # reboot
2. In a Windows PC, run 'D-Link Network Assistant v2.0.2.4'. It should
   detect the switch
3. Flash the firmware.

It has been developed and tested on device with F3 revision.

See also

D-Link DGS series • DSG-1210 series (SH) • DGS-1210 series (ToH)