Support for RTL838x based managed switches

Hi, I'm trying to add support for XikeStor SKS8300-8X switch.

Specification:

  • SoC: Realtek RTL9303
  • RAM: DDR3 512 MiB
  • Flash: SPI-NOR 32 MiB
  • Ethernet: 8x SFP+

Informations (lang: ja):

https://tomocha.net/diary/?202405a#202405061

Repository:

Currently, only initramfs image is tested and the work is stucking due to the kernel freezing issue while initialization of SerDes.

Using initramfs image:

  1. interrupt booting and open bootmenu with Ctrl + B

  2. press Ctrl + F and login to the vendor-specific CLI with diagshell_unipoe_env

  3. login to the U-Boot CLI by debug_unish_env command

  4. activate a SFP+ port by the following commands:

    • rtk 10g <port> fiber1g (set to 1Gbps fiber mode)
    • rtk ext-devInit 0 (initialize RTL8231 (GPIO))
    • rtk ext-pinSet <pin> 0 (deassert TX-Disable (HIGH -> LOW))

    example (SFP+ port "1"):

    • rtk 10g 0 fiber1g
    • rtk ext-devInit 0
    • rtk ext-pinSet 2 0
  5. download initramfs image by tftpboot

  6. bootm

5 Likes