Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

realtek: add ZyXEL GS1900-24HP v1 support #9629

Closed
wants to merge 1 commit into from

Conversation

Hurricos
Copy link
Contributor

@Hurricos Hurricos commented Apr 2, 2022

The ZyXEL GS1900-24HP v1 is a 24 port PoE switch with two SFP ports,
similar to the other GS1900 switches.

Specifications

  • Device: ZyXEL GS1900-24HP v1

  • SoC: Realtek RTL8382M 500 MHz MIPS 4KEc

  • Flash: 16 MiB

  • RAM: Winbond W9751G8KB-25 64 MiB DDR2 SDRAM

  • Ethernet: 24x 10/100/1000 Mbps, 2x SFP 100/1000 Mbps

  • LEDs:

    • 1 PWR LED (green, not configurable)
    • 1 SYS LED (green, configurable)
    • 24 ethernet port link/activity LEDs (green, SoC controlled)
    • 24 ethernet port PoE status LEDs
    • 2 SFP status/activity LEDs (green, SoC controlled)
  • Buttons:

    • 1 "RESET" button on front panel (soft reset)
    • 1 button ('SW1') behind right hex grate (hardwired power-off)
  • Power: 120-240V AC C13

  • UART: Internal populated 10-pin header ('J5') providing RS232;
    connected to SoC UART through a TI or SIPEX 3232C for voltage
    level shifting.

  • 'J5' RS232 Pinout (dot as pin 1):
    2) SoC RXD
    3) GND
    10) SoC TXD

Serial connection parameters: 115200 8N1.

Installation

OEM upgrade method:

  • Log in to OEM management web interface

  • Navigate to Maintenance > Firmware > Management

  • If "Active Image" has the first option selected, OpenWrt will need to be
    flashed to the "Active" partition. If the second option is selected,
    OpenWrt will need to be flashed to the "Backup" partition.

  • Navigate to Maintenance > Firmware > Upload

  • Upload the openwrt-realtek-rtl838x-zyxel_gs1900-24hp-v1-initramfs-kernel.bin
    file by your preferred method to the previously determined partition.
    When prompted, select to boot from the newly flashed image, and reboot
    the switch.

  • Once OpenWrt has booted, scp the sysupgrade image to /tmp and flash it:

    sysupgrade /tmp/openwrt-realtek-rtl838x-zyxel_gs1900-24hp-v1-squashfs-sysupgrade.bin

U-Boot TFTP method:

  • Configure your client with a static 192.168.1.x IP (e.g. 192.168.1.10).

  • Set up a TFTP server on your client and make it serve the initramfs
    image.

  • Connect serial, power up the switch, interrupt U-boot by hitting the
    space bar, and enable the network:

    rtk network on

  • Since the GS1900-24HP v1 is a dual-partition device, you want to keep the
    OEM firmware on the backup partition for the time being. OpenWrt can
    only be installed in the first partition anyway (hardcoded in the
    DTS). To ensure we are set to boot from the first partition, issue the
    following commands:

    setsys bootpartition 0
    savesys

  • Download the image onto the device and boot from it:

    tftpboot 0x81f00000 192.168.1.10:openwrt-realtek-rtl838x-zyxel_gs1900-24hp-v1-initramfs-kernel.bin
    bootm

  • Once OpenWrt has booted, scp the sysupgrade image to /tmp and flash it:

    sysupgrade /tmp/openwrt-realtek-rtl838x-zyxel_gs1900-24hp-v1-squashfs-sysupgrade.bin

Other notes

This PR is very nearly identical to #9400, because the operation of the board is very nearly identical.

Signed-off-by: Martin Kennedy hurricos@gmail.com

The ZyXEL GS1900-24HP v1 is a 24 port PoE switch with two SFP ports,
similar to the other GS1900 switches.

Specifications
--------------
* Device:    ZyXEL GS1900-24HP v1
* SoC:       Realtek RTL8382M 500 MHz MIPS 4KEc
* Flash:     16 MiB
* RAM:       Winbond W9751G8KB-25 64 MiB DDR2 SDRAM
* Ethernet:  24x 10/100/1000 Mbps, 2x SFP 100/1000 Mbps
* LEDs:
  * 1 PWR LED (green, not configurable)
  * 1 SYS LED (green, configurable)
  * 24 ethernet port link/activity LEDs (green, SoC controlled)
  * 24 ethernet port PoE status LEDs
  * 2 SFP status/activity LEDs (green, SoC controlled)
* Buttons:
  * 1 "RESET" button on front panel (soft reset)
  * 1 button ('SW1') behind right hex grate (hardwired power-off)
* Power:     120-240V AC C13
* UART:      Internal populated 10-pin header ('J5') providing RS232;
             connected to SoC UART through a TI or SIPEX 3232C for voltage
             level shifting.

* 'J5' RS232 Pinout (dot as pin 1):
  2) SoC RXD
  3) GND
  10) SoC TXD

Serial connection parameters: 115200 8N1.

Installation
------------

OEM upgrade method:

* Log in to OEM management web interface

* Navigate to Maintenance > Firmware > Management

* If "Active Image" has the first option selected, OpenWrt will need to be
  flashed to the "Active" partition. If the second option is selected,
  OpenWrt will need to be flashed to the "Backup" partition.

* Navigate to Maintenance > Firmware > Upload

* Upload the openwrt-realtek-rtl838x-zyxel_gs1900-24hp-v1-initramfs-kernel.bin
  file by your preferred method to the previously determined partition.
  When prompted, select to boot from the newly flashed image, and reboot
  the switch.

* Once OpenWrt has booted, scp the sysupgrade image to /tmp and flash it:

  > sysupgrade /tmp/openwrt-realtek-rtl838x-zyxel_gs1900-24hp-v1-squashfs-sysupgrade.bin

U-Boot TFTP method:

* Configure your client with a static 192.168.1.x IP (e.g. 192.168.1.10).

* Set up a TFTP server on your client and make it serve the initramfs
  image.

* Connect serial, power up the switch, interrupt U-boot by hitting the
  space bar, and enable the network:

  > rtk network on

* Since the GS1900-24HP v1 is a dual-partition device, you want to keep the
  OEM firmware on the backup partition for the time being. OpenWrt can
  only be installed in the first partition anyway (hardcoded in the
  DTS). To ensure we are set to boot from the first partition, issue the
  following commands:

  > setsys bootpartition 0
  > savesys

* Download the image onto the device and boot from it:

  > tftpboot 0x81f00000 192.168.1.10:openwrt-realtek-rtl838x-zyxel_gs1900-24hp-v1-initramfs-kernel.bin
  > bootm

* Once OpenWrt has booted, scp the sysupgrade image to /tmp and flash it:

  > sysupgrade /tmp/openwrt-realtek-rtl838x-zyxel_gs1900-24hp-v1-squashfs-sysupgrade.bin

Signed-off-by: Martin Kennedy <hurricos@gmail.com>
@Hurricos
Copy link
Contributor Author

Hurricos commented Apr 2, 2022

And once again, for the HP version ... pinging @svanheule: Do you think you could take a look at this device port?

The difference between #9400 and this PR is that this is the PoE version. Otherwise, yes, you would not be far off thinking they're identical.

@mans0n mans0n added target/realtek pull request/issue for realtek target new device pull request with new device labels Apr 3, 2022
@svanheule
Copy link
Member

The only thing still missing for me is info on the PoE hardware. Which hardware is present? How does it communicate to the SoC? I see uart1 is enabled, so that's probably it, but better to document these things explicitly. Even if it's not supported in-tree at the moment, this could help (someone else) to provide that in the future.

@Hurricos
Copy link
Contributor Author

The PoE hardware is properly identified by blogic's realtek-poe as an ST Micro ST32F100 Microcontroller (which controls six BCM59111's) running firmware version 17.1; the PoE budget is 170W.

@svanheule
Copy link
Member

Thanks for the extra details. Could you add that info to the device description in the commit message too?

@svanheule
Copy link
Member

I've added the PoE info to the commit message and merged the changes with a5ac8ad. Thanks!

@svanheule svanheule closed this Apr 16, 2022
@Hurricos
Copy link
Contributor Author

Sorry for the delay, and thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new device pull request with new device target/realtek pull request/issue for realtek target
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants