openwrt/target/linux
Martin Kennedy d60b3bf890 realtek: add ZyXEL GS1900-24HP v1 support
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)
* PoE:
  * Management MCU: ST Micro ST32F100 Microcontroller
  * 6 BCM59111 PSE chips
  * 170W power budget
* 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>
[Add info on PoE hardware to commit message]
Signed-off-by: Sander Vanheule <sander@svanheule.net>
(cherry picked from commit a5ac8ad0ba)
2022-04-19 21:45:46 +02:00
..
apm821xx kernel: bump 5.10 to 5.10.111 2022-04-17 21:47:11 +02:00
archs38 kernel: delete Linux 5.4 config and patches 2022-03-21 13:11:56 +00:00
armvirt kernel: 5.10: consolidate mac80211 crypto options 2021-12-17 16:16:34 +01:00
at91 kernel: bump 5.10 to 5.10.111 2022-04-17 21:47:11 +02:00
ath25 ath25: drop Linux 5.4 support 2022-02-17 11:08:58 +01:00
ath79 ath79: add support for Sophos AP100/AP55 family 2022-04-19 21:45:46 +02:00
bcm27xx kernel: bump 5.10 to 5.10.111 2022-04-17 21:47:11 +02:00
bcm47xx kernel: delete Linux 5.4 config and patches 2022-03-21 13:11:56 +00:00
bcm53xx kernel: bump 5.10 to 5.10.110 2022-04-10 16:31:42 +01:00
bcm63xx kernel: bump 5.10 to 5.10.111 2022-04-17 21:47:11 +02:00
bcm4908 kernel: delete Linux 5.4 config and patches 2022-03-21 13:11:56 +00:00
bmips kernel: 5.10: consolidate mac80211 crypto options 2021-12-17 16:16:34 +01:00
gemini kernel: bump 5.10 to 5.10.94 2022-02-01 23:34:07 +00:00
generic Revert "kernel: backport MT7530 VLAN fix" 2022-04-19 14:52:49 +02:00
imx imx: fix USB support 2022-03-11 00:04:05 +01:00
ipq40xx kernel: bump 5.10 to 5.10.110 2022-04-10 16:31:42 +01:00
ipq806x kernel: bump 5.10 to 5.10.111 2022-04-17 21:47:11 +02:00
kirkwood target/linux: replace egrep with grep -E 2022-02-07 00:03:27 +01:00
lantiq lantiq: fritz736x: Move GPIO resets to the inidvidual board.dts files 2022-04-17 21:31:02 +02:00
layerscape kernel: delete Linux 5.4 config and patches 2022-03-21 13:11:56 +00:00
malta kernel: 5.10: consolidate mac80211 crypto options 2021-12-17 16:16:34 +01:00
mediatek mediatek/mt7622: enable accelerated crypto drivers 2022-04-15 14:04:32 +01:00
mpc85xx mpc85xx: move Extreme WS-AP3825i GPIO extender 2022-04-18 01:48:41 +02:00
mvebu mvebu: udpu: fix initramfs booting 2022-03-24 08:19:47 +01:00
mxs kernel: 5.10: consolidate mac80211 crypto options 2021-12-17 16:16:34 +01:00
octeon Revert "octeon: mark source-only" 2022-04-03 19:30:09 +03:00
octeontx kernel: bump 5.10 to 5.10.110 2022-04-10 16:31:42 +01:00
omap kernel: delete Linux 5.4 config and patches 2022-03-21 13:11:56 +00:00
oxnas kernel: 5.10: remove CONFIG_DEVTMPFS{,_MOUNT} from kconfigs 2022-03-01 22:57:40 +00:00
pistachio kernel: bump 5.10 to 5.10.95 2022-02-01 23:34:07 +00:00
qoriq qoriq: enable support for Marvell Alaska PHYs 2022-04-05 23:33:35 +02:00
ramips ramips: add support for ASUS RT-AC1200-V2 2022-04-19 21:45:46 +02:00
realtek realtek: add ZyXEL GS1900-24HP v1 support 2022-04-19 21:45:46 +02:00
rockchip kernel: include CONFIG_KEXEC_SIG in configs 2022-03-15 08:33:45 +01:00
sunxi sunxi: cortexa7: fix ethernet link detection on a20-olinuxino-lime2 2022-03-24 08:18:46 +01:00
tegra kernel: delete Linux 5.4 config and patches 2022-03-21 13:11:56 +00:00
uml uml: make use of 'rootfs-part' feature 2022-01-23 19:48:31 +00:00
x86 x86: Add support for Sophos XG 85 and XG 86 devices 2022-03-27 16:14:00 +01:00
zynq kernel: delete Linux 5.4 config and patches 2022-03-21 13:11:56 +00:00
Makefile target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00