Repository navigation
Description
Knulli build version
scarab 2026/05/11 22:00 (image knulli-t527-trimui-smart-pro-s-scarab-20260511.img.gz), rootfs MD5 fa5f314c5896d18882f315f1c44c8b8e, kernel 5.15.147, channel stable
Your architecture
TrimUI Smart Pro S (Allwinner T527 / sun55iw3, native portrait 720x1280 DSI panel, system runs landscape 1280x720 via DRM rotation). Handheld.
Issue description
The boot splash drawn by /etc/init.d/S03system-splash never appears during the init phase: after the U-Boot logo the screen stays black until the EmulationStation loading screen. Two separate defects combine:
-
The script selects a splash file that does not exist. It builds the filename from the framebuffer virtual size. On this build
fbsetreportsgeometry 1280 720 1280 1440 32(virtual height doubled for page flipping), so it computesboot-logo-1280x1440.png(missing), falls back toboot-logo.png, then its portrait test1280 < 1440substitutesboot-logo-half.png(also missing) and exits without drawing. -
Even when drawn manually, fbdev drawing cannot display correctly on this build. The DRM scanout and the fbdev view of the same buffer disagree (details in Logs). A boot hook redrawing with
fbvevery 2 s for the whole phase (8 draws, all rc=0) produced only a brief dark flicker on the panel.
On the Brick Pro (A133 build, landscape-native panel) the same phase shows the splash correctly.
Detailed reproduction steps
- Flash
knulli-t527-trimui-smart-pro-s-scarab-20260511.img.gzon a TrimUI Smart Pro S. - Power on.
- U-Boot logo shows, then the screen is black for the entire init phase (~uptime 4-20 s); the Knulli splash is never displayed. The ES loading screen then appears normally. 100% reproducible, fresh install.
Details of any attempts to fix this yourself
Investigated on-device (SSH) with logging hooks:
- Confirmed the file-selection chain above against
fbsetoutput and the contents of/usr/share/knulli/splash/(contains onlyboot-logo.png,boot-logo-1280x720.pngand localized 1280x720 variants). - Created the two missing filenames: boot then shows a one-frame flicker, then black again (leads to defect 2).
- Captured
/sys/kernel/debug/dri/0/statemid-boot (~11 s uptime):
plane[93]: plane-0-vch0(0)
crtc=DE-0
fb=159
allocated by = sunxi_fbdev
format=AR24 little-endian (0x34325241)
size=720x2560
layers: size[0]=720x2560 pitch[0]=2880
obj[0]: size=7372800 paddr=0x00000000ff800000
crtc-pos=1280x720+0+0
src-pos=720.000000x1280.000000+0.000000+0.000000
rotation=1
The panel is scanning the fbdev buffer, but as 720 px wide with pitch 2880, taking a 720x1280 portrait window rotated 90 degrees. The fbdev interface exposes the same 7,372,800-byte buffer as 1280x720 visible / 1280x1440 virtual (5120-byte stride). 1280x1440x4 = 720x2560x4 — same memory, incompatible geometries, so anything fbv writes is diagonally sheared (dark artwork reads as a flicker, then "black"). Reading /dev/fb0 back mid-phase confirms the logo pixels are in the buffer. Also tried writing a pre-rotated raw frame (ffmpeg transpose to 720x1280 BGRA, dd to /dev/fb0): panel stayed black — the fbdev path on this build seems unreliable for early splash in general.
Suggested directions: (a) make S03system-splash use the visible size for the filename and the portrait test; (b) align the sunxi_fbdev geometry with the scanout on rotated/portrait builds (or set virtual == visible) so standard fbdev tools work; (c) draw the early splash via KMS instead of fbdev.
Details of any modifications you have made to Knulli
A third-party localization app (KnulliVietHoa) is installed in /userdata; it does not touch the boot path, splash files or fbdev (verified: the issue reproduces from the stock image logic above, and all boot experiments were reverted).
Logs and data
Key data is inline above (fbset geometry, splash dir contents, DRM state dump). Board: trimui-smart-pro-s (/boot/boot/knulli.board). Happy to run further tests or try patched builds on request.
Activity