Skip to content

RGB no longer supported after firmware updates #1320

@petemoore

Description

@petemoore

Describe the bug
Mailbox property tag 0x00048006 ineffective at setting RGB pixel order after firmware upgrade.

To reproduce
Run https://github.com/bztsrc/raspi3-tutorial/blob/master/09_framebuffer/kernel8.img on a RPi 3B with latest firmware
Repository https://github.com/petemoore/redscreen now contains a complete minimal assembly example

Expected behaviour
Previously this used to correctly display homer on a connected HDMI monitor

Actual behaviour
Homer is cyan rather than yellow, since framebuffer is using BGR instead of RGB

System
RPi 3B

Additional context
See also bztsrc/raspi3-tutorial#64.

I haven't bisected the firmware revision where the problem started occurring, but a couple of years ago the same kernel8.img worked correctly with the firmware of the time. Randomly on one upgrade, it broke.

Please note, the code that generates the mailbox request can be found in lfb.c. The response to the 0x00048006 mailbox property tag is not checked in the example code, but when I add a check for it, I see that mbox[24] is 0 after making the mailbox call, so for some reason the request is denied, although it was previously supported on older firmware.

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