Boot splash: where the Wall Display XL's power-on logo lives, and how to replace it
On this page
Status (2026-11-30): working (verified on a real panel). The power-on logo is logo.bmp (and
logo_kernel.bmp, the copy U-Boot hands to the kernel) inside Rockchip's RSCE resource container,
which rides in the second section of the stock header-v2 boot.img. Kiln's
@glassworks/bootpatch now reads that container, swaps both logos, re-digests them, and rebuilds
boot.img with every other byte intact. On the stock dump an unchanged rebuild comes out
byte-identical, down to the boot header's id. The boot generator writes the full-panel
800×1280 8-bit RLE8 logo (splash: "rockchip-rsce", 19,820 bytes), and a rebuilt boot.img
flashed and booted cleanly on a real Shelly Wall Display XL on 2026-11-30 with the Glassworks
early splash right-side-up and zero Shelly logo before the boot animation.
Device: Shelly Wall Display XL, stock Android 11 (the dumps from hardware.md). Tools:
Python 3 struct/hashlib, strings, dtc 1.7, the repo's vitest. Everything below was read
offline from the stock boot.img and the low 32 MiB uboot.img. No USB device was touched.
Question
Shelly's logo shows from the first instant of power-on, before Android and before our boot animation. Glassworks should own that moment too. Where does the bootloader get the picture, in what format, and can we replace it without touching U-Boot itself, with a way back?
How we got here
hardware-interfaces.md had already found that boot.img's second
section (226,304 bytes) starts with RSCE and holds one of the two device trees. On Rockchip, that
container is where U-Boot looks for its splash pictures as well as its device tree, so it was the
obvious first place to look. The alternatives were worse: a logo partition (the GPT has none), or
the picture compiled into U-Boot (that would mean writing the bootloader, the riskiest write there
is).
So we read the container from first principles. The header's block-sized layout and the ENTR
records are easy to see in a hex dump, and the file names are plain text. One surprise came out of
that: each record's 256 bytes after the tag don't hold only a name. A 20-byte value at record offset
224, with 0x14 (20) at offset 256, matched SHA-1 of the file it describes, for all ten files. That
matters because U-Boot uses it. Its strings include HASH(c): and Invalid DTB hash ! right next
to the resource loader's messages, so a rebuild that changes a file without re-digesting it risks a
panel that loses its device tree. The rebuilder recomputes the digest of every file it replaces, and
refuses an input whose digests are already wrong.
The next question was the picture's format. Stock's logo is an 8-bit RLE8 BMP of 720×720, with the
Shelly wordmark turned 90° clockwise. The turn made sense once the device tree was read: the DSI
panel's native mode is 800×1280 (portrait), Android turns it to the 1280×800 people see, and U-Boot
draws the logo centered (logo,mode = "center") in the panel's own orientation. U-Boot's strings
also rule out the obvious "just use 24-bit": it can't decode a compressed 24-bit BMP (can't not support compression for 24bit bmap), and an uncompressed one at full panel size would be about
3 MB in a 41 MB partition. So the generator writes what stock writes: 8-bit RLE8, bottom-up, 256
palette entries, using only the RLE operations stock uses. It fills the whole 800×1280 panel instead
of a 720×720 square, so our near-black background (#0a0b0f) has no visible box around it on the
black the bootloader clears to.
What we tried
-
The boot header (2026-11-30, read)
$ python3 (struct over boot.img, 41,943,040 bytes) header v2, page 2048 kernel 31895560 ramdisk 678273 second 226304 recovery_dtbo 0 dtb 136601 second at byte 32579584; everything after the dtb block is zero; no AVB footer id = SHA-1(kernel, size, ramdisk, size, second, size, recovery_dtbo, size, dtb, size) -> matchesThe
idis mkbootimg's SHA-1, so a rebuild has to recompute it the same way. -
The
RSCEheader (2026-11-30, read)52534345 0000 0000 01 01 01 00 0a000000 (then zeros to byte 512) "RSCE" ver tbl hdr tbl ent pad count=10One 512-byte header block, the table from block 1, one block per entry, ten entries. The count is a 32-bit field at byte 12 (aligned), not packed at byte 11.
-
The
ENTRtable (2026-11-30, read)offset in record: 0 "ENTR" | 4 name, NUL-terminated (220 bytes) | 224 digest (32 bytes) 256 u32 digest size (20) | 260 u32 first block | 264 u32 size in bytes # name block bytes SHA-1 ok 0 rk-kernel.dtb 11 136601 yes 1 battery_1.bmp 278 6300 yes 2 battery_2.bmp 291 6300 yes 3 battery_3.bmp 304 6300 yes 4 battery_4.bmp 317 6300 yes 5 battery_5.bmp 330 6196 yes 6 battery_fail.bmp 343 6680 yes 7 logo.bmp 357 18026 yes 8 logo_kernel.bmp 393 18026 yes 9 battery_0.bmp 429 6170 yesFiles are stored in table order, each from its own block, zero-padded. The container ends on the block after the last file (226,304 = 442 × 512). No gaps beyond the block padding.
-
The logos (2026-11-30, read)
logo.bmp: BM, 18026 bytes, pixels at 1078, header 40, 720 x 720 (positive height: bottom-up) 8 bpp, compression 1 (BI_RLE8), image 16948 bytes, 2835 px/m, 256 colours used/important RLE ops: 7753 encoded runs, 720 end-of-line (one per row, the last one included), 1 end-of-bitmap, no absolute runs, no deltas logo_kernel.bmp: the same bytes (same SHA-1) battery_*.bmp: 220 x 110, 8-bit RLE8, the same layoutDecoded, the logo is the Shelly wordmark turned 90° clockwise on black.
-
U-Boot's requirements (2026-11-30, read:
stringsoveruboot.img, both FIT copies)1015607 RSCE / 1015750 rk-kernel.dtb / 1015819 logo.bmp / 1015828 logo_kernel.bmp 1025411 HASH(c): / 1025448 Invalid DTB hash ! (next to the resource loader) 962594 can't not support compression for 24bit bmap 962639 unsupport bit=%d now / 971317 can't support bmp bits[%d] 1004744 failed to use boot buf as temp bmp buffer / 1004810 failed to decode bmp %s 1020902 logo,width / logo,height / logo,bpp / logo,ymirror (handed to the kernel)U-Boot (RK3566,
rockchip,rk3566) checks resource digests at least for the device tree, takes compressed BMPs only at 8 bits, and passes the kernel the decoded logo's size and orientation. -
The device tree's display route (2026-11-30, read:
dtcoverrk-kernel.dtbfrom the container)route-dsi0 { status = "okay"; logo,uboot = "logo.bmp"; logo,kernel = "logo_kernel.bmp"; logo,mode = "center"; ... } dsi0 timing0: hactive = <0x320> (800); vactive = <0x500> (1280) reserved-memory/drm-logo: reg = <0 0 0 0> (U-Boot fills it in at boot)The panel is natively portrait. The logo is drawn centered in that orientation, so a logo of exactly 800×1280 fills it.
-
Rebuild, offline, on the stock dump (2026-11-30, verified offline: a scratch vitest outside the repo, against
bootpatch/src/rsce.ts)parseRsce(second): 10 entries, every SHA-1 matches replaceRsceEntries(second, { logo.bmp: <its own bytes> }) -> byte-identical to stock replaceBootSecond(boot, <that>) -> byte-identical boot.img (id included) replaceBootRsceLogos(boot, <generated 800x1280 RLE8, 19,820 bytes>): second 226304 -> 229376 bytes; image still 41943040 bytes kernel, ramdisk, dtb: same SHA-1 as stock; rk-kernel.dtb and every battery_*.bmp unchanged both logos replaced, every digest valid; header id = mkbootimg's SHA-1 of the new blocks header page identical except second_size and id
Result
| Fact | Evidence |
|---|---|
The splash is logo.bmp (U-Boot) and logo_kernel.bmp (handed to the kernel) in the RSCE container in boot.img's second section |
steps 1, 3, 6 |
Container: 512-byte blocks, RSCE header (count at byte 12), ENTR records with a 220-byte name, a 32-byte digest, its size, first block and byte size |
steps 2, 3 |
| Each record carries SHA-1 of its file, and U-Boot checks digests (at least the device tree's) | steps 3, 5 |
| Stock logo: 720×720, 8-bit, BI_RLE8, bottom-up, 256-colour palette, 18,026 bytes; both logos are identical | step 4 |
| The panel is natively 800×1280; the logo is drawn centered, turned 90° clockwise from what people see | steps 4, 6 |
| U-Boot refuses compressed 24-bit BMPs | step 5 |
| Kiln's rebuild is byte-identical when nothing changes, and keeps every other file and block intact when the logos do | step 7 |
What Glassworks does with it:
@glassworks/bootpatch(src/rsce.ts):parseRsce,replaceRsceEntries,replaceBootSecond,replaceBootRsceLogos. Frame-neutral: they know Rockchip's container and file names, nothing about this device.- The boot generator (
branding/boot,splash: "rockchip-rsce"in this frame'sframe.json): the landscape splash turned 90° clockwise to 800×1280, 8-bit RLE8, bottom-up, written with only the RLE operations stock uses (encoded runs, one end-of-line per row, one end-of-bitmap). The splash has fewer than 256 colours, so it is lossless.
How to reproduce
From the repo root, with a stock boot.img outside the repo:
npm test -w @glassworks/bootpatch # the synthetic tests (test/rsce.test.ts)
python3 branding/boot/generate.py --frame shelly-wall-display-xl --out /tmp/shelly-boot
Then, in a scratch script outside the repo, import kiln/packages/bootpatch/src/rsce.ts and run
parseRsce(bootSecond(boot)) and replaceBootRsceLogos(boot, bootlogo.bmp) on the dump, as step 7
does. The build appends the new splash's SHA-256 to branding/bootlogos.json, so revert that file
unless you are committing the outputs.
What it rules out
- Writing U-Boot for the logo. The picture isn't in the bootloader, so the splash needs no write
to
uboot, only toboot, which Kiln already backs up and can restore. - A plain 24-bit logo at full panel size. It would decode, but the 8-bit RLE8 file is about 20 KB, not 3 MB, and it is the format U-Boot is known to draw on this panel.
- Swapping the logo bytes in place. Ours is a different size, and the files after it move, so the container is rebuilt (the S1's Allwinner splash, by contrast, has to keep the stock size).
Live panel verification (2026-11-30, verified)
Combined the 19,820-byte 800×1280 8-bit RLE8 bootlogo.bmp (formats.rockchip_bmp) with our
Magisk v31.1 arm64-v8a + 1280×800 bootanimation.zip overlay via replaceBootRsceLogos
(boot_splash_and_anim.img, sha256 d72105be…e78b34), flashed all 40 MiB via the hands-free
autoLoader cycle with full read-back verification and byte-exact stock Copy-A restore, and
rebooted. U-Boot and the kernel displayed the Glassworks splash right-side-up with zero Shelly
branding, rk-kernel.dtb loaded cleanly, and Android came up in 14 s with /odm/media/bootanimation.zip
bind-mounted.
Open questions
- Whether U-Boot checks the logos' digests too, or only the device tree's. The rebuild recomputes them either way.
- Charging pictures (
battery_*.bmp) are left as stock. The panel has no battery, so they likely never show.