immortalwrt/package/boot
Soma Zambelly b9cb1ba2a5 realtek: add ZyXEL GS1900-24HPv2 support
The ZyXEL GS1900-24HPv2 is a 24 port PoE switch with two SFP ports, similar to the other GS1900 switches.

Specifications
--------------
* Device:    ZyXEL GS1900-24HPv2
* SoC:       Realtek RTL8382M 500 MHz MIPS 4KEc
* Flash:     16 MiB
* RAM:       W631GG8MB-12 128 MiB DDR3 SDRAM
             (stock firmware is configured to use only 64 MiB)
* 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 "RESTORE" button on front panel
             1 "RESET" button on front panel
* Power      120-240V AC C13
* UART:      1 serial header (J41) with populated standard pin connector on
             the left edge of the PCB, angled towards the side.
             The casing has a rectangular cutout on the side that provides
             external access to these pins.
             Pinout (front to back):
             + GND
             + TX
             + RX
             + VCC

Serial connection parameters for both devices: 115200 8N1.

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

OEM upgrade method:

(Possible on master once https://patchwork.ozlabs.org/project/openwrt/patch/20210624210408.19248-1-bjorn@mork.no/ is merged)

* 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-generic-zyxel_gs1900-24hp-v2-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 -n /tmp/openwrt-realtek-generic-zyxel_gs1900-24hp-v2-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-24HPv2 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-24hp-v2-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-24hp-v2-squashfs-sysupgrade.bin
   it may be necessary to restart the network (/etc/init.d/network restart) on
   the running initramfs image.

Signed-off-by: Soma Zambelly <zambelly.soma@gmail.com>
2021-09-21 23:51:59 +08:00
..
arm-trusted-firmware-mediatek arm-trusted-firmware-mediatek: update to git HEAD 2021-05-09 20:49:53 +08:00
arm-trusted-firmware-mvebu arm-trusted-firmware-mvebu: Add hash for aarch64 cm3-gcc 2021-09-21 23:50:49 +08:00
arm-trusted-firmware-rockchip atf-rockchip: update to 2.3 2020-07-18 13:24:44 +08:00
arm-trusted-firmware-rockchip-vendor arm-trusted-firmware-rockchip-vendor: workaround for VARIANT issue 2021-08-13 00:36:15 +08:00
arm-trusted-firmware-sunxi sunxi: add support for OrangePi 3 2021-06-20 13:12:45 +08:00
arm-trusted-firmware-tools arm-trusted-firmware-tools: add patch to pass LDFLAGS 2021-02-11 12:09:41 +08:00
at91bootstrap at91bootstrap: Fix compile with binutils 2.36 2021-08-21 12:15:52 +08:00
aw-el2-barebone sunxi: add support for OrangePi 3 2021-06-20 13:12:45 +08:00
fconfig treewide: unify OpenWrt hosted source via @OPENWRT 2021-02-08 12:11:32 +08:00
grub2 grub2: update to 2.06 2021-06-22 15:35:29 +08:00
imx-bootlets imx-bootlets: refresh patches 2021-02-25 12:02:55 +08:00
kexec-tools kexec-tools: add patch to fix issue with appended DTB and zImage on ARM 2021-05-23 23:28:54 +08:00
kobs-ng fix & merge 2019-09-30 13:21:19 +08:00
mt7623n-preloader mediatek: mt7623n-preloader: add preloader for Banana Pi R64 2020-09-20 11:36:49 +08:00
tfa-layerscape tfa-layerscape: build fiptool again 2021-02-21 12:09:07 +08:00
uboot-at91 uboot-at91: fix dtc compilation on host gcc 10 2021-08-21 12:15:40 +08:00
uboot-envtools realtek: add ZyXEL GS1900-24HPv2 support 2021-09-21 23:51:59 +08:00
uboot-fritz4040 kernel: bump to 4.14.169, 4.19.101 (#2963) 2020-02-06 21:45:40 +08:00
uboot-imx6 uboot-imx6: update BUILD_DEVICES values 2021-05-20 23:18:50 +08:00
uboot-kirkwood uboot-kirkwood: refresh patches 2021-06-07 23:25:28 +08:00
uboot-lantiq fix permission 2019-09-30 13:52:50 +08:00
uboot-layerscape uboot-layerscape: fix dtc compilation on host gcc 10 2021-08-09 12:10:23 +08:00
uboot-mediatek uboot-mediatek: pass console=tty1 for BPi-R2 2021-08-21 12:18:04 +08:00
uboot-mvebu uboot-mvebu: update to v2021.07 2021-07-26 12:16:13 +08:00
uboot-mxs kernel: bump to 4.14.169, 4.19.101 (#2963) 2020-02-06 21:45:40 +08:00
uboot-omap omap: update uboot to v2020.04 2020-10-04 21:47:49 +08:00
uboot-oxnas kernel: bump to 4.14.169, 4.19.101 (#2963) 2020-02-06 21:45:40 +08:00
uboot-rockchip uboot-rockchip: fix typo error of patch name 2021-08-15 18:08:20 +08:00
uboot-sunxi uboot-sunxi: orangepi-3: simplified patches 2021-07-05 23:56:55 +08:00
uboot-tegra uboot-tegra: bump to 2020.04 2020-12-23 11:24:19 +08:00
uboot-zynq uboot-zynq: fix dtc compilation on host gcc 10 2020-12-15 11:29:33 +08:00