-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bcm2708 frame buffer does not work without fbcon #731
Comments
Have you tried calling fb_set_par? Did it work satisfactorily? |
Not yet, have not had time to rebuild kernel. What would the proper place? As last thing of bcm2708_fb_register() ? |
I'll try something like:
|
I tried your patch. It does cause the "rainbow" splashscreen to be removed (this is with CONFIG_FRAMEBUFFER_CONSOLE=n). There is the question of whether allocating the memory when no fb console is required is a good thing. |
No other driver works like that. And this means no standard fb program will likely work. I would have to patch the framebuffer software to do that. Or apply hacks in the initramfs scripts -- in so early stage that it might not be possible in a simple way. I run my RPi with 'disable_splashscreen' so I don't get the rainbow. But if one wants to keep it, the frame buffer driver should be able to initialize the memory so that it does not erase the contents. As side note, if fbcon is built, it resets the display anyway one ending up with the rainbow image deleted. As reference, GRUB seems to have a mechanism to do this: |
And finally, if one does not want frame buffer memory overhead, one should say no to frame buffer driver. Then you don't get anything on screen expect with the native OMX stuff. |
Another problem with fbset is that kernel filters out fbset calls to same mode. So you'd need to change the mode first to alternative value, and then back to original. |
Assuming the added bcm2708_fb_set_par causes no issues with the default (with fbcon enabled) kernel, then I have no objections. |
I can confirm that it fixes my issues. I build fbcon as module - I also tested the case when fbcon is loaded as module, and it also works as before. Please consider applying that patch. Thanks. |
Yes, I've tested and haven't seen any problems. |
It's added to 3.17.y tree and BRANCH=next firmware. |
…error See: raspberrypi/linux#703 kernel: Fix for bcm2708 frame buffer does not work without fbcon See: raspberrypi/linux#731 firmware: Improvements to logging with device tree manipulation
Added to 3.12 and in latest rpi-update firmware. Please test. |
…error See: raspberrypi/linux#703 kernel: Fix for bcm2708 frame buffer does not work without fbcon See: raspberrypi/linux#731 firmware: Improvements to logging with device tree manipulation
This should be present in recent firmware. Please reopen if there is still an issue. |
…error See: raspberrypi/linux#703 kernel: Fix for bcm2708 frame buffer does not work without fbcon See: raspberrypi/linux#731 firmware: Improvements to logging with device tree manipulation
rust: rename `KernelModule` to `Module`
It seems that bcm2708_fb expects to to get a bcm2708_fb_set_par() callback to allocate the memory for the frame buffer. This is normally true as fbcon driver does this.
However, I'm trying to build a system without 'fbcon' to make sure no kernel printk()s, blinking cursor, or anything else is shown before a boot splash image is shown, and finally a native omx application start.
In practice this means that any application opening fb0 and trying to mmap it fails, because there's no frame buffer memory allocated.
After once changing the resolution using 'fbset' things start to work again as that forces a call to fb_set_par() and memory gets allocated.
Would it be possible to fix the driver to internally call fb_set_par() or similar to do allocation even without fbcon.
The text was updated successfully, but these errors were encountered: