HermannSW
Posts: 764
Joined: Fri Jul 22, 2016 9:09 pm

"con2fbmap 1 1" in "/etc/rc.local" only after 66 seconds, better place?

Tue Sep 11, 2018 9:49 am

After powering Pi ZeroW the SPI display gets black (initialized) after 21 seconds.
But only after 66 seconds the last boot messages in console get displayed.
I am searching where I have to do "con2fbmap 1 1" better than in "/etc/rc.local" (66s).

I have this in "/etc/modules-load.d/fbtft.conf":

Code: Select all

spi-bcm2835
fbtft_device

And this in "/etc/modprobe.d/fbtft.conf":

Code: Select all

options fbtft_device name=rpi-display gpios=reset:25,dc:24,led:27 rotate=90

Both together initialize display after 21 seconds which is OK.

I appended this to "/etc/rc.local":

Code: Select all

tail --bytes 153600 /home/pi/fb1.565.bmp> /dev/fb1
sleep 1
con2fbmap 1 1

Image
bookmark list: https://stamm-wilbrandt.de/en/Raspberry_camera.html

https://github.com/Hermann-SW/fork-raspiraw      https://github.com/Hermann-SW/userland
https://github.com/Hermann-SW/wireless-control-Eachine-E52-drone      https://twitter.com/HermannSW

DirkS
Posts: 9049
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: "con2fbmap 1 1" in "/etc/rc.local" only after 66 seconds, better place?

Tue Sep 11, 2018 11:05 am

Put it on the kernel command line?
Add fbcon=map10 at the end of the line in that file

See e.g. https://www.kernel.org/doc/Documentation/fb/fbcon.txt for more info
https://github.com/notro/fbtft/wiki/Boot-console

HermannSW
Posts: 764
Joined: Fri Jul 22, 2016 9:09 pm

Re: "con2fbmap 1 1" in "/etc/rc.local" only after 66 seconds, better place?

Tue Sep 11, 2018 12:41 pm

Thank you, appending "fbcon=map:10" to /boot/cmdline.txt did the trick!
Since that maps tty1 to fb1 at the start, console output starts when display gets initialized after 22 seconds.
This is very useful since now I can see everything after 22 seconds, including file system check that increases boot time.
bookmark list: https://stamm-wilbrandt.de/en/Raspberry_camera.html

https://github.com/Hermann-SW/fork-raspiraw      https://github.com/Hermann-SW/userland
https://github.com/Hermann-SW/wireless-control-Eachine-E52-drone      https://twitter.com/HermannSW

Return to “Raspbian”

Who is online

Users browsing this forum: No registered users and 22 guests