Skip to content

Boot splash (S03system-splash) never displays on TrimUI Smart Pro S (T527): wrong file selected, and fbdev geometry mismatches DRM scanout #121

Open

Description

@nlkcodenew

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:

  1. The script selects a splash file that does not exist. It builds the filename from the framebuffer virtual size. On this build fbset reports geometry 1280 720 1280 1440 32 (virtual height doubled for page flipping), so it computes boot-logo-1280x1440.png (missing), falls back to boot-logo.png, then its portrait test 1280 < 1440 substitutes boot-logo-half.png (also missing) and exits without drawing.

  2. 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 fbv every 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

  1. Flash knulli-t527-trimui-smart-pro-s-scarab-20260511.img.gz on a TrimUI Smart Pro S.
  2. Power on.
  3. 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 fbset output and the contents of /usr/share/knulli/splash/ (contains only boot-logo.png, boot-logo-1280x720.png and 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/state mid-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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions