Ethernet switch with linux/openwrt and DSA

Luiz Angelo Daros de Luca luizluca at gmail.com
Wed Dec 21 17:23:50 PST 2022


> Thanks all!
> Finally buy: D-LINK DGS-1210-48 G1.
>
> U-Boot 2011.12.(2.1.5.67086)-Candidate1 (Apr 13 2017 - 13:58:11)
>
> Board: RTL839x CPU:700MHz LXB:200MHz MEM:400MHz
> DRAM:  128 MB
> SPI-F: 1x32 MB
>
> Next:
>  - connected serial cable
>  - stop in uboot
>  - boot from tftp/openwrt-realtek-rtl839x-d-link_dgs-1210-52-initramfs-kernel.bin
>  - next simple scp/sysupgrade
> openwrt-realtek-rtl839x-d-link_dgs-1210-52-squashfs-sysupgrade.bin


Great news! Interesting, is it the same model as 1210-52 but with the
extra ports as non combo? Or are SFP+ still combo ports with 45-48
ports? Currently 49-52 they are disabled in -52 variant but they might
introduce a problem if someone gets that fixed and they are missing in
your device. Ports are statically defined in the DTS file and they
might brick the device if missing.

Did you try the image1 firmware? It should work from the web interface
but you need to write it to the image1, not image2 slot. If it is that
close to F1 series, might be able to dual boot the device back to the
original firmware. If that doesn't work, we might need to change some
flags in the dlink image generator. Is the original firmware shared
between -f1 and -g1 series?

I would include a new DTS file/firmware generation, even if it only
includes/copies -52 variant. It would make the lives of newcomers much
easier.

>
> root at OpenWrt:~# ubus call system board
> {
> "kernel": "5.10.156",
> "hostname": "OpenWrt",
> "system": "RTL8393",
> "model": "D-Link DGS-1210-52",
> "board_name": "d-link,dgs-1210-52",
> "rootfs_type": "squashfs",
> "release": {
> "distribution": "OpenWrt",
> "version": "SNAPSHOT",
> "revision": "r21432-4c0919839d",
> "target": "realtek/rtl839x",
> "description": "OpenWrt SNAPSHOT r21432-4c0919839d"
> }
> }
> root at OpenWrt:~#

Regards,

Luiz



More information about the openwrt-devel mailing list