Skip to content
Contents

H3C Magic NX30 Pro

How to install OpenWrt on the H3C Magic NX30 Pro using a TFTP recovery boot

Match the exact model, revision and boot layout. Separate preparation, backups, initial installation, upgrades, recovery and return to stock by their evidence. Partial or conflicting evidence remains explicitly identified; this is not a claim of hardware testing.

Back to device overview

Partial guide — the available steps do not constitute a complete procedure.

Match the exact model, revision and boot layout. Separate preparation, backups, initial installation, upgrades, recovery and return to stock by their evidence. Partial or conflicting evidence remains explicitly identified; this is not a claim of hardware testing.

Hardware record and applicability

Item Packaged ToH snapshot
Model H3C Magic NX30 Pro
Hardware revision Unspecified; verify the unit and applicable source
Processor MediaTek MT7981BA
RAM 256 MB
Flash 128 MB nand
Gigabit ports 4.0
2.5G ports 0
Recorded release 25.12.1

The table describes the packaged ToH snapshot, not a new physical inspection. Total capacity is not writable space. Where a commit and Wiki differ, retain the conflict and check the actual layout. Similar names, SoCs or photographs do not establish compatibility with another revision. Packaged OpenWrt ToH snapshot

Decision sequence before operating

Confirm the exact device and record its stock version, bootloader and partition layout. Then verify the chosen release profile, image type, source and checksum. Export backups to a computer, distinguishing settings, boot regions, calibration, individual identity and user data. If a complete backup or stock-return procedure is absent from the evidence, do not invent commands. Stop until mandatory preparation is complete.

Verify the firmware SHA-256

Follow only the installation branch matching the current conditions and verify each result. Temporary initramfs, persistent installation, ordinary upgrades and layout conversion are different stages. An OpenWrt prompt does not prove that all required writes are complete. Stop after a failed write, identity mismatch or unresolved conflict; do not force an operation past validation.

Applicability

This guide concerns the H3C Magic NX30 Pro. The original device record does not specify a hardware revision. Check the device label and stock firmware version; do not assume this applies to other models or revisions.

Hardware specifications

The OpenWrt support commit lists a MediaTek MT7981B dual-core Cortex-A53 processor, 256 MB RAM, 128 MB NAND flash, four Gigabit Ethernet ports, and a MediaTek MT7976C wireless chip. See the support commit. These specifications alone do not establish compatibility with any particular hardware revision; verify the model and hardware version before flashing.

Risks and preparation

This procedure writes the BL2 and FIP bootloader partitions. An incorrect file, partition or command can leave the device unbootable. The initial support commit requires a backup of all MTD partitions, but does not provide a complete backup or recovery procedure. Stop if you cannot reliably back them up and confirm how to recover. Maintain power and use a wired connection.

The stock firmware versions and regions exposing Telnet, and current image checksums, have not been verified. This article describes locally reviewed OpenWrt commits; it has been checked against the official device page, which still contains incomplete templates.

Select files

Prepare preloader.bin, bl31-uboot.fip, initramfs-recovery.itb and sysupgrade.itb that match this exact device, hardware and selected OpenWrt version. Check stable and SNAPSHOT files against their respective versions; do not mix them or rely on similar names as proof of compatibility. Verify the source, version and checksums before use.

1. Stock firmware: connect and transfer bootloader files

  1. Connect the computer to the router by Ethernet and ensure it can reach the stock management address. On the computer run:

    telnet 192.168.124.1 99
    
  2. The commit specifies username H3C and the router's stock web administration password. Stop if login fails or the stock firmware does not expose this entry point; availability across versions is unverified.

  3. In the computer directory containing the two bootloader files, start a temporary HTTP server:

    python3 -m http.server 80
    
  4. In the router Telnet session, download each file using the format from the commit. Replace the address with the computer's actual IP on the stock network and replace the filename with the actual file; run separately for each file.

    wget http://192.168.124.xx/xxx.bin
    

2. Write the OpenWrt bootloader

Before any BL2/FIP write, confirm this unit’s actual TFTP trigger, boot configuration and available rescue procedure, and verify that every partition backup is recoverable. An ordinary reboot does not guarantee TFTP; do not write if any condition is unconfirmed.

Start a server on the computer if the router requests a file. If the bootloader waits for an upload, use a client in binary mode. Windows: start Tftpd64 or upload · macOS: start dnsmasq or upload · Read RRQ, WRQ and timeout logs

After backing up all MTD partitions and confirming that files and partitions match, the initial support commit specifies this order. Replace the placeholder filenames xxx-preloader.bin and xxx-bl31-uboot.fip with the verified local filenames. BL2 and FIP are the partition names in the commit; do not guess or substitute them.

mtd write xxx-preloader.bin BL2
mtd write xxx-bl31-uboot.fip FIP

Stop if a step fails or partition information differs; do not continue writing or reboot. Writing the bootloader can brick the device.

3. Boot the recovery image using TFTP

  1. Connect the computer to a router LAN port, configure its static IP as 192.168.1.254 and gateway as 192.168.1.1, and prepare a TFTP server on the computer. This network differs from the stock Telnet network.

  2. After verifying that the recovery image matches the device and selected version, put it in the TFTP root using the filename requested by the upstream U-Boot default configuration:

    openwrt-mediatek-filogic-h3c_magic-nx30-pro-initramfs-recovery.itb
    

    A downloaded release filename may include a version prefix. Renaming only changes the TFTP filename; it neither changes the image content nor proves compatibility.

  3. An ordinary reboot does not guarantee that TFTP will start. In this commit’s default U-Boot configuration, boot_ubi tries the production system, then the recovery system; it enters the TFTP recovery loop only if neither boots successfully. The initialization path’s boot_first also contains a reset-button condition, but behavior depends on the bootloader version and existing environment variables; do not assume a universal button procedure. The addresses and filename above are defaults too. Verify the device’s actual configuration and applicable recovery method before proceeding; stop if they cannot be confirmed.

4. Install the production system from temporary OpenWrt

The support commit says to perform sysupgrade with a matching sysupgrade.itb after OpenWrt boots. It does not provide a complete command or interface for this step. Do not guess parameters before checking the official instructions for the selected release.

Still to verify

The official device page has been checked; its TFTP and backup details remain incomplete. Stock Telnet availability, complete MTD backup and recovery, detailed TFTP setup, current checksums and final upgrade instructions remain unverified. Pause if they cannot be confirmed.

Reference

The wiki shows stock and OpenWrt MTD layout examples with different numbering. Names include BL2, u-boot-env, Factory, FIP and ubi; use them for verification, not to guess backup or write commands.

The official device wiki has been reviewed. Its templates and examples were not treated as device-specific steps; image versions and recovery conditions still need verification. OpenWrt Wiki (CC BY-SA 4.0).

Post-installation checks and maintenance record

After reboot, check the reported device, software version, storage layout and required wired ports before testing DNS, IPv6, wireless and actual applications. Set an administrator password and preserve wired management access. Test restart recovery and record cabling, management addresses, versions and changes. Stock, migration and rescue environments do not establish universal post-installation addresses or credentials.

Before later upgrades, recheck the profile, current layout, release notes and configuration-retention conditions. Treat stable and SNAPSHOT separately. A configuration backup is not a full partition backup; recovering OpenWrt and restoring OEM firmware are different tasks. When evidence for stock restoration, checksums or rescue prerequisites is incomplete, keep that limitation visible rather than promising a button or arbitrary OEM file will work.

Back up and restore settings

Source dates, attribution and verification boundary

Support commits and subsequent corrections were read from the local OpenWrt repository; reader links do not mean GitHub was queried. Wiki evidence retains its recorded check date. The editorial date is not verification of current binaries, every stock version or physical installation. Adapted Wiki material credits OpenWrt Wiki contributors under CC BY-SA 4.0; original ToH provenance is retained separately. CC BY-SA 4.0

Appearance reference only; a photograph does not identify NAND, PCB revision or the current boot layout.

Original image source — 茶栗栗屋 / chariri.moe; original labelled rear photograph; Community device photograph; original bytes; rights retained by source

Appearance reference only; a photograph does not identify NAND, PCB revision or the current boot layout.

Original image source — OpenWrt ToH picture reference; original bytes; rights retained by source

Match the image to its purpose

OpenWrt ToH · 2026-11-27 · 25.12.6

OpenWrt Table of Hardware

Guide sources

Comments