Flip-flashing IP-Xiaomi cameras: official and alternative methods

IP-Xiaomi cameras are among the most popular smart home devices due to their combination of price, functionality and integration with the Mi Home ecosystem. The manufacturer releases new firmware versions to fix vulnerabilities, add features or optimize work, and the camera may need to be reflashed in the event of failures when the device stops connecting correctly to the network or broadcasting video.

In this article, we will discuss all the current ways of reflashing. IP-Xiaomi cameras – from official methods through the Mi Home app to manual updates via Telnet or FTP. We will focus on the Mijia 360 models.Β° 1080P, Mi Home Security Camera 2K And Dafang, and the typical bugs that you get when you upgrade, and if your camera is stuck on the logo or not detected online after a bad firmware, you'll find solutions here.

Before you start, make sure your camera model supports firmware updates. Some budget versions (such as Xiaomi Mi Home Camera Basic) may not have this feature. Also check if the warranty is expired - unofficial firmware (such as OpenIPC) will cancel it.

1. Flash-through preparation: what to do before the update

Incorrect preparation is the main reason for the β€œbricking” of Xiaomi cameras. To avoid problems, follow the following steps:

  • πŸ”Œ Stable power: Connect the camera to an uninterruptible power supply (UPS) or network filter. Even a brief power outage during firmware can render the device inoperable.
  • πŸ“Ά Reliable connection: If you upgrade over Wi-Fi, make sure the signal is stable (at least 70% of the level).
  • πŸ’Ύ Backup of settings: Save screenshots of current settings in Mi Home (recording schedule, motion detection area, etc.) and you have to reconfigure them after you have firmware.
  • πŸ” Model and version check: Go to the camera settings in the Mi Home app and write down the current firmware version. This will help you roll back if the new version is unstable.

Pay special attention to the storage space on the memory card. If the camera is recording video on a microSD, remove it before the firmware β€” some models format the drive during the upgrade. Also check that the camera has enough internal memory: most firmware requires at least 50 MB of free space.

⚠️ Note: If your camera is connected to Xiaomi Home Assistant or other automation systems (such as Home Assistant), disconnect it before upgrading.

πŸ“Š What model? IP-You are using Xiaomi cameras?
Mijia 360Β° 1080P
Mi Home Security Camera 2K
Dafang
Xiaomi Mi Home Camera Basic
Another model

2. Official Update via Mi Home app

The safest and most recommended way is to upgrade through the Mi Home app, which is suitable for most models, including the Mijia 360.Β°, Mi Home Security Camera 2K Xiaomi Home Camera 360Β° 2K Pro. The main advantage is automatic firmware compatibility check with your camera.

Step-by-step:

  1. Open the Mi Home app and select your camera.
  2. Go to Settings β†’ General β†’ Update firmware.
  3. If a new version is available, click Update. the application downloads the file (size) ~20–100 MB) and install it.
  4. Wait until the process is complete (the camera will restart 1-2 times).

If the Update button is inactive or the app says β€œLast version is already installed” but you know the new firmware is out, try:

  • πŸ”„ Reboot the camera (turn off power for 10 seconds).
  • πŸ“± Update the Mi Home app to the latest version.
  • 🌍 Change the region in Xiaomi account settings (e.g. China or Europe) as firmware sometimes comes out first for individual regions.

β˜‘οΈ Preparations for formal renewal

Done: 0 / 5

The upgrade rate depends on the camera model and the speed of the Internet. On average, the process takes 5-15 minutes. If the camera is stuck in the Updating stage... longer than 20 minutes, try restarting it manually. If the camera does not turn on after rebooting, see the recovery section.

3. Manual update through FTP: power-user

If the official update is not available or you want to install an alternative firmware (such as OpenIPC for advanced features), you can download the file manually through the FTP. This method is suitable for chip-based models Hi3518E (For example, Dafang or Xiaomi Mijia 360Β° archetype).

What you need:

  • πŸ–₯️ Computer with Windows/Linux or a smartphone with a file manager (e.g. Solid Explorer).
  • πŸ“‘ FTP-Client (FileZilla, WinSCP or built-in Total Commander).
  • πŸ“ Firmware file in.bin or.pack format (you can download it on the official Xiaomi website or forums like this one). 4PDA).

Instructions:

  1. Connect the camera to the router via Ethernet cable (Wi-Fi is not suitable for the router). FTP).
  2. Find out. IP-camera address in router settings (section) DHCP Clients or Connected Devices).
  3. V FTP-Enter the client: Host: [IP-Camera address: Port: 21 Login: Admin Password: (by default blank or empty) 123456)
  4. Upload the firmware file to the folder /tmp camera-wise.
  5. Go to the folder. /tmp and rename the file to update.bin.
  6. Reboot the camera with the command: reboot or turn off / turn on the power.

⚠️ Note: Some firmware from third-party developers (such as OpenIPC) require pre-unlocking the bootloader. boot_wait=Without it, the camera won't accept alternative firmware.

How do I know the model of the camera chip?
Open the camera case and look for the markings on the board, Hi3518E or GC2053. The chip model can also be found via Telnet by executing the cat command. /proc/cpuinfo.

After restarting, the camera should automatically update. If this does not happen, check:

  • βœ… Correctness of file name (update.bin).
  • βœ… Permissions for the file (must be 777).
  • βœ… Compatibility of the firmware with your model (see table below).
Camera modelSupported chipMax. firmware version (official)Support for OpenIPC
Mijia 360Β° 1080P (DJT11LM)Hi3518E5.4.5.128Yes.
Mi Home Security Camera 2K (XMCXGG02)GC46533.5.9_0036No.
Dafang (HX-DF1)Hi3518E5.2.1.66Yes.
Xiaomi Mi Home Camera BasicGC20531.4.6_0019No.

4. Alternative firmware: OpenIPC and others

Xiaomi’s official firmware often limits the functionality of cameras, such as blocking access to the camera. RTSP Or they impose cloud services. Alternative firmware like OpenIPC or Dafang-Hacks allows you to do this:

  • πŸ”“ Unlock. RTSP-feed-in NAS, Synology Surveillance Station or Blue Iris.
  • πŸ› οΈ Set up advanced video settings (bitrate, FPS, codecs).
  • 🚫 Remove the binding to Mi Home.
  • πŸ”„ Update the Linux kernel and fix vulnerabilities.

How to install OpenIPC:

  1. Download the firmware for your model from the official website (for example, openipc.hi3518e_v2.sh4.tar.gz for Hi3518E).
  2. Unpack the archive and find the kernel and rootfs file.
  3. Connect to the camera via Telnet (login: root, password: default empty or admin).
  4. Upload files to the camera: cd /tmp wget [link to kernel] wget [link to rootfs]
  5. Install the firmware: fw_setenv bootcmd "bootm 0x82000000" flash_eraseall /dev/mtd1 nandwrite -p /dev/mtd1 kernel flash_eraseall /dev/mtd2 tar -xzf rootfs.tar.gz -C /mnt/mtdblock2 reboot

πŸ’‘

Before installing an alternative firmware, check if it supports your camera sensor. For example, OpenIPC may not work properly with modules. GC4653 The new Mi Home Security Camera 2K.

After installation of OpenIPC, the camera will be available on the IP-web-based address (http://[IP-The default login and password: root/openipc. To set up RTSP-flow use the path:

rtsp://[IP- Cameras]:554/stream

⚠️ Warning: Alternative firmware will disable Xiaomi cloud services. You will not be able to use Mi Home notifications or view cloud records. All data will be stored only locally.

5.Restore the camera after a failed firmware

If the camera doesn't turn on, flashes a red LED or is not detected on the network after the update, do not panic. In 80% of cases, the device can be restored.

  • πŸ”΄ Camera not responding to power: Check the power supply (voltage should be) 5V/2A). Try another cable.
  • 🟑 Yellow/orange LED: Camera in recovery mode. You need to flash it through UART or TFTP.
  • πŸ”΅ Blue LED flashes: Firmware is damaged, but the bootloader is working. FTP.

Method 1: Emergency firmware through TFTP (for Hi3518E)

  1. Connect the camera to the router via Ethernet.
  2. Install it on your computer. TFTP-server, Tftpd64).
  3. Place the firmware file (update.bin) server-folder.
  4. Set up the server IP 192.168.1.100.
  5. Press the Reset button on the camera and plug in the power. Hold the 10-15 second button until the LED flashes yellow.
  6. The camera will automatically download the firmware from the server and install it.

Method 2: Firmware through UART (advanced)

If TFTP It does not help, you will need to connect to UART-The port on the camera board:

  • Disassemble the camera body and find contacts TX, RX, GND (usually signed).
  • Connect. USB-UART adapter (e.g, CP2102) computer-to-computer.
  • Use PuTTY or Screen to connect (speed: 115200 bits/s).
  • Enter the firmware commands via uboot.
Commands for firmware through UART
Example of sequence for Hi3518E: setenv serverip 192.168.1.100 setenv ipaddr 192.168.1.1 tftp 0x82000000 update.bin sf erase 0x50000 0x200000 sf write 0x82000000 0x50000 0x200000 reset

If none of these methods worked, the bootloader might have been damaged, and then all that remains is to replace the flash memory on the board (requires soldering skills) or go to a service center.

Typical errors and their solutions

Even if you follow the instructions, users are faced with errors.

Mistake.Reason.Decision
Update failed at Mi HomeUnstable Internet connection or Xiaomi server is not availableTry again later or use manual updates through FTP
The camera does not turn on after firmwareFirmware file damaged or process interruptedRestore through TFTP or UART (see section 5)
Invalid firmware when downloaded through FTPIncompatible version of the firmwareCheck the chip model and download the correct file
No image after updateResetting camera settings or sensor incompatibilityPerform a reset to factory settings (Reset button)

If after firmware Xiaomi camera stopped connecting to Mi Home, try:

  1. Remove the device from the application and add again.
  2. Reset the camera to factory settings (clamb Reset for 10 seconds).
  3. Check if the antivirus or firewall blocks access to Xiaomi servers.

πŸ’‘

If the camera after firmware is not detected in the network, check if it has changed. IP-Use a network scanner (e.g. Fing or Advanced) IP Scanner to find the device.

7. How to roll back firmware to the previous version

New firmware doesn't always work well, and if there are bugs after the update (e.g., the camera spontaneously restarts or doesn't record video), you can return the previous version.

  1. Download the archive with the desired firmware version (for example, from the forum). 4PDA or the OpenIPC wiki).
  2. Connect to the camera on FTP (sectionally 3) and download the file. update.bin folder /tmp.
  3. Rename the file to downgrade.bin (This is important for some models!).
  4. Reset the camera. It should automatically roll back.

If the backtracking has not occurred, try to flash the old version through TFTP (Please note that after rollback, you may need to reset your settings, as configuration files are sometimes incompatible between versions.

⚠️ Note: A rollback to a version older than 2 releases (e.g., 5.4.5 to 5.2.1) may cause some features to fail.

FAQ: Frequent questions about reflashing IP-Xiaomi cameras

Can I flash a Xiaomi camera without the Mi Home app?
Yes, this will be fine manual update through FTP or TFTP. Alternative firmware like OpenIPC, which does not require a binding to Mi Home, can also be used, but official updates are only available through the proprietary app.
Why the camera can't see the firmware file on the FTP?
Possible reasons: Wrong file name (should be) update.bin). No right to write to a folder. /tmp. FTP-The server on the camera is disabled (check if the port is working) 21). Solution: Try connecting via Telnet and manually copy the file with the wget command.
How to turn it on RTSP on Xiaomi camera after OpenIPC firmware?
After installation of OpenIPC RTSP-The stream is automatically activated. To connect: Find out IP-The camera address (for example, via router). URL: rtsp://[IP-camera]:554/stream To log in, enter root and openipc password (if you haven't changed it). If the stream doesn't open, check that the port is open. 554 firewall-free.
The camera is constantly rebooted after the firmware is installed.
This is a typical symptom of a firmware incompatibility with iron. TFTP (See section 5. Try another firmware version (e.g. older version). If OpenIPC is used, check compatibility with your chip on the project wiki.
Can I flash Xiaomi camera on Android or only from PC?
You can flash the camera from a smartphone, but you will need to do this: FTP-client (e.g. Solid Explorer or FX File Explorer. Terminal emulator for Telnet (e.g. Termux) Firmware file downloaded to the device. TFTP or UART You'll need a computer.