Hello Friends,
I am new to this forum and linux.
I have tried to compile and install a kernel patch but make gives errors. The patch is supplied by gnokii to enable Nokia phones to be accessed through a DKU2 cable connected over USB port.
I'm using Suse 9.1; kernel_2.6.
The mobile(nokia 6680) I want to use with gnokii uses dku2 cable hence the need for the 'DKU2 Linux kernel module' so that it can be identified by gnokii.
This is what i have done:
1) cd gnokii-0.68/patches/kernel_2.6
2)./configure --with-kernsrcdir=/lib/modules/`uname
-r`/build --with-kernmoddir=/lib/modules/`uname -r`
3) make
make[1]: Entering directory
`/usr/src/linux-2.6.5-7.193-obj/i386/default'
make[1]: *** No rule to make target `modules'. Stop.
make[1]: Leaving directory
`/usr/src/linux-2.6.5-7.193-obj/i386/default'
make: *** [module] Error 2
Any suggestions will be highly appreciated.
Thanks for the reply in advance.
regards,
sybella.
Your --with-kernsrcdir is wrong
Assuming you've got the kernel source installed, --with-kernsrcdir=/lib/modules/`uname -r`/build is wrong; it should be --with-kernsrcdir=/lib/modules/`uname -r`/source
Error installing kernel patch suse 9.1 plz help
hi farnz,
I used the "--with-kernsrcdir=/lib/modules/`uname -r`/source" and got a different error message.
This is what i have done:
server1:/usr/local/src/gnokii-0.6.8/patches/kernel_2.6 # ./configure --with-kernsrcdir=/lib/modules/`uname -r`/source --with-kernmoddir=/lib/modules/`uname -r`
configure: creating ./config.status
config.status: creating Makefile
Sources located at /lib/modules/2.6.5-7.201-default/source will be used.
Compiled kernel module will be installed into /lib/modules/2.6.5-7.201-default.
Now type:
$ make
to compile the driver, and then become root and type:
# make install
to install the driver. Next step is to:
# modprobe nokia_dku2
and see the kernel logs to verify whether the driver works. If you have any problems
doing this, consult gnokii FAQ (distributed withing gnokii tarball or online at
http://www.gnokii.org/faq.shtml), gnokii wiki (http://wiki.gnokii.org) or gnokii
users mailing list (http://lists.gnu.org/mailman/listinfo/gnokii-users).
server1:/usr/local/src/gnokii-0.6.8/patches/kernel_2.6 # make
make: *** /lib/modules/2.6.5-7.201-default/source: No such file or directory. Stop.
make: *** [module] Error 2
I have checked and the source file exists but has a lock sign (yellow padlock)and a link sign on it. And on put the mouse over it, the following information is displayed (Type: link to unknown, Size:0b, owner:root - root, permissions:lrwxrwxrwx). Tried to open it in kate and its empty!
How do i go about solving this? Should i just replace the source file and from where? or do i need to replace the whole kernel sources and from where?
Please help i'm linux newbie.
Thanx alot for the reply.
regards,
sybella
problem solved
My problem's solved; i installed kernel-source and module-init-tools (i'm not sure i needed to install the tools!).
Thanks for the replies.
regards,
sybella