I've purchased a PiTFT Plus 3,5" from adafruit for my rpi2 but I don't get it properly working. Can someone help?
What I've done:
1. kernel patching
Since the fbtft module of the current ARCH kernel 4.1.6 does not support the hx8357d micro-controller I've rebuild the ARCH kernel with updated fbtft sources from the official kernel 4.2-rc8 that comes with hx8357d support. I've also patched the kernel config to make sure that hx8357d is built as module like all the other ones.
2. /boot/config.txt patching
I've edited my /boot/config.txt
$this->bbcode_second_pass_code('', 'device_tree_param=spi=on
device_tree=bcm2709-rpi-2-b.dtb
dtparam=spi=on
dtoverlay=pitft35r,rotate=270,speed=42000000,fps=20')
to enable SPI and PiTFT support like documented by adafruit.
3. reboot & module check
So far, so good. After a reboot lsmod shows me that the module is properly loaded:
$this->bbcode_second_pass_code('', '[neXusPi2@alarmpi ~]$ lsmod
Module Size Used by
joydev 8691 0
evdev 9674 0
hid_logitech_hidpp 9333 0
fb_hx8357d 3490 0
fbtft 33359 1 fb_hx8357d
syscopyarea 2971 1 fbtft
sysfillrect 3424 1 fbtft
sysimgblt 2186 1 fbtft
fb_sys_fops 1475 1 fbtft
hid_logitech_dj 10958 0
i2c_bcm2708 5670 0
spi_bcm2835 7318 0
bcm2835_gpiomem 3464 0
uio_pdrv_genirq 3285 0
uio 9036 1 uio_pdrv_genirq
sch_fq_codel 7315 2
snd_bcm2835 21900 0
snd_pcm 86256 1 snd_bcm2835
snd_timer 19906 1 snd_pcm
snd 61579 3 snd_bcm2835,snd_timer,snd_pcm
bcm2708_rng 1171 0
rng_core 8018 1 bcm2708_rng
ip_tables 12274 0
x_tables 16490 1 ip_tables
ipv6 348264 26')
The framebuffer device /dev/fb1 is also available, looks good. But the display keeps white, adafruit says that it should turn into black when the kernel loads the module.
4. device tree overlays
Unfortunately, ARCH doesn't offer a suitable overlay for this display, so I've copied the pitft35r-overlay.dtb binary from raspbian to my ARCH installation (/boot/overlays) and reboot the system. The display is still white
I've decided to recompile the overlay on my ARCH machine. I followed this HOWTO and modified the dtc.sh file to suppress the dependency check because all dependencies are already resolved on my ARCH system and apt-get is not available
After the dtc compilation was ready I've taken the overlay source code (dts) from here and compiled it with my dtc. The resulting overlay binary pitft35r-overlay.dtb was properly saved to /boot/overlays, looks good.
After a reboot, the display still keeps white, the self-compiled overlay seems to fail like the one from raspbian.
What I'm doing wrong?