Jump to content

Xiaomi Mi Smart Clock (xiaomi-x04g)

From postmarketOS Wiki
Xiaomi Mi Smart Clock
Xiaomi Mi Smart Clock
Xiaomi Mi Smart Clock
Manufacturer Xiaomi
Name Mi Smart Clock
Codename xiaomi-x04g
Model X04G
Released 2021
Type watch
Hardware
Chipset MediaTek MT8167
CPU Quad-core Cortex-A35 @ 1.5 GHz
GPU Imagination PowerVR GE8300
Display 800x480
Storage 4GB eMMC
Memory 1GB DDR3 (Single channel)
Architecture aarch64
Software
Original software Android Things
Original version
The version the device was shipped with.
10
postmarketOS
Category testing
Pre-built images
Whether pre-built images are available here.
no
Mainline
Instead of a Linux kernel fork, it is possible to run (Close to) Mainline.
partial
pmOS kernel
The kernel version that runs on the device's port.
6.11-rc4
Features
Flashing
It is possible to flash the device with pmbootstrap flasher.
Works
USB Networking
After connecting the device with USB to your PC, you can connect to it via telnet (initramfs) or SSH (booted system).
Works
Internal storage
eMMC, SD cards, UFS, ...
Works
Screen
Display works. Ideally with sleep mode and brightness control.
Untested
Touchscreen
Untested
Multimedia
3D Acceleration
Untested
Audio
Audio playback, microphone, headset and buttons.
Untested
Connectivity
WiFi
Untested
Bluetooth
Untested
Miscellaneous
FDE
Full disk encryption and unlocking with unl0kr.
Untested
Sensors
Ambient Light
Untested
Proximity
Untested


Contributors

Users owning this device


How to enter flash mode

  • Start mtkclient on your host
  • Hold the volume up (+) button, then plug in the micro-USB cable from your host to the clock

Installation

Use pmbootstrap to build your own installation image.

Partition layout

1: proinfo
2: nvram
3: persist
4: seccfg
5: lk
6: lk2
7: boot
8: recovery
9: para
10: logo
11: dtbo
12: expdb
13: frp
14: tee1
15: tee2
16: kb
17: dkb
18: md_udc
19: metadata
20: nvdata
21: vbmeta
22: vbmeta_system
23: vbmeta_vendor
24: super
25: cache
26: userdata

UART

The smart clock has UART pins. It uses a baud rate of 921600. The pin labelled TP30 is TX, TP29 is RX. They are located on the back of the board.

UART pins on the X04G board, click for higher resolution

Bootloader log

Bootloader log


See also