Firmware Hero
0

XMG2

This repository contain scripts and custom zigbee firmware for flashing Xiaomi Multimode Gateway 2 (aka DMWG03LM, DMWG04LM, lumi.gateway.mgl001).

  • Custom firmware
  • Stable
  • Medium brick risk
  • Reversible

Source code

This project hasn't been claimed by its maintainer yet, so its details come from the community. Is it yours? Claim it

Before you start

How hard is it?
EasyCopy a file or use a web page. No extra software.
What you need
  • Comfort with the command line
  • A computer
Can it break my device?
Small chance of trouble, with a way to recover.
Can I undo it?
Yes. You can go back to the official software.
Get itOpens github.com

Did it work for you?

Did XMG2 work on your Xiaomi Smart Home Hub 2?

No reports yet.

One-tap reports from owners. Bricked reports are checked before they count.

Compatibility

Devices: Xiaomi Smart Home Hub 2.

No compatibility information yet.

Getting started

From the project's README ("Prepare gateway:"):

  1. install and configure AlexxIT gateway3 integration
  2. copy content of the data folder of this repository to the /data folder on the gateway (replacing the /data/scripts/postinit.sh file is optional, more details below). The easiest way is to open ftp via AlexxIT gateway3 integration
  3. chmod +x /data/bin/ /data/scripts/

Now you can use /data/scripts/flash{stock/custom}firmware.sh scripts. Follow the instructions in the output of the corresponding script. During flashing you can choose between a long-tested firmware from this repository and the latest firmware from the darkxst/silabs-firmware-builder repository.

Before updating the hub via Mi Home, you need to install the standard Zigbee firmware and delete/rename the postinit.sh. After update you can flash custom zigbee firmware again.

z2m adapter settings:

  • port: tcp://gatewayip:8888
  • adapter: ember
  • baudrate: 115200
  • flow control: hardware/software, both work

Read the full instructions

Risk and recovery

Brick risk
Medium
Reversible
Yes
Requires opening the device
No