Files
opencode.siil.arti.ee 8dc2c663d4 G90 (RK3128) handheld: dump analysis, patched EmuELEC, upstream notes
- hardware decoded from the stock DTB (panel, keys, battery, gamepad, WiFi,
  power, storage layout) and the 16 MiB boot area
- EmuELEC 4.7 / Linux 5.10.160 inventory, partition map, extlinux boot chain
- patched SYSTEM with dropbear SSH, userspace WireGuard, jq, dtach, iperf3,
  tcpdump; build script, units, authorized keys, install/rollback docs
- EmuELEC OTA tar format and the initramfs apply logic, incl. the FAT32
  EEROMS:/.update bind mount
- upstream EmuELEC vs rk3128-cfw vs mainline 6.6 assessment and driver gaps
- SV6160/RK915 WiFi: vendor module metadata, firmware hashes, clean-room
  mainline driver requirements, Codeberg DNS workaround
- tools: dump/partition extractors, FDT dumper, Kagi share exporter
2026-11-18 08:44:38 +00:00

4.3 KiB
Raw Permalink Blame History

G90 hardware, decoded from the stock device tree

All values below come from rk3128-evb-ddr3-v10-linux.dtb extracted from the FAT boot partition, plus the boot area and the squashfs. Full text dump: g90.dts.txt. The file is named after the Rockchip EVB it was derived from, but it is the G90's real board description.

Boot area (first 16 MiB of the card)

Offset Contents
0 MBR, partition table
32 KiB idbloader (DDR init + miniloader)
8 MiB uboot.img (LOADER header), distro-boot u-boot
12 MiB trust.img (TOS header), OP-TEE

U-Boot environment strings show distro_bootcmd, boot_extlinux=sysboot …, so the bootloader reads extlinux/extlinux.conf from partition 1. No signature verification anywhere; KERNEL.MD5 and SYSTEM.MD5 on p1 are 48 bytes of zeros.

Partition table

# Start sector Size Type Label
1 32768 1,572,864 s (768 MiB) 0x0c FAT16, bootable EMUELEC
2 1,605,632 1,048,576 s (512 MiB) 0x82 swap —
3 2,654,208 9,928,704 s (4,848 MiB) 0x83 ext4 STORAGE
4 12,582,912 89,817,088 s (42.8 GiB) 0x0c FAT32 EEROMS

Partitions are contiguous; p4 begins exactly at 6 GiB.

SoC / memory

  • RK3128, 4x Cortex-A7, Mali-400 MP2 (rockchip,rk3128-mali + arm,mali-400).
  • DDR3, ddr3_speed_bin = 0x15, ddr_timing node present.
  • CPU OPPs 216/408/600/696/816/1008/1200 MHz; GPU OPPs 200–480 MHz.
  • vdd_arm and vdd_logic are PWM regulators (pwm1, pwm2), 0.75–1.5 V, init 1.1 V; vcc_sys fixed 3.0 V.

Display

  • 4-lane MIPI-DSI via rockchip,rk3128-mipi-dsi + rockchip,rk3128-dsi-dphy.
  • Panel: simple-panel-dsi, 600x1024 native (portrait panel, rotated by ES), 153 mm x 85 mm per DT.
  • Timing: pixel clock 43,200,000 Hz, hfp 40 / hsync 20 / hbp 20, vfp 24 / vsync 4 / vbp 8, dsi,flags = 0xa03, dsi,format = 0, 4 lanes.
  • Init: ~40 DCS commands in panel-init-sequence (full sequence in the dts dump).
  • Delays: prepare/reset/init 20 ms, enable 120 ms, disable/unprepare 20 ms, reset GPIO gpio0 24 (active low).
  • Backlight: pwm-backlight on PWM0, 25 kHz, 256 levels, default 128.
  • Panel rail: vcc3v3_lcd_n, gpio1 12, active low, boot-on.

Input

Volume/menu keys (adc-keys, SARADC channel 1, poll 100 ms):

Key Linux code Threshold
volume up 115 20,000 µV
volume down 114 549,999 µV
menu 139 1,240,000 µV
esc 1 1,980,000 µV
key-up threshold — 3,300,000 µV

Gamepad (micro,gamepad, vendor driver):

  • 4 SARADC axes: left X/Y (ch 0/1), right X/Y (ch 2/3), threshold 3300 µV.
  • gpio-key-num = 18 GPIO buttons, 30 ms poll, 100 ms debounce.
  • Two "rocker" GPIOs: gpio0 9 and gpio0 12.
  • RGB LED: red gpio3 21, green gpio1 7, blue gpio3 20.

Power and battery

  • rk30-adc-battery, is_dc_charge = 1, DC-detect gpio0 11.
  • Charge LEDs: red gpio2 26, blue gpio2 27.
  • bat_table (28 entries, from the DT): 0 0 0 0 200 300 3400 3440 3480 3510 3590 3650 3710 3790 3880 3950 4020 3480 3810 3875 3915 3951 3991 4052 4114 4144 4172 4219
  • pwr_ctrl: shutdown-detect gpio0 8, power-hold gpio0 25.

Audio

  • rockchip,rk3128-codec, I2S, speaker amp enable gpio0 30, spk_volume 15, hp_volume 15, spk-mute-delay 200 ms, hp-mute-delay 100 ms.
  • Headphone detect disabled in the DT (codec_hp_det = 0); SPDIF present but unused.

Storage and WiFi

  • eMMC: dwmmc@1021c000, 8-bit, non-removable.
  • SD: dwmmc@10214000, 4-bit, vmmc-supply = vcc_sdmmc (gpio1 14).
  • SDIO: dwmmc@10218000, 4-bit, supports-sdio, supports-rk912, mmc-pwrseq = sdio-pwrseq (reset gpio0 0 + gpio2 21).
  • wireless-wlan: wifi_chip_type = "rk915", host-wake IRQ gpio3 17.
  • Firmware in the rootfs: rk915_fw.bin (48,056 B), rk915_patch.bin (16,716 B).

Thermal / misc

  • tsadc with two trip points, PWM fan not present.
  • RTC hym8563 on I2C0 at 0x51 (not populated on every batch?).
  • ramoops at 0x62e00000 (0xf0000) and a 24 MiB CMA region at 0x63000000.
  • UART console: ttyFIQ0 @ 115200 on UART1 (per extlinux.conf).

What differs from the reference EVB

The EVB base has HDMI and Ethernet; the G90 adds the DSI panel, adc-keys, rk30-adc-battery, pwr_ctrl, the SDIO WiFi, the gamepad node, the RGB LED, and the PWM regulators. HDMI is left disaled (sic) in the stock DT.