Hi, I bought this JBtek 3.5" touchscreen for my Pi. I think the device was designed for raspbian, but i'm hoping to get it working on Arch. I've already compiled a program that came with it, but want to get the touchscreen working.
The instructions say it requires ads7846 driver:
\linux-rpi-3.6.y\drivers\input\touchscreen\ads7846.c
Which is located on GitHub.
Question is how do I compile this and include this driver into my Pi?
$this->bbcode_second_pass_code('', 'uname -r
3.12.25-1-ARCH')
I'm completely stuck now. Any advice on adding drivers?
I'm a bit new to kernels and modules. I've experimented with a few things, but I'm not even sure I'm on the right track. I tried compiling with this code:
$this->bbcode_second_pass_code('', 'TARGET := ads7846
WARN := -W -Wall -Wstrict-prototypes -Wmissing-prototypes
INCLUDE := -isystem /lib/modules/`uname -r`/build/include
CFLAGS := -O2 -DMODULE -D__KERNEL__ ${WARN} ${INCLUDE}
CC := gcc
${TARGET}.o: ${TARGET}.c
.PHONY: clean
clean:
rm -rf ${TARGET}.o')
but I get a compiler error:
$this->bbcode_second_pass_code('', 'include/linux/compiler-gcc.h:103:30: fatal error: include/linux/linux/compiler-gcc4.h: Too many levels of symbolic links')
Thanks in advance.