notro / fbtft-spindle

Discontinued: Builds the FBTFT images
MIT License
25 stars 10 forks source link

how to install piTFT driver in any image other than Raspbian ? #4

Open abhi-84 opened 9 years ago

abhi-84 commented 9 years ago

Sir i need to know how to install piTFT driver for any other image file other than Raspbian. Actually, I am using Yocto project to build my kernel image, now I want to install this driver within to see the result on my piTFT. Steps mentioned are not clear.... please give a clear undertanding how to do this installation in any kernel

Thank u

notro commented 9 years ago

https://github.com/notro/fbtft/blob/master/README

Adafruit also has it's own fork of FBTFT: https://github.com/adafruit/adafruit-rpi-fbtft fbtft_device is the main change when it comes to pitft and they use a different init sequence ( the default in fb_ili9340 as opposed to a custom one in my version). If you have the capacative touch version (and need touch), you need to look at https://github.com/adafruit/adafruit-raspberrypi-linux which has the necessary touch driver (3.10 and 3.15).

abhi-84 commented 9 years ago

All these procedures requires me to build the kernel with driver using menuconfig method....as far i can undertand.But I already have an existing kernel image file, that I build using Yocto project. I want to include driver in that pre-build image somehow........is it possible as done in case of raspbian ?

notro commented 9 years ago

This is what I do in my build scripts:

scripts/config --module FB_TFT 

But Yocto seem to have builtin ways to do this: http://www.yoctoproject.org/docs/1.6.1/kernel-dev/kernel-dev.html#generating-configuration-files

abhi-84 commented 9 years ago

Hi I have used all ways but none of them works for me. I am using Yocto image, kernel version 3.18.11 for piTFT 2.8" resistive display. please suggest which approach should I follow? https://github.com/notro/fbtft/wiki/FBTFT-image-build-process or https://github.com/notro/fbtft-spindle or any thing else to insert piTFT driver in Yocto. I have tried what adafruit says but it gives issue with gcc. My curreent Lunux kernel uses gcc 4.9.1 whereas adafruit needs gcc 4.7 so it downgrade and while doing so , it replaces certain files which make kernel inconsistent. So, it seems your approach is more consistent but I am not sure which one ?

notro commented 9 years ago

Yocto is a way to create a Linux distribution. fbtft-spindle is a (discontinued) way of creating a Raspian (debian) distribution. FBTFT-image-build-process is doing the same manually (discontinued).

I don't know Yocto so I can't help you. I suggest you try a yocto forum or mailinglist.