realtek: rtl930x: add support for MokerLink 2G080GM - #25193
Open
ctalaveraw wants to merge 1 commit into
Open
ctalaveraw wants to merge 1 commit into
ctalaveraw wants to merge 1 commit into
Conversation
jonasjelonek
requested changes
Sep 15, 2026
openwrt-ai
reviewed
Sep 15, 2026
openwrt-ai
left a comment
Collaborator
There was a problem hiding this comment.
Commit checks
- 2478ad7 "realtek: rtl930x: add support for MokerLink 2G080GM" — the hardware specification omits the system LED (the DTS adds one), the UART header location/pinout and the power rating, and says "16 MiB SPI NOR" while the DTS names
fudan,fm25q128. - 2478ad7 — install step 2 reads "Select Upgrade, HTTP and Image0", but the PR body's tested procedure lists only Action and Method; make the two agree so the target slot is unambiguous.
Generated by Claude Code
The MokerLink 2G080GM is an 8-port 2.5GbE managed switch based on the Realtek RTL9303. Device specification: - SoC: Realtek RTL9303 - RAM: 128 MiB - Flash: 16 MiB Fudan FM25Q128 SPI NOR - Ethernet: 8x 10/100/1000/2500BASE-T - PHYs: 8x Realtek RTL8221B - Console: 38400 8N1 - Button: reset - LED: green system/status LED - Bootloader: Realtek U-Boot 2011.12 Flash layout: - 0x000000-0x0e0000: U-Boot - 0x0e0000-0x0f0000: U-Boot environment / BDINFO - 0x0f0000-0x100000: SYSINFO - 0x100000-0x200000: vendor configuration - 0x200000-0x300000: vendor log - 0x300000-0xf00000: firmware - 0xf00000-0x1000000: OEMINFO The factory MAC address is read from ethaddr in the U-Boot environment. The vendor bootloader uses legacy uImage magic 0x83800000. Generate both OpenWrt images with this magic and configure the firmware splitter accordingly. Installation: 1. Open Management -> Firmware in the stock web interface. 2. Select Upgrade and HTTP. 3. Upload the squashfs-factory.bix image. 4. Reboot after the upgrade completes. The factory image has been verified using the stock web upgrader. Normal OpenWrt sysupgrade is supported after installation. Signed-off-by: Christian Talavera <[email protected]>
ctalaveraw
force-pushed
the
mokerlink-2g080gm-submit
branch
from
September 15, 2026 18:31
2478ad7 to
d2dda9d
Compare
Author
|
Addressed the review feedback in d2dda9d:
The amended commit builds successfully, and the generated factory/sysupgrade images still use uImage magic 0x83800000 with the factory image remaining an exact prefix of the sysupgrade image. I did not add UART header pinout/location or power-rating details because those were not independently verified. |
openwrt-ai
reviewed
Sep 16, 2026
openwrt-ai
left a comment
Collaborator
There was a problem hiding this comment.
Commit checks
- d2dda9d "realtek: rtl930x: add support for MokerLink 2G080GM" — the Installation section documents no way back: the PR body lists "stock firmware restoration" as tested and gives a TFTP initramfs load address (0x84f00000) and console rate, none of which reach the commit message. Add a revert-to-stock / recovery note with the verbatim addresses.
Generated by Claude Code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds support for the MokerLink 2G080GM, an 8-port 2.5GbE
managed switch based on the Realtek RTL9303.
Device specification
The factory MAC address is stored as
ethaddrin the U-Bootenvironment at 0xe0000 and is exposed through NVMEM.
Flash layout
0x000000-0x0e0000: U-Boot / LOADER0x0e0000-0x0f0000: U-Boot environment / BDINFO0x0f0000-0x100000: SYSINFO0x100000-0x200000: vendor configuration / JFFS2 CFG0x200000-0x300000: vendor log / JFFS2 LOG0x300000-0xf00000: firmware / RUNTIME0xf00000-0x1000000: OEMINFOImage format
The stock bootloader uses legacy uImage magic
0x83800000for theRUNTIME image.
This PR sets both
UIMAGE_MAGICandopenwrt,ih-magicto0x83800000so that the image generated by OpenWrt is accepted by thevendor bootloader and correctly split into kernel/rootfs partitions by
OpenWrt.
A dedicated
squashfs-factory.biximage is generated for installationfrom the stock web interface. The regular
squashfs-sysupgrade.binimage is used for subsequent OpenWrt upgrades.
Installation from stock firmware
Management -> Firmwarein the stock web interface.UpgradeHTTPsquashfs-factory.biximage.No U-Boot environment modification is required for normal
installation.
Recovery
An OpenWrt initramfs image can be loaded from U-Boot via TFTP at
0x84f00000.The serial console operates at
38400 8N1.The stock firmware boots from the RUNTIME partition at
0xb4300000.Hardware validation
Tested on a MokerLink 2G080GM:
factory.bixinstallationThe stock web upgrader was also tested with an intentionally invalid
uImage header checksum and correctly rejected the image.
The final patch was built successfully against current OpenWrt
main.