-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
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.