Open-source Linux firmware for RTL8196E-based smart home gateways (Lidl Silvercrest, Sengled G4) — Zigbee, Thread/OTBR — formerly hacking-lidl-silvercrest-gatew
Open-source Linux firmware for RTL8196E-based smart home gateways (Lidl Silvercrest, Sengled G4) — Zigbee, Thread/OTBR — formerly hacking-lidl-silvercrest-gatew
Renamed project: formerly
hacking-lidl-silvercrest-gateway— the same project, now covering the Sengled G4 and other RTL8196E gateways. Old GitHub links redirect automatically; the documentation now lives at the project documentation site.⭐ Is this project useful to you? Please consider giving it a GitHub star. It helps others discover the project and motivates continued development.
Questions and setup help: Discussions · Reproducible bug: open an Issue
Replace the cloud firmware on a supported smart-home gateway with a small, fully local Linux system. The gateway can then serve as a Zigbee coordinator, a Thread Border Router, or a standalone Zigbee router.
Supported boards include the Lidl Silvercrest / Tuya gateway and the Sengled Smart Hub G4 (E39-G8C). Pre-built images are included; rebuilding from source is optional.
First installation requires hardware access. A stock Lidl/Tuya gateway must be opened and connected to a 3.3 V USB-to-UART adapter. The serial connection is normally needed only once. Later upgrades use Ethernet and SSH.
Choose the path that describes your gateway now:
| Your situation | Read this |
|---|---|
| Stock Lidl/Silvercrest gateway with Tuya firmware | First installation |
| Stock Sengled Smart Hub G4 | Sengled hardware notes, then first installation |
| Gateway already running this project | Upgrade guide |
| Unsure which Zigbee or Thread firmware to use | Choose a radio mode |
| Something is not working | Troubleshooting |
| Want to modify or rebuild the firmware | Developer path |
If this is your first embedded-Linux project, follow the first-installation guide in order. It explains the physical connection, backup, serial terminal, network setup, flashing, and post-install checks. Experienced users can use the short checklist at the top of that page.
otbr-agent running on the gatewaycpcd, and zigbeedFor most people who want to use Zigbee2MQTT or ZHA, the recommended setup is the NCP firmware. It exposes the radio at:
tcp://:8888See Choose a radio mode before selecting RCP, OpenThread, or router firmware.
A gateway contains two independent processors:
Home Assistant / Zigbee2MQTT
|
Ethernet
|
RTL8196E running Linux
|
UART1
|
EFR32 Zigbee/Thread radioThe installation therefore has two firmware stages:
flash_efr32.sh generates the matching radio configuration automatically.The first-installation guide includes the existing PCB photo, the J1 pinout, safe UART wiring, and the complete command sequence.
| Board | BOARD value |
Default kernel | Notes |
|---|---|---|---|
| Lidl Silvercrest / Tuya reference board | lidl |
Linux 6.18 | Default; do not set BOARD |
| Sengled Smart Hub G4 (E39-G8C) | sengled-e39-g8c |
Linux 6.18 | Board-specific bootloader, kernel, and radio images |
Linux 7.2 is also available as an alternate kernel line. New users should keep the production default, Linux 6.18. Board and kernel choices are explained in the install and upgrade reference.
Other RTL8196E gateways can be ported through devicetree and per-board build data. Start with the board-porting documentation and the component-specific developer guides.
The normal administration surface is SSH on port 22. The fresh image uses
root / root; change that password immediately:
ssh root@
passwdThen continue with Using and maintaining the gateway for SSH keys, network settings, backups, LEDs, radio state, and recovery.
The Zigbee bridge on TCP port 8888 has no application-level authentication. Keep it on a trusted LAN or bind it to loopback and use an SSH tunnel; see the UART bridge security guide.
Normal installation uses pre-built files and needs only a few host packages. Do not install the complete toolchain unless you intend to rebuild firmware.
This project builds on the initial research by Paul Banks.
What followed came from people who reported, tested and wrote code — several of them running unreleased builds on gateways they depend on, which is the only reason some of these bugs were ever found. Roughly in order of how much each of them shaped the firmware:
resolv.conf, an S15hostname fix, and the
toolchain patches needed for the build to complete.board.h, blmode pin timing and the
board documentation. This project supports a second board because of that
work. Also reported the G4 bootloader flashing gap (#148), the flickering
status LED (#120) and the missing xxd dependency (#147).radio.conf not being written (#93), plus the
early Zigbee2MQTT timeouts in #28.rcp-stack run).flash_install_rtl8196e.sh (#103) and raised mDNS IPv6 announcement
(#77).Released under the MIT License.
No open issues yet, or sync has not completed.