openwrt/target/linux/realtek
Davide Fioravanti ea42a04161 realtek: add support for Netgear GS750E
This is an RTL8393-based switch with 48 RJ-45 and 2 SFP ports.

Hardware
--------
SoC:	Realtek RTL8393M
RAM:	128MB DDR3 (Nanya NT5CC64M16GP-DI)
FLASH:	8MB NOR (Macronix MX25L6433F)
ETH:	48x 10/100/1000 Mbps RJ-45 Ethernet
SFP:	2x SFP
BTN:
  - 1x	Reset button
LEDS:
  - 50x	Green-Amber leds: lan/sfp status
  - 1x	Green led: power (Always on)
UART:
  - 115200-8-N-1 (CN3, pin-out on PCB)

Everything works correctly except for the 2 SFP ports that are not
working unless you enable it every boot in U-Boot with the command:
	rtk network on

Installation
------------
You can install Openwrt using one of the following methods.

Warning: flashing OpenWrt will delete your current configuration.
Warning 2: if the -factory.bix file is not available anymore, you must
follow Method 2.

Method 1:
Check the firmware version currently running on your switch. If you are
running FW V1.0.1.10 or greater, you have to download the firmware
V1.0.1.8 from Netgear website and then flash this version. When the
switch restarts, it should be on version V1.0.1.8. Now you can get the
OpenWrt -factory.bix file and then flash it using the OEM web interface.

Method 2 (requires the UART connection):
Boot the -initramfs-kernel.bin image from U-Boot with these commands:
	rtk network on;
	tftpboot 0x8f000000 openwrt-realtek-rtl839x-netgear_gs750e-initramfs-kernel.bin;
	bootm;
And then flash the -sysupgrade.bin file from OpenWrt.

Revert to stock
---------------
Get the stock firmware from the Netgear website and flash it using the
OpenWrt web interface. Remember to not keep the current configuration
and check the "Force upgrade" checkbox

Once reverted to stock the firmware could complain in the UART console
about mtdblock3 and/or mtdblock4 not being mounted correctly but it
seems to work anyway without any problems. Sample error:
	mount: Mounting /dev/mtdblock4 on /mntlog failed: Input/output error

If you want to get rid of these error messages you can boot the
-initramfs-kernel.bin image from U-Boot with these commands:
	rtk network on;
	tftpboot 0x8f000000 openwrt-realtek-rtl839x-netgear_gs750e-initramfs-kernel.bin;
	bootm;

And then erase the corresponding partitions using the command:
	For mtdblock3:
		mtd erase jffs2_cfg
	For mtdblock4:
		mtd erase jffs2_log

Now you can reboot the switch and the errors should be gone

Note
----
To get the SFP ports fully working, all the right GPIOs must be found.
In the GPL sources I found these:
 - GPIO_14: SFP_TX_DIS1;
 - GPIO_19: SFP_TX_DIS0;

Signed-off-by: Davide Fioravanti <pantanastyle@gmail.com>
2023-01-13 22:28:36 +01:00
..
base-files
dts-5.10 realtek: add support for Netgear GS750E 2023-01-13 22:28:36 +01:00
dts-5.15 realtek: add support for Netgear GS750E 2023-01-13 22:28:36 +01:00
files/firmware/rtl838x_phy
files-5.10 realtek: Migrate to upstream generic MIPS addresses 2023-01-05 21:59:20 +01:00
files-5.15 realtek: 5.15: Improve error handling in rtl838x_pie_rule_write() 2023-01-05 23:09:23 +01:00
image realtek: add support for Netgear GS750E 2023-01-13 22:28:36 +01:00
patches-5.10 kernel: Refresh kernel patches 2023-01-07 14:53:10 +01:00
patches-5.15 kernel: Refresh kernel patches 2023-01-08 14:55:44 +01:00
profiles
rtl838x realtek: Disable boston clock 2023-01-01 22:31:20 +01:00
rtl839x realtek: rtl839x: enable driver for virtual mtd_concat devices in config 2023-01-13 22:22:38 +01:00
rtl930x realtek: Disable boston clock 2023-01-01 22:31:20 +01:00
rtl931x realtek: Disable boston clock 2023-01-01 22:31:20 +01:00
Makefile realtek: Cleanup Makefiles 2022-12-27 16:33:15 +01:00