vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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. |
| |||
| 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? |
| |||
| > 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. |
| |||
| >>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... |
| |||
| >> >> 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. |
| |||
| > > 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. |
| |||
| 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... |
| |||
| 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' |
| |||
| 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 |
| ||||
| 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? |