prplos/package/boot
Coia Prant f9dcd2bbe4 ramips: add support for Qding QC202
This is a smart door lock device equipped with OpenWrt 14.07 OEM
modified version Qdwrt

The OEM has closed down, This commit is intended to maximize the
remaining value of these devices. It can flash OpenWrt to become
an AP

Specification:
- SoC: MediaTek MT7628NN
- Flash: 8 MB
- RAM: 64 MB
- Power: DC 5V - 25V
- Ethernet: 1 x RJ45 (10/100 Mbps)
- Wireless radio: 802.11n 2.4g-only
- On-Board LED:
  Status 1: GPIO/43 active-low
  Status 2: GPIO/44 active-low
  Power: AlwaysOn
- Button:
  WPS / RESET: GPIO/14  active-low
- Bluetooth: CC2541 via UART1 (ttyS1) and GPIO/26-29
- RFID: MF RC522 on I2C@28
- RTC: DS1339 on I2C@68
- Shell (via CON1 cable)
  - LED (Swipe card area):
     -  Green  GPIO/3  active-high
     -  Red    GPIO/11 active-high
  - Matrix keypad: (active-low)
                 GPIO/20 GPIO/21 GPIO/19 (Rows)
        GPIO/24        1       2       3
        GPIO/25        4       5       6
        GPIO/22        7       8       9
        GPIO/23     BACK       0   ENTER
        (Cols)
- UART: 1 x UART on PCB - 57600 8N1
- GPIO Relay: GPIO/42 active-high
- GPIO Buzzer: GPIO/15 active-high

Warning:
The original firmware does not use the device tree.
This device tree is written based on the content of /sys/devices/platform
and has been tested

Note:
- On the device, matrix keypad rows actually are columns, and the columns actually are rows
- The key code of the CLEAR key of the matrix keypad is BACK in the original firmware.

Issue:
- No drivers in mainline kernel for RFID and Bluetooth.

Flash Instruction:
Using SSH/Telnet:
1. Connect the board to the computer via RJ45 Ethernet
2. Login 10.10.10.1 with root password "szqdingnet123" (SSH Port 22, Telnet Port 9900)
3. Download openwrt firmware on the computer.
4. Setup a http server on computer. And use wget download openwrt firmware from computer
5. Use command "mtd -r write openwrt-ramips-mt76x8-qding_qc202-squashfs-sysupgrade.bin firmware"
   to flash

Using U-Boot WebUI:
1. Configure PC with a static IP address 10.10.10.2/24.
2. Open http://10.10.10.1
3. Use "mkqdimg -B qc202 -f openwrt-ramips-mt76x8-qding_qc202-squashfs-sysupgrade.bin" to
   make image.
4. Upload factory.bin via U-Boot WebUI.

Original Firmware Dump / More details:
https://blog.gov.cooking/archives/research-qianding-smart-locker-and-flash.html

Original U-Boot firmware image tools:
https://gitlab.com/CoiaPrant/mkqdimg

Signed-off-by: Coia Prant <coiaprant@gmail.com>
Tested-by: Coia Prant <coiaprant@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/17471
(cherry picked from commit b2f814fed469f435fbb6b5ec9f79e1012caabc3f)
Link: https://github.com/openwrt/openwrt/pull/20159
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
(cherry picked from commit b9382cb73352f97c231c20bb9dd5a22123d10344)
2026-07-09 10:57:26 +01:00
..
apex
arm-trusted-firmware-bcm63xx
arm-trusted-firmware-mediatek mediatek: add ubootmod layout for cudy tr3000 v1 2025-07-06 17:17:39 +02:00
arm-trusted-firmware-mvebu
arm-trusted-firmware-rockchip
arm-trusted-firmware-stm32 arm-trusted-firmware-stm32: bump to v2.10.17 2025-06-16 15:35:49 +02:00
arm-trusted-firmware-sunxi
arm-trusted-firmware-tools
at91bootstrap
fconfig
grub2
imx-bootlets
kexec-tools
kobs-ng
mt7623n-preloader
opensbi
optee-os-stm32 optee-os-stm32: add OP-TEE for stm32 boards 2024-11-28 18:48:24 +00:00
rkbin
tfa-layerscape
uboot-armsr
uboot-at91
uboot-ath79 uboot-ath79: refresh patches 2024-10-19 17:56:46 +02:00
uboot-bcm53xx
uboot-bcm4908
uboot-bmips
uboot-d1 uboot-d1: Adapt BUILD_DEVICES to renamed boards 2024-12-23 01:55:35 +01:00
uboot-envtools ramips: add support for Qding QC202 2026-07-09 10:57:26 +01:00
uboot-fritz4040
uboot-imx
uboot-kirkwood
uboot-lantiq
uboot-layerscape
uboot-mediatek uboot-mediatek: update Airoha EN8811H driver 2026-07-09 10:57:26 +01:00
uboot-mvebu uboot-mvebu: update to version 2024.10 2024-10-19 22:54:12 +02:00
uboot-mxs
uboot-omap
uboot-rockchip rockchip: Add support for Radxa ROCK 4SE 2026-07-09 10:57:24 +01:00
uboot-sifiveu
uboot-stm32 uboot-stm32: add U-Boot for stm32 boards 2024-11-28 18:48:26 +00:00
uboot-sunxi
uboot-tegra
uboot-zynq