• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: How to add the good linux header in order do compile my driver  (Read 1299 times)
plop
Newbie
*

Karma: 0
Posts: 1


View Profile
« on: September 02, 2010, 03:20:07 PM »

Hello,
seems that people get troubles to compile their modules ??! me to Smiley
So let me explain you my problem...

I installed those packages to get linux-headers and tools for my sheevaplug-debian 2.6.32-00007-g56678ec :
binutils cpp-4.3 gcc-4.3 libc6-dev libgmp3c2 libgomp1 libmpfr1ldbl linux-headers-2.6.32-bpo.5-all-armel
  linux-headers-2.6.32-bpo.5-common linux-headers-2.6.32-bpo.5-iop32x linux-headers-2.6.32-bpo.5-ixp4xx
  linux-headers-2.6.32-bpo.5-kirkwood linux-headers-2.6.32-bpo.5-orion5x linux-headers-2.6.32-bpo.5-versatile   linux-kbuild-2.6.32 linux-libc-dev make build-essential


I set the build and source directory as wished, because the build diretory pointed on a bad symbolic link ( same for sources) :

root@sheevaplug-debian:/lib/modules/2.6.32-00007-g56678ec# ll
total 656
lrwxrwxrwx 1 root root     44 2010-09-02 21:41 build -> /usr/src/linux-headers-2.6.32-bpo.5-kirkwood
drwxr-xr-x 8 root root    544 2010-02-08 11:51 kernel
-rw-r--r-- 1 root root 118676 2010-02-08 11:51 modules.alias
-rw-r--r-- 1 root root     69 2010-02-08 11:51 modules.ccwmap
-rw-r--r-- 1 root root  67730 2010-02-08 11:51 modules.dep
-rw-r--r-- 1 root root     73 2010-02-08 11:51 modules.ieee1394map
-rw-r--r-- 1 root root    141 2010-02-08 11:51 modules.inputmap
-rw-r--r-- 1 root root     81 2010-02-08 11:51 modules.isapnpmap
-rw-r--r-- 1 root root     74 2010-02-08 11:51 modules.ofmap
-rw-r--r-- 1 root root  15388 2010-02-08 11:51 modules.order
-rw-r--r-- 1 root root    281 2010-02-08 11:51 modules.pcimap
-rw-r--r-- 1 root root     43 2010-02-08 11:51 modules.seriomap
-rw-r--r-- 1 root root  41592 2010-02-08 11:51 modules.symbols
-rw-r--r-- 1 root root 390425 2010-02-08 11:51 modules.usbmap
lrwxrwxrwx 1 root root     42 2010-09-02 21:40 source -> /usr/src/linux-headers-2.6.32-bpo.5-common
root@sheevaplug-debian:/lib/modules/2.6.32-00007-g56678ec#


But when I tried to compile my driver :


#make
make -C /lib/modules/2.6.32-00007-g56678ec/build  SUBDIRS=/media/driver-linux-2.6/driver.d modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.32-bpo.5-kirkwood'
  CC [M]  /media/driver-linux-2.6/driver.d/driver.o
/media/driver-linux-2.6/driver.d/driver.c: In function ‚open‚:
/media/driver-linux-2.6/driver.d/driver.c:523: warning: passing argument 6 of ‚usb_fill_int_urb‚ from incompatible pointer type
/media/driver-linux-2.6/driver.d/driver.c: In function ‚write‚:
/media/driver-linux-2.6/driver.d/driver.c:803: warning: passing argument 6 of ‚usb_fill_int_urb‚ from incompatible pointer type
/media/driver-linux-2.6/driver.d/driver.c: In function ‚probe‚:
/media/driver-linux-2.6/driver.d/driver.c:943: error: implicit declaration of function ‚info‚
make[4]: *** [/media/driver-linux-2.6/driver.d/driver.o] Error 1
make[3]: *** [_module_/media/driver-linux-2.6/driver.d] Error 2
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-bpo.5-kirkwood'
make: *** [default] Error 2


I don't understand at all what's wrong ... So THx for your help !
Cheers
Logged

Pages: [1]
Print
Jump to: