2021-12-29 18:39:26 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
|
|
|
|
|
|
|
|
define Device/allnet_all-sg8208m
|
|
|
|
SOC := rtl8382
|
|
|
|
IMAGE_SIZE := 7168k
|
|
|
|
DEVICE_VENDOR := ALLNET
|
|
|
|
DEVICE_MODEL := ALL-SG8208M
|
|
|
|
UIMAGE_MAGIC := 0x00000006
|
|
|
|
UIMAGE_NAME := 2.2.2.0
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += allnet_all-sg8208m
|
|
|
|
|
|
|
|
define Device/d-link_dgs-1210
|
|
|
|
SOC := rtl8382
|
|
|
|
IMAGE_SIZE := 13824k
|
|
|
|
DEVICE_VENDOR := D-Link
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Device/d-link_dgs-1210-10p
|
|
|
|
$(Device/d-link_dgs-1210)
|
|
|
|
DEVICE_MODEL := DGS-1210-10P
|
|
|
|
DEVICE_PACKAGES += lua-rs232
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += d-link_dgs-1210-10p
|
|
|
|
|
|
|
|
define Device/d-link_dgs-1210-16
|
|
|
|
$(Device/d-link_dgs-1210)
|
|
|
|
DEVICE_MODEL := DGS-1210-16
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += d-link_dgs-1210-16
|
|
|
|
|
|
|
|
define Device/d-link_dgs-1210-28
|
|
|
|
$(Device/d-link_dgs-1210)
|
|
|
|
DEVICE_MODEL := DGS-1210-28
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += d-link_dgs-1210-28
|
|
|
|
|
|
|
|
define Device/inaba_aml2-17gp
|
|
|
|
SOC := rtl8382
|
|
|
|
IMAGE_SIZE := 13504k
|
|
|
|
DEVICE_VENDOR := INABA
|
|
|
|
DEVICE_MODEL := Abaniact AML2-17GP
|
|
|
|
UIMAGE_MAGIC := 0x83800000
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += inaba_aml2-17gp
|
|
|
|
|
realtek: add support for I-O DATA BSH-G24MB
I-O DATA BSH-G24MB is a 24 port gigabit switch, based on RTL8382M.
Specification:
- SoC : Realtek RTL8382M
- RAM : DDR2 128 MiB (Nanya NT5TU128M8HE-AC)
- Flash : SPI-NOR 16 MiB (Macronix MX25L12835FM2I-10G)
- Ethernet : 10/100/1000 Mbps x24
- port 1-8 : RTL8218B
- port 9-16 : RTL8218B (SoC)
- port 17-24 : RTL8218B
- LEDs/Keys : 2x, 1x
- UART : pin header on PCB
- JP2: 3.3V, TX, RX, GND from rear side
- 115200n8
- Power : 100 VAC, 50/60 Hz
- Plug : IEC 60320-C13
Flash instruction using sysupgrade image:
1. Boot BSH-G24MB normally
2. Connect BSH-G24MB to the DHCP enabled network
3. Find the device's IP address and open the WebUI and login
Note: by default, the device obtains IP address from DHCP server of
the network
4. Open firmware update page ("ファームウェア アップデート")
5. Rename the OpenWrt sysupgrade image to "bsh-g24mb_v100.image" and
select it
6. Press apply ("適用") button to perform update
7. Wait ~150 seconds to complete flashing
Note:
- BSH-G24MB has a power-related LED ("電源"), but it's not connected to
the GPIO of the SoC or RTL8231 and cannot be controlled. Instead of
it, use system status LED on other than running-state.
- "sys_loop" LED indicates system status and loop-detection status in
stock firmware.
- BSH-G24MB has 2x os-image partitions named as "RUNTIME"/"RUNTIME2" in
16 MiB SPI-NOR flash and the size of image per partition is only
6848 KiB. The secondary image is never used on stock firmware, so also
use it on OpenWrt to get more space.
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
2021-04-17 01:10:27 +00:00
|
|
|
define Device/iodata_bsh-g24mb
|
|
|
|
SOC := rtl8382
|
|
|
|
IMAGE_SIZE := 13696k
|
|
|
|
DEVICE_VENDOR := I-O DATA
|
|
|
|
DEVICE_MODEL := BSH-G24MB
|
|
|
|
UIMAGE_MAGIC := 0x83800013
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += iodata_bsh-g24mb
|
|
|
|
|
2021-12-29 18:39:26 +00:00
|
|
|
define Device/netgear_gs108t-v3
|
|
|
|
$(Device/netgear_nge)
|
|
|
|
DEVICE_MODEL := GS108T
|
|
|
|
DEVICE_VARIANT := v3
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += netgear_gs108t-v3
|
|
|
|
|
|
|
|
define Device/netgear_gs110tpp-v1
|
|
|
|
$(Device/netgear_nge)
|
|
|
|
DEVICE_MODEL := GS110TPP
|
|
|
|
DEVICE_VARIANT := v1
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += netgear_gs110tpp-v1
|
|
|
|
|
|
|
|
define Device/netgear_gs308t-v1
|
|
|
|
$(Device/netgear_nge)
|
|
|
|
DEVICE_MODEL := GS308T
|
|
|
|
DEVICE_VARIANT := v1
|
|
|
|
UIMAGE_MAGIC := 0x4e474335
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += netgear_gs308t-v1
|
|
|
|
|
|
|
|
define Device/netgear_gs310tp-v1
|
|
|
|
$(Device/netgear_nge)
|
|
|
|
DEVICE_MODEL := GS310TP
|
|
|
|
DEVICE_VARIANT := v1
|
|
|
|
UIMAGE_MAGIC := 0x4e474335
|
|
|
|
DEVICE_PACKAGES += lua-rs232
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += netgear_gs310tp-v1
|
|
|
|
|
|
|
|
define Device/zyxel_gs1900
|
|
|
|
SOC := rtl8380
|
|
|
|
IMAGE_SIZE := 6976k
|
|
|
|
DEVICE_VENDOR := ZyXEL
|
|
|
|
UIMAGE_MAGIC := 0x83800000
|
|
|
|
KERNEL_INITRAMFS := kernel-bin | append-dtb | gzip | zyxel-vers | \
|
|
|
|
uImage gzip
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Device/zyxel_gs1900-10hp
|
|
|
|
$(Device/zyxel_gs1900)
|
|
|
|
DEVICE_MODEL := GS1900-10HP
|
|
|
|
ZYXEL_VERS := AAZI
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += zyxel_gs1900-10hp
|
|
|
|
|
|
|
|
define Device/zyxel_gs1900-8
|
|
|
|
$(Device/zyxel_gs1900)
|
|
|
|
DEVICE_MODEL := GS1900-8
|
|
|
|
ZYXEL_VERS := AAHH
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += zyxel_gs1900-8
|
|
|
|
|
|
|
|
define Device/zyxel_gs1900-8hp-v1
|
|
|
|
$(Device/zyxel_gs1900)
|
|
|
|
DEVICE_MODEL := GS1900-8HP
|
|
|
|
DEVICE_VARIANT := v1
|
|
|
|
ZYXEL_VERS := AAHI
|
|
|
|
DEVICE_PACKAGES += lua-rs232
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += zyxel_gs1900-8hp-v1
|
|
|
|
|
|
|
|
define Device/zyxel_gs1900-8hp-v2
|
|
|
|
$(Device/zyxel_gs1900)
|
|
|
|
DEVICE_MODEL := GS1900-8HP
|
|
|
|
DEVICE_VARIANT := v2
|
|
|
|
ZYXEL_VERS := AAHI
|
|
|
|
DEVICE_PACKAGES += lua-rs232
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += zyxel_gs1900-8hp-v2
|
|
|
|
|
realtek: add ZyXEL GS1900-24 v1 support
The ZyXEL GS1900-24 v1 is a 24 port switch with two SFP ports, similar to
the other GS1900 switches.
Specifications
--------------
* Device: ZyXEL GS1900-24 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)
* 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 SIPEX 3232EC 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-24-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-24-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-24 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-24-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-24-v1-squashfs-sysupgrade.bin
Signed-off-by: Martin Kennedy <hurricos@gmail.com>
2022-03-05 19:02:36 +00:00
|
|
|
define Device/zyxel_gs1900-24-v1
|
|
|
|
$(Device/zyxel_gs1900)
|
|
|
|
SOC := rtl8382
|
|
|
|
DEVICE_MODEL := GS1900-24
|
|
|
|
DEVICE_VARIANT := v1
|
|
|
|
ZYXEL_VERS := AAHL
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += zyxel_gs1900-24-v1
|
|
|
|
|
2021-12-29 18:39:26 +00:00
|
|
|
define Device/zyxel_gs1900-24hp-v2
|
|
|
|
$(Device/zyxel_gs1900)
|
|
|
|
SOC := rtl8382
|
|
|
|
DEVICE_MODEL := GS1900-24HP
|
|
|
|
DEVICE_VARIANT := v2
|
|
|
|
ZYXEL_VERS := ABTP
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += zyxel_gs1900-24hp-v2
|