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);
-
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" -
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 -
Add "obj-$(CONFIG_FB_TFT_SSD1322) += fb_ssd1322.o" to "fbtft/Makefile"
-
Add files to git :
"git add /..../drivers/staging/fbtft/fb_ssd1322.c"
"git add /..../drivers/staging/fbtft/Makefife"
"git add /..../drivers/staging/fbtft/Kconfig" -
git config --global user.email "you@example.com"
OR
git config --global user.name "Your Name" -
"git commit -s -v"
remove comment line # o those three files, save and exit -
"git format-patch -1 HEAD"
-
copy patch to userpatch directory (valid for Armbian), for example /userpatches/kernel/rockchip64-current
-
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
- Compile the kernel and install modules after compiled.
- Add to device tree overlay a panel and enable it
- 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