Skip to content
 
 

Repository files navigation

fbtft---SSD1322

SSD1322 driver for fbtft Generation of .patch for the linux kernel -> device drivers -> staging -> fbtft

Tested with Armbian (Debian) Buster 10, Linux 5.4.38-rockchip64 on Rockpi 4B (RK3399 SoC) Display: ER-OLED032-1 - BuyDisplay.com

METHOD 1 (Create a patch file);

  1. Copy this file to "/linux-mainline/linux-5.4.y/drivers/staging/fbtft"
    "cd /.../linux-mainline/linux-5.4.y/drivers/staging/fbtft"
    "wget https://raw.githubusercontent.com/MarkoBursic/fbtft---SSD1322/master/fb_ssd1322.c"

  2. Add following text to "fbtft/Kconfig"
    config FB_TFT_SSD1322
    tristate "FB driver for the SSD1322 OLED Controller"
    depends on FB_TFT
    help
    Framebuffer support for SSD1322

  3. Add "obj-$(CONFIG_FB_TFT_SSD1322) += fb_ssd1322.o" to "fbtft/Makefile"

  4. Add files to git :
    "git add /..../drivers/staging/fbtft/fb_ssd1322.c"
    "git add /..../drivers/staging/fbtft/Makefife"
    "git add /..../drivers/staging/fbtft/Kconfig"

  5. git config --global user.email "you@example.com"
    OR
    git config --global user.name "Your Name"

  6. "git commit -s -v"
    remove comment line # o those three files, save and exit

  7. "git format-patch -1 HEAD"

  8. copy patch to userpatch directory (valid for Armbian), for example /userpatches/kernel/rockchip64-current

  9. Enable the specific driver to be compiled, mark as M

Device Drivers --->

Staging drivers --->

Support for small TFT LCD display modules --->

FB driver for the SSD1322 OLED Controller

  1. Compile the kernel and install modules after compiled.
  2. Add to device tree overlay a panel and enable it
  3. use fbtest to test OLED

METHOD 2 (use a patch file)

use .patch file: wget https://raw.githubusercontent.com/MarkoBursic/fbtft---SSD1322/master/0001-Signed-off-by-root-marko.bursic73-gmail.com.patch

About

SSD1322 driver for fbtft

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages