I am trying to create a fast booting yocto image running a kivy gui on a raspberry pi 2B.
My problem is that, as soon as I add x11 to the build, the raspberry pi does no longer display the console on the screen.
Detailed Problem Description
Usually, when I boot the image without x11 the screen shows
- the rainbow screen
- the boot console (raspberries with text below)
- the boot screen (big raspberry with a progress bar below)
- a terminal to log in and a normal terminal afterwards.
As soon as x11 is added to the system (IMAGE_FEATURES:append = " x11-base", see setup below), my screen shows a black screen after step 3.
(probably unrelated: the official raspberry pi 7'' touchscreens turns black after step 2 independently of x11 being in the image)
However, when I don't add x11, kivy gives me a "can't find a window provider" error (which makes sense).
Configuration and Build
I am using the newest poky (kirkstone) and the following additional layers:
- meta-raspberrypi (for the bsp package)
- meta-openembedded/meta-python (providing the python3-kivy layer)
The interesting part of my local.conf file looks as follows:
MACHINE ?= "raspberrypi2"
EXTRA_IMAGE_FEATURES += "ssh-server-openssh"
RASPBERRYPI_DISPLAY = "1"
IMAGE_INSTALL:append = " python3-kivy mtdev"
IMAGE_FEATURES:append = " x11-base"
All other files, except the belayers.conf, are unchanged.
I am then building the image with
bitbake rpi-test-image
There are no errors or warnings during this build.
Does somebody have an idea how to solve this? I would appreciate help/inputs on
- How to fix the issue with x11
- How to avoid using x11 while still being able to run kivy