openwrt/target/linux
Raylynn Knight a11c3cde27 realtek: add support for ZyXEL GS1900-16
The ZyXEL GS1900-16 is a 16 port gigabit switch similar to other GS1900 switches.

Specifications
--------------
* Device:    ZyXEL GS1900-16
* SoC:       Realtek RTL8382M 500 MHz MIPS 4KEc
* Flash:     16 MiB Macronix MX25L12835F
* RAM:       128 MiB DDR2 SDRAM Nanya NT5TU128M8HE
* Ethernet:  16x 10/100/1000 Mbps
* LEDs:      1 PWR LED (green, not configurable)
             1 SYS LED (green, configurable)
             16 ethernet port link/activity LEDs (green, SoC controlled)
* Buttons:   1 "RESET" button on front panel
* Power      120-240V AC C13
* UART:      1 serial header (J12) with populated standard pin connector on
             the right back of the PCB.
             Pinout (front to back):
             + Pin 1 - VCC marked with white dot
             + Pin 2 - RX
             + Pin 3 - TX
             + PIn 4 - GND

Serial connection parameters:  115200 8N1.

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

OEM upgrade method:

* Log in to OEM management web interface
* Navigate to Maintenance > Firmware
* Select the HTTP radio button
* Select the Active radio button
* Use the browse button to locate the
realtek-generic-zyxel_gs1900-16-initramfs-kernel.bin
file amd select open so File Path is update with filename.
* Select the Apply button. Screen will display "Prepare
for firmware upgrade ...".
*Wait until screen shows "Do you really want to reboot?"
then select the OK button
* Once OpenWrt has booted, scp the sysupgrade image to /tmp and flash it:
   > sysupgrade -n /tmp/realtek-generic-zyxel_gs1900-16-squashfs-sysupgrade.bin
   it may be necessary to restart the network (/etc/init.d/network restart) on
   the running initramfs image.

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-16 is a dual-partition device, you want to keep the OEM
  firmware on the backup partition for the time being. OpenWrt can only boot
  from the first partition anyway (hardcoded in the DTS). To make sure we are
  manipulating the first partition, issue the following commands:
  > setsys bootpartition 0
  > savesys
* Download the image onto the device and boot from it:
   > tftpboot 0x84f00000 192.168.1.10:openwrt-realtek-generic-zyxel_gs1900-16-initramfs-kernel.bin
   > bootm
* Once OpenWrt has booted, scp the sysupgrade image to /tmp and flash it:
   > sysupgrade -n /tmp/openwrt-realtek-generic-zyxel_gs1900-16-squashfs-sysupgrade.bin
   it may be necessary to restart the network (/etc/init.d/network restart) on
   the running initramfs image.

Signed-off-by: Raylynn Knight <rayknight@me.com>
[removed duplicate patch title, align RAM specification]
Signed-off-by: Sander Vanheule <sander@svanheule.net>
(cherry picked from commit 580723e86a)
2022-05-17 21:14:46 +02:00
..
apm821xx kernel: bump 5.10 to 5.10.114 2022-05-17 20:50:27 +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.113 2022-05-01 14:13:15 +02:00
ath25 ath25: drop Linux 5.4 support 2022-02-17 11:08:58 +01:00
ath79 ath79: add Netgear WNDAP360 2022-05-17 21:14:46 +02:00
bcm27xx kernel: bump 5.10 to 5.10.114 2022-05-17 20:50:27 +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 bcm63xx: fix description fix name case 2022-05-01 13:23:12 +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 kernel: Add missing devm_regulator_get_exclusive() 2022-05-17 21:14:23 +02:00
imx imx: fix USB support 2022-03-11 00:04:05 +01:00
ipq40xx kernel: bump 5.10 to 5.10.115 2022-05-17 20:50:34 +02: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 kernel: bump 5.10 to 5.10.114 2022-05-17 20:50:27 +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: add patches for MT7622 WED (wireless ethernet dispatch) 2022-05-06 19:57:57 +02:00
mpc85xx mpc85xx: Fix output location of padded dtb 2022-05-01 13:23:12 +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: bump 5.10 to 5.10.112 2022-05-01 14:13:14 +02: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 led_source for Asus RT-AC1200 devices 2022-05-17 21:14:46 +02:00
realtek realtek: add support for ZyXEL GS1900-16 2022-05-17 21:14: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