Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-05-2008, 05:50 AM
Huub
 
Posts: n/a
Default Driver doesn't compile to .ko

Hi,

Running Slack 12, I've been trying to compile a kerneldriver for the
ACX100 Wificard. According to the sf.net page for ACX, this should be
possible despite ACX not being a kerneloption. I've installed and
compiled 3 times now according to their directions (create
drivers/net/wireless/acx, untar into drivers/net/wireless/acx, make
menuconfig, make && make modules_install) but it doesn't deliver the acx.ko
Now I want to create the acx.ko myself, but how should I do that? I've
tried to find it on the net, but found no clear directions.

Thank you.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 05-05-2008, 05:50 AM
Chris Sorenson
 
Posts: n/a
Default Re: Driver doesn't compile to .ko

Huub wrote:
> Hi,
>
> Running Slack 12, I've been trying to compile a kerneldriver for
> the ACX100 Wificard. According to the sf.net page for ACX, this
> should be possible despite ACX not being a kerneloption. I've
> installed and compiled 3 times now according to their directions
> (create drivers/net/wireless/acx, untar into
> drivers/net/wireless/acx, make menuconfig, make && make
> modules_install) but it doesn't deliver the acx.ko


Did you remember to make the modification to the Makefile in the
directory above the one you made for acx, as they describe in their HOWTO?

Just as a refresher, the modification is:

echo 'obj-m += acx/' >> Makefile

> Now I want to create the acx.ko myself, but how should I do that?
> I've tried to find it on the net, but found no clear directions.


They have a description of how to build the module outside of the kernel
tree in their HOWTO, did you try that?

Does/did anything in the acx directory compile? Any object files (*.o)
in there after the make?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 05-07-2008, 10:15 AM
Huub
 
Posts: n/a
Default Re: Driver doesn't compile to .ko

> Did you remember to make the modification to the Makefile in the
> directory above the one you made for acx, as they describe in their HOWTO?
>
> Just as a refresher, the modification is:
>
> echo 'obj-m += acx/' >> Makefile
>


Yes, I did.

>
> They have a description of how to build the module outside of the kernel
> tree in their HOWTO, did you try that?


Will try.

>
> Does/did anything in the acx directory compile? Any object files (*.o)
> in there after the make?


Nothing compiled so far, but will try the 'outside' version.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 05-07-2008, 10:15 AM
Chris Sorenson
 
Posts: n/a
Default Re: Driver doesn't compile to .ko

>>Does/did anything in the acx directory compile? Any object files (*.o)
>>in there after the make?

>
>
> Nothing compiled so far, but will try the 'outside' version.


That's very strange. Does the compiler exit with an error message? If
it can't even create one object file you'd think it would
have the courtesy to cough up an error message...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 05-07-2008, 10:15 AM
Huub
 
Posts: n/a
Default Re: Driver doesn't compile to .ko

>>
>> Nothing compiled so far, but will try the 'outside' version.

>
> That's very strange. Does the compiler exit with an error message? If
> it can't even create one object file you'd think it would
> have the courtesy to cough up an error message...


Yes, it ends with an error message, but I haven't written it down.
Before trying the 'outside' version, I'll recompile and give it. Given
time, will do so tomorrow.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 05-10-2008, 02:01 PM
Huub
 
Posts: n/a
Default Re: Driver doesn't compile to .ko

>
> That's very strange. Does the compiler exit with an error message? If
> it can't even create one object file you'd think it would
> have the courtesy to cough up an error message...


As promised the error:

> /bin/sh: cmp: command not found
> Inconsistent kallsyms data
> Try setting CONFIG_KALLSYMS_EXTRA_PASS
> make: *** [vmlinux] Error 1


Will try outside-kernel compilation now.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 05-10-2008, 02:01 PM
Chris Sorenson
 
Posts: n/a
Default Re: Driver doesn't compile to .ko

Huub wrote:
> > That's very strange. Does the compiler exit with an error
> > message? If it can't even create one object file you'd think it
> > would have the courtesy to cough up an error message...

>
>
> As promised the error:
>
>
> > /bin/sh: cmp: command not found



No /usr/bin/cmp? It's part of the diffutil packages, what do you get
from `ls /var/log/packages/diffutil*'

> > Inconsistent kallsyms data
> > Try setting CONFIG_KALLSYMS_EXTRA_PASS
> > make: *** [vmlinux] Error 1

>
>
> Will try outside-kernel compilation now.


Likely to get the same thing if the the diffutils package isn't
installed though...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 05-10-2008, 02:01 PM
Huub
 
Posts: n/a
Default Re: Driver doesn't compile to .ko

OK, installed the diffutils package. make && make modules_config (inside
kernel) didnt give the acx.ko. So I did the outside version. This
compiling ends with this:

# make -C /lib/modules/`uname -r`/build M=`pwd`
make: Entering directory `/usr/src/linux-2.6.21.5'
LD /usr/src/acx-20080210/built-in.o
CC [M] /usr/src/acx-20080210/wlan.o
CC [M] /usr/src/acx-20080210/conv.o
CC [M] /usr/src/acx-20080210/ioctl.o
CC [M] /usr/src/acx-20080210/common.o
CC [M] /usr/src/acx-20080210/pci.o
LD [M] /usr/src/acx-20080210/acx.o
scripts/Makefile.build:17: /usr/src/acx-20080210/acx/Makefile: No such
file or directory
make[2]: *** No rule to make target
`/usr/src/acx-20080210/acx/Makefile'. Stop.
make[1]: *** [/usr/src/acx-20080210/acx] Error 2
make: *** [_module_/usr/src/acx-20080210] Error 2
make: Leaving directory `/usr/src/linux-2.6.21.5'
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 05-11-2008, 08:40 PM
Chris Sorenson
 
Posts: n/a
Default Re: Driver doesn't compile to .ko

Huub wrote:
> OK, installed the diffutils package. make && make modules_config (inside
> kernel) didnt give the acx.ko. So I did the outside version. This
> compiling ends with this:
>
> # make -C /lib/modules/`uname -r`/build M=`pwd`
> make: Entering directory `/usr/src/linux-2.6.21.5'
> LD /usr/src/acx-20080210/built-in.o
> CC [M] /usr/src/acx-20080210/wlan.o
> CC [M] /usr/src/acx-20080210/conv.o
> CC [M] /usr/src/acx-20080210/ioctl.o
> CC [M] /usr/src/acx-20080210/common.o
> CC [M] /usr/src/acx-20080210/pci.o
> LD [M] /usr/src/acx-20080210/acx.o
> scripts/Makefile.build:17: /usr/src/acx-20080210/acx/Makefile: No such
> file or directory
> make[2]: *** No rule to make target
> `/usr/src/acx-20080210/acx/Makefile'. Stop.
> make[1]: *** [/usr/src/acx-20080210/acx] Error 2
> make: *** [_module_/usr/src/acx-20080210] Error 2
> make: Leaving directory `/usr/src/linux-2.6.21.5'


Well then I think the obvious question becomes, IS there a file
/usr/src/acx-20080210/acx/Makefile ??

I just tried building it myself and got:

$ make -C /lib/modules/`uname -r`/build M=`pwd`
make: Entering directory `/usr/src/linux-2.6.22.6'
LD /usr/src/acx-20080210/built-in.o
CC [M] /usr/src/acx-20080210/wlan.o
CC [M] /usr/src/acx-20080210/conv.o
CC [M] /usr/src/acx-20080210/ioctl.o
CC [M] /usr/src/acx-20080210/common.o
CC [M] /usr/src/acx-20080210/pci.o
/usr/src/acx-20080210/pci.c: In function 'acxpci_e_probe':
/usr/src/acx-20080210/pci.c:1557: error: 'struct net_device' has no
member named 'wireless_handlers'
make[1]: *** [/usr/src/acx-20080210/pci.o] Error 1
make: *** [_module_/usr/src/acx-20080210] Error 2
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 05-11-2008, 08:40 PM
Huub
 
Posts: n/a
Default Re: Driver doesn't compile to .ko

Ok, this is my directory listing:

#/usr/src/acx-20080210/
-rw-r--r-- 1 huub users 22374 2008-02-10 21:06 Changelog
-rw-r--r-- 1 huub users 2120 2008-02-10 21:06 Kconfig
-rw-r--r-- 1 huub users 621 2008-05-03 21:16 Makefile
-rw-r--r-- 1 huub users 5256 2008-02-10 21:06 README
-rw-r--r-- 1 huub users 140 2008-02-10 21:06 acx.h
-rw-r--r-- 1 root root 150764 2008-05-09 22:36 acx.o
-rw-r--r-- 1 huub users 1432 2008-05-03 21:15 acx_config.h
-rw-r--r-- 1 huub users 20018 2008-02-10 21:06 acx_func.h
-rw-r--r-- 1 huub users 69728 2008-02-10 21:06 acx_struct.h
-rw-r--r-- 1 root root 8 2008-05-09 22:35 built-in.o
-rw-r--r-- 1 huub users 195669 2008-02-10 21:06 common.c
-rw-r--r-- 1 root root 77568 2008-05-09 22:36 common.o
-rw-r--r-- 1 huub users 14642 2008-02-10 21:06 conv.c
-rw-r--r-- 1 root root 5300 2008-05-09 22:36 conv.o
-rw-r--r-- 1 huub users 66584 2008-02-10 21:06 ioctl.c
-rw-r--r-- 1 root root 28076 2008-05-09 22:36 ioctl.o
-rw-r--r-- 1 huub users 127472 2008-02-10 21:06 pci.c
-rw-r--r-- 1 root root 44524 2008-05-09 22:36 pci.o
drwxr-xr-x 2 huub users 4096 2008-02-10 21:12 pktgen
drwxr-xr-x 3 huub users 4096 2008-02-10 21:12 script
-rw-r--r-- 1 huub users 4533 2008-02-10 21:06 setrate.c
-rw-r--r-- 1 huub users 52695 2008-02-10 21:06 usb.c
-rw-r--r-- 1 huub users 11516 2008-02-10 21:06 wlan.c
-rw-r--r-- 1 root root 2776 2008-05-09 22:35 wlan.o
-rw-r--r-- 1 huub users 8556 2008-02-10 21:06 wlan_compat.h
-rw-r--r-- 1 huub users 15883 2008-02-10 21:06 wlan_hdr.h
-rw-r--r-- 1 huub users 17303 2008-02-10 21:06 wlan_mgmt.h

Looks to me like Makefile actually is there. But this line looks odd to me:

scripts/Makefile.build:17: /usr/src/acx-20080210/acx/Makefile: No such
file or directory

There is a directory "script", not "scripts". Any clue about that?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 08:50 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62