This firmware is a replacement for the original firmware for the Zigbee chip JN5169 on Xiaomi DGNWG05LM and Aqara ZHWG11LM gateways which allows to use the gateway as a router (repeater-like) in any Zigbee network instead of the stock coordinator firmware for the propriate Xiaomi MiHome Network.
This instruction assumes that an alternative OpenWRT firmware is already installed on the gateway. If you have not done this, use the following instruction https://openlumi.github.io
- Connect to device via SSH.
- Issue the following commands in the command line.
wget https://github.com/igo-r/Lumi-Router-JN5169/releases/latest/download/LumiRouter_20210320.bin -O /tmp/LumiRouter.bin
jnflash /tmp/LumiRouter.bin
Issue the following command in the command line.
jntool erase_pdm
After this the device will automatically join.
Issue the following command in the command line.
jntool soft_reset
- Downlaod and unpack ba2 toolchain, e.g. from https://github.com/openlumi/BA2-toolchain/releases/download/20201219/ba-toolchain-20201219.tar.bz2
- Donwload and unpack NXP SDK (JN-SW-4170) from nxp.com. If you use linux, you can use patched version that fixed compiling issues from https://github.com/devbis/JN-SW-4170/archive/refs/heads/master.zip
- Configure project with proviing paths to SDK and toolchain:
cmake -B build -DTOOLCHAIN_PREFIX=/full/path/to/toolchain -DSDK_PREFIX=/full/path/to/sdk
- Build project
cmake --build build --target LumiRouter.bin -j$(nproc)
- Get compiled firmware in build/src/LumiRouter.bin