Skip to content
Contents
IMOUOfficial release · Official snapshot

IMOU HX21 v1

OpenWrt ToH

MT7981 · 4 × GbE · Wi-Fi 6 · 256 MB RAM — Match the label, then check the build and recovery path.

Source snapshot 2026-11-27

OpenWrt compatibility

Same name does not mean the same hardware. Confirm revision, flash media and capacity before buying or installing. Imported compatibility and firmware links have not been independently rechecked.

Hardware

Specifications

Router CPU performance ranking · MT7981B · 5980 DMIPS

CPU / SoC
SoC family
MT7981
CPU cores
2
CPU clock
1300 MHz
Wireless
Gigabit Ethernet
4
2.5 GbE
Unknown
USB
-
Bootloader
U-Boot
Power supply
12 VDC, 1A via barrel
Dimensions and weight
Unknown
Original source record · all fields preserved

Before you choose

OpenWrt compatibility

Official release · Official snapshot
Source-listed release
25.12.6
First supported release
25.12.0
Hardware revision
v1

An official ToH entry establishes catalog inclusion. Current release builds, snapshots and installation conditions are recorded separately; EOL or incomplete build verification does not hide the device.

Current builds checked: 2026-11-07

Installation conditions · Prerequisites apply

An official build does not establish an installation path from your current OEM firmware. Check the exact revision, bootloader and prerequisites before purchasing or installing.

Official build evidence

Source-listed limitations
See instructions and preload files

Follow official device-specific guidance and checksum instructions. GeeksMeta does not verify images or execute installation steps.

OpenWrt flashing guide

Some sources still need verification; follow only the confirmed information below.

Match the revision and read the guide status first. Keep the recovery port and entry conditions on your computer before deciding whether to write an image.

Which OpenWrt firmware image is listed for the IMOU HX21 v1?

Sources and offline evidence

Excerpts are stored locally with this device. A readable source does not verify an installation path; model-level information does not apply to every hardware revision.

Some sources collected; verification remains incomplete · Checked: 2026-11-11

Flash components · Pending verification · Model-level information

128 MB NAND
Flash: Foresee F35SQA001G 128 MB SPI-NAND
Source linked ↧

RAM · Pending verification · Model-level information

256 MB
RAM: 256MB DDR3
Source linked ↧

Power supply · Pending verification · Model-level information

DC 12V 1A
Power: DC 12V 1A
Source linked ↧

CPU / SoC · Verified · Exact hardware revision

MediaTek MT7981B
{"CPU":"MediaTek MT7981B"}
Source linked ↧

CPU cores · Verified · Exact hardware revision

2
{"CPU Cores_numcores":"2"}
Source linked ↧

CPU clock · Verified · Exact hardware revision

1300 MHz
{"CPU MHz":"1300"}
Source linked ↧

RAM · Verified · Exact hardware revision

256 MB
{"RAM MB":"256"}
Source linked ↧

Bootloader · Verified · Exact hardware revision

U-Boot
{"Bootloader":"U-Boot"}
Source linked ↧

Power supply · Verified · Exact hardware revision

12 VDC, 1A via barrel
{"Power Supply":"12 VDC, 1A via barrel"}
Source linked ↧

Serial console · Verified · Exact hardware revision

Yes
{"Serial":"Yes"}
Source linked ↧

Serial settings · Verified · Exact hardware revision

115200 / 8N1
{"Serial connection parameters":"115200 / 8N1"}
Source linked ↧

Serial voltage · Verified · Exact hardware revision

3.3
{"Serial connection voltage":"3.3"}
Source linked ↧

Wireless · 2.4 GHz · Verified · Exact hardware revision

b/g/n/ax
{"WLAN 2.4GHz":"b/g/n/ax"}
Source linked ↧

Wireless · 5 GHz · Verified · Exact hardware revision

a/n/ac/ax
{"WLAN 5.0GHz":"a/n/ac/ax"}
Source linked ↧

Official release · First installation · Verified · Exact hardware revision

https://downloads.openwrt.org/releases/25.12.4/targets/mediatek/filogic/openwrt-25.12.4-mediatek-filogic-imou_hx21-initramfs-recovery.itb
{"Firmware OpenWrt Install URL":["https://downloads.openwrt.org/releases/25.12.4/targets/mediatek/filogic/openwrt-25.12.4-mediatek-filogic-imou_hx21-initramfs-recovery.itb"]}
Source linked ↧

Official release · Upgrade an OpenWrt installation · Verified · Exact hardware revision

https://downloads.openwrt.org/releases/25.12.4/targets/mediatek/filogic/openwrt-25.12.4-mediatek-filogic-imou_hx21-squashfs-sysupgrade.itb
{"Firmware OpenWrt Upgrade URL":["https://downloads.openwrt.org/releases/25.12.4/targets/mediatek/filogic/openwrt-25.12.4-mediatek-filogic-imou_hx21-squashfs-sysupgrade.itb"]}
Source linked ↧

Official snapshot · First installation · Verified · Exact hardware revision

https://downloads.openwrt.org/snapshots/targets/mediatek/filogic/openwrt-mediatek-filogic-imou_hx21-initramfs-recovery.itb
{"Firmware OpenWrt snapshot Install URL":["https://downloads.openwrt.org/snapshots/targets/mediatek/filogic/openwrt-mediatek-filogic-imou_hx21-initramfs-recovery.itb"]}
Source linked ↧

Official snapshot · Upgrade an OpenWrt installation · Verified · Exact hardware revision

https://downloads.openwrt.org/snapshots/targets/mediatek/filogic/openwrt-mediatek-filogic-imou_hx21-squashfs-sysupgrade.itb
{"Firmware OpenWrt snapshot Upgrade URL":["https://downloads.openwrt.org/snapshots/targets/mediatek/filogic/openwrt-mediatek-filogic-imou_hx21-squashfs-sysupgrade.itb"]}
Source linked ↧
Search history
  • "IMOU" "HX21" specifications manufacturer
  • "IMOU" "HX21" (specifications OR firmware OR OpenWrt OR recovery)
  • "ipTIME" "AX3000M" (specifications OR firmware OR OpenWrt OR recovery)
  • "ipTIME" "AX3000Q" (specifications OR firmware OR OpenWrt OR recovery)
  • "ipTIME" "AX3000SE" (specifications OR firmware OR OpenWrt OR recovery)
  • "IMOU" "HX21" OpenWrt installation backup recovery
  • "imou" "hx21" stock firmware restore unbrick
  • "imou" "hx21" specifications manufacturer
  • "imou" "hx21" OpenWrt installation backup recovery
  • "IMOU" "HX21" stock firmware restore unbrick
mediatek: add support for Imou HX21 · Collected

Official documentation · Local Git commit · Checked: 2026-11-13

Original source URL: https://github.com/openwrt/openwrt/commit/2462b36f0cb29fcc88ef45d9ede4bc897dd9e2ba ↗

Author: Jahidul Islam

License: License not verified

Offline excerpt

mediatek: add support for Imou HX21

This board is also as known as LC-HX3001

Hardware specification:
  SoC: MediaTek MT7981B 2x A53
  Flash: Foresee F35SQA001G 128 MB SPI-NAND
  RAM: 256MB DDR3
  Ethernet: 4x 10/100/1000 Mbps
  Switch: MediaTek MT7531AE
  WiFi: MediaTek MT7976C
  Button: Reset, Mesh
  Power: DC 12V 1A

Gain SSH access:
Method 1:
1. Connect UART Adapter to the router
2. UART pins are enabled, set the root password with passwd command
   start the dropbear instance on port 22

Method 2:
1. Login into web interface, and restore the router with SSH enabled configuration.
2. After reboot Default Web interface password will be 12345678
   SSH password is empty

Flash instructions:
1. Connect to HX21, backup everything, especially 'Factory' part.
3. Write new FIP:
   mtd write openwrt-mediatek-filogic-hx_21-bl31-uboot.fip FIP
4. Set static IP on your PC:
   IP 192.168.1.254/24, GW 192.168.1.1
5. Serve OpenWrt initramfs image using TFTP server.
6. Wait for TFTP recovery to complete.
7. After OpenWrt has booted, perform sysupgrade.
8. To write new BL2
   Install mtd-rw
   opkg update && opkg install kmod-mtd-rw
   insmod mtd-rw i_want_a_brick=1
   mtd write openwrt-mediatek-filogic-imou_hx21-preloader.bin bl2

Signed-off-by: Jahidul Islam <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20753
Signed-off-by: Hauke Mehrtens <[email protected]>

SHA-256 64df910ed59d836f813b2975f50c4f6f2d08429fb540843e4968bc182aafee0c

OpenWrt ToH: IMOU HX21 · Original snapshot

Official documentation · Bundled snapshot

Original source URL: https://openwrt.org/toh.json ↗

License: License not verified

Offline excerpt

{
  "deviceId": "imou:imou_hx21",
  "brand": "IMOU",
  "model": "HX21",
  "version": [
    "v1"
  ],
  "hardware": {
    "cpu": "MediaTek MT7981B",
    "chipsetKey": "MT7981B",
    "cores": 2.0,
    "clockMhz": 1300.0,
    "ramMb": 256.0,
    "ramRaw": "256",
    "flash": [
      {
        "capacityMb": 128.0,
        "type": "nand"
      }
    ],
    "ethernetPorts": {
      "fastEthernet": null,
      "gbe": 4.0,
      "gbe2_5": null,
      "gbe5": null,
      "gbe10": null
    },
    "wifiGeneration": 6,
    "wifi2_4": "b/g/n/ax",
    "wifi5": "a/n/ac/ax",
    "wifi6": "-",
    "wifiChipsets": [
      "MediaTek MT7981B",
      "MediaTek MT7976C"
    ],
    "wifiDriver": [
      "mt76"
    ],
    "modem": null,
    "usb": [
      "-"
    ],
    "bootloader": "U-Boot"
  },
  "support": {
    "currentRelease": "25.12.4",
    "sinceRelease": "25.12.0",
    "installationMethods": [
      "see devicepage"
    ],
    "recoveryMethods": [
      "see devicepage"
    ],
    "unsupportedFunctions": null,
    "installationWarnings": "See instructions and preload files",
    "recoveryWarnings": "OpenWrt U-Boot tftp recovery"
  }
}

SHA-256 2e1603a7746c3256af63c1ec434729c585e6984e6ef7d36f1d1ba36602e0b5a9

https://s3-eu-west-1.amazonaws.com/files.visiotech.es/files/pdf/HX21-IMOU_EN.pdf · Guide unavailable — no verified procedure is available.

Community discussion · Browser capture · Checked: 2026-11-11

Original source URL: https://s3-eu-west-1.amazonaws.com/files.visiotech.es/files/pdf/HX21-IMOU_EN.pdf ↗

License: License not verified

Offline excerpt

SHA-256 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855

IMOU life · Collected

Community discussion · Browser capture · Checked: 2026-11-11

Original source URL: https://new.imoulife.com/tr/product/specs/hx21 ↗

License: License not verified

Offline excerpt

Ürünler
Imou Protect
Destek
HX21
Genel Bakış
Özellikler
Specification

Key Features

Dual-Band Wi-Fi6, speed up to AX3000 (574+2402Mbps)

5 external 5dBi antennas

1x Gigabit WAN, 3x Gigabit LAN

Connections:Maximum 128 clients,64 recommended

Support Imou Camera Wi-Fi Auto-sync

Support “Imou-Link” Mesh

Support Stream Accelerate

Support IPv6

Support IPTV

Support Parental Control

Support Guest Wi-Fi

Support Imoulife App

Hardware

ROM 128MB

RAM 256MB

Network Port 1x Gigabit WAN + 3x Gigabit LAN

Button 1x WPS/Mesh, 1x Reset

LED Indicator 4 LEDs (power, WAN, LAN, WIFI)

Software

WAN Connection Type PPPoE/Dynamic IP/Static IP

IPv4/IPv6 √

VPN PP2P,L2TP

QoS √

Management PC Web config page, mobile web config page, App

DDNS √

DMZ √

Port Fword √

UPnP √

Wi-Fi

Frequency 2.4GHz & 5GHz

Protocol 2.4GHz:IEEE 802.11b/g/n/ax 5GHz:IEEE 802.11a/n/ac/ax

Wi-Fi Speed 2.4GHz:574Mbps 5GHz:2402Mbps

Wi-Fi Antennas 5 external 5dBi antennas

Wireless Security Support WPA-PSK/WPA2-PSK/WPA3-SAE encription Support Hidden SSID

Other Features Wi-Fi schedule, Imou Camera Wi-Fi Auto-sync, “Imou-Link” Mesh, Stream Accelerate

Others

Power Adapter DC12V1A

Dimention 210 x 125 x 181mm

İndir

Ürün Kategorisi

Kameralar
Kapı Zilleri ve Kapı Gözetleme Cihazları
Akıllı Kilitler
Imou Link
Imou IoT
Imou Robotları
Aksesuarlar

Destek

FAQ
Bize Ulaşın
Distribütörler
Kullanim Kilavuzu
App
Garanti ve İade Politikası
Video
Geliştiriciler
Mağaza Bulucu

Imou'dan en son haberleri alın

Kaydolun

IMOU'nun kurallarını okudum ve kabul ettim.  Gizlilik Politikası  imou.com için.

Gizlilik Politikası
Çerez Politikası
Kullanım Şartları
Çerez tercihleri
Türkçe - Turkey
Copyright 2014 - 2026 IMOU. All Rights Reserved.
Web sitemizde bizden talep ettiğiniz hizmeti ve mümkün olan en iyi gezinme deneyimini sunmak amacıyla çerezler ve benzer teknolojiler kullanıyoruz. Zorunlu çerezler web sitesinin çalışması için gereklidir ve devre dışı bırakılamaz. Zorunlu olmayan çerezlerle ilgili tercihler

SHA-256 1570fa770d6a8bae57ce1865a390d8b1db9aab5a78f0bc1b8a4f753f0f0c21f8

https://www.bing.com/search?q=%22IMOU%22+%22HX21%22+OpenWrt+installation+backup+recovery · Guide unavailable — no verified procedure is available.

Search history · Browser capture · Checked: 2026-11-11

Original source URL: https://www.bing.com/search?q=%22IMOU%22+%22HX21%22+OpenWrt+installation+backup+recovery ↗

License: License not verified

Offline excerpt

SHA-256 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855

[OpenWrt Wiki] IMOU HX21 · Collected

Official documentation · Browser capture · Checked: 2026-11-09

Original source URL: https://openwrt.org/toh/imou/hx21 ↗

Discovered from: https://openwrt.org/toh.json ↗

License: CC BY-SA 4.0 ↗

Offline excerpt

Tools
User Tools
Log In
Site Tools
Recent Changes
Media Manager
Sitemap
Page Tools
Show pagesource
Old revisions
Backlinks
Back to top
Translations of this page
Translations of this page ?
English (en)
|العربية (ar)
Česky (cs)
Deutsch (de)
Español (es)
Français (fr)
Magyar (hu)
Italiano (it)
日本語 (ja)
한국어 (ko)
Polski (pl)
Português (pt)
Português (pt-br)
Русский (ru)
Türkçe (tr)
Українська (uk)
Tiếng Việt (vi)
中文 (zh)
繁體中文 (zh-tw)
 Log In
You are here
Home
Table of Hardware
imou
IMOU HX21

Learn about OpenWrt
Learn about OpenWrt
Supported devices
Packages
Downloads
Documentation
Quick start guide
User guide
Developer guide
Security
FAQ
Forum
Contributing
Submitting patches
Reporting bugs
Contributing to wiki
Project
About OpenWrt
Rules
Infrastructure
Mirrors
Donate
Merchandise
Website
Trademark policy
License
Contacts
Privacy policy
×
Table of Contents
IMOU HX21
Supported Versions
Experimental Versions
Hardware Highlights
Installation
SSH Access
Backup
OpenWrt installation
Update BL2 (optional, from OpenWrt)
Flash Layout
OEM easy installation
OEM installation using the TFTP method
Upgrading OpenWrt
LuCI Web Upgrade Process
Terminal Upgrade Process
Return to stock
Debricking
OpenWrt U-Boot
mtkuartboot
Failsafe mode
Basic configuration
Specific Configuration
Network interfaces
Buttons
Hardware
Info
Photos
Opening the case
Serial
JTAG
Bootloader mods
Hardware mods
Bootlogs
OEM bootlog
OpenWrt bootlog
Notes
Tags
IMOU HX21

The Imou HX21 is a WiFi 6 AX3000 router. It supports two 802.11ax streams on both 2.4GHz@40MHz and 5GHz@160MHz for a combined 3000Mbps wireless speed.

Supported Versions

Experimental Versions

None at this time.

Hardware Highlights

Installation

→ Install OpenWrt (generic explanation)

SSH Access

1. Download the pre-configured file that enables SSH from the forum.

2. Login into web interface, and restore the router with SSH enabled configuration.

3. After reboot Default Web interface password will be 12345678 SSH password is empty

Backup

1. Connect to the router using ssh (user: root)

2. Make mtd backup:

cat /dev/mtd0 | gzip -1 -c > /tmp/mtd0_spi0.0.bin.gz
cat /dev/mtd1 | gzip -1 -c > /tmp/mtd1_BL2.bin.gz
cat /dev/mtd2 | gzip -1 -c > /tmp/mtd2_u-boot-env.bin.gz
cat /dev/mtd3 | gzip -1 -c > /tmp/mtd3_Factory.bin.gz
cat /dev/mtd4 | gzip -1 -c > /tmp/mtd4_FIP.bin.gz
cat /dev/mtd5 | gzip -1 -c > /tmp/mtd5_ubi.bin.gz

3. Download mtd backup from the /tmp dir of the router to your PC using scp protocol (for example, you can use WinSCP for Windows)

OpenWrt installation

Warning!

This section describes actions that might damage your device or firmware. Proceed with care!

1. Download OpenWrt images for this device from https://downloads.openwrt.org/ (choose release you need)

2. Connect to the router using ssh (user: root)

3. Upload OpenWrt bl31-uboot.fip, preloader.bin images to the /tmp dir of the router using scp protocol

4. Write FIP and BL2 (replace bootloader):

mtd write /tmp/openwrt-mediatek-filogic-imou_hx21-bl31-uboot.fip FIP
mtd write /tmp/openwrt-mediatek-filogic-imou_hx21-preloader.bin BL2

Don't worry if the second command can't write BL2. You can update BL2 later. See Update BL2 (from OpenWrt).

5. Place OpenWrt openwrt-mediatek-filogic-imou_hx21-initramfs-recovery.itb image on the tftp server (for example, you can use tftpd64 for Windows) with IP 192.168.1.254

6. Erase ubi partition and reboot the router:

mtd erase ubi
reboot

7. U-Boot automatically boot OpenWrt recovery image from tftp server to the RAM

8. Upload OpenWrt sysupgrade.itb image to the /tmp dir of the router (IP: 192.168.1.1) using scp protocol

9. Connect to the router using ssh and run:

sysupgrade -n /tmp/openwrt-mediatek-filogic-imou_hx21-squashfs-sysupgrade.itb
Update BL2 (optional, from OpenWrt)

Warning!

This section describes actions that might damage your device or firmware. Proceed with care!

1. Connect to the router using ssh and install kmod-mtd-rw kernel module

OpenWrt newer than 24.10:

apk update && apk add kmod-mtd-rw

OpenWrt 24.10:

opkg update && opkg install kmod-mtd-rw

2. Run in ssh shell:

insmod mtd-rw i_want_a_brick=1

3. Upload OpenWrt preloader.bin image to the /tmp dir of the router using scp protocol

4. Write BL2:

mtd write /tmp/openwrt-mediatek-filogic-imou_hx21-preloader.bin bl2

5. Reboot the router:

reboot
Flash Layout

Stock:

Start	End	Label
0x0	0x100000	BL2
0x100000	0x180000	u-boot-env
0x180000	0x380000	Factory
0x380000	0x580000	FIP
0x580000	0x7800000	ubi
OEM easy installation

None at this time.

OEM installation using the TFTP method

→ generic.flashing.tftp

None at this time.

Upgrading OpenWrt

→ generic.sysupgrade

LuCI Web Upgrade Process
Browse to http://192.168.1.1/cgi-bin/luci/admin/system/flash LuCI Upgrade URL
Upload image file for sysupgrade to LuCI
Wait for reboot
Terminal Upgrade Process
sysupgrade
Login as root via SSH on 192.168.1.1, then enter the following commands:
cd /tmp
wget http://downloads.openwrt.org/snapshots/trunk/XXX/xxx.abc
sysupgrade /tmp/xxx.abc
Return to stock

Warning!

This section describes actions that might damage your device or firmware. Proceed with care!

1. Unpack stock BL2 and FIP partitions backup

2. Upload stock BL2 and FIP partitions backup to the /tmp dir of the router using scp protocol

3. Connect to the router using ssh and run:

apk update && apk add kmod-mtd-rw

Then:

insmod mtd-rw i_want_a_brick=1
mtd unlock bl2
mtd unlock fip

4. Restore backup:

mtd write /tmp/mtd4_FIP.bin fip
mtd write /tmp/mtd1_BL2.bin bl2

5. Write ubi and reboot:

gzip -dc mtd5_ubi.bin.gz | ssh [email protected] "mtd write - ubi" 
reboot
Debricking

→ generic.debrick

OpenWrt U-Boot

1. Place OpenWrt openwrt-mediatek-filogic-imou_hx21-initramfs-recovery.itb image on the tftp server (for example, you can use tftpd64 for Windows) with IP 192.168.1.254

2. Press “Reset” button and power on the router. After ~10 sec release the button.

3. Use OpenWrt initramfs system for recovery

mtkuartboot

Use mtk_uartboot and UART connection if BL2 and/or FIP is destroyed. https://github.com/981213/mtk_uartboot

Failsafe mode

→ failsafe_and_factory_reset

Basic configuration

→ Basic configuration After flashing, proceed with this.
Set up your Internet connection, configure wireless, configure USB port, etc.

Specific Configuration
Network interfaces

The default network configuration is:

Interface Name	Description	Default configuration
br-lan	LAN & WiFi	192.168.1.1/24
phy0	WiFi	Disabled, br-lan
phy1	WiFi	Disabled, br-lan
Buttons

→ hardware.button on howto use and configure the hardware button(s). Here, we merely name the buttons, so we can use them in the above Howto.

Imou HX21 has the following buttons:

BUTTON	Event
Reset	reset
Mesh	Wireless killswitch
Hardware
Info

Photos

Front:

Back:

Opening the case

Warning!

This section describes actions that might damage your device or firmware. Proceed with care!

→ Warranty

The screws are located on the bottom. There are also clips around the edge of the case. You will need to try open, using, for example, a plastic card.

Serial

→ port.serial general information about the serial port, serial port cable, etc.

Warning!

This section describes actions that might damage your device or firmware. Proceed with care!

To access UART, you need to unscrew the radiator plate:

Don't connect VDD (+3.3 V) pin!

Serial connection parameters
for Imou HX21	115200, 8N1, 3.3V
JTAG

→ port.jtag general information about the JTAG port, JTAG cable, etc.

Bootloader mods

→ bootloader

Hardware mods

None so far.

Bootlogs
OEM bootlog

F0: 102B 0000

FA: 1040 0000

FA: 1040 0000 [0200]

F9: 0000 0000

V0: 0000 0000 [0001]

00: 0000 0000

BP: 2400 0041 [0000]

G0: 1190 0000

EC: 0000 0000 [1000]

T0: 0000 024B [010F]

Jump to BL

NOTICE:  BL2: v2.7(release):b62657e
NOTICE:  BL2: Built : 09:27:14, Mar 29 2024
NOTICE:  WDT: disabled
NOTICE:  EMI: Using DDR3 settings
NOTICE:  DDR_frequency:1866

dump toprgu registers data: 
1001c000 | 00000000 0000ffe0 00000000 00000000
1001c010 | 00000fff 00000000 00f00000 00000000
1001c020 | 00000000 0000074a 00000000 00000000
1001c030 | 003c0003 003c0003 00000000 00000000
1001c040 | 00000000 00000000 00000000 00000000
1001c050 | 00000000 00000000 00000000 00000000
1001c060 | 00000000 00000000 00000000 00000000
1001c070 | 00000000 00000000 00000000 00000000
1001c080 | 00000000 00000000 00000000 00000000

dump drm registers data: 
1001d000 | 00000000 00000000 00000000 00000000
1001d010 | 00000000 00000000 00000000 00000000
1001d020 | 00000000 00000000 00000000 00000000
1001d030 | 00a083f1 000003ff 00100000 00000000
1001d040 | 00000000 00000000 00020303 000000ff
1001d050 | 00000000 00000000 00000000 00000000
1001d060 | 00000002 00000000 00000000 00000000
drm: 500 = 0x8 
[DDR Reserve] ddr reserve mode not be enabled yet
DDR RESERVE Success 0
[EMI] ComboMCP not ready, using default setting
BYTE_swap:0 
BYTE_swap:0 
Window Sum 568, worse bit 6, min window 68
Window Sum 564, worse bit 11, min window 68
Window Sum 514, worse bit 6, min window 62
Window Sum 504, worse bit 8, min window 62
NOTICE:  EMI: Detected DRAM size: 256MB
NOTICE:  EMI: complex R/W mem test passed
NOTICE:  CPU: MT7981 (1300MHz)
NOTICE:  SPI_NAND parses attributes from parameter page.
NOTICE:  SPI_NAND Detected ID 0xcd
NOTICE:  Page size 2048, Block size 131072, size 134217728
NOTICE:  Initializing NMBM ...
NOTICE:  Signature found at block 1023 [0x07fe0000]
NOTICE:  First info table with writecount 0 found in block 960
NOTICE:  Second info table with writecount 0 found in block 963
NOTICE:  NMBM has been successfully attached in read-only mode
NOTICE:  BL2: Booting BL31
NOTICE:  BL31: v2.7(release):b62657e
NOTICE:  BL31: Built : 09:27:14, Mar 29 2024
NOTICE:  Hello BL31!!!

U-Boot 2022.07-rc3-gd587e37f-dirty (Mar 22 2024 - 07:26:00 +0000)

CPU:   MediaTek MT7981
Model: mt7981-rfb
DRAM:  256 MiB
Core:  35 devices, 16 uclasses, devicetree: separate
78
Initializing NMBM ...
spi-nand: spi_nand spi_nand@0: Foresee SPI NAND was found.
spi-nand: spi_nand spi_nand@0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
Could not find a valid device for nmbm0
Signature found at block 1023 [0x07fe0000]
First info table with writecount 0 found in block 960
Second info table with writecount 0 found in block 963
NMBM has been successfully attached 

Loading Environment from UBI... ubi0: attaching mtd6
ubi0: scanning is finished
ubi0: attached mtd6 (name "ubi", size 114 MiB)
ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
ubi0: good PEBs: 916, bad PEBs: 0, corrupted PEBs: 0
ubi0: user volume: 7, internal volumes: 1, max. volumes count: 128
ubi0: max/mean erase counter: 5/2, WL threshold: 4096, image sequence number: 1711704434
ubi0: available PEBs: 0, total reserved PEBs: 916, PEBs reserved for bad PEB handling: 19
Read 524288 bytes from volume u-boot-env to 000000004f77e2c0
OK
In:    serial@11002000
Out:   serial@11002000
Err:   serial@11002000
Net:   
Warning: ethernet@15100000 (eth0) using random MAC address - b2:59:a3:d7:47:55
eth0: ethernet@15100000
Set MAC ipaddr: 10.13.129.54
Using ethernet@15100000 device
TFTP from server 10.0.0.11; our IP address is 10.13.129.54
Filename 'upgrade_info_7db780a713a4.txt'.
Load address: 0x46000000
Loading: *
ARP Retry count exceeded; starting again
Download info file failed, will retry 2 times.
Download info file retry:1
Using ethernet@15100000 device
TFTP from server 10.0.0.11; our IP address is 10.13.129.54
Filename 'upgrade_info_7db780a713a4.txt'.
Load address: 0x46000000
Loading: *
ARP Retry count exceeded; starting again
Download info file retry:2
Using ethernet@15100000 device
TFTP from server 10.0.0.11; our IP address is 10.13.129.54
Filename 'upgrade_info_7db780a713a4.txt'.
Load address: 0x46000000
Loading: *
ARP Retry count exceeded; starting again
Failed to get info.txt
Fail to get info file!
Init error!
Using ethernet@15100000 device
TFTP from server 10.0.0.11; our IP address is 10.13.129.54
Filename 'failed.txt'.
Load address: 0x46000000
Loading: *
ARP Retry count exceeded; starting again
 
  *** U-Boot Boot Menu ***
 
      1. Startup system (Default)
      2. Upgrade firmware
      3. Upgrade ATF BL2
      4. Upgrade ATF FIP
      5. Upgrade single image
      6. Load image
      0. U-Boot console

 Press UP/DOWN to move, ENTER to select, ESC/CTRL+C to quit
UBI partition 'ubi' already selected
Read 128 bytes from volume dual to 000000004fb4b730
Read 128 bytes from volume dual to 000000004fb4b730
Read 128 bytes from volume dual to 000000004fb4b880
Trying to boot from image slot 1
Read 64 bytes from volume kernelB to 0000000046000000
Read 3372947 bytes from volume kernelB to 0000000046000000
## Checking hash(es) for FIT Image at 46000000 ...
   Hash(es) for Image 0 (kernel-1): crc32+ sha1+ 
   Hash(es) for Image 1 (fdt-1): crc32+ sha1+ 
Read 48 bytes from volume rootfsB to 0000000046337794
Read 18022208 bytes from volume rootfsB to 0000000046337794
   Hash(es) for rootfs: crc32+ sha1+ 
Firmware integrity verification passed
## Loading kernel from FIT Image at 46000000 ...
   Using 'config-1' configuration
   Trying 'kernel-1' kernel subimage
     Description:  ARM64 OpenWrt Linux-5.4.188
     Type:         Kernel Image
     Compression:  lzma compressed
     Data Start:   0x460000e8
     Data Size:    3352824 Bytes = 3.2 MiB
     Architecture: AArch64
     OS:           Linux
     Load Address: 0x48080000
     Entry Point:  0x48080000
     Hash algo:    crc32
     Hash value:   8e8a6025
     Hash algo:    sha1
     Hash value:   9030e6b7d241eaef2d2f3a2a21b103be1eebd7e1
Verifying Hash Integrity ... crc32+ sha1+ OK
## Loading fdt from FIT Image at 46000000 ...
   Using 'config-1' configuration
   Trying 'fdt-1' fdt subimage
     Description:  ARM64 OpenWrt mt7981-spim-nand-rfb device tree blob
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x46332b24
     Data Size:    18070 Bytes = 17.6 KiB
     Architecture: AArch64
     Hash algo:    crc32
     Hash value:   0382b29b
     Hash algo:    sha1
     Hash value:   41cf281592c9ecf70356bbf3c49447acbea4e30c
Verifying Hash Integrity ... crc32+ sha1+ OK
Booting using the fdt blob at 0x46332b24
Uncompressing Kernel Image
Loading Device Tree to 000000004f7f0000, end 000000004f7f7695 ... OK
Read 128 bytes from volume dual to 000000004fb4b880
Read 128 bytes from volume dual to 000000004fb4b880

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 5.4.188 (jenkins@39a89138cbf2) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r0-86045924)) #0 SMP Thu Sep 18 10:45:22 2025
[    0.000000] Machine model: MediaTek MT7981 RFB
[    0.000000] earlycon: uart8250 at MMIO32 0x0000000011002000 (options '')
[    0.000000] printk: bootconsole [uart8250] enabled
[    0.000000] On node 0 totalpages: 64592
[    0.000000]   DMA32 zone: 1024 pages used for memmap
[    0.000000]   DMA32 zone: 0 pages reserved
[    0.000000]   DMA32 zone: 64592 pages, LIFO batch:15
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.1 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] psci: SMC Calling Convention v1.0
[    0.000000] percpu: Embedded 20 pages/cpu s43800 r8192 d29928 u81920
[    0.000000] pcpu-alloc: s43800 r8192 d29928 u81920 alloc=20*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: GIC system register CPU interface
[    0.000000] CPU features: kernel page table isolation disabled by kernel configuration
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 63568
[    0.000000] Kernel command line: console=ttyS0,115200n1 loglevel=8 earlycon=uart8250,mmio32,0x11002000 ubi.rootfs_volume=rootfsB boot_param.boot_kernel_part=kernelB boot_param.boot_rootfs_part=rootfsB boot_param.upgrade_kernel_part=kernel boot_param.upgrade_rootfs_part=rootfs boot_param.env_part=u-boot-env boot_param.rootfs_data_part=rootfs_data boot_param.boot_image_slot=1 boot_param.upgrade_image_slot=0 boot_param.dual_boot
[    0.000000] Dentry cache hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.000000] Inode-cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 229744K/258368K available (6846K kernel code, 464K rwdata, 1952K rodata, 448K init, 289K bss, 28624K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu: 	CONFIG_RCU_FANOUT set to non-default value of 32.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GICv3: GIC: Using split EOI/Deactivate mode
[    0.000000] GICv3: 640 SPIs implemented
[    0.000000] GICv3: 0 Extended SPIs implemented
[    0.000000] GICv3: Distributor has no Range Selector support
[    0.000000] GICv3: 16 PPIs implemented
[    0.000000] GICv3: no VLPI support, no direct LPI support
[    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x000000000c080000
[    0.000000] random: get_random_bytes called from start_kernel+0x2d4/0x420 with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 13.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2ff89eacb, max_idle_ns: 440795202429 ns
[    0.000003] sched_clock: 56 bits at 13MHz, resolution 76ns, wraps every 4398046511101ns
[    0.008180] Calibrating delay loop (skipped), value calculated using timer frequency.. 26.00 BogoMIPS (lpj=52000)
[    0.018500] pid_max: default: 32768 minimum: 301
[    0.023219] Mount-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.030479] Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.039037] ASID allocator initialised with 65536 entries
[    0.044539] rcu: Hierarchical SRCU implementation.
[    0.049639] smp: Bringing up secondary CPUs ...
[    0.054488] Detected VIPT I-cache on CPU1
[    0.054509] GICv3: CPU1: found redistributor 1 region 0:0x000000000c0a0000
[    0.054532] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.054595] smp: Brought up 1 node, 2 CPUs
[    0.076208] SMP: Total of 2 processors activated.
[    0.080933] CPU features: detected: 32-bit EL0 Support
[    0.086095] CPU features: detected: CRC32 instructions
[    0.091363] CPU: All CPU(s) started at EL2
[    0.095486] alternatives: patching kernel code
[    0.102309] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.112120] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.119018] pinctrl core: initialized pinctrl subsystem
[    0.124795] NET: Registered protocol family 16
[    0.129513] DMA: preallocated 256 KiB pool for atomic allocations
[    0.136730] printk: console [pstore-1] enabled
[    0.141219] pstore: Registered ramoops as persistent store backend
[    0.147442] ramoops: using 0x100000@0x41000000, ecc: 0
[    0.167917] SCSI subsystem initialized
[    0.172325] libata version 3.00 loaded.
[    0.176382] usbcore: registered new interface driver usbfs
[    0.182075] usbcore: registered new interface driver hub
[    0.187458] usbcore: registered new device driver usb
[    0.193356] Bluetooth: Core ver 2.22
[    0.197004] NET: Registered protocol family 31
[    0.201474] Bluetooth: HCI device and connection manager initialized
[    0.207867] Bluetooth: HCI socket layer initialized
[    0.212769] Bluetooth: L2CAP socket layer initialized
[    0.217853] Bluetooth: SCO socket layer initialized
[    0.223002] rbus 18000000.wbsys: PCI host bridge to bus 0000:00
[    0.228963] pci_bus 0000:00: root bus resource [mem 0x18000000-0x18ffffff]
[    0.235876] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.241389] pci_bus 0000:00: scanning bus
[    0.245430] pci 0000:00:00.0: [14c3:7981] type 00 class 0x000280
[    0.251476] pci 0000:00:00.0: reg 0x10: [mem 0x18000000-0x1800000f 64bit]
[    0.258301] pci 0000:00:00.0: reg 0x18: [mem 0x00000000-0x0000000f]
[    0.264602] pci 0000:00:00.0: reg 0x1c: [mem 0x00000000-0x0000000f]
[    0.270902] pci 0000:00:00.0: reg 0x20: [mem 0x00000000-0x0000000f]
[    0.277201] pci 0000:00:00.0: reg 0x24: [mem 0x00000000-0x0000000f]
[    0.284393] pci_bus 0000:00: fixups for bus
[    0.288607] pci_bus 0000:00: bus scan returning with max=00
[    0.294711] clocksource: Switched to clocksource arch_sys_counter
[    0.301442] thermal_sys: Registered thermal governor 'fair_share'
[    0.301445] thermal_sys: Registered thermal governor 'bang_bang'
[    0.307602] thermal_sys: Registered thermal governor 'step_wise'
[    0.313642] thermal_sys: Registered thermal governor 'user_space'
[    0.319678] thermal_sys: Registered thermal governor 'power_allocator'
[    0.326051] NET: Registered protocol family 2
[    0.337070] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.344592] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.353002] TCP established hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.360802] TCP bind hash table entries: 2048 (order: 3, 32768 bytes, linear)
[    0.367997] TCP: Hash tables configured (established 2048 bind 2048)
[    0.374443] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.381016] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.388098] NET: Registered protocol family 1
[    0.392504] PCI: CLS 0 bytes, default 64
[    0.397258] workingset: timestamp_bits=46 max_order=16 bucket_order=0
[    0.406771] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.412652] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.435472] phy [email protected]: type_sw - reg 0x218, index 0
[    0.451108] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    0.458216] printk: console [ttyS0] disabled
[    0.482624] 11002000.serial: ttyS0 at MMIO 0x11002000 (irq = 12, base_baud = 2500000) is a ST16650V2
[    0.491836] printk: console [ttyS0] enabled
[    0.491836] printk: console [ttyS0] enabled
[    0.500200] printk: bootconsole [uart8250] disabled
[    0.500200] printk: bootconsole [uart8250] disabled
[    0.510525] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    0.518916] loop: module loaded
[    0.522186] mediatek,mt2701-ice_debug ice_debug: get dbg_sel clock fail: -2
[    0.529156] mediatek,mt2701-ice_debug: probe of ice_debug failed with error -2
[    0.537278] mt7981-pinctrl 11d00000.pinctrl: pin_config_set op failed for pin 19
[    0.544681] mtk-spi 1100a000.spi: Error applying setting, reverse things back
[    0.552365] spi-nand spi0.0: Foresee SPI NAND was found.
[    0.557707] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[    0.568135] [mtk_hw_init] reset_lock:0, force:0
[    0.572711] [mtk_hw_init] execute fe cold reset
[    0.588952] mtk_soc_eth 15100000.ethernet: generated random MAC address 16:83:fa:d6:8e:73
[    0.597444] mtk_soc_eth 15100000.ethernet eth0: mediatek frame engine at 0xffffffc011980000, irq 75
[    0.606530] mtk_soc_eth 15100000.ethernet: generated random MAC address c2:69:5d:a1:0f:3f
[    0.614979] mtk_soc_eth 15100000.ethernet eth1: mediatek frame engine at 0xffffffc011980000, irq 75
[    0.624030] (unnamed net_device) (dummy): netif_napi_add() called with weight 256
[    0.631856] xhci-mtk 11200000.xhci: 11200000.xhci supply vbus not found, using dummy regulator
[    0.640508] xhci-mtk 11200000.xhci: 11200000.xhci supply vusb33 not found, using dummy regulator
[    0.649414] phy [email protected]: try to get sw efuse
[    0.654990] phy [email protected]: try to get sw efuse
[    0.660556] phy [email protected]: try to get sw efuse+
[    0.666231] phy [email protected]: u3 efuse - intr 2d, rx_imp 10, tx_imp e
[    0.673570] phy_efuse_set set efuse, tx_imp e, rx_imp 10 intr 2d
[    0.679655] xhci-mtk 11200000.xhci: xHCI Host Controller
[    0.684990] xhci-mtk 11200000.xhci: new USB bus registered, assigned bus number 1
[    0.695458] xhci-mtk 11200000.xhci: hcc params 0x01403f99 hci version 0x110 quirks 0x0000000000210010
[    0.704740] xhci-mtk 11200000.xhci: irq 85, io mem 0x11200000
[    0.710959] hub 1-0:1.0: USB hub found
[    0.714742] hub 1-0:1.0: 1 port detected
[    0.718904] xhci-mtk 11200000.xhci: xHCI Host Controller
[    0.724230] xhci-mtk 11200000.xhci: new USB bus registered, assigned bus number 2
[    0.731730] xhci-mtk 11200000.xhci: Host supports USB 3.2 Enhanced SuperSpeed
[    0.738911] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    0.747346] hub 2-0:1.0: USB hub found
[    0.751132] hub 2-0:1.0: 1 port detected
[    0.755504] usbcore: registered new interface driver uas
[    0.760903] usbcore: registered new interface driver usb-storage
[    0.767020] i2c /dev entries driver
[    0.771456] mtk-wdt 1001c000.watchdog: Watchdog enabled (timeout=31 sec, nowayout=0)
[    0.779454] device-mapper: ioctl: 4.41.0-ioctl (2019-09-16) initialised: [email protected]
[    0.788017] Bluetooth: HCI UART driver ver 2.3
[    0.792493] Bluetooth: HCI UART protocol H4 registered
[    0.797625] Bluetooth: HCI UART protocol BCSP registered
[    0.803012] Bluetooth: HCI UART protocol Broadcom registered
[    0.808686] Bluetooth: HCI UART protocol QCA registered
[    0.816048] NET: Registered protocol family 10
[    0.821142] Segment Routing with IPv6
[    0.824882] NET: Registered protocol family 17
[    0.829371] Bridge firewalling registered
[    0.833449] 8021q: 802.1Q VLAN Support v1.8
[    0.847146] nmbm nmbm_spim_nand: Signature found at block 1023 [0x07fe0000]
[    0.854881] nmbm nmbm_spim_nand: First info table with writecount 0 found in block 960
[    0.864996] nmbm nmbm_spim_nand: Second info table with writecount 0 found in block 963
[    0.872999] nmbm nmbm_spim_nand: NMBM has been successfully attached 
[    0.879604] 5 fixed-partitions partitions found on MTD device nmbm_spim_nand
[    0.886652] Creating 5 MTD partitions on "nmbm_spim_nand":
[    0.892137] 0x000000000000-0x000000100000 : "BL2"
[    0.897383] 0x000000100000-0x000000180000 : "u-boot-env"
[    0.903177] 0x000000180000-0x000000380000 : "Factory"
[    0.908702] 0x000000380000-0x000000580000 : "FIP"
[    0.913879] 0x000000580000-0x000007800000 : "ubi"
[    1.130131] mt7530 mdio-bus:1f lan1 (uninitialized): PHY [dsa-0.0:00] driver [Generic PHY]
[    1.139715] mt7530 mdio-bus:1f lan2 (uninitialized): PHY [dsa-0.0:01] driver [Generic PHY]
[    1.149265] mt7530 mdio-bus:1f lan3 (uninitialized): PHY [dsa-0.0:02] driver [Generic PHY]
[    1.158812] mt7530 mdio-bus:1f lan4 (uninitialized): PHY [dsa-0.0:03] driver [Generic PHY]
[    1.167694] mt7530 mdio-bus:1f: configuring for fixed/2500base-x link mode
[    1.174856] DSA: tree 0 setup
[    1.175099] mt7530 mdio-bus:1f: Link is Up - 2.5Gbps/Full - flow control rx/tx
[    1.185178] UBI: auto-attach mtd5
[    1.188515] ubi0: attaching mtd5
[    1.194599] random: fast init done
[    1.524594] ubi0: scanning is finished
[    1.533547] ubi0: attached mtd5 (name "ubi", size 114 MiB)
[    1.539042] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    1.545909] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    1.552687] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    1.559638] ubi0: good PEBs: 916, bad PEBs: 0, corrupted PEBs: 0
[    1.565634] ubi0: user volume: 7, internal volumes: 1, max. volumes count: 128
[    1.572846] ubi0: max/mean erase counter: 5/2, WL threshold: 4096, image sequence number: 1711704434
[    1.581965] ubi0: available PEBs: 0, total reserved PEBs: 916, PEBs reserved for bad PEB handling: 19
[    1.591183] ubi0: background thread "ubi_bgt0d" started, PID 688
[    1.591820] block ubiblock0_4: created from ubi0:4(rootfsB)
[    1.602772] ubiblock: device ubiblock0_4 (rootfsB) set to be root filesystem
[    1.609815] hctosys: unable to open rtc device (rtc0)
[    1.617485] VFS: Mounted root (squashfs filesystem) readonly on device 253:0.
[    1.624884] Freeing unused kernel memory: 448K
[    1.646747] Run /sbin/init as init process
[    1.825306] init: Console is alive
[    1.828873] init: - watchdog -
[    1.876383] crng init done
[    2.295728] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    2.325063] conninfra@(mtk_conninfra_drv_init:644) Before platform_driver_register
[    2.332761] Get Index(0-TOP_MISC_BASE) phy_addr(0x11d10000) vir_addr=(0xffffffc010aed000) size=(0x1000)
[    2.342149] Get Index(1-TOPRGU_BASE) phy_addr(0x1001c000) vir_addr=(0xffffffc010af5000) size=(0x1000)
[    2.351357] Get Index(2-GPIO_BASE) phy_addr(0x11d00000) vir_addr=(0xffffffc010af7000) size=(0x1000)
[    2.360391] Get Index(3-IOCFG_TR_BASE) phy_addr(0x11f00000) vir_addr=(0xffffffc010af9000) size=(0x1000)
[    2.369772] Get Index(4-IOCFG_TL_BASE) phy_addr(0x11f10000) vir_addr=(0xffffffc010afb000) size=(0x1000)
[    2.379155] Get Index(5-INFRACFG_AO_BASE) phy_addr(0x10003000) vir_addr=(0xffffffc010afd000) size=(0x1000)
[    2.388797] Get Index(6-CONN_INFRA_CFG_BASE) phy_addr(0x18001000) vir_addr=(0xffffffc010b05000) size=(0x1000)
[    2.398701] Get Index(7-CONN_INFRA_SYSRAM_BASE) phy_addr(0x18050000) vir_addr=(0xffffffc010b07000) size=(0x1000)
[    2.408863] Get Index(8-CONN_INFRA_CLKGEN_ON_TOP_BASE) phy_addr(0x18009000) vir_addr=(0xffffffc010b09000) size=(0x1000)
[    2.419631] Get Index(9-CONN_HOST_CSR_TOP_BASE) phy_addr(0x18060000) vir_addr=(0xffffffc010b0b000) size=(0x1000)
[    2.42979

SHA-256 a531955a465b731b705cfd685457654be8a78d2f97bfa419ea1f5cfe137bcb86

https://www.bing.com/search?q=%22imou%22+%22hx21%22+OpenWrt+installation+backup+recovery · Guide unavailable — no verified procedure is available.

Search history · Browser capture · Checked: 2026-11-11

Original source URL: https://www.bing.com/search?q=%22imou%22+%22hx21%22+OpenWrt+installation+backup+recovery ↗

License: License not verified

Offline excerpt

SHA-256 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855

[OpenWrt Wiki] Installing OpenWrt via TFTP · Collected

Official documentation · Browser capture · Checked: 2026-11-11

Original source URL: https://openwrt.org/docs/guide-user/installation/generic.flashing.tftp ↗

Discovered from: https://openwrt.org/toh/asus/rt-ax59u?s%5B%5D=asus&s%5B%5D=firmware&s%5B%5D=router ↗

License: CC BY-SA 4.0 ↗

Offline excerpt

Table of Contents 
Installing OpenWrt via TFTP
Bootloader contains TFTP client
Mikrotik RouterBoards
Example1
Example2
tftpd server on Mac OS X Lion
Bootloader contains TFTP server
Tips
Linux/BSD
MacOS X
Windows
Troubleshooting
File Permissions
Installing OpenWrt via TFTP

Go back to generic.flashing

TFTP is a very simple protocol; simple enough to be implemented in small boot loaders. The basic idea is as follows:

Router is powered on
Bootloader prepares startup of firmware code
For a few seconds it initializes the wired lan ports
This doesn't happen instantly but a short time during startup/boot
The network settings are not always the same as OpenWrt's defaults
It then either:
Tries to connect to a TFTP server on a predetermined IP address to download a firmware image, OR
Listens for incoming TFTP client requests to upload a new flash image
Behavior thereafter varies by boot loader
See Bootloader functionality for more details about the bootloader

Warning!
This section describes actions that might damage your device or firmware. Proceed with care!

You must determine whether your hardware's bootloader has a TFTP client or server to understand which section below applies to your device.

Consult your specific model's OpenWrt Wiki devicepage for details on necessary settings, IP addresses to use, and the TFTP type offered if any.

Bootloader contains TFTP client

—>Setting up a TFTP server for TFTP Recovery/Install

Important Information!
TFTP server & client tools (based on the TFTP protocol) employ no access controls while allowing light-weight file transfer between networked devices.
Do not leave TFTP services running longer than needed and use a firewall to restrict access to the local subnet.

If your device is of the type that has a boot loader with a TFTP client that tries to download an image in recovery mode, then you must run a TFTP server to host the new firmware. Detailed instructions are given on the Setting up a TFTP server for TFTP Recovery/Install wiki page.

Mikrotik RouterBoards

 Move this section showing how to configure a TFTP server to tftpserver

RouterBoards have a TFTP and DHCP clients running in their RouterBoot bootloader. See : Common Procedures for Mikrotik RouterBoard for details.

Bash script to set static IP address, run DHCP server and run TFTP server (exemple for Mikrotik).

Note: Don't forget to change USER, NETDEV, IP/DHCP IP-range and file name/folder path for your needs.

#/bin/bash
USER=user
NETDEV=enp1s0
ip address flush dev $NETDEV
ip address add 10.1.1.10/24 dev $NETDEV
dnsmasq -i $NETDEV --dhcp-range=10.1.1.50,10.1.1.100 \
--dhcp-boot=openwrt-ar71xx-mikrotik-vmlinux-initramfs.elf \
--enable-tftp --tftp-root=/home/$USER/openwrt -d -u $USER -p0 -K --log-dhcp --bootp-dynamic
Copy
Example1

 Move this section showing how to configure a TFTP server to tftpserver

For example the bootloader implementation of the DIR-300 redboot contains a TFTP client. Two steps: First you install and start a TFTP server (or daemon) on your host. Example:

sudo apt install tftpd-hpa tftp-hpa
sudo cp ~/uboot/arch/arm/boot/uboot.img /srv/tftp/
Copy

Then put the image(s) to be flashed in the <root directory> of this software (you may be required to do this as root). Possible directories can be

/srv/tftp
/var/lib/tftpboot old location

Tip: The path where the file should be copied may differ based on your Linux version. Try running:

ps -ef | grep tftp
root    2424    2286 ?     00:07:28 /usr/sbin/in.tftpd --listen --user tftp --address 0.0.0.0:69 --secure /var/lib/tftpboot
Copy

The directory after --secure is the actual directory where you should copy the file, i.e. /var/lib/tftpboot

You can test the server:

tftp localhost
tftp> get uboot.img
tftp> quit
# now compare the downloaded image file with the original
cmp /srv/tftp/uboot.img uboot.img
# no output other then a prompt means it worked correctly
Copy

Connect to the bootloader, and tell it to get the images on your harddisk via its TFTP client (in case of the DIR-300 you obtain a connection via telnet on the non-default port 9000). Example:

telnet 192.168.20.81 9000
Redboot> load uboot.img
go
Copy

After successful installation of OpenWrt, do not forget to deactivate the TFTP server again!

Example2

 Move this section showing how to configure a TFTP server to tftpserver

In case of the xxx Step 3 from Example 1 above is not applicable. There is no console to login to, the bootloader will automatically try to get a firmware over TFTP from a pre-configured IP address at every boot.

tftpd server on Mac OS X Lion

 Move this section showing how to configure a TFTP server to tftpserver

//Note: TftpServer.app places a pleasing GUI on top of the native OSX tftpd. There's a writeup of using TftpServer.app at tftpserver. If you prefer to use the command-line, read on... //

OS X Lion comes with a tftpd but its disabled by default. Like most services in OS X, tftpd is controlled by launchctl. The configuration with which the daemon is lauched is in /System/Library/LaunchDaemons/tftp.plist and the the identifier is com.apple.tftpd

before you make changes to the config run:

sudo launchctl unload -F /System/Library/LaunchDaemons/tftp.plist
Copy

then:

sudo launchctl load -F /System/Library/LaunchDaemons/tftp.plist
Copy

to stop tftpd run:

  sudo launchctl stop com.apple.tftpd
Copy

to start tftpd run:

sudo launchctl start com.apple.tftpd
Copy

Here is an example config file that will work:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
  <dict>
  	<key>Label</key>
  	<string>com.apple.tftpd</string>
  	<key>ProgramArguments</key>
  	<array>
  		<string>/usr/libexec/tftpd</string>
  		<string>-l</string>
  		<string>-s</string>
  		<string>/private/tftpboot</string>
  	</array>
  	<key>inetdCompatibility</key>
  	<dict>
  		<key>Wait</key>
  		<true/>
  	</dict>
  	<key>InitGroups</key>
  	<true/>
  	<key>Sockets</key>
  	<dict>
  		<key>Listeners</key>
  		<dict>
  			<key>SockServiceName</key>
  			<string>tftp</string>
  			<key>SockType</key>
  			<string>dgram</string>
  		</dict>
  	</dict>
  </dict>
</plist>
Copy

Differences from the default include removing this, to enable the service:

  <key>Disabled</key>
  <true/>
Copy

Add this to the ProgramArguments array to make it log to /var/log/syslog.log

  <string>-l</string>
Copy

Place the OpenWrt image file you want to serve in: /private/tftpboot

Notice that even after running launchctl start com.apple.tftpd you will not see tftpd running when executing ps aux | grep tftpd because of the way launchctl works. tftpd is in fact not running but launchctl will launch it as soon as it is required.

In some cases, when the output on the serial console is grabbled you can still act on faith and execute the following commands, which will work in most cases:

setenv ipaddr 192.168.1.1
setenv serverip 192.168.1.100
tftpboot 0x80000000 openwrt-xxx-generic-xxx-squashfs-factory.bin
erase 0x9f020000 +0x332004
cp.b 0x80000000 0x9f020000 0x332004
boot.m 0x9f020000
Copy
tftpd on MacOS 10.4 "Tiger"

 Move this section showing how to configure a TFTP server to tftpserver

tftpd works out-of-the-box also on the old 10.4. Maybe the tftp dir is not yet created but this is just a mkdir. Get a root shell and issue these commands:

bash-4.2$ sudo bash
Password:
bash-4.2# mkdir -p /private/tftpboot/
bash-4.2# cp /path/to/openwrt-image /private/tftpboot/
bash-4.2# launchctl load -F /System/Library/LaunchDaemons/tftp.plist 
bash-4.2# ps axu|grep ftp
root     23494   0.0  0.0    27696    152  ??  Ss    4:34PM   0:00.00 launchctl load -F /System/Library/LaunchDaemons/tftp.plist
root     23496   0.0  0.0    38604      4  p3  R+    4:34PM   0:00.00 grep ftp
bash-4.2# launchctl start com.apple.tftpd
bash-4.2# ps axu|grep ftp
root     23494   0.0  0.0    27696    152  ??  Ss    4:34PM   0:00.00 launchctl load -F /System/Library/LaunchDaemons/tftp.plist
root     23498   0.0  0.0    27244    464  ??  Ss    4:34PM   0:00.01 /usr/libexec/launchproxy /usr/libexec/tftpd -i /private/tftpboot
root     23500   0.0  0.0    38604      4  p3  R+    4:34PM   0:00.00 grep ftp
bash-4.2# tftp 192.168.100.72   ### just testing
tftp> get openwrt-ar71xx-generic-hornet-ub-squashfs-sysupgrade.bin
Received 7270950 bytes in 2.7 seconds
tftp>
Copy
Bootloader contains TFTP server

The basic procedure of using a tftp client to upload a new firmware to your router:

Unplug the power to your router
Plug the Ethernet connection from your computer (acting as tftp client) into a LAN port on your model. See your model's OpenWrt wiki devicepage for details on which port to use
Start your tftp client on your computer
Give it the router's address (specific to model and bootloader, see your model's wiki page)
Set mode to octet/binary
Tell the client to resend the file until it succeeds
“put” the file
Plug-in your router while having the tftp client running and constantly probing for a connection
The tftp client will receive an ack from the bootloader and starts sending the firmware
Tips
 Please be patient, the reflashing occurs after the firmware has been transferred. In most cases the router will automatically reboot itself. Some models do not reboot so wait at least 15 minutes before power cycling them.
 Note that the bootloader usually does not use the IP address or MAC address stored in nvram, it will revert to a bootloader default instead. See your model's wiki documentation for specifics.
 Put a hub or switch between the router and the computer, this will make sure that the local computer link is up before the boot_wait period is passed. This is a requirement to make TFTP work on computers where the local link is brought up too late and is usually simpler than trying to force the link to stay up instead.
On routers with a DMZ LED, OpenWrt will light the DMZ LED while booting, after the bootup scripts are finished it will turn off the DMZ LED.

The TFTP commands vary across different implementations. Here are some examples:

Linux/BSD

The network link must be up and established during power up. One way to ensure this happens is to use a switch or hub in-between your computer and the device you are flashing as this will leave the link established when you power off the device.

Another option is to disable network manager in Linux (or use a distro/LiveCD that doesn't have it). Some commands that may disable it (depends on the distribution of Linux used):

/etc/init.d/networking stop
/etc/init.d/network stop
/etc/init.d/NetworkManager stop
service networking stop
service network stop
service NetworkManager stop
systemctl stop NetworkManager
Preparation Steps
Configure a static IP to match your *bootloaders* network
ip address add ipv4.x.y.z/24 dev eth0
See your device model's OpenWrt wiki device page for specific settings
Preconfigure an ARP entry to increase your changes of catching the TFTP window
arp -s ipv4.x.y.1 02:aa:bb:cc:dd:20
Check your device model's OpenWrt wiki devicepage for correct IP and MAC addresses
Using atftp

Click to display ⇲ 

Using netkit's tftp

Click to display ⇲ 

Using curl

Click to display ⇲ 

using tftpd-hpa

A detailed guide for beginners to tftpd-hda

MacOS X

On Mac OS X, you should be able to flash the router with the command line tftp client, which behaves identically to netkit's tftp above.

Some people have had problems with the command line tftp client, however, and recommend using MacTFTP Client instead:

Download, install, and open MacTFTP
Choose Send
Address: Your bootloaders IP address
Choose the openwrt-xxx-x.x-xxx.bin file
Click on start while applying power to the WRT54G

Many Macs will disable the Ethernet card when the router is powered off and will take too long to re-enable the card, causing the TFTP transfer to fail with an “Invalid Password” error. Many people have had success if they manually configure their network card (in the “Ethernet” tab of “Built-in Ethernet” in System Preferences' Network panel) to:

Configure: Manual (Advanced)
Speed: 10 BaseT/UTP
Duplex: full-duplex

Alternatively, you can connect the router to the Mac via a hub or switch; see the troubleshooting section for more information.

Windows

There are multiple tftp clients that you can choose from.

TFTP command line client short Instructions
Open a command window (cmd.exe) as administrator
Install the Windows tftp client:
Dism /online /Enable-Feature /FeatureName:TFTP /All
Copy
Upload the new firmware file to the router:
tftp -i //<bootloader IP tftp server address>// PUT OpenWrt-gs-code.bin
Copy
Now you may plug in the router (unplug it first if it was plugged).

Note that some bootloaders do not respond to ICMP ping.

Plug in your Windows network interface into the appropriate port on the device you will be flashing
Configure a static IP for your wired Ethernet interface to an appropriate IP address on the same subnet as your bootloader
Example: Your bootloader has an IP of 192.0.2.1 (netmask of 255.255.255.0), so your Windows network configuration would use 192.0.2.2/24
See your device's OpenWrt wiki devicepage for specific settings that the router expects
Open an elevated command prompt
Start, Run, “cmd” on Windows 2000,XP,2003
Start, search on “cmd”, ctrl+shift+enter on Vista, 7, 2008, etc
arp -s <bootloader's ip address> <bootloaders mac address> <your Windows static IP address>
Copy
Assists in avoiding delay in reaching tftp server on device
Windows MAC addresses use dashes instead of colons (ex: 00-00-00-00-00-00)
Windows 7 and other similar versions may require:
netsh interface ipv4 add neighbors "Local Area Connection" <bootloaders ip address> <bootloaders mac address>
Copy
Disable Windows media sensing (shouldn't be necessary if you have a switch in the middle)
netsh interface ipv4 set global dhcpmediasense=disabled
netsh interface ipv6 set global dhcpmediasense=disabled
Copy
Disable Windows firewall and any other firewalls on your client machine (Most host firewalls do not block outbound traffic)
Unplug your router
Run your tftp program (chosen above)
Plug in router immediately after tftp program begins put attempts
Flash usually takes a few minutes. See your device's OpenWrt wiki devicepage for specifics
You will probably want to re-enable Windows media sensing and revert your other network changes
GUI TFTP clients
DD-WRT tftp GUI
Server is the IP address of your bootloader tftp server
Password is typically blank
Select the firmware file
Set retries to 20 or more (most of the time you get it in 3)
Click on Upgrade and it will constantly retry until it gets it
Windows 2000 and Windows XP and later have a built-in TFTP client that can be used to flash with OpenWrt firmware.
Troubleshooting

Don't forget about your firewall settings, if you use one. It is best to run the “put” command and then immediately apply power to the router, since the upload window is extremely short and very early in boot.

TFTP Error	Reason
Code pattern is incorrect	The firmware image you're uploading was intended for a different model.
Invalid Password	The firmware has booted and you're connected to a password protected tftp server contained in the firmware, not the bootloader's tftp server.
Timeout	Ping to verify the router is online
Try a different tftp client (some are known not to work properly)
Timeout	Ping to the router works
NetworkManager (Linux) may still be running causing autosense. Try again with manual configuration.

Some machines will disable the ethernet when the router is powered off and not enable it until after the router has been powered on for a few seconds. If you're consistantly getting “Invalid Password” failures try connecting your computer and the router to a hub or switch. Doing so will keep the link up and prevent the computer from disabling its interface while the router is off.

Before you go searching for a hub to keep your link live, try setting your TCP/IP setting to a static IP (192.168.1.10; 255.255.255.0; 192.168.1.1 [gateway]) method instead of DHCP.

 If you can flash your router and after that it says “Boot program checksum is invalid” or “Invalid boot block on disk” on serial console try a different tftp client - atftp works well. This occurs with some netkit tftp packages and big firmwares.

Example

 would this be better to just exist in specific model's wiki pages?

 should we create a page to list models with tftp support, noting which ones need the reset button trick?

On many routers, including the Asus WL-500g Premium v1 that I use, you flash an image by disconnecting power, press and hold down the reset button, and connect the power again. Wait a few seconds and the PWR LED will start to blink. Release the reset button. The device will now have a TFTP server running on 192.168.1.1.

Note that many TP-Link models are reported to support the same trick, including the TL-WR740Nv4, TL-WDR4300v1, TL-WDR3600v1, TL-WR842NDv1, TL-WR841NDv8, TL-WR841Nv11, TL-WR841Nv12, TL-MR3020v1, TL-MR3220v2, TL-MR3420v2, TL-WR940Nv2, TL-WR941NDv5, TL-WR1042NDv1 and possibly any other TP-Link model that has a recent firmware upgrade from the manufacturer. For a summary and ongoing experiments, see: http://bkil.blogspot.com/2014/12/hidden-tftp-of-tp-link-routers.html

You’ll have to use a Ethernet cable at this point. Connect it to LAN1-LAN4, not WAN. Configure your local machine on the 192.168.1.x/24 network, for example as 192.168.1.42. The router will use 192.168.1.1.

$ tftp 192.168.1.1
tftp> trace
Packet tracing on.
tftp> binary
tftp> put openwrt-brcm-2.4-squashfs.trx
sent WRQ <file=openwrt-brcm-2.4-squashfs.trx, mode=octet>
received ACK <block=0>
sent DATA <block=1, 512 bytes>
received ACK <block=1>
sent DATA <block=2, 512 bytes>
received ACK <block=2>
sent DATA <block=3, 512 bytes>
received ACK <block=3>
sent DATA <block=4, 512 bytes>
...
received ACK <block=4742>
sent DATA <block=4743, 512 bytes>
received ACK <block=4743>
sent DATA <block=4744, 512 bytes>
received ACK <block=4744>
sent DATA <block=4745, 0 bytes>
received ACK <block=4745>
Sent 2428928 bytes in 6.2 seconds
tftp> quit
$
Copy

Wait one minute and restart the box by disconnecting and reconnecting power. Some documentations claim that the device should restart by itself but I have never seen this happen, no matter how long I wait.

File Permissions

Check if your TFTP Server has sufficient access rights to files or directories. U-Boots TFTP Client / tftpboot can complain with:

## Error: 'Access violation' (2), starting again!
Copy

SHA-256 62e639c026c2b35a1ad3200f0b9ba4fbbed9fe81fa716bf39494df5862a033e9

https://www.bing.com/search?q=%22IMOU%22+%22HX21%22+stock+firmware+restore+unbrick · Guide unavailable — no verified procedure is available.

Search history · Browser capture · Checked: 2026-11-11

Original source URL: https://www.bing.com/search?q=%22IMOU%22+%22HX21%22+stock+firmware+restore+unbrick ↗

License: License not verified

Offline excerpt

SHA-256 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855

[OpenWrt Wiki] IMOU HX21 · Collected

Official documentation · Browser capture · Checked: 2026-11-11

Original source URL: https://openwrt.org/toh/imou/hx21?s%5B%5D=ic&s%5B%5D=open ↗

License: CC BY-SA 4.0 ↗

Offline excerpt

Table of Contents 
IMOU HX21
Supported Versions
Experimental Versions
Hardware Highlights
Installation
SSH Access
Backup
OpenWrt installation
Update BL2 (optional, from OpenWrt)
Flash Layout
OEM easy installation
OEM installation using the TFTP method
Upgrading OpenWrt
LuCI Web Upgrade Process
Terminal Upgrade Process
Return to stock
Debricking
OpenWrt U-Boot
mtkuartboot
Failsafe mode
Basic configuration
Specific Configuration
Network interfaces
Buttons
Hardware
Info
Photos
Opening the case
Serial
JTAG
Bootloader mods
Hardware mods
Bootlogs
OEM bootlog
OpenWrt bootlog
Notes
Tags
IMOU HX21

The Imou HX21 is a WiFi 6 AX3000 router. It supports two 802.11ax streams on both 2.4GHz@40MHz and 5GHz@160MHz for a combined 3000Mbps wireless speed.

Supported Versions

Experimental Versions

None at this time.

Hardware Highlights

Installation

→ Install OpenWrt (generic explanation)

SSH Access

1. Download the pre-configured file that enables SSH from the forum.

2. Login into web interface, and restore the router with SSH enabled configuration.

3. After reboot Default Web interface password will be 12345678 SSH password is empty

Backup

1. Connect to the router using ssh (user: root)

2. Make mtd backup:

cat /dev/mtd0 | gzip -1 -c > /tmp/mtd0_spi0.0.bin.gz
cat /dev/mtd1 | gzip -1 -c > /tmp/mtd1_BL2.bin.gz
cat /dev/mtd2 | gzip -1 -c > /tmp/mtd2_u-boot-env.bin.gz
cat /dev/mtd3 | gzip -1 -c > /tmp/mtd3_Factory.bin.gz
cat /dev/mtd4 | gzip -1 -c > /tmp/mtd4_FIP.bin.gz
cat /dev/mtd5 | gzip -1 -c > /tmp/mtd5_ubi.bin.gz
Copy

3. Download mtd backup from the /tmp dir of the router to your PC using scp protocol (for example, you can use WinSCP for Windows)

OpenWrt installation

Warning!

This section describes actions that might damage your device or firmware. Proceed with care!

1. Download OpenWrt images for this device from https://downloads.openwrt.org/ (choose release you need)

2. Connect to the router using ssh (user: root)

3. Upload OpenWrt bl31-uboot.fip, preloader.bin images to the /tmp dir of the router using scp protocol

4. Write FIP and BL2 (replace bootloader):

mtd write /tmp/openwrt-mediatek-filogic-imou_hx21-bl31-uboot.fip FIP
mtd write /tmp/openwrt-mediatek-filogic-imou_hx21-preloader.bin BL2
Copy

Don't worry if the second command can't write BL2. You can update BL2 later. See Update BL2 (from OpenWrt).

5. Place OpenWrt openwrt-mediatek-filogic-imou_hx21-initramfs-recovery.itb image on the tftp server (for example, you can use tftpd64 for Windows) with IP 192.168.1.254

6. Erase ubi partition and reboot the router:

mtd erase ubi
reboot
Copy

7. U-Boot automatically boot OpenWrt recovery image from tftp server to the RAM

8. Upload OpenWrt sysupgrade.itb image to the /tmp dir of the router (IP: 192.168.1.1) using scp protocol

9. Connect to the router using ssh and run:

sysupgrade -n /tmp/openwrt-mediatek-filogic-imou_hx21-squashfs-sysupgrade.itb
Copy
Update BL2 (optional, from OpenWrt)

Warning!

This section describes actions that might damage your device or firmware. Proceed with care!

1. Connect to the router using ssh and install kmod-mtd-rw kernel module

OpenWrt newer than 24.10:

apk update && apk add kmod-mtd-rw
Copy

OpenWrt 24.10:

opkg update && opkg install kmod-mtd-rw
Copy

2. Run in ssh shell:

insmod mtd-rw i_want_a_brick=1
Copy

3. Upload OpenWrt preloader.bin image to the /tmp dir of the router using scp protocol

4. Write BL2:

mtd write /tmp/openwrt-mediatek-filogic-imou_hx21-preloader.bin bl2
Copy

5. Reboot the router:

reboot
Copy
Flash Layout

Stock:

Start	End	Label
0x0	0x100000	BL2
0x100000	0x180000	u-boot-env
0x180000	0x380000	Factory
0x380000	0x580000	FIP
0x580000	0x7800000	ubi
OEM easy installation

None at this time.

OEM installation using the TFTP method

→ generic.flashing.tftp

None at this time.

Upgrading OpenWrt

→ generic.sysupgrade

LuCI Web Upgrade Process
Browse to http://192.168.1.1/cgi-bin/luci/admin/system/flash LuCI Upgrade URL
Upload image file for sysupgrade to LuCI
Wait for reboot
Terminal Upgrade Process
sysupgrade
Login as root via SSH on 192.168.1.1, then enter the following commands:
cd /tmp
wget http://downloads.openwrt.org/snapshots/trunk/XXX/xxx.abc
sysupgrade /tmp/xxx.abc
Copy
Return to stock

Warning!

This section describes actions that might damage your device or firmware. Proceed with care!

1. Unpack stock BL2 and FIP partitions backup

2. Upload stock BL2 and FIP partitions backup to the /tmp dir of the router using scp protocol

3. Connect to the router using ssh and run:

apk update && apk add kmod-mtd-rw
Copy

Then:

insmod mtd-rw i_want_a_brick=1
mtd unlock bl2
mtd unlock fip
Copy

4. Restore backup:

mtd write /tmp/mtd4_FIP.bin fip
mtd write /tmp/mtd1_BL2.bin bl2
Copy

5. Write ubi and reboot:

gzip -dc mtd5_ubi.bin.gz | ssh [email protected] "mtd write - ubi" 
reboot
Copy
Debricking

→ generic.debrick

OpenWrt U-Boot

1. Place OpenWrt openwrt-mediatek-filogic-imou_hx21-initramfs-recovery.itb image on the tftp server (for example, you can use tftpd64 for Windows) with IP 192.168.1.254

2. Press “Reset” button and power on the router. After ~10 sec release the button.

3. Use OpenWrt initramfs system for recovery

mtkuartboot

Use mtk_uartboot and UART connection if BL2 and/or FIP is destroyed. https://github.com/981213/mtk_uartboot

Failsafe mode

→ failsafe_and_factory_reset

Basic configuration

→ Basic configuration After flashing, proceed with this.
Set up your Internet connection, configure wireless, configure USB port, etc.

Specific Configuration
Network interfaces

The default network configuration is:

Interface Name	Description	Default configuration
br-lan	LAN & WiFi	192.168.1.1/24
phy0	WiFi	Disabled, br-lan
phy1	WiFi	Disabled, br-lan
Buttons

→ hardware.button on howto use and configure the hardware button(s). Here, we merely name the buttons, so we can use them in the above Howto.

Imou HX21 has the following buttons:

BUTTON	Event
Reset	reset
Mesh	Wireless killswitch
Hardware
Info

Photos

Front:

Back:

Opening the case

Warning!

This section describes actions that might damage your device or firmware. Proceed with care!

→ Warranty

The screws are located on the bottom. There are also clips around the edge of the case. You will need to try open, using, for example, a plastic card.

Serial

→ port.serial general information about the serial port, serial port cable, etc.

Warning!

This section describes actions that might damage your device or firmware. Proceed with care!

To access UART, you need to unscrew the radiator plate:

Don't connect VDD (+3.3 V) pin!

Serial connection parameters
for Imou HX21	115200, 8N1, 3.3V
JTAG

→ port.jtag general information about the JTAG port, JTAG cable, etc.

Bootloader mods

→ bootloader

Hardware mods

None so far.

Bootlogs
OEM bootlog

F0: 102B 0000

FA: 1040 0000

FA: 1040 0000 [0200]

F9: 0000 0000

V0: 0000 0000 [0001]

00: 0000 0000

BP: 2400 0041 [0000]

G0: 1190 0000

EC: 0000 0000 [1000]

T0: 0000 024B [010F]

Jump to BL

NOTICE:  BL2: v2.7(release):b62657e
NOTICE:  BL2: Built : 09:27:14, Mar 29 2024
NOTICE:  WDT: disabled
NOTICE:  EMI: Using DDR3 settings
NOTICE:  DDR_frequency:1866

dump toprgu registers data: 
1001c000 | 00000000 0000ffe0 00000000 00000000
1001c010 | 00000fff 00000000 00f00000 00000000
1001c020 | 00000000 0000074a 00000000 00000000
1001c030 | 003c0003 003c0003 00000000 00000000
1001c040 | 00000000 00000000 00000000 00000000
1001c050 | 00000000 00000000 00000000 00000000
1001c060 | 00000000 00000000 00000000 00000000
1001c070 | 00000000 00000000 00000000 00000000
1001c080 | 00000000 00000000 00000000 00000000

dump drm registers data: 
1001d000 | 00000000 00000000 00000000 00000000
1001d010 | 00000000 00000000 00000000 00000000
1001d020 | 00000000 00000000 00000000 00000000
1001d030 | 00a083f1 000003ff 00100000 00000000
1001d040 | 00000000 00000000 00020303 000000ff
1001d050 | 00000000 00000000 00000000 00000000
1001d060 | 00000002 00000000 00000000 00000000
drm: 500 = 0x8 
[DDR Reserve] ddr reserve mode not be enabled yet
DDR RESERVE Success 0
[EMI] ComboMCP not ready, using default setting
BYTE_swap:0 
BYTE_swap:0 
Window Sum 568, worse bit 6, min window 68
Window Sum 564, worse bit 11, min window 68
Window Sum 514, worse bit 6, min window 62
Window Sum 504, worse bit 8, min window 62
NOTICE:  EMI: Detected DRAM size: 256MB
NOTICE:  EMI: complex R/W mem test passed
NOTICE:  CPU: MT7981 (1300MHz)
NOTICE:  SPI_NAND parses attributes from parameter page.
NOTICE:  SPI_NAND Detected ID 0xcd
NOTICE:  Page size 2048, Block size 131072, size 134217728
NOTICE:  Initializing NMBM ...
NOTICE:  Signature found at block 1023 [0x07fe0000]
NOTICE:  First info table with writecount 0 found in block 960
NOTICE:  Second info table with writecount 0 found in block 963
NOTICE:  NMBM has been successfully attached in read-only mode
NOTICE:  BL2: Booting BL31
NOTICE:  BL31: v2.7(release):b62657e
NOTICE:  BL31: Built : 09:27:14, Mar 29 2024
NOTICE:  Hello BL31!!!

U-Boot 2022.07-rc3-gd587e37f-dirty (Mar 22 2024 - 07:26:00 +0000)

CPU:   MediaTek MT7981
Model: mt7981-rfb
DRAM:  256 MiB
Core:  35 devices, 16 uclasses, devicetree: separate
78
Initializing NMBM ...
spi-nand: spi_nand spi_nand@0: Foresee SPI NAND was found.
spi-nand: spi_nand spi_nand@0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
Could not find a valid device for nmbm0
Signature found at block 1023 [0x07fe0000]
First info table with writecount 0 found in block 960
Second info table with writecount 0 found in block 963
NMBM has been successfully attached 

Loading Environment from UBI... ubi0: attaching mtd6
ubi0: scanning is finished
ubi0: attached mtd6 (name "ubi", size 114 MiB)
ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
ubi0: good PEBs: 916, bad PEBs: 0, corrupted PEBs: 0
ubi0: user volume: 7, internal volumes: 1, max. volumes count: 128
ubi0: max/mean erase counter: 5/2, WL threshold: 4096, image sequence number: 1711704434
ubi0: available PEBs: 0, total reserved PEBs: 916, PEBs reserved for bad PEB handling: 19
Read 524288 bytes from volume u-boot-env to 000000004f77e2c0
OK
In:    serial@11002000
Out:   serial@11002000
Err:   serial@11002000
Net:   
Warning: ethernet@15100000 (eth0) using random MAC address - b2:59:a3:d7:47:55
eth0: ethernet@15100000
Set MAC ipaddr: 10.13.129.54
Using ethernet@15100000 device
TFTP from server 10.0.0.11; our IP address is 10.13.129.54
Filename 'upgrade_info_7db780a713a4.txt'.
Load address: 0x46000000
Loading: *
ARP Retry count exceeded; starting again
Download info file failed, will retry 2 times.
Download info file retry:1
Using ethernet@15100000 device
TFTP from server 10.0.0.11; our IP address is 10.13.129.54
Filename 'upgrade_info_7db780a713a4.txt'.
Load address: 0x46000000
Loading: *
ARP Retry count exceeded; starting again
Download info file retry:2
Using ethernet@15100000 device
TFTP from server 10.0.0.11; our IP address is 10.13.129.54
Filename 'upgrade_info_7db780a713a4.txt'.
Load address: 0x46000000
Loading: *
ARP Retry count exceeded; starting again
Failed to get info.txt
Fail to get info file!
Init error!
Using ethernet@15100000 device
TFTP from server 10.0.0.11; our IP address is 10.13.129.54
Filename 'failed.txt'.
Load address: 0x46000000
Loading: *
ARP Retry count exceeded; starting again
 
  *** U-Boot Boot Menu ***
 
      1. Startup system (Default)
      2. Upgrade firmware
      3. Upgrade ATF BL2
      4. Upgrade ATF FIP
      5. Upgrade single image
      6. Load image
      0. U-Boot console

 Press UP/DOWN to move, ENTER to select, ESC/CTRL+C to quit
UBI partition 'ubi' already selected
Read 128 bytes from volume dual to 000000004fb4b730
Read 128 bytes from volume dual to 000000004fb4b730
Read 128 bytes from volume dual to 000000004fb4b880
Trying to boot from image slot 1
Read 64 bytes from volume kernelB to 0000000046000000
Read 3372947 bytes from volume kernelB to 0000000046000000
## Checking hash(es) for FIT Image at 46000000 ...
   Hash(es) for Image 0 (kernel-1): crc32+ sha1+ 
   Hash(es) for Image 1 (fdt-1): crc32+ sha1+ 
Read 48 bytes from volume rootfsB to 0000000046337794
Read 18022208 bytes from volume rootfsB to 0000000046337794
   Hash(es) for rootfs: crc32+ sha1+ 
Firmware integrity verification passed
## Loading kernel from FIT Image at 46000000 ...
   Using 'config-1' configuration
   Trying 'kernel-1' kernel subimage
     Description:  ARM64 OpenWrt Linux-5.4.188
     Type:         Kernel Image
     Compression:  lzma compressed
     Data Start:   0x460000e8
     Data Size:    3352824 Bytes = 3.2 MiB
     Architecture: AArch64
     OS:           Linux
     Load Address: 0x48080000
     Entry Point:  0x48080000
     Hash algo:    crc32
     Hash value:   8e8a6025
     Hash algo:    sha1
     Hash value:   9030e6b7d241eaef2d2f3a2a21b103be1eebd7e1
Verifying Hash Integrity ... crc32+ sha1+ OK
## Loading fdt from FIT Image at 46000000 ...
   Using 'config-1' configuration
   Trying 'fdt-1' fdt subimage
     Description:  ARM64 OpenWrt mt7981-spim-nand-rfb device tree blob
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x46332b24
     Data Size:    18070 Bytes = 17.6 KiB
     Architecture: AArch64
     Hash algo:    crc32
     Hash value:   0382b29b
     Hash algo:    sha1
     Hash value:   41cf281592c9ecf70356bbf3c49447acbea4e30c
Verifying Hash Integrity ... crc32+ sha1+ OK
Booting using the fdt blob at 0x46332b24
Uncompressing Kernel Image
Loading Device Tree to 000000004f7f0000, end 000000004f7f7695 ... OK
Read 128 bytes from volume dual to 000000004fb4b880
Read 128 bytes from volume dual to 000000004fb4b880

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 5.4.188 (jenkins@39a89138cbf2) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r0-86045924)) #0 SMP Thu Sep 18 10:45:22 2025
[    0.000000] Machine model: MediaTek MT7981 RFB
[    0.000000] earlycon: uart8250 at MMIO32 0x0000000011002000 (options '')
[    0.000000] printk: bootconsole [uart8250] enabled
[    0.000000] On node 0 totalpages: 64592
[    0.000000]   DMA32 zone: 1024 pages used for memmap
[    0.000000]   DMA32 zone: 0 pages reserved
[    0.000000]   DMA32 zone: 64592 pages, LIFO batch:15
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.1 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] psci: SMC Calling Convention v1.0
[    0.000000] percpu: Embedded 20 pages/cpu s43800 r8192 d29928 u81920
[    0.000000] pcpu-alloc: s43800 r8192 d29928 u81920 alloc=20*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: GIC system register CPU interface
[    0.000000] CPU features: kernel page table isolation disabled by kernel configuration
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 63568
[    0.000000] Kernel command line: console=ttyS0,115200n1 loglevel=8 earlycon=uart8250,mmio32,0x11002000 ubi.rootfs_volume=rootfsB boot_param.boot_kernel_part=kernelB boot_param.boot_rootfs_part=rootfsB boot_param.upgrade_kernel_part=kernel boot_param.upgrade_rootfs_part=rootfs boot_param.env_part=u-boot-env boot_param.rootfs_data_part=rootfs_data boot_param.boot_image_slot=1 boot_param.upgrade_image_slot=0 boot_param.dual_boot
[    0.000000] Dentry cache hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.000000] Inode-cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 229744K/258368K available (6846K kernel code, 464K rwdata, 1952K rodata, 448K init, 289K bss, 28624K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu: 	CONFIG_RCU_FANOUT set to non-default value of 32.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GICv3: GIC: Using split EOI/Deactivate mode
[    0.000000] GICv3: 640 SPIs implemented
[    0.000000] GICv3: 0 Extended SPIs implemented
[    0.000000] GICv3: Distributor has no Range Selector support
[    0.000000] GICv3: 16 PPIs implemented
[    0.000000] GICv3: no VLPI support, no direct LPI support
[    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x000000000c080000
[    0.000000] random: get_random_bytes called from start_kernel+0x2d4/0x420 with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 13.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2ff89eacb, max_idle_ns: 440795202429 ns
[    0.000003] sched_clock: 56 bits at 13MHz, resolution 76ns, wraps every 4398046511101ns
[    0.008180] Calibrating delay loop (skipped), value calculated using timer frequency.. 26.00 BogoMIPS (lpj=52000)
[    0.018500] pid_max: default: 32768 minimum: 301
[    0.023219] Mount-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.030479] Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.039037] ASID allocator initialised with 65536 entries
[    0.044539] rcu: Hierarchical SRCU implementation.
[    0.049639] smp: Bringing up secondary CPUs ...
[    0.054488] Detected VIPT I-cache on CPU1
[    0.054509] GICv3: CPU1: found redistributor 1 region 0:0x000000000c0a0000
[    0.054532] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.054595] smp: Brought up 1 node, 2 CPUs
[    0.076208] SMP: Total of 2 processors activated.
[    0.080933] CPU features: detected: 32-bit EL0 Support
[    0.086095] CPU features: detected: CRC32 instructions
[    0.091363] CPU: All CPU(s) started at EL2
[    0.095486] alternatives: patching kernel code
[    0.102309] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.112120] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.119018] pinctrl core: initialized pinctrl subsystem
[    0.124795] NET: Registered protocol family 16
[    0.129513] DMA: preallocated 256 KiB pool for atomic allocations
[    0.136730] printk: console [pstore-1] enabled
[    0.141219] pstore: Registered ramoops as persistent store backend
[    0.147442] ramoops: using 0x100000@0x41000000, ecc: 0
[    0.167917] SCSI subsystem initialized
[    0.172325] libata version 3.00 loaded.
[    0.176382] usbcore: registered new interface driver usbfs
[    0.182075] usbcore: registered new interface driver hub
[    0.187458] usbcore: registered new device driver usb
[    0.193356] Bluetooth: Core ver 2.22
[    0.197004] NET: Registered protocol family 31
[    0.201474] Bluetooth: HCI device and connection manager initialized
[    0.207867] Bluetooth: HCI socket layer initialized
[    0.212769] Bluetooth: L2CAP socket layer initialized
[    0.217853] Bluetooth: SCO socket layer initialized
[    0.223002] rbus 18000000.wbsys: PCI host bridge to bus 0000:00
[    0.228963] pci_bus 0000:00: root bus resource [mem 0x18000000-0x18ffffff]
[    0.235876] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.241389] pci_bus 0000:00: scanning bus
[    0.245430] pci 0000:00:00.0: [14c3:7981] type 00 class 0x000280
[    0.251476] pci 0000:00:00.0: reg 0x10: [mem 0x18000000-0x1800000f 64bit]
[    0.258301] pci 0000:00:00.0: reg 0x18: [mem 0x00000000-0x0000000f]
[    0.264602] pci 0000:00:00.0: reg 0x1c: [mem 0x00000000-0x0000000f]
[    0.270902] pci 0000:00:00.0: reg 0x20: [mem 0x00000000-0x0000000f]
[    0.277201] pci 0000:00:00.0: reg 0x24: [mem 0x00000000-0x0000000f]
[    0.284393] pci_bus 0000:00: fixups for bus
[    0.288607] pci_bus 0000:00: bus scan returning with max=00
[    0.294711] clocksource: Switched to clocksource arch_sys_counter
[    0.301442] thermal_sys: Registered thermal governor 'fair_share'
[    0.301445] thermal_sys: Registered thermal governor 'bang_bang'
[    0.307602] thermal_sys: Registered thermal governor 'step_wise'
[    0.313642] thermal_sys: Registered thermal governor 'user_space'
[    0.319678] thermal_sys: Registered thermal governor 'power_allocator'
[    0.326051] NET: Registered protocol family 2
[    0.337070] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.344592] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.353002] TCP established hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.360802] TCP bind hash table entries: 2048 (order: 3, 32768 bytes, linear)
[    0.367997] TCP: Hash tables configured (established 2048 bind 2048)
[    0.374443] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.381016] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.388098] NET: Registered protocol family 1
[    0.392504] PCI: CLS 0 bytes, default 64
[    0.397258] workingset: timestamp_bits=46 max_order=16 bucket_order=0
[    0.406771] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.412652] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.435472] phy [email protected]: type_sw - reg 0x218, index 0
[    0.451108] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    0.458216] printk: console [ttyS0] disabled
[    0.482624] 11002000.serial: ttyS0 at MMIO 0x11002000 (irq = 12, base_baud = 2500000) is a ST16650V2
[    0.491836] printk: console [ttyS0] enabled
[    0.491836] printk: console [ttyS0] enabled
[    0.500200] printk: bootconsole [uart8250] disabled
[    0.500200] printk: bootconsole [uart8250] disabled
[    0.510525] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    0.518916] loop: module loaded
[    0.522186] mediatek,mt2701-ice_debug ice_debug: get dbg_sel clock fail: -2
[    0.529156] mediatek,mt2701-ice_debug: probe of ice_debug failed with error -2
[    0.537278] mt7981-pinctrl 11d00000.pinctrl: pin_config_set op failed for pin 19
[    0.544681] mtk-spi 1100a000.spi: Error applying setting, reverse things back
[    0.552365] spi-nand spi0.0: Foresee SPI NAND was found.
[    0.557707] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[    0.568135] [mtk_hw_init] reset_lock:0, force:0
[    0.572711] [mtk_hw_init] execute fe cold reset
[    0.588952] mtk_soc_eth 15100000.ethernet: generated random MAC address 16:83:fa:d6:8e:73
[    0.597444] mtk_soc_eth 15100000.ethernet eth0: mediatek frame engine at 0xffffffc011980000, irq 75
[    0.606530] mtk_soc_eth 15100000.ethernet: generated random MAC address c2:69:5d:a1:0f:3f
[    0.614979] mtk_soc_eth 15100000.ethernet eth1: mediatek frame engine at 0xffffffc011980000, irq 75
[    0.624030] (unnamed net_device) (dummy): netif_napi_add() called with weight 256
[    0.631856] xhci-mtk 11200000.xhci: 11200000.xhci supply vbus not found, using dummy regulator
[    0.640508] xhci-mtk 11200000.xhci: 11200000.xhci supply vusb33 not found, using dummy regulator
[    0.649414] phy [email protected]: try to get sw efuse
[    0.654990] phy [email protected]: try to get sw efuse
[    0.660556] phy [email protected]: try to get sw efuse+
[    0.666231] phy [email protected]: u3 efuse - intr 2d, rx_imp 10, tx_imp e
[    0.673570] phy_efuse_set set efuse, tx_imp e, rx_imp 10 intr 2d
[    0.679655] xhci-mtk 11200000.xhci: xHCI Host Controller
[    0.684990] xhci-mtk 11200000.xhci: new USB bus registered, assigned bus number 1
[    0.695458] xhci-mtk 11200000.xhci: hcc params 0x01403f99 hci version 0x110 quirks 0x0000000000210010
[    0.704740] xhci-mtk 11200000.xhci: irq 85, io mem 0x11200000
[    0.710959] hub 1-0:1.0: USB hub found
[    0.714742] hub 1-0:1.0: 1 port detected
[    0.718904] xhci-mtk 11200000.xhci: xHCI Host Controller
[    0.724230] xhci-mtk 11200000.xhci: new USB bus registered, assigned bus number 2
[    0.731730] xhci-mtk 11200000.xhci: Host supports USB 3.2 Enhanced SuperSpeed
[    0.738911] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    0.747346] hub 2-0:1.0: USB hub found
[    0.751132] hub 2-0:1.0: 1 port detected
[    0.755504] usbcore: registered new interface driver uas
[    0.760903] usbcore: registered new interface driver usb-storage
[    0.767020] i2c /dev entries driver
[    0.771456] mtk-wdt 1001c000.watchdog: Watchdog enabled (timeout=31 sec, nowayout=0)
[    0.779454] device-mapper: ioctl: 4.41.0-ioctl (2019-09-16) initialised: [email protected]
[    0.788017] Bluetooth: HCI UART driver ver 2.3
[    0.792493] Bluetooth: HCI UART protocol H4 registered
[    0.797625] Bluetooth: HCI UART protocol BCSP registered
[    0.803012] Bluetooth: HCI UART protocol Broadcom registered
[    0.808686] Bluetooth: HCI UART protocol QCA registered
[    0.816048] NET: Registered protocol family 10
[    0.821142] Segment Routing with IPv6
[    0.824882] NET: Registered protocol family 17
[    0.829371] Bridge firewalling registered
[    0.833449] 8021q: 802.1Q VLAN Support v1.8
[    0.847146] nmbm nmbm_spim_nand: Signature found at block 1023 [0x07fe0000]
[    0.854881] nmbm nmbm_spim_nand: First info table with writecount 0 found in block 960
[    0.864996] nmbm nmbm_spim_nand: Second info table with writecount 0 found in block 963
[    0.872999] nmbm nmbm_spim_nand: NMBM has been successfully attached 
[    0.879604] 5 fixed-partitions partitions found on MTD device nmbm_spim_nand
[    0.886652] Creating 5 MTD partitions on "nmbm_spim_nand":
[    0.892137] 0x000000000000-0x000000100000 : "BL2"
[    0.897383] 0x000000100000-0x000000180000 : "u-boot-env"
[    0.903177] 0x000000180000-0x000000380000 : "Factory"
[    0.908702] 0x000000380000-0x000000580000 : "FIP"
[    0.913879] 0x000000580000-0x000007800000 : "ubi"
[    1.130131] mt7530 mdio-bus:1f lan1 (uninitialized): PHY [dsa-0.0:00] driver [Generic PHY]
[    1.139715] mt7530 mdio-bus:1f lan2 (uninitialized): PHY [dsa-0.0:01] driver [Generic PHY]
[    1.149265] mt7530 mdio-bus:1f lan3 (uninitialized): PHY [dsa-0.0:02] driver [Generic PHY]
[    1.158812] mt7530 mdio-bus:1f lan4 (uninitialized): PHY [dsa-0.0:03] driver [Generic PHY]
[    1.167694] mt7530 mdio-bus:1f: configuring for fixed/2500base-x link mode
[    1.174856] DSA: tree 0 setup
[    1.175099] mt7530 mdio-bus:1f: Link is Up - 2.5Gbps/Full - flow control rx/tx
[    1.185178] UBI: auto-attach mtd5
[    1.188515] ubi0: attaching mtd5
[    1.194599] random: fast init done
[    1.524594] ubi0: scanning is finished
[    1.533547] ubi0: attached mtd5 (name "ubi", size 114 MiB)
[    1.539042] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    1.545909] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    1.552687] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    1.559638] ubi0: good PEBs: 916, bad PEBs: 0, corrupted PEBs: 0
[    1.565634] ubi0: user volume: 7, internal volumes: 1, max. volumes count: 128
[    1.572846] ubi0: max/mean erase counter: 5/2, WL threshold: 4096, image sequence number: 1711704434
[    1.581965] ubi0: available PEBs: 0, total reserved PEBs: 916, PEBs reserved for bad PEB handling: 19
[    1.591183] ubi0: background thread "ubi_bgt0d" started, PID 688
[    1.591820] block ubiblock0_4: created from ubi0:4(rootfsB)
[    1.602772] ubiblock: device ubiblock0_4 (rootfsB) set to be root filesystem
[    1.609815] hctosys: unable to open rtc device (rtc0)
[    1.617485] VFS: Mounted root (squashfs filesystem) readonly on device 253:0.
[    1.624884] Freeing unused kernel memory: 448K
[    1.646747] Run /sbin/init as init process
[    1.825306] init: Console is alive
[    1.828873] init: - watchdog -
[    1.876383] crng init done
[    2.295728] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    2.325063] conninfra@(mtk_conninfra_drv_init:644) Before platform_driver_register
[    2.332761] Get Index(0-TOP_MISC_BASE) phy_addr(0x11d10000) vir_addr=(0xffffffc010aed000) size=(0x1000)
[    2.342149] Get Index(1-TOPRGU_BASE) phy_addr(0x1001c000) vir_addr=(0xffffffc010af5000) size=(0x1000)
[    2.351357] Get Index(2-GPIO_BASE) phy_addr(0x11d00000) vir_addr=(0xffffffc010af7000) size=(0x1000)
[    2.360391] Get Index(3-IOCFG_TR_BASE) phy_addr(0x11f00000) vir_addr=(0xffffffc010af9000) size=(0x1000)
[    2.369772] Get Index(4-IOCFG_TL_BASE) phy_addr(0x11f10000) vir_addr=(0xffffffc010afb000) size=(0x1000)
[    2.379155] Get Index(5-INFRACFG_AO_BASE) phy_addr(0x10003000) vir_addr=(0xffffffc010afd000) size=(0x1000)
[    2.388797] Get Index(6-CONN_INFRA_CFG_BASE) phy_addr(0x18001000) vir_addr=(0xffffffc010b05000) size=(0x1000)
[    2.398701] Get Index(7-CONN_INFRA_SYSRAM_BASE) phy_addr(0x18050000) vir_addr=(0xffffffc010b07000) size=(0x1000)
[    2.408863] Get Index(8-CONN_INFRA_CLKGEN_ON_TOP_BASE) phy_addr(0x18009000) vir_addr=(0xffffffc010b09000) size=(0x1000)
[    2.419631] Get Index(9-CONN_HOST_CSR_TOP_BASE) phy_addr(0x18060000) vir_addr=(0xffffffc010b0b000) size=(0x1000)
[    2.429792] Get Index(10-CONN_INFRA_BUS_CR_BASE) phy_addr(0x1800e000) vir_addr=(0xffffffc010b0d000) size=(0x1000)
[    2.440041] Get Index(11-CONN_INFRA_RGU_BASE) phy_addr(0x18000000) vir_addr=(0xffffffc010b56000) size=(0x1000)
[    2.450028] Get Index(12-CONN_WT_SLP_CTL_REG_BASE) phy_addr(0x18005000) vir_addr=(0xffffffc010b58000) size=(0x1000)
[    2.460449] Get Index(13-INST2_CONN_WT_SLP_CTL_REG_BASE) phy_addr(0x18085000) vir_addr=(0xffffffc010b5a000) size=(0x1000)
[    2.471391] Get Index(14-CONN_RF_SPI_MST_REG_BASE) phy_addr(0x18004000) vir_addr=(0xffffffc010b5c000) size=(0x1000)
[    2.481816] Get Index(15-INST2_CONN_RF_SPI_MST_REG_BASE) phy_addr(0x18084000) vir_addr=(0xffffffc010b5e000) size=(0x1000)
[    2.492760] Get Index(16-CONN_SEMAPHORE_BASE) phy_addr(0x18070000

SHA-256 690930f0ef0b51bb796de2f23ebc9a5c3b71d682cbd5867d59ffad67d6ac95fe

OpenWrt ToH · IMOU HX21 · Collected

Official documentation · Browser capture · Checked: 2026-11-11

Original source URL: https://openwrt.org/toh.json ↗

License: CC BY-SA 4.0 ↗

Offline excerpt

{"Device ID":"imou:imou_hx21"}
{"Bootloader":"U-Boot"}
{"Brand":"IMOU"}
{"CPU":"MediaTek MT7981B"}
{"CPU Cores_numcores":"2"}
{"CPU MHz":"1300"}
{"Device Page":"toh:imou:hx21"}
{"Ethernet 100M ports":"-"}
{"Ethernet 1Gbit ports":"4"}
{"Ethernet 2.5Gbit ports":"-"}
{"Firmware OpenWrt Install URL":["https://downloads.openwrt.org/releases/25.12.4/targets/mediatek/filogic/openwrt-25.12.4-mediatek-filogic-imou_hx21-initramfs-recovery.itb"]}
{"Firmware OpenWrt Upgrade URL":["https://downloads.openwrt.org/releases/25.12.4/targets/mediatek/filogic/openwrt-25.12.4-mediatek-filogic-imou_hx21-squashfs-sysupgrade.itb"]}
{"Firmware OpenWrt snapshot Install URL":["https://downloads.openwrt.org/snapshots/targets/mediatek/filogic/openwrt-mediatek-filogic-imou_hx21-initramfs-recovery.itb"]}
{"Firmware OpenWrt snapshot Upgrade URL":["https://downloads.openwrt.org/snapshots/targets/mediatek/filogic/openwrt-mediatek-filogic-imou_hx21-squashfs-sysupgrade.itb"]}
{"Flash MB":["128NAND"]}
{"Model":"HX21"}
{"Power Supply":"12 VDC, 1A via barrel"}
{"RAM MB":"256"}
{"Serial":"Yes"}
{"Serial connection parameters":"115200 / 8N1"}
{"Serial connection voltage":"3.3"}
{"Supported Current Rel":"25.12.4"}
{"Supported Since Commit":"https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=2462b36f0cb29fcc88ef45d9ede4bc897dd9e2ba"}
{"Supported Since Rel":"25.12.0"}
{"USB ports":["-"]}
{"Version":["v1"]}
{"WLAN 2.4GHz":"b/g/n/ax"}
{"WLAN 5.0GHz":"a/n/ac/ax"}
{"WLAN 6.0GHz":"-"}

SHA-256 c461d4e2d330bb909998a00bc9cc4a48e2d1bf44d20a345bc7ba920d0e1c555b

Product Manual · Collected

Community discussion · Browser capture · Checked: 2026-11-11

Original source URL: https://new.imoulife.com/tr/support/product-manual ↗

Discovered from: https://new.imoulife.com/tr/product/specs/hx21 ↗

License: License not verified

Offline excerpt

Ürünler
Imou Protect
Destek
Mağaza Bulucu
Tümü
Kablosuz Kameralar
Wi-Fi İç Mekan Kameraları
Wi-Fi Dış Mekan Kameraları
4G Kameralar
PoE Kameralar
Kameralar
FAILED
AOV PT 5MP

Veri indirme

FAILED
PS7F 3MP

Veri indirme

FAILED
PS70F 10MP

Veri indirme

FAILED
PS70F 8MP

Veri indirme

FAILED
PS70F 6MP

Veri indirme

FAILED
PS7F 5MP

Veri indirme

FAILED
DK3 2MP

Veri indirme

FAILED
DK3 3MP

Veri indirme

FAILED
DK3 4MP

Veri indirme

FAILED
Cue 2E 3MP

Veri indirme

FAILED
Ranger 2C Dual 6MP

Veri indirme

FAILED
Ranger 2C Dual 8MP

Veri indirme

FAILED
Ranger 2C Dual 10MP

Veri indirme

FAILED
Ranger 2C Pro 3MP

Veri indirme

FAILED
AOV PT 5MP

Veri indirme

FAILED
Ranger 2C Pro 5MP

Veri indirme

FAILED
Ranger 2 Dual 6MP

Veri indirme

FAILED
Ranger 2 Dual 8MP

Veri indirme

FAILED
Ranger 2 Dual 10MP

Veri indirme

FAILED
Cruiser Dual 2C 4G 6MP

Veri indirme

FAILED
Cruiser Triple 11MP

SHA-256 dfa56120b63295a7cf96b73a17093dbd4464a0d1a08b1decca1f6ada72233699

https://www.bing.com/search?q=%22imou%22+%22hx21%22+stock+firmware+restore+unbrick · Guide unavailable — no verified procedure is available.

Search history · Browser capture · Checked: 2026-11-11

Original source URL: https://www.bing.com/search?q=%22imou%22+%22hx21%22+stock+firmware+restore+unbrick ↗

License: License not verified

Offline excerpt

SHA-256 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855

[OpenWrt Wiki] Upgrading OpenWrt firmware using LuCI and CLI · Collected

Official documentation · Browser capture · Checked: 2026-11-11

Original source URL: https://openwrt.org/docs/guide-user/installation/generic.sysupgrade ↗

Discovered from: https://openwrt.org/toh/acer/predator_vero_w6m?s%5B%5D=825%2A&s%5B%5D=dir%2A&s%5B%5D=link%2A ↗

License: CC BY-SA 4.0 ↗

Offline excerpt

Table of Contents 
Upgrading OpenWrt firmware using LuCI and CLI
How the OpenWrt upgrade works
Upgrade steps
1. Prepare
2. Upgrade
3. Post Install Configuration, Setup or Restore
Preparing for upgrade
Can you keep settings?
Will you need to revert?
Configure your backup
Downloading the OpenWrt upgrade image
Upgrade procedure
For LuCI-based upgrades
Command-line instructions
Extras
Verify the new OS version
Upgrade installed packages
Reinstall user-installed packages
Configure user-installed packages
Upgrading OpenWrt firmware using LuCI and CLI

See also:

Comparing options to upgrade firmware
OpenWrt flash Layout
Upgrading OpenWrt firmware using CLI
Upgrading OpenWrt firmware using LuCI
Keep Settings and Upgrade Compatibility
Saving/restoring user-installed packages
How the OpenWrt upgrade works

An OpenWrt sysupgrade will replace the entire current OpenWrt installation with a new version. This includes the Linux kernel and SquashFS/ext4/ubifs/JFFS2/other OS partition/s. This is NOT the same as a first time installation (factory).

Sysupgrade via LuCI or CLI works by optionally saving specified configuration files, wiping the entire file system, installing the new version of OpenWrt and then restoring back the saved configuration files. This means that any parts of the file system that are not specifically saved will be lost.

In particular, any manually installed software packages you may have installed after the initial OpenWrt installation have to be reinstalled after an OpenWrt upgrade. That way everything will match, e.g. the updated Linux kernel and any installed kernel modules.

Any configuration files or data files placed in locations not specifically listed as being preserved below will also be lost in an OpenWrt upgrade. Be sure to check any files you have added or customized from a default OpenWrt install to back up these items before an upgrade.

IMPORTANT: Most of the upgrade procedure can be automated by using the attended.sysupgrade service. Attended sysupgrade will request the build of custom image including all your currently installed packages from a central server, download it when ready, and install it keeping your settings. The service can be accessed from LuCI by installing the `luci-app-attendedsysupgrade` package, or from the shell with the `auc` package. Note that you can upgrade systems using attended sysupgrade via LuCI even if they are not connected to the internet, as long as your browser has internet access.

See this howto about extroot procedure.

For Dual Firmware Devices please consult your device page for additional information.

By compiling your own custom image with an OpenWrt buildroot or generating with the imagebuilder, it is possible to remove the need to perform many of the steps above.

Upgrade steps
1. Prepare

The first part of the upgrade process is to prepare for the upgrade.

Setup for data migration ( keep settings ) and additional sysupgrade.conf entries
Export / save installed package list / manifest
Obtain / verify new installation sysupgrade image (and current / known good one to revert to)

This includes documenting programs and settings that will need to be re-installed or restored after the upgrade, locating and downloading the correct OpenWrt upgrade image for your hardware.

When it is possible to 'keep settings' sysupgrade will automatically preserve much of the OpenWrt OS configuration by saving and then restoring configuration files in specific common locations (including /etc/config). This will preserve things like OpenWrt network settings, Wi-Fi settings, the device hostname, and so on. Some data files and directories for additional services will need to be configured manually.

2. Upgrade

Next is the actual upgrade. The two common upgrade methods to perform the upgrade are:

LuCI web interface System → Backup / Flash Firmware → “Flash new firmware image”
Command-line using sysupgrade command over console or ssh

Both use the same ...sysupgrade.bin/img.gz file (more below).

3. Post Install Configuration, Setup or Restore

After the OS upgrade, there are usually some additional configuration steps required to;

Re-install additional packages not part of the base OpenWrt install
Configure new OpenWrt functionality or to
Update configuration files to reflect new settings or updated packages

Please see the section below with more details.

Preparing for upgrade
Can you keep settings?

See also: Upgrade compatibility

Most of the time you can, jumping several versions, downgrading, if the release notes or upgrade message informs you it's not possible, then you will need to plan ahead of time and factor in the time and information required to re-apply some or most of your previous configuration manually.

It is worthwhile not keeping settings once every 12-16 months
Trying to get around the advice to start with new settings when needed can result in odd issues that can be difficult to troubleshoot
Will you need to revert?

A time may come when you attempt an upgrade and for whatever reason it is unsuccessful. Contingency planning is a good skill for anything in IT.

Have you made a backup of your current settings? (for restoration to same or earlier OS versions)
Do you have a copy of your current (pre-upgrade) OS version if you need to re-install? (both factory and sysupgrade or even vendor firmware may be required)
Do you have a spare device in case things go pear shaped or you need much more time than expected?
Configure your backup

Follow Backup and restore, or skip this section if you do not want to preserve existing configuration.

Downloading the OpenWrt upgrade image
Getting the right image

In most cases, platforms that support sysupgrade, have a downloadable image labelled ...-sysupgrade.bin ...

Images labelled “factory” or otherwise are generally not intended to be installed via an existing OpenWrt web interface.
FIRMWARE SELECTOR https://firmware-selector.openwrt.org/
SEARCH USING MODEL: Table of Hardware: Firmware downloads
OFFICIAL DOWNLOAD PAGE: https://downloads.openwrt.org/releases/
OpenWrt on x86

For x86, use the same image you used for your initial installation of OpenWrt as the sysupgrade image as well (that is, there is no “factory” versus “sysupgrade” variant in contrast to most embedded devices). So, if you installed OpenWrt x86-64 openwrt-version-number-x86-64-combined-ext4.img.gz, you need to choose same image to do a sysupgrade; if you installed Openwrt with openwrt-version-number-x86-64-combined-squashfs.img.gz, you need that image to do a firmware upgrade.

Notes

WARNING: Double check you have the exact model number and in some cases country... If in any doubt about compatibility, read instructions on your device page thoroughly. If your are still unsure ask on the Forum.

NOTE: Keep a copy of images you use, you never know if you may need them again and that may be difficult if your internet is down! If you do not have current version of your system image download it from https://firmware-selector.openwrt.org/ prior to performing upgrade. You can check which version you use using luci main page or command line:

ubus call system board
Copy
Finding out which x86 image was used during installation

If system images used during initial instalation were deleted or lost and you forgot which image you used during installation, here is how you can check it.

Generic x86 system images come either in squashfs (RO) or ext4 (RW) flavour, first check file system type which you have on your device.

root@OpenWRT:~# df -T
Copy

sample output from x86 OpenWRT installation using squashfs file system:

Filesystem           Type       1K-blocks      Used Available Use% Mounted on
/dev/root            squashfs        4352      4352         0 100% /rom
tmpfs                tmpfs        1928268        84   1928184   0% /tmp
/dev/loop0           ext4       117464126     13802 112445660   0% /overlay
overlayfs:/overlay   overlay    117464126     13802 112445660   0% /
/dev/sda1            vfat           16334      6274     10060  38% /boot
/dev/sda1            vfat           16334      6274     10060  38% /boot
tmpfs                tmpfs            512         0       512   0% /dev
Copy

sample output from x86 OpenWRT installation using ext4 file system:

Filesystem           Type       1K-blocks      Used Available Use% Mounted on
/dev/root            ext4        30845052    321868  30506800   1% /
tmpfs                tmpfs        3912440      1596   3910844   0% /tmp
/dev/sda1            vfat           16334      6274     10060  38% /boot
/dev/sda1            vfat           16334      6274     10060  38% /boot
tmpfs                tmpfs            512         0       512   0% /dev
Copy

Now check if you used -efi system image. If the output of the command below is no such file or directory you used a openwrt-XX.XX.X-x86-64-generic-ext4-combined.img.gz system image. If the folder existst and is populated you used a openwrt-XX.XX.X-x86-64-generic-ext4-combined-efi.img.gz system image.

root@OpenWRT:~# ls /sys/firmware/efi
ls: /sys/firmware/efi: No such file or directory
Copy
Upgrade procedure
For LuCI-based upgrades

See also: Upgrading OpenWrt firmware using LuCI

Download the desired upgrade file to your PC using a web browser
Proceed to the LuCI upgrade procedure, below
Web interface instructions
Navigate to LuCI → System → Backup / Flash Firmware → Actions: Flash new firmware image.
Click Choose File button to select firmware image.
Click Flash image... to upload firmware image.
Verify firmware image checksum and proceed.
Wait until the router comes back online.
Command-line instructions

OpenWrt provides sysupgrade utility for firmware upgrade procedure.

See CLI instructions page below:
Upgrading OpenWrt firmware using CLI
For a streamlined assisted upgrade from the command line install and use owut.
For sysupgrade cli based upgrades
Download the desired upgrade file to the local /tmp RAM drive on your OpenWrt system. The /tmp directory is stored in RAM (using tmpfs), not in the permanent flash storage.
# example downloading the OpenWrt 15.05 upgrade image for a TP-LINK TL-WR1043ND ver. 1.x router
cd /tmp
wget http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/openwrt-15.05-ar71xx-generic-tl-wr1043nd-v1-squashfs-sysupgrade.bin
 
# check the integrity of the image file via md5sums (older images)
wget http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/md5sums
md5sum -c md5sums 2> /dev/null | grep OK
 
# check the integrity of the image file via sha256sums
wget http://downloads.openwrt.org/chaos_calmer/15.05/ar71xx/generic/sha256sums
sha256sum -c sha256sums 2> /dev/null | grep OK
 
# the desired result is that the downloaded firmware filename is listed with "OK" afterwards
 
####################################################
# Initiate sysupgrade with your desired options
# by default ( no -n ) settings are kept
####################################################
sysupgrade -v /tmp/openwrt-15.05-ar71xx-generic-tl-wr1043nd-v1-squashfs-sysupgrade.bin
Copy

NOTE: see extras at end of page for low memory device workarounds

Extras
Verify the new OS version
In LuCI, go to Status > Overview to verify you are running the new OpenWrt release
In SSH, the login banner has the release information
Upgrade installed packages

Follow: Upgrading packages

After the initial update, it is good to check for any updated packages released after the base OS firmware image was built. Note that on a device with only 4MB of NVRAM, these updates may not fit – check free space first with df -h / and ensure there is at least 600KB or so free.

Reinstall user-installed packages

See also: Preserving packages

After a successful upgrade, you will need to reinstall all previously installed and saved packages.

Configure user-installed packages

See also: Comparing configurations

The new package installations will have installed new, default versions of package configuration files. If existing configuration files are in place, opkg displays a warning about this and saves the new configuration file versions under /etc/config/*-opkg filenames.

The new package-provided config files should be compared with your older customized files to merge in any new options or changes of syntax. The diff tool is helpful for this.

SHA-256 8a669bd4b354a3e808f95709f146c4b1a580be9c27a5993c4e61b9e865b07682

https://www.bing.com/search?q=%22imou%22+%22hx21%22+specifications+manufacturer · Guide unavailable — no verified procedure is available.

Search history · Browser capture · Checked: 2026-11-11

Original source URL: https://www.bing.com/search?q=%22imou%22+%22hx21%22+specifications+manufacturer ↗

License: License not verified

Offline excerpt

SHA-256 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855

https://www.bing.com/search?q=%22IMOU%22+%22HX21%22+specifications+manufacturer · Guide unavailable — no verified procedure is available.

Search history · Browser capture · Checked: 2026-11-11

Original source URL: https://www.bing.com/search?q=%22IMOU%22+%22HX21%22+specifications+manufacturer ↗

License: License not verified

Offline excerpt

SHA-256 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855

OpenWrt Firmware Selector · Collected

Community discussion · Browser capture · Checked: 2026-11-11

Original source URL: https://firmware-selector.openwrt.org/?id=imou_hx21&target=mediatek%2Ffilogic&version=25.12.4 ↗

License: License not verified

Offline excerpt

العربية (Arabic)
Asturianu (Asturian)
български (Bulgarian)
বাংলা (Bengali)
Català (Catalan)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Ελληνικά (Greek)
English
Español (Spanish)
فارسی (Persian)
Suomalainen (Finnish)
Pilipino (Filipino)
Français (French)
Gaeilge (Irish)
Galego (Galician)
हिंदी (Hindi)
Magyar (Hungarian)
Bahasa Indonesia (Indonesian)
Italiano (Italian)
日本語 (Japanese)
ქართული (Georgian)
한국어 (Korean)
Laotian (ພາສາລາວ)
Lietuvių (Lithuanian)
Latviešu (Latvian)
മലയാളം (Malayalam)
मराठी (Marathi)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese)
Português do Brasil (Brazilian Portuguese)
Română (Romanian)
Русский (Russian)
Žemaitiu kalba (Samogitian)
Српски (Serbian)
Srpski (Serbian)
Slovenčina (Slovak)
Svenska (Swedish)
தமிழ் (Tamil)
แบบไทย (Thai)
తెలుగు (Telugu)
Türkçe (Turkish)
Українська (Ukrainian)
Tiếng Việt (Vietnamese)
简体中文 (Chinese Simplified)
繁體中文 (Chinese Traditional)
Failed to fetch
Download OpenWrt Firmware for your Device

Type the name or model of your device, then select a stable build or the nightly "snapshot" build.

All Downloads | Feedback | OFS v5.1.0-5-ga8576e1b

SHA-256 f0c70ef74a56bea7b193ab702ac7eaab542dd803b5115783159257e0b152d453

[OpenWrt Wiki] Installing OpenWrt · Collected

Official documentation · Browser capture · Checked: 2026-11-11

Original source URL: https://openwrt.org/docs/guide-user/installation/generic.flashing ↗

Discovered from: https://deviceways.org/devices/alwaylink-m10k43 ↗

License: CC BY-SA 4.0 ↗

Offline excerpt

Table of Contents 
Installing OpenWrt
Four Installation Methods
Method 1: via OEM firmware
Method 2: via Bootloader and an Ethernet port
Method 3: via Bootloader and Serial port
Method 4: via JTAG
Install a ramdisk-image into main memory
Installation Checklist
Installing OpenWrt

The installation of OpenWrt is device specific. These device specific procedures should be found in the wiki. See Table of Hardware for available procedures. If your device is not listed, information in this Howto may be helpful.

Warning!
This section describes actions that might damage your device or firmware. Proceed with care!

 If your attempt to install OpenWrt fails, please view generic.debrick for fixes.

 This HOWTO is VERY generic. You cannot use it in most situations, as you have to adapt values and other parts for specific hardware. Please look at the supported hardware page for device-specific documentation.

In most circumstances; you have three options:

Option 1: install OpenWrt onto the router's non-volatile memory
Option 2: install OpenWrt onto the RAM
Option 3: boot OpenWrt over the network (netbooting is not supported by all bootloaders).
Four Installation Methods

There are four ways to install OpenWrt on a device:

Method 1: via OEM firmware

Open the WebUI of the OEM firmware with your web browser and install the OpenWrt factory firmware image file using the “Firmware Upgrade” option. Your device should reboot with OpenWrt installed.

NOTE: Sometimes the OEM firmware will only allow you to flash your device with a specific firmware file. If that is the case, you will not be able to install OpenWrt using this method. However, for some devices the build bots prepare tagged builds such that they are compliant with the firmwares from the manufacturer. This should be documented on the device specific page for your model.

Method 2: via Bootloader and an Ethernet port

Most, if not all bootloaders provide built-in functionality for this purpose. Some use a TFTP-client, others a TFTP-server, others a FTP-client, some an FTP-server, some a web server and some use the XMODEM-protocol.

Before proceeding you need to determine the following:

a) the preset IP address of the bootloader (not necessarily identical to the IP address the device has after it has booted the original firmware!)
b) the protocol and whether the bootloader acts as client or as server
c) the correct port number (if not default)
d) the interface you need to connect to
e) a user name and login password (if necessary)
f) the time window you have after starting the device to obtain a connection

Once you know all of the above parameters, you may proceed.

Install the appropriate software on your PC (i.e. if the bootloader uses an FTP-server, you need a FTP-client).
Read the appropriate manual page ie: tftp, tftpd, ftp, ncftp, ftpd, pure-ftpd, etc ...
Configure a static IP address for your PC interface in the same IP address block as pre-configured in the bootloader.
Connect your PC to the device.
Power cycle the device.
Connect to the bootloader using the software you chose
Install the OpenWrt firmware file.
Do not overwrite or alter the bootloader until explicitly instructed to do so!

NOTES: Sometimes even the bootloader prevents you from flashing a non-OEM firmware. If you have a short time window, the connection between your computer and device needs to be established quickly. To make this as quick possible, you can disable auto-negotiation on your NIC and/or disable media sensing.

Specific Howtos
generic.flashing.tftp
generic.flashing.ftp
generic.flashing.xmodem
Method 3: via Bootloader and Serial port
data info of mentioned items (b) to (f) inside above Method-2.
generic.flashing.serial
Method 4: via JTAG
port.jtag
Install a ramdisk-image into main memory

This step shows you howto upload a new ramdisk image to the device. The existing firmware on the flash remains unchanged! You require a working serial cable to do the ramdisk upload.

specifically select the RAMDISK option to make OpenWrt Buildroot create a ramdisk-image for you to upload
connect an ethernet cable between your computer and one of the LAN ports (doesn't matter which, just so long as it's not the WAN port) of the WNDR3700.
connect your serial cable to the header on the WNDR3700 and set your local terminal program (eg. minicom) to
115200 bps 8N1
no software flow control
no hardware flow control.
set your computer's ethernet port to use the IP address 192.168.0.10/24
set up a TFTP server on your local computer to respond to requests on the 192.168.0.10 interface. Make sure that the ramdisk image (openwrt-ar71xx-uImage-lzma.bin) is in the directory used by the TFTP server.
Fix the header for the ramdisk image so that it's recognized by the u-Boot firmware. Use the wndr3700.c program that was posted by *aorlinsk* on the forums here http://aorlinsk2.free.fr/openwrt/wndr3700/ and run it from the TFTP server's data directory. I've also reproduced the code here just in case:
./wndr3700 openwrt-ar71xx-uImage-lzma.bin openwrt-fixed.out
Copy
power up the board. When it gets to the message asking you to press any key to interrupt the normal bootup sequence, press a key on the serial console (or just hold down the enter key from first bootup until you get to a prompt):
enter the following into the serial console:
setenv ipaddr 192.168.0.1
setenv serverip 192.168.0.10
setenv bootargs 'board=WNDR3700'
tftpboot 80800000 openwrt-fixed.out
bootm
Copy

(if you forget the bootargs piece below, the board will boot and look normal, but it won't be able to bring up any of the network interfaces!)

The system should boot!

Concrete examples: wnr2000, ...

Don't forget to consult the other Generic Basic Howtos for OpenWrt

Installation Checklist

This checklist cannot and does not completely cover all the ways you can install OpenWrt.

** Pre-Installation **

Say hello in #openwrt channel at OFTC.
Make sure that the router has currently stock/original firmware installed.
Configure your computer to use static IP address.
Connect to the router with wire, not WiFi.
Do your own research and read all the resources about installing OpenWrt on your router:
FAQ before installation
Table of Hardware
OpenWrt forum
Print or save those pages for offline reading:
First login
Failsafe
(optional) Backup flash of your router.

Installation

Reboot router.
Download OpenWrt image in proper location.
In case of upgrading existing OpenWrt system, the proper location is RAM (usually /tmp).
Verify MD5 checksum of the OpenWrt image you downloaded.
Make sure that there is at least as much free RAM as the size of OpenWrt image you have downloaded.

Post-Installation

Do First login and set root password.
Backup flash of your router.
Make yourself comfortable with the Failsafe mode.
Configure your device

SHA-256 a658b6634af540937f4ca736f099988fa029d9a3d7d9c4cf5d3e763df5cba3ca

Evidence & sources

WireGuard evidence

SoC reference · low confidence369–381Mbps

MT7981 · 7 samples

Not measured on this exact hardware variant.

Kernel, firmware, clock, firewall and test topology change results. This observed range across a small sample is not a prediction or guarantee.

The source samples · Data & methodology
Show family samples (9)

Original source text (original language)

  • CMCC RAX3000M · 369 Mbps · OpenWRT 23.05.2 / 5.15.137
  • 360 T7 · 369 Mbps · OpenWRT 23.05.0 / 5.15.134
  • GL-iNet MT3000 · 369 Mbps · GL 5.4.211 / 5.10.0
  • Xiaomi AX3000T · 371 Mbps · OpenWrt Snapshot / 6.1.82
  • OpenWrt One · 375 Mbps · OpenWrt Snapshot / 6.6.43
  • Cudy TR3000 v1 · 377 Mbps · OpenWrt 24.10.0 / 6.6.73
  • Routerich AX3000 · 381 Mbps · OpenWRT 23.05.2 / 5.15.137
  • Viettel NR3053 · 404 Mbps · ImmortalWrt 25.12-SNAPSHOT / 6.12.110 · Overclocked 1.64Ghz
  • Routerich AX3000 · 559 Mbps · OpenWRT 24.10.2 / 6.6.93 · OC to 2.24GHz

Source linked

Evidence & sources

imou:imou_hx21 · 2026-11-27. Source-linked does not mean independently verified.

Image source ↗

Brand logo source ↗ · Simple Icons · IMOU · rasterized · See source for rights and license

Reviewed metadata

cpu · Verified · 2026-11-11
Original record: "MediaTek MT7981B"
Reviewed value: "MediaTek MT7981B"

cores · Verified · 2026-11-11
Original record: 2
Reviewed value: 2

ramMb · Verified · 2026-11-11
Original record: 256
Reviewed value: 256

wifi5 · Verified · 2026-11-11
Original record: "a/n/ac/ax"
Reviewed value: "a/n/ac/ax"

serial · Verified · 2026-11-11
Original record:
Reviewed value: "Yes"

wifi24 · Verified · 2026-11-11
Original record: "b/g/n/ax"
Reviewed value: "b/g/n/ax"

clockMhz · Verified · 2026-11-11
Original record: 1300
Reviewed value: 1300

bootloader · Verified · 2026-11-11
Original record: "U-Boot"
Reviewed value: "U-Boot"

powerSupply · Verified · 2026-11-11
Original record:
Reviewed value: "12 VDC, 1A via barrel"

serialVoltage · Verified · 2026-11-11
Original record:
Reviewed value: "3.3"

serialParameters · Verified · 2026-11-11
Original record:
Reviewed value: "115200 / 8N1"

links.firmwareSnapshotInstall · Verified · 2026-11-11
Original record: ["https://downloads.openwrt.org/snapshots/targets/mediatek/filogic/openwrt-mediatek-filogic-imou_hx21-initramfs-recovery.itb"]
Reviewed value: ["https://downloads.openwrt.org/snapshots/targets/mediatek/filogic/openwrt-mediatek-filogic-imou_hx21-initramfs-recovery.itb"]

links.firmwareSnapshotUpgrade · Verified · 2026-11-11
Original record: ["https://downloads.openwrt.org/snapshots/targets/mediatek/filogic/openwrt-mediatek-filogic-imou_hx21-squashfs-sysupgrade.itb"]
Reviewed value: ["https://downloads.openwrt.org/snapshots/targets/mediatek/filogic/openwrt-mediatek-filogic-imou_hx21-squashfs-sysupgrade.itb"]

Original source record · all fields preserved

Original source text (original language)

{
  "CPU": "MediaTek MT7981B",
  "JTAG": "No",
  "VLAN": "Yes",
  "Brand": "IMOU",
  "FCCID": null,
  "GPIOs": null,
  "Model": "HX21",
  "Modem": "-",
  "RAM MB": "256",
  "Serial": "Yes",
  "Switch": "MediaTek MT7531AE",
  "Target": "mediatek",
  "CPU MHz": "1300",
  "Outdoor": "No",
  "Picture": [
    "media:imou:hx21.jpg"
  ],
  "Version": [
    "v1"
  ],
  "Comments": "25.12.4 update",
  "Flash MB": [
    "128NAND"
  ],
  "Bluetooth": "-",
  "Device ID": "imou:imou_hx21",
  "LED count": "4",
  "SFP ports": "-",
  "Subtarget": "filogic",
  "USB ports": [
    "-"
  ],
  "Bootloader": "U-Boot",
  "Git search": [
    "HX21"
  ],
  "SATA ports": "-",
  "SFP+ ports": "-",
  "Audio ports": [
    "-"
  ],
  "Device Page": "toh:imou:hx21",
  "Device Type": "WiFi Router",
  "Phone ports": [
    "-"
  ],
  "Video ports": [
    "-"
  ],
  "WLAN 2.4GHz": "b/g/n/ax",
  "WLAN 5.0GHz": "a/n/ac/ax",
  "WLAN 6.0GHz": "-",
  "WLAN driver": [
    "mt76"
  ],
  "Availability": "Available 2024",
  "Button count": "2",
  "Forum search": [
    "HX21"
  ],
  "Power Supply": "12 VDC, 1A via barrel",
  "WLAN 60.0GHz": "-",
  "WikiDevi URL": null,
  "WLAN Comments": null,
  "WLAN Hardware": [
    "MediaTek MT7981B",
    "MediaTek MT7976C"
  ],
  "Where available": null,
  "Comment recovery": "OpenWrt U-Boot tftp recovery",
  "Comments AV ports": null,
  "CPU CoresNumcores": "2",
  "Recovery method(s)": [
    "see devicepage"
  ],
  "Detachable Antennas": "-",
  "Ethernet 100M ports": "-",
  "Supported Since Rel": "25.12.0",
  "Comment installation": "See instructions and preload files",
  "Ethernet 1Gbit ports": "4",
  "Ethernet 5Gbit ports": "-",
  "OWrt Forum Topic URL": [
    "https://forum.openwrt.org/t/adding-support-for-imou-hx21/242973/"
  ],
  "Package architecture": "aarch64_cortex-a53",
  "Ethernet 10Gbit ports": "-",
  "Supported Current Rel": "25.12.6",
  "Unsupported Functions": null,
  "Comments network ports": null,
  "Ethernet 2.5Gbit ports": "-",
  "Firmware OEM Stock URL": null,
  "Installation method(s)": [
    "see devicepage"
  ],
  "Supported Since Commit": "https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=2462b36f0cb29fcc88ef45d9ede4bc897dd9e2ba",
  "Comments USB SATA ports": "-",
  "OEM Device Homepage URL": null,
  "Serial connection voltage": "3.3",
  "Firmware OpenWrt Install URL": [
    "https://downloads.openwrt.org/releases/25.12.6/targets/mediatek/filogic/openwrt-25.12.6-mediatek-filogic-imou_hx21-initramfs-recovery.itb"
  ],
  "Firmware OpenWrt Upgrade URL": [
    "https://downloads.openwrt.org/releases/25.12.6/targets/mediatek/filogic/openwrt-25.12.6-mediatek-filogic-imou_hx21-squashfs-sysupgrade.itb"
  ],
  "Serial connection parameters": "115200 / 8N1",
  "Firmware OpenWrt snapshot Install URL": [
    "https://downloads.openwrt.org/snapshots/targets/mediatek/filogic/openwrt-mediatek-filogic-imou_hx21-initramfs-recovery.itb"
  ],
  "Firmware OpenWrt snapshot Upgrade URL": [
    "https://downloads.openwrt.org/snapshots/targets/mediatek/filogic/openwrt-mediatek-filogic-imou_hx21-squashfs-sysupgrade.itb"
  ]
}
Imported firmware links · unverified

Raw URLs may be stale, malformed or directories. Use the official device page and selector to verify the image.

{
  "forum": [
    "https://forum.openwrt.org/t/adding-support-for-imou-hx21/242973/"
  ],
  "openwrtWiki": "https://openwrt.org/toh/imou/hx21",
  "purchaseUrls": [],
  "stockFirmware": [],
  "firmwareInstall": [
    "https://downloads.openwrt.org/releases/25.12.6/targets/mediatek/filogic/openwrt-25.12.6-mediatek-filogic-imou_hx21-initramfs-recovery.itb"
  ],
  "firmwareUpgrade": [
    "https://downloads.openwrt.org/releases/25.12.6/targets/mediatek/filogic/openwrt-25.12.6-mediatek-filogic-imou_hx21-squashfs-sysupgrade.itb"
  ],
  "firmwareSnapshotInstall": [
    "https://downloads.openwrt.org/snapshots/targets/mediatek/filogic/openwrt-mediatek-filogic-imou_hx21-initramfs-recovery.itb"
  ],
  "firmwareSnapshotUpgrade": [
    "https://downloads.openwrt.org/snapshots/targets/mediatek/filogic/openwrt-mediatek-filogic-imou_hx21-squashfs-sysupgrade.itb"
  ],
  "vendorHardwareDatasheet": []
}

Similar devices

Comments