FBTFT drivers in kernel?


I’m wondering what support is already baked in for TFT displays. Is the ssd1322 FBTFT display module included in this kernel?

I’m planning on installing PatchboxOS soon and want to give it a test, but thought I’d ask about this first. I’ve got a device using the ssd1322 OLED display and I think starting with PatchboxOS might give me the best performance vs compiling myself from source.




Hi, the kernel is based on the same config that’s used for Raspbian images, but it is built from a special -rt branch.

The build script to build the two variations of kernels (one for Pi 1, Pi Zero, Pi Zero W, and Compute Module, the other for Pi 2, Pi 3, Pi 3+, and Compute Module 3) is available here: https://github.com/BlokasLabs/rpi-kernel-rt/blob/master/build.sh (which is based on https://www.raspberrypi.org/documentation/linux/kernel/building.md)

You can check the configurations here:




It would be super awesome and helpful if you could add


to your configs.

I’m working on a pi3+ DAC board that uses the ssd1322 oled display and allows folks to use the monome norns software.

I’ve run into a bunch of issues with compiling just the display module on it’s own (mis-matched kernel headers) and I’m looking for a good kernel to work with as a starting point.



We could enable this config for our custom builds, but we don’t plan a new release of the kernel at the moment, so in the mean time I’d recommend you to make a full build of Raspbian kernel with the config changed. In my experience the build runs pretty smooth if you follow the Raspberry Pi’s guide. Also checkout https://github.com/notro/rpi-source/wiki tool, it downloads the correct version of currently running kernel source code to ~/linux and sets up out-of-tree module building too. (However it won’t work if running custom build like ours, in that case do sudo rpi-update to get the latest official kernel build, reboot, and then use rpi-source)

Also I heard that there’s now a kernel headers package for Raspbian that should have headers for currently installed stock kernel.



yeah - but this is kinda weird since apt-get install rapsberrypi-kernel-headers will only get you the most recent version of the headers - not the one that’s installed. So if I start with the stock stretch image (4.14.79) pulling the headers gets me 4.14.98 headers. :-\

I’ve gotta check my build process again and look at rpi-source once more. (I’ve done the full build a number of times, but not yet with the PatchboxOS configs)

Would you clarify once more all of the steps you suggested to do the full custom build like yours? Which version do I need to pull from rpi-source?




I think you should either specify the version you want to install (if I remember right it should be possible by adding =4.14.79 to the package name you are installing via apt-get, but the string should match exactly the version, it may be numbered slightly differently), or update the kernel image itself to match the headers package.

The entire script to build our custom kernel build is available here: https://github.com/BlokasLabs/rpi-kernel-rt/blob/master/build.sh - it is meant to be run on a desktop Linux for faster build time, but you can replicate the build on Raspberry Pi itself by skipping lines 8 and 9, and use -j4 for make instead of -j8.

We don’t yet have our own solution like rpi-source for getting the right kernel source for the current kernel version, but at the time of writing, you can still get the right kernel code by doing:

git clone --depth 1 --branch rpi-4.14.y-rt https://github.com/raspberrypi/linux, commit hash 22bb67b8e2e809d0bb6d435c1d20b409861794d2

1 Like