Re: Creating Driver for ACX100 wireless adapter

From: Garry (me_at_myisp.com)
Date: 01/22/04


Date: Thu, 22 Jan 2004 02:17:05 GMT

Hi Tilman,

Many thanks for your input. I have got a bit further, but I'm getting in
  way too deep for my knowledge. I still cannot get any reply from the
sourceforge people so I hope you can help me some more.

I have blundered my way around, realised that I needed to install both
Make and gcc. I've used Konsole to get into the correct folder, sorry
directory. (I didn't realise that Linux and DOS were so similar, CD
command for example. That was a bit of a guess on my part.)

Any way following the instruction which came with the sourceforge
driver, there are two ways and as the first way wasn't working I tried
the second. This way is to type make config. This worked, so I tried the
second part which was make driver.

This is what I got. Sorry its so long, but can you help me.

linux:/lib/modules/2.4.21-144-default/kernel/drivers/net/wireless/acx100
# make driver
make -C src
make[1]: Entering directory
`/lib/modules/2.4.21-144-default/kernel/drivers/net/wireless/acx100/src'
gcc -D__KERNEL__ -I/lib/modules/2.4.22-ac4/build/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=4 -march=i586
-DMODULE -DMODVERSIONS -I../include/ -c -DWLAN_HOSTIF=WLAN_PCI -include
/lib/modules/2.4.22-ac4/build/include/linux/modversions.h -c -o
acx100.o acx100.c
<command line>:138835425:30248:
/lib/modules/2.4.22-ac4/build/include/linux/modversions.h: No such file
or directory
In file included from acx100.c:58:
/usr/include/linux/version.h:2:2: #error
"======================================================="
/usr/include/linux/version.h:3:2: #error "You should not include
/usr/include/{linux,asm}/ header"
/usr/include/linux/version.h:4:2: #error "files directly for the
compilation of kernel modules."
/usr/include/linux/version.h:5:2: #error ""
/usr/include/linux/version.h:6:2: #error "glibc now uses kernel header
files from a well-defined"
/usr/include/linux/version.h:7:2: #error "working kernel version (as
recommended by Linus Torvalds)"
/usr/include/linux/version.h:8:2: #error "These files are glibc internal
and may not match the"
/usr/include/linux/version.h:9:2: #error "currently running kernel. They
should only be"
/usr/include/linux/version.h:10:2: #error "included via other system
header files - user space"
/usr/include/linux/version.h:11:2: #error "programs should not directly
include <linux/*.h> or"
/usr/include/linux/version.h:12:2: #error "<asm/*.h> as well."
/usr/include/linux/version.h:13:2: #error ""
/usr/include/linux/version.h:14:2: #error "To build kernel modules
please do the following:"
/usr/include/linux/version.h:15:2: #error ""
/usr/include/linux/version.h:16:2: #error " o Have the kernel sources
installed"
/usr/include/linux/version.h:17:2: #error ""
/usr/include/linux/version.h:18:2: #error " o Make sure that the
symbolic link"
/usr/include/linux/version.h:19:2: #error " /lib/modules/`uname
-r`/build exists and points to"
/usr/include/linux/version.h:20:2: #error " the matching kernel source
directory"
/usr/include/linux/version.h:21:2: #error ""
/usr/include/linux/version.h:22:2: #error " o Configure kernel sources:"
/usr/include/linux/version.h:23:2: #error " - cd /usr/src/linux"
/usr/include/linux/version.h:24:2: #error " - make mrproper"
/usr/include/linux/version.h:25:2: #error " - make cloneconfig"
/usr/include/linux/version.h:26:2: #error " - make dep"
/usr/include/linux/version.h:27:2: #error ""
/usr/include/linux/version.h:28:2: #error " o When compiling, make sure
to use the following"
/usr/include/linux/version.h:29:2: #error " compiler option to use the
correct include files:"
/usr/include/linux/version.h:30:2: #error ""
/usr/include/linux/version.h:31:2: #error " -I/lib/modules/`uname
-r`/build/include"
/usr/include/linux/version.h:32:2: #error ""
/usr/include/linux/version.h:33:2: #error " instead of"
/usr/include/linux/version.h:34:2: #error ""
/usr/include/linux/version.h:35:2: #error " -I/usr/include/linux"
/usr/include/linux/version.h:36:2: #error ""
/usr/include/linux/version.h:37:2: #error " Please adjust the Makefile
accordingly."
/usr/include/linux/version.h:38:2: #error
"======================================================="
In file included from /usr/include/linux/module.h:20,
                  from acx100.c:61:
/usr/include/asm/module.h:54:2: #error unknown processor family
In file included from /usr/include/linux/mm.h:205,
                  from /usr/include/linux/skbuff.h:26,
                  from acx100.c:65:
/usr/include/linux/page-flags.h:119: error: `CONFIG_X86_L1_CACHE_SHIFT'
undeclared here (not in a function)
/usr/include/linux/page-flags.h:119: error: requested alignment is not a
constant
In file included from /usr/include/linux/if_arp.h:26,
                  from acx100.c:68:
/usr/include/linux/netdevice.h:165: error: `CONFIG_X86_L1_CACHE_SHIFT'
undeclared here (not in a function)
/usr/include/linux/netdevice.h:165: error: requested alignment is not a
constant
In file included from /usr/include/linux/irq.h:19,
                  from /usr/include/asm/hardirq.h:6,
                  from /usr/include/linux/interrupt.h:10,
                  from /usr/include/linux/netdevice.h:489,
                  from /usr/include/linux/if_arp.h:26,
                  from acx100.c:68:
/usr/include/asm/irq.h:16:25: irq_vectors.h: No such file or directory
In file included from /usr/include/asm/hardirq.h:6,
                  from /usr/include/linux/interrupt.h:10,
                  from /usr/include/linux/netdevice.h:489,
                  from /usr/include/linux/if_arp.h:26,
                  from acx100.c:68:
/usr/include/linux/irq.h:67: error: `CONFIG_X86_L1_CACHE_SHIFT'
undeclared here (not in a function)
/usr/include/linux/irq.h:67: error: requested alignment is not a constant
/usr/include/linux/irq.h:69: error: `NR_IRQS' undeclared here (not in a
function)
In file included from /usr/include/linux/irq.h:71,
                  from /usr/include/asm/hardirq.h:6,
                  from /usr/include/linux/interrupt.h:10,
                  from /usr/include/linux/netdevice.h:489,
                  from /usr/include/linux/if_arp.h:26,
                  from acx100.c:68:
/usr/include/asm/hw_irq.h:28: error: `NR_IRQS' undeclared here (not in a
function)
/usr/include/asm/hw_irq.h:31: error: `NR_IRQS' undeclared here (not in a
function)
In file included from /usr/include/linux/interrupt.h:10,
                  from /usr/include/linux/netdevice.h:489,
                  from /usr/include/linux/if_arp.h:26,
                  from acx100.c:68:
/usr/include/asm/hardirq.h:13: error: `CONFIG_X86_L1_CACHE_SHIFT'
undeclared here (not in a function)
/usr/include/asm/hardirq.h:13: error: requested alignment is not a constant
In file included from acx100.c:73:
../include/wlan_compat.h:370:41: missing binary operator before token "("
In file included from acx100.c:73:
../include/wlan_compat.h:401: error: conflicting types for
`wait_queue_head_t'
/usr/include/linux/wait.h:35: error: previous declaration of
`wait_queue_head_t'
../include/wlan_compat.h:402: error: conflicting types for `wait_queue_t'
/usr/include/linux/wait.h:19: error: previous declaration of `wait_queue_t'
../include/wlan_compat.h:403:1: warning: "set_current_state" redefined
In file included from /usr/include/linux/module.h:9,
                  from acx100.c:61:
/usr/include/linux/sched.h:119:1: warning: this is the location of the
previous definition
In file included from acx100.c:73:
../include/wlan_compat.h:454:1: warning: "spin_lock" redefined
In file included from /usr/include/linux/capability.h:45,
                  from /usr/include/linux/sched.h:7,
                  from /usr/include/linux/module.h:9,
                  from acx100.c:61:
/usr/include/linux/spinlock.h:221:1: warning: this is the location of
the previous definition
In file included from acx100.c:73:
../include/wlan_compat.h:455:1: warning: "spin_unlock" redefined
In file included from /usr/include/linux/capability.h:45,
                  from /usr/include/linux/sched.h:7,
                  from /usr/include/linux/module.h:9,
                  from acx100.c:61:
/usr/include/linux/spinlock.h:240:1: warning: this is the location of
the previous definition
In file included from acx100.c:73:
../include/wlan_compat.h:456:1: warning: "spin_lock_irqsave" redefined
In file included from /usr/include/linux/capability.h:45,
                  from /usr/include/linux/sched.h:7,
                  from /usr/include/linux/module.h:9,
                  from acx100.c:61:
/usr/include/linux/spinlock.h:258:1: warning: this is the location of
the previous definition
In file included from acx100.c:73:
../include/wlan_compat.h:457:1: warning: "spin_unlock_irqrestore" redefined
In file included from /usr/include/linux/capability.h:45,
                  from /usr/include/linux/sched.h:7,
                  from /usr/include/linux/module.h:9,
                  from acx100.c:61:
/usr/include/linux/spinlock.h:321:1: warning: this is the location of
the previous definition
In file included from acx100.c:73:
../include/wlan_compat.h:458:1: warning: "spin_lock_init" redefined
In file included from /usr/include/linux/capability.h:45,
                  from /usr/include/linux/sched.h:7,
                  from /usr/include/linux/module.h:9,
                  from acx100.c:61:
/usr/include/linux/spinlock.h:162:1: warning: this is the location of
the previous definition
In file included from acx100.c:73:
../include/wlan_compat.h:459:1: warning: "spin_trylock" redefined
In file included from /usr/include/linux/capability.h:45,
                  from /usr/include/linux/sched.h:7,
                  from /usr/include/linux/module.h:9,
                  from acx100.c:61:
/usr/include/linux/spinlock.h:194:1: warning: this is the location of
the previous definition
../include/wlan_compat.h:460: error: conflicting types for `spinlock_t'
/usr/include/linux/spinlock.h:152: error: previous declaration of
`spinlock_t'
In file included from acx100.c:73:
../include/wlan_compat.h:467:1: warning: "spin_is_locked" redefined
In file included from /usr/include/linux/capability.h:45,
                  from /usr/include/linux/sched.h:7,
                  from /usr/include/linux/module.h:9,
                  from acx100.c:61:
/usr/include/linux/spinlock.h:164:1: warning: this is the location of
the previous definition
../include/wlan_compat.h:483: error: redefinition of
`create_proc_read_entry'
/usr/include/linux/proc_fs.h:215: error: `create_proc_read_entry'
previously defined here
In file included from acx100.c:73:
../include/wlan_compat.h:523:26: linux/tqueue.h: No such file or directory
../include/wlan_compat.h:525:1: warning: "INIT_WORK" redefined
In file included from /usr/include/linux/aio.h:5,
                  from /usr/include/linux/sched.h:182,
                  from /usr/include/linux/module.h:9,
                  from acx100.c:61:
/usr/include/linux/workqueue.h:44:1: warning: this is the location of
the previous definition
In file included from acx100.c:73:
../include/wlan_compat.h:537:1: warning: "MODULE_PARM" redefined
In file included from acx100.c:61:
/usr/include/linux/module.h:476:1: warning: this is the location of the
previous definition
In file included from acx100.c:73:
../include/wlan_compat.h:538:1: warning: "MODULE_AUTHOR" redefined
In file included from acx100.c:61:
/usr/include/linux/module.h:112:1: warning: this is the location of the
previous definition
In file included from acx100.c:73:
../include/wlan_compat.h:539:1: warning: "MODULE_DESCRIPTION" redefined
In file included from acx100.c:61:
/usr/include/linux/module.h:115:1: warning: this is the location of the
previous definition
In file included from acx100.c:73:
../include/wlan_compat.h:540:1: warning: "MODULE_SUPPORTED_DEVICE" redefined
In file included from acx100.c:61:
/usr/include/linux/module.h:23:1: warning: this is the location of the
previous definition
In file included from acx100.c:97:
../include/p80211netdev.h: In function `p80211netdev_stop_queue':
../include/p80211netdev.h:558: error: structure has no member named `tbusy'
../include/p80211netdev.h:559: error: structure has no member named `start'
../include/p80211netdev.h: In function `p80211netdev_start_queue':
../include/p80211netdev.h:572: error: structure has no member named `tbusy'
../include/p80211netdev.h:573: error: structure has no member named `start'
../include/p80211netdev.h: In function `p80211netdev_wake_queue':
../include/p80211netdev.h:586: error: structure has no member named `tbusy'
../include/p80211netdev.h:587: warning: implicit declaration of function
`mark_bh'
../include/p80211netdev.h:587: error: `NET_BH' undeclared (first use in
this function)
../include/p80211netdev.h:587: error: (Each undeclared identifier is
reported only once
../include/p80211netdev.h:587: error: for each function it appears in.)
In file included from acx100.c:104:
../include/acx100mgmt.h: At top level:
../include/acx100mgmt.h:102: error: field `link_tq' has incomplete type
acx100.c: In function `acx100_probe_pci':
acx100.c:551: warning: assignment from incompatible pointer type
acx100.c:552: warning: assignment from incompatible pointer type
acx100.c:553: warning: assignment from incompatible pointer type
acx100.c:566: warning: passing arg 1 of `acx100_reset_dev' from
incompatible pointer type
acx100.c:582: warning: assignment from incompatible pointer type
acx100.c:583: warning: assignment from incompatible pointer type
acx100.c:584: warning: assignment from incompatible pointer type
acx100.c:587: warning: assignment from incompatible pointer type
acx100.c:588: warning: assignment from incompatible pointer type
acx100.c:592: warning: assignment from incompatible pointer type
acx100.c:593: warning: assignment from incompatible pointer type
acx100.c:594: warning: assignment from incompatible pointer type
acx100.c:605: warning: passing arg 1 of `acx100_init_mac' from
incompatible pointer type
acx100.c: In function `acx100_remove_pci':
acx100.c:739: warning: assignment from incompatible pointer type
acx100.c:762: warning: passing arg 1 of `acx100_down' from incompatible
pointer type
acx100.c: In function `acx100_pm_callback':
acx100.c:802: error: structure has no member named `priv'
acx100.c:810: warning: passing arg 1 of `netif_running' from
incompatible pointer type
acx100.c:810: warning: passing arg 1 of `netif_device_present' from
incompatible pointer type
acx100.c:811: warning: passing arg 1 of `netif_device_detach' from
incompatible pointer type
acx100.c:864: warning: passing arg 1 of `netif_running' from
incompatible pointer type
acx100.c:864: warning: passing arg 1 of `netif_device_present' from
incompatible pointer type
acx100.c:865: warning: passing arg 1 of `netif_device_attach' from
incompatible pointer type
acx100.c: In function `acx100_up':
acx100.c:897: error: structure has no member named `priv'
acx100.c:913: warning: passing arg 1 of `netif_start_queue' from
incompatible pointer type
acx100.c: In function `acx100_down':
acx100.c:937: error: structure has no member named `priv'
acx100.c:942: warning: passing arg 1 of `netif_stop_queue' from
incompatible pointer type
acx100.c: In function `acx100_open':
acx100.c:978: error: structure has no member named `priv'
acx100.c:990: error: structure has no member named `irq'
acx100.c:999: warning: `MOD_INC_USE_COUNT' is deprecated (declared at
/usr/include/linux/module.h:481)
acx100.c: In function `acx100_close':
acx100.c:1042: error: structure has no member named `priv'
acx100.c:1052: warning: passing arg 1 of `netif_device_present' from
incompatible pointer type
acx100.c:1056: error: structure has no member named `irq'
acx100.c:1065: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at
/usr/include/linux/module.h:493)
acx100.c: In function `acx100_start_xmit':
acx100.c:1094: error: structure has no member named `priv'
acx100.c:1117: warning: passing arg 1 of `netif_queue_stopped' from
incompatible pointer type
acx100.c:1175: error: structure has no member named `trans_start'
acx100.c: In function `acx100_tx_timeout':
acx100.c:1228: error: structure has no member named `priv'
acx100.c: In function `acx100_get_stats':
acx100.c:1256: error: structure has no member named `priv'
acx100.c: In function `acx100_get_wireless_stats':
acx100.c:1278: error: structure has no member named `priv'
acx100.c: In function `acx100_interrupt':
acx100.c:1327: error: structure has no member named `priv'
acx100.c: In function `acx100_rx':
acx100.c:1485: warning: assignment from incompatible pointer type
acx100.c:1486: error: structure has no member named `last_rx'
acx100.c:1488: warning: passing arg 2 of `eth_type_trans' from
incompatible pointer type
make[1]: *** [acx100.o] Error 1
make[1]: Leaving directory
`/lib/modules/2.4.21-144-default/kernel/drivers/net/wireless/acx100/src'
make: *** [driver] Error 2
linux:/lib/modules/2.4.21-144-default/kernel/drivers/net/wireless/acx100 #

Tilman Heinrich wrote:
> Garry <me@myisp.com> wrote in news:wyLMb.75647$X%5.35180@pd7tw2no:
>
>
>>..
>>My problem is that the "Make" command doesn't work. Following
>>Outside's advice from a previous thread, I copied the three .bin
>>files from Windows into the firmware directory in the ACX100
>>directory. I put the ACX100 directory in
>>lib/modules/2.4.21-144-default/kernel/drivers/ net/wireless ..
>
> ^
> Is this really a space?
>
>
>>I then open the ACX100 directory in Konqueror and from the Tools
>>menu option select Run. I change the options so that "Run in
>>Terminal" is selected, typed in make, click on run, and I get this
>>message...
>>
>>make: *** No targets specified and no makefile found. Stop.
>
>
> Arrrgh .. make isn't a click and go thing, make awaits the Makefile
> in the _current_ directory (if you don't specify another one in the
> command line). Do you know what's your current directory is if you
> open a terminal on the fly?
>
>
>>There is makefile file in the directory, but the instructions I
>>got said all I needed to do was type "make".
>
>
> Right, but this means you have to open a terminal (window or console)
> first and to ensure you are in the right top level directory for make
> (Hint: This is the one with the file 'Makefile' in it.) - then you
> can finally do a 'make'.
>
> Tilman Heinrich
>



Relevant Pages

  • cannot build eopnssh-3.1p1 on RedHat 6.2
    ... cipher.c:200: void value not ignored as it ought to be ... cipher.c:280: warning: assignment from incompatible pointer type ...
    (comp.security.ssh)
  • openssh-3.1p1 will not compile on VA Linux 6.2.4 system
    ... cipher.c:200: void value not ignored as it ought to be ... cipher.c:280: warning: assignment from incompatible pointer type ...
    (comp.security.ssh)
  • FileRunner - my personal patched version
    ... which will now list most archives, defaults to bzip2 archiving ... I get the following 'warning' during compilation. ... ext.c:95: warning: passing arg 3 of `Tcl_CreateCommand' from ...
    (comp.lang.tcl)
  • Installation of Tcl/Tk on IBM-AIX
    ... tclUnixChan.c:1665: warning: passing arg 3 of `ngetpeername' from ... tclUnixChan.c:2490: error: `readyMasks' undeclared (first use in this ...
    (comp.unix.aix)
  • wireless problem using linux driver
    ... browsing around the web to find the windows driver, ... iwlist wlan0 [parameters] ... warning: assignment from incompatible pointer type ...
    (Ubuntu)