sjoerdsein wrote:
I followed your tutorial and I got an error: the './configure' command finishes without any errors but it asks me to run 'make && make install', but 'make' gives me an error:
Code: Select all
root@raspberrypi:/home/pi/Downloads/input-wacom-0.27.0# make
make all-recursive
make[1]: Entering directory '/home/pi/Downloads/input-wacom-0.27.0'
Making all in 3.17
make[2]: Entering directory '/home/pi/Downloads/input-wacom-0.27.0/3.17'
Building input-wacom drivers for 2.6 kernel.
make -C /lib/modules/3.18.11-v7+/source M=/home/pi/Downloads/input-wacom-0.27.0/3.17
make[3]: Entering directory '/root/linux-bb6b4b6b331680bed807605685572d727638bb51'
CC [M] /home/pi/Downloads/input-wacom-0.27.0/3.17/wacom_wac.o
/bin/sh: 1: ./scripts/recordmcount: not found
scripts/Makefile.build:257: recipe for target '/home/pi/Downloads/input-wacom-0.27.0/3.17/wacom_wac.o' failed
make[4]: *** [/home/pi/Downloads/input-wacom-0.27.0/3.17/wacom_wac.o] Error 127
Makefile:1381: recipe for target '_module_/home/pi/Downloads/input-wacom-0.27.0/3.17' failed
make[3]: *** [_module_/home/pi/Downloads/input-wacom-0.27.0/3.17] Error 2
make[3]: Leaving directory '/root/linux-bb6b4b6b331680bed807605685572d727638bb51'
Makefile:21: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/home/pi/Downloads/input-wacom-0.27.0/3.17'
Makefile:369: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/pi/Downloads/input-wacom-0.27.0'
Makefile:300: recipe for target 'all' failed
make: *** [all] Error 2
There is no wacom.ko because(?) it cannot find the recordmcount files.
These are the versions I am using:
Code: Select all
root@raspberrypi:/home/pi/Downloads/input-wacom-0.27.0# gcc --version
gcc (Raspbian 4.8.4-1) 4.8.4
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
root@raspberrypi:/home/pi/Downloads/input-wacom-0.27.0# cat /proc/version
Linux version 3.18.11-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.8.3 20140303 (prerelease) (crosstool-NG linaro-1.13.1+bzr2650 - Linaro GCC 2014.03) ) #781 SMP PREEMPT Tue Apr 21 18:07:59 BST 2015
root@raspberrypi:/home/pi/Downloads/input-wacom-0.27.0# uname -r
3.18.11-v7+
Help would be very much appreciated
SjoerdSein
Dear SjoerdSein,
Well, it seems that some things have changed since I last built the wacom linux kernel driver! Some of the changes no doubt relate to the transition to Jessie, and others may relate to changes in the latest version of the Linux Wacom Tablet Project code.
To find out the cause of the trouble you've had, I made a fresh install of Raspbian (Release date:2015-05-05; Kernel version 3.18.11-v7+), and the latest linux wacom kernel driver files (input-wacom-0.27.0).
Now, it turns out that the linux kernel in the latest version of Raspbian is built with gcc version 4.8.3. When I installed gcc-4.8, I was given version 4.8.2, which results in errors when running the rpi-source script. Thankfully, notro, the author of the rpi-source script has us covered, with a full explanation and workaround on his github:
https://github.com/notro/rpi-source/wiki.
I followed notro's instructions to get gcc 4.8.3 installed, and I note from your terminal output that you already seem to have sorted all that out for yourself, as you have gcc version 4.8.4, which is actually what gets installed when following notro's instructions, and which works fine for our purposes here.
To get gcc 4.8.4 installed:
Code: Select all
sudo nano /etc/apt/sources.list.d/jessie.list
then add the following line to this new file:
Code: Select all
deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi
now update the package lists:
now when you ask to install gcc-4.8, you should be given 4.8.4:
Code: Select all
sudo apt-get install -y gcc-4.8 g++-4.8
then update the gcc versions, in the same way as before:
Code: Select all
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 20
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 50
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.6 20
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 50
and you'll then be able to successfully install the linux kernel source using rpi-source:
so, having got this far, we're now ready to go to the input-wacom-0.27.0 code and run the configure script in that directory:
now, previously running the configure script actually resulted in compilation of the wacom.ko kernel module, and I had not had to issue an explicit make command. With the current version of input-wacom-0.27.0, the configure script asks us to use make to build the kernel modules. When I ran the make command, I got exactly the same error as you did. It seems that the changes to latest the linux kernel source now mean that it's necessary to build some scripts within the linux source, as follows:
go to the linux kernel source directory:
and build the scripts within that directory:
this will now build the missing /scripts/recordmcount file (among other things) which make complained about in your output. With these scripts built we can return to the input-wacom-0.27.0 source files and run make successfully:
Make should now run without errors, and the wacom.ko kernel module that we want should now be present within the 3.17 directory. You can now install the wacom.ko as follows:
Code: Select all
sudo mkdir /lib/modules/3.18.11+/kernel/drivers/input/tablet
sudo cp wacom.ko /lib/modules/3.18.11+/kernel/drivers/input/tablet
then load in the module:
You should now have a working wacom tablet running on your Pi!
Let me know if this solves your problem and if you get things working!
Good luck!
lcww1