PAOLU DADA
← Back to Learn

How to Install OpenWrt on the HiWiFi HC5861 (Complete Step-by-Step Guide)

OpenWrtHiWiFi HC5861Firmware
PAOLU DADA7/7/2026

How to Install OpenWrt on the HiWiFi HC5861 (Complete Step-by-Step Guide)

The HiWiFi HC5861 is a surprisingly capable router that can be brought back to life by installing OpenWrt. After flashing OpenWrt, you'll gain full control over your router, including package management, VPN support, VLAN configuration, advanced firewall features, and much more.

This guide walks you through the complete installation process, from enabling SSH access to flashing U-Boot and installing the latest OpenWrt firmware.

Difficulty: Intermediate

Estimated Time: 15–30 minutes

Test Environment

  • Router: HiWiFi HC5861
  • Firmware: OpenWrt 24.10.4
  • Operating System: Windows 11
  • Ethernet Connection Required

Before You Start

Flashing firmware always carries some risk.

Please read the following notes carefully before continuing:

  • Never disconnect the power while flashing.
  • Make sure you are using the correct firmware for the HC5861.
  • Use a stable wired Ethernet connection.
  • Back up any important data before starting.

Warning

Flashing the bootloader incorrectly may permanently brick your router.


Requirements

Prepare the following items before starting:

  • HiWiFi HC5861 router
  • Windows PC or laptop
  • Ethernet cable
  • PuTTY
  • WinSCP
  • hiwifi-ssh-launcher
  • OpenWrt firmware
  • HC5861 U-Boot image

Downloads


Step 1 — Reset the Router

Start by restoring the router to its factory settings.

You can do this in either of two ways:

  • Reset through the router's web interface (recommended if you can still access it)
  • Press and hold the RESET button for approximately 10 seconds

Wait until the router finishes rebooting.


Step 2 — Connect Your Computer

Connect your computer directly to the router using an Ethernet cable.

Computer │ Ethernet Cable │ HC5861 LAN Port (Yellow Port)

For the most reliable connection:

  • Connect one end of the cable to your computer.
  • Connect the other end to one of the yellow LAN ports.
  • Disable Wi-Fi on your computer to ensure the wired connection is used exclusively.

Step 3 — Configure Static IP Addresses

Configure the following IPv4 addresses on your computer:

Primary:

192.168.1.233

Secondary:

192.168.199.233

After configuration, open Command Prompt and continuously ping the router:

ping 192.168.199.1 -t

You should receive continuous replies.

If the router does not respond, go back and verify:

  • Router has finished booting
  • Ethernet cable is connected properly
  • Static IP configuration is correct

Step 4 — Enable SSH Access

Launch:

hiwifi-ssh-launcher-windows-amd64.exe

The utility will attempt to enable SSH on the router.

Sometimes the process may fail on the first attempt.

If that happens:

  • Close the program.
  • Run it again.
  • Repeat if necessary.

When successful, the program will indicate that SSH has been enabled.


Step 5 — Upload Required Files

Open WinSCP and create a new SCP connection.

Connection settings:

ItemValue
ProtocolSCP
Host192.168.199.1
Usernameroot
Passwordadmin

Upload the following files into:

/tmp

For example:

HC5861-uboot.bin openwrt-24.10.4-ramips-mt7620-hiwifi_hc5861-squashfs-sysupgrade.bin

Step 6 — Flash the U-Boot Bootloader

Open PuTTY and connect to:

192.168.199.1

After logging in:

cd /tmp

Flash the bootloader:

mtd write /tmp/HC5861-uboot.bin u-boot

Wait until the command finishes.

Do not power off the router.


Step 7 — Install OpenWrt

Once the bootloader has been flashed successfully, install the OpenWrt firmware:

sysupgrade -F -n /tmp/openwrt-24.10.4-ramips-mt7620-hiwifi_hc5861-squashfs-sysupgrade.bin

The router will begin flashing the firmware and automatically reboot.

Do not interrupt the process.


Step 8 — Wait for the Router to Reboot

The first boot usually takes between 2 and 3 minutes.

While waiting, monitor the router by running:

ping 192.168.1.1 -t

Once replies begin appearing:

  • Wait an additional minute.
  • Open your browser.
  • Visit:
http://192.168.1.1

You should now see the OpenWrt LuCI interface.

Set a new administrator password and complete the initial configuration.

Congratulations!

Your HC5861 is now running OpenWrt.


Troubleshooting

Cannot ping 192.168.199.1

Possible causes:

  • Incorrect static IP configuration
  • Faulty Ethernet cable
  • Router has not finished booting
  • Connected to the wrong LAN port

SSH Launcher Failed

The SSH launcher occasionally fails.

Simply run it again.

Multiple attempts are sometimes required.


WinSCP Connection Refused

Verify:

  • SSH has been enabled successfully.
  • SCP protocol is selected.
  • Username is root.
  • Password is admin.

Router Doesn't Boot After Flashing

Do not disconnect the power immediately.

Some firmware versions require several minutes for the first boot.

If the router still fails to boot after waiting, recovery via the bootloader may be required.


Frequently Asked Questions

Is OpenWrt officially supported on the HC5861?

Always verify the latest compatibility information on the official OpenWrt project before flashing.

Will flashing OpenWrt erase my settings?

Yes.

The installation process will erase the existing configuration.

Can I restore the original firmware later?

In most cases, yes, provided you have a compatible factory firmware image and an appropriate recovery method.


Conclusion

Installing OpenWrt on the HiWiFi HC5861 unlocks a wide range of advanced networking features that are unavailable in the stock firmware.

Although the process involves several steps, following this guide carefully should help you complete the installation safely.

If this guide helped you, consider bookmarking PAOLUDADA for more embedded development tutorials, networking guides, and industrial communication resources.


Related Articles

  • How to Back Up Your OpenWrt Configuration
  • Best OpenWrt Packages for Home Networks
  • Enable SSH on Legacy HiWiFi Routers
  • Recover a Bricked OpenWrt Router

Disclaimer

This tutorial is provided for educational purposes only.

Flashing firmware always involves risk.

Proceed only if you understand the process and accept full responsibility for any potential damage to your device.