Closed ctshh closed 9 years ago
make mrproper
and make
for the kernel and modules did install ads7846_device
- but now ads7846
is gone. Any ideas what I'm doing wrong?
No need to put it in the source tree. This is an log extract from my automated build:
cd /home/pi/rpi-firmware/fbtft/workdir/linux && ARCH=arm CROSS_COMPILE=/home/pi/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf- make INSTALL_MOD_PATH=/home/pi/rpi-firmware/fbtft/workdir/modules M=/home/pi/rpi-firmware/fbtft/workdir/fbtft_tools/ads7846_device modules modules_install
LD /home/pi/rpi-firmware/fbtft/workdir/fbtft_tools/ads7846_device/built-in.o
CC [M] /home/pi/rpi-firmware/fbtft/workdir/fbtft_tools/ads7846_device/ads7846_device.o
Building modules, stage 2.
MODPOST 1 modules
CC /home/pi/rpi-firmware/fbtft/workdir/fbtft_tools/ads7846_device/ads7846_device.mod.o
LD [M] /home/pi/rpi-firmware/fbtft/workdir/fbtft_tools/ads7846_device/ads7846_device.ko
INSTALL /home/pi/rpi-firmware/fbtft/workdir/fbtft_tools/ads7846_device/ads7846_device.ko
DEPMOD 3.12.25+
Regarding ads7846, is it enabled in .config
(TOUCHSCREEN_ADS7846) ?
Perfect, thank you.
For everyone stumbling across this - check your paths in the above, mine are a little different. Most notably because I followed some other RasPi kernel building instructions my crosscompiler-path is different.
ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabi- make INSTALL_MOD_PATH=~/modules M=/root/fbtft_tools-master/ads7846_device/ads7846_device modules modules_install
I am crosscompiling my Raspberry Pi kernel on another, rather much faster, machine. Therefore I'd like to add
ads7846_device
to my kernel source tree and compile the module together with the other drivers.I have added
ads7846_device.c
todrivers/input/touchscreen/
, I have added the linesto
drivers/input/touchscreen/Kconfig
and the lineto
drivers/input/touchscreen/Makefile
.The module, once enabled with
make menuconfig
is compiled correctly toads7846_device.o
but does not show up within my module-tree.Any ideas how to correctly add
ads7846_device
to the kernel source tree so that it gets compiled and the module installed?