Build fbtft drivers for Linux 4.4 on BeagleBone Black
Build fbtft drivers for Linux 4.4 kernel so that BeagleBone Black can use TFT LCD connected via SPI as Framebuffer
In previous blog posts, I've showed how to use small LCD displays as a Linux framebuffer on the BeagleBone Black thanks to the fbtft drivers:
In this post, I will show how to use fbtft drivers on BBB with the latest version of the Linux kernel. In this case, that is Linux 4.4.
Step 1: Build kernel
Clone Robert C. Nelson's bb-kernel repo and checkout the am33x-v4.4 branch. When I did last week, the latest kernel version was 4.4-rc1-bone0:
The build kernel script will at some point open the kernel config menu system. Enable Device Drivers->Staging->fbtft:
Step 2: Install kernel
Flash latest Debian 8.2 (Jessie) console image for the BBB:
Remove and re-insert so that fs gets mounted. Run this from bb-kernel directory:
Eject card and boot the BeagleBone with it. Once booted, grow the filesystem to make use of free space on the card:
Finish installation of the new kernel on the BeagleBone. The install script fails to do this. In this case, my new kernel is 4.4.0-rc1-bone0:
Edit /boot/uEnv.txt on Beaglebone so that the new kernel is booted:
Verify the the BeagleBone booted the new kernel:
Step 3: Configure SPI
Build the latest Device Tree Overlays:
Load the Device Tree Overlay for BB-SPIDEV1 "virtual cape" as my LCD is wired up to spi1 pins:
Step 4: Load fbtft drivers
Load fbtft_device module for adafruit18 (Adafruit 1.8" TFT LCD) which will use the fb_st7735r driver:
Display image on the LCD display:
Homepage: http://www.element14.com/community/community/designcenter/single-board-computers/next-gen_beaglebone/blog/2015/11/24/bbb-fbtft-linux-44-kernel Registrar: pdp7.blogspot.com |
Tags: distro;demo;bbblack;
Projected created on: Wed Dec 02 2015 01:28:45 GMT-0000 (UTC)
Submitted by: pdp7.blogspot.com
Last updated on: Wed Dec 02 2015 01:28:45 GMT-0000 (UTC)