Two problemssafr0a wrote: Error: could not insert module /lib/modules/3.12.35+/kerner/drivers/inpu/tablet/wacom.ko: Invalid module format
Any clue on how to solve the problem?
Code: Select all
----------------------------------------
BUILD ENVIRONMENT:
linux kernel - yes
kernel source - yes /usr/src/linux
Your wacom.ko is available under
/home/pi/Downloads/input-wacom-0.26.0/
If you have an USB device, you can copy the driver by:
cp /wacom.ko /lib/modules/3.12.35+/kernel/drivers/input/tablet
If you have a serial device, please copy the driver by:
cp /wacom_w8001.ko /lib/modules/3.12.35+/kernel/drivers/input/touchscreen
NOTE: The kernel drivers included in this package are only
tested with the X Wacom driver built from xf86-input-wacom.
If you are running an X server version older than 1.7,
please use the drivers provided by linuxwacom package.
pi@raspberrypi ~/Downloads/input-wacom-0.26.0 $ ls
2.6.30 aclocal.m4 config.h.in COPYING Makefile.am stamp-h1
2.6.36 AUTHORS config.log inputattach Makefile.in
2.6.38 ChangeLog config.status INSTALL missing
3.17 compile configure install-sh NEWS
3.7 config.h configure.ac Makefile READMEI think you're very nearly there Herofly!Herofly wrote: I've been searching for the magic wacom.ko file but i haven't been able to locate it so far. I've also rebooted the pi hoping on the off chance that the new version would automatically place the file in the correct spot but so far my bamboo tablet remains unresponsive. If anyone could give me some suggestions on where to look or how to continue I would be extremely grateful.
Code: Select all
ls -alt ~/Downloads/input-wacom-0.26.0/3.7/wacom.ko
Hello safr0a!safr0a wrote:I've been trying to install a wacom tablet for my kids for a while and was happy to find your post. I've followed your procedure, it went well but failed at the end (insmod command) with the following message:
Error: could not insert module /lib/modules/3.12.35+/kerner/drivers/inpu/tablet/wacom.ko: Invalid module format
Any clue on how to solve the problem?
Code: Select all
sudo mkdir /lib/modules/3.12.28+/kernel/drivers/input/tablet
sudo cp 3.7/wacom.ko /lib/modules/3.12.28+/kernel/drivers/input/tablet
sudo depmod -aCode: Select all
*** set 'EXTRAVERSION = +' in Makefile
*** Create symlink: /root/linux
*** Create /lib/modules/<ver>/{build,source} symlinks
ln: failed to create symbolic link `/lib/modules/3.12.35+/build': No such file or directory
Traceback (most recent call last):
File "/usr/bin/rpi-source", line 301, in <module>
sh("sudo ln -sf %s /lib/modules/$(uname -r)/build" % linux_symlink)
File "/usr/bin/rpi-source", line 82, in sh
subprocess.check_call(cmd, shell=True)
File "/usr/lib/python2.7/subprocess.py", line 511, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'sudo ln -sf /root/linux /lib/modules/$(uname -r)/build' returned non-zero exit status 1
ok - now we know that you've got a problem installing the linux kernel source, and without that you'll not have been able to compile the wacom.ko kernel module, which explains why you can't locate this file.Herofly wrote:So I looked in the /Downloads/input-wacom-0.26.0/3.7" directory for the wacom.ko kernel module with the command that Icww1 posted however it still says that the file doesn't exist. In case there was something that I missed I went ahead and re-imaged my Pi and redid all the steps. So far I'm still having the same problem.
So I backtracked and was reading through the logs, Back when I ran rpi-source it gave me the following report.
.........
Would this have any effect on my problem?
Code: Select all
cat /proc/versionCode: Select all
gcc --versionCode: Select all
sudo mkdir /lib/modules/3.18.5+/kernel/drivers/input/tablet/
sudo cp wacom.ko /lib/modules/3.18.5+/kernel/drivers/input/tablet/.Code: Select all
sudo depmod -a
sudo insmod /lib/modules/3.18.5+/kernel/drivers/input/tablet/wacom.koHey! That's great news, Herofly!Herofly wrote:Everything is working great now, Once again thank you for walking through this problem with me.
Herofly
Hi lcww1,lcww1 wrote:I don't like to see queries on these forums go unanswered, and in common with others here I've been trying to get an old Wacom Bamboo tablet working with my Pi.
I was really hoping to get the tablet working with the wonderful TuxPaint (http://www.tuxpaint.org - install under Raspbian: sudo apt-get install tuxpaint tuxpaint-data tuxpaint-stamps) program to allow my daughter to draw using the Pi as she's too young to be able to manipulate a mouse. I think these small and inexpensive Wacom tablets are potentially ideal to allow younger children to use the Pi.
.....
Now, if you've been working from the command line, start xwindows using the startx command, and you should find that you can use your Wacom tablet as a mouse substitute!
I hope this helps someone get their Wacom tablet working on their pi!
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
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+
Dear SjoerdSein,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:There is no wacom.ko because(?) it cannot find the recordmcount files.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
These are the versions I am using:Help would be very much appreciatedCode: 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+
SjoerdSein
Code: Select all
sudo nano /etc/apt/sources.list.d/jessie.listCode: Select all
deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpiCode: Select all
sudo apt-get updateCode: Select all
sudo apt-get install -y gcc-4.8 g++-4.8Code: 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 50Code: Select all
sudo rpi-sourceCode: Select all
cd input-wacom-0.27.0Code: Select all
./configureCode: Select all
cd /usr/src/linuxCode: Select all
sudo make scriptsCode: Select all
cd input-wacom-0.27.0
makeCode: 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/tabletCode: Select all
depmod -aHi lcww1,lcww1 wrote: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.
...
Let me know if this solves your problem and if you get things working!
Good luck!
lcww1