Re: iwn: Errors during make iwn.ko

From: Flavio Junior <billpp_at_gmail.com>
Date: Thu, 25 Sep 2008 12:37:51 -0300
I'd tried to use that driver but, all operations gives me "unable to
get *operation* results".

dmesg shows me no error, and detects when I disable wireless button
(iwn0: RF switch: radio disabled).

I'm sure that have wireless network around (I'm writing this e-mail using one).

Does someone there using iwn driver?
Maybe I have forget something ;/

Thanks.

--

Flávio do Carmo Júnior

On Wed, Sep 24, 2008 at 8:39 PM, Stephen Montgomery-Smith
<stephen_at_math.missouri.edu> wrote:
>
>
> On Wed, 24 Sep 2008, Flavio Junior wrote:
>
>> And trying to compile iwn driver from http://www.clearchain.com/wiki/Iwn
>
> Why are you trying to compile this iwn driver, when iwn is already a part of
> FreeBSD-CURRENT?
>
>
>> Here is how pciconf shows me my wlan card:
>> none1_at_pci0:2:0:0:       class=0x028000 card=0x11008086 chip=0x42298086
>> rev=0x61 hdr=0x00
>>   vendor     = 'Intel Corporation'
>>   device     = 'Intel 4965AGN Intel(R) Wireless WiFi Link
>> 4965AGN(supporting 802.11a/b/g/Draft-N)'
>>   class      = network
>>
>> I'll post logs here:
>> # cc --version
>> cc (GCC) 4.2.1 20070719  [FreeBSD]
>> Copyright (C) 2007 Free Software Foundation, Inc.
>>
>> # unzip iwn.zip
>> Archive:  iwn.zip
>>  creating: iwn/
>>  creating: iwn/dev/
>>  creating: iwn/dev/iwn/
>>  inflating: iwn/dev/iwn/if_iwn.c
>>  inflating: iwn/dev/iwn/if_iwnreg.h
>>  inflating: iwn/dev/iwn/if_iwnvar.h
>>  inflating: iwn/README
>>  creating: iwn/share/
>>  creating: iwn/share/doc/
>>  creating: iwn/share/doc/legal/
>>  creating: iwn/share/doc/legal/intel_iwn/
>>  inflating: iwn/share/doc/legal/intel_iwn/Makefile
>> extracting: iwn/share/doc/legal/Makefile
>>  creating: iwn/sys/
>>  creating: iwn/sys/contrib/
>>  creating: iwn/sys/contrib/dev/
>>  creating: iwn/sys/contrib/dev/iwn/
>>  inflating: iwn/sys/contrib/dev/iwn/iwlwifi-4965-4.44.17.fw.uu
>>  inflating: iwn/sys/contrib/dev/iwn/LICENSE
>>  creating: iwn/sys/dev/
>>  creating: iwn/sys/dev/iwn/
>>  inflating: iwn/sys/dev/iwn/if_iwn.c
>>  inflating: iwn/sys/dev/iwn/if_iwnreg.h
>>  inflating: iwn/sys/dev/iwn/if_iwnvar.h
>>  creating: iwn/sys/modules/
>>  creating: iwn/sys/modules/iwn/
>>  creating: iwn/sys/modules/iwnfw/
>>  inflating: iwn/sys/modules/iwnfw/Makefile
>>  inflating: iwn/sys/modules/iwn/Makefile
>> # cd iwn/sys/modules/iwnfw
>> # make
>> Warning: Object directory not changed from original
>> /root/iwn/sys/modules/iwnfw
>> uudecode -p
>> /root/iwn/sys/modules/iwnfw/../../contrib/dev/iwn/iwlwifi-4965-4.44.17.fw.uu
>>>
>>> iwlwifi-4965-4.44.17.fw
>>
>> _at_ -> /usr/src/sys
>> machine -> /usr/src/sys/i386/include
>> iwlwifi-4965-4.44.17.fw iwlwifi-4965-4.44.17.fw
>> awk -f _at_/tools/fw_stub.awk iwlwifi-4965-4.44.17.fw:iwnfw:44417 -miwnfw
>> -ciwnfw.c  -lintel_iwn
>> cc -O2 -fno-strict-aliasing -pipe -march=prescott -Werror -D_KERNEL
>> -DKLD_MODULE -std=c99 -nostdinc   -I. -I_at_ -I_at_/contrib/altq
>> -finline-limit=8000 --param inline-unit-growth=100 --param
>> large-function-growth=1000 -fno-common  -mno-align-long-strings
>> -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2
>> -mno-sse3 -ffreestanding -fstack-protector -fstack-protector -Wall
>> -Wredundant-decls -Wnested-externs -Wstrict-prototypes
>> -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef
>> -Wno-pointer-sign -fformat-extensions -c iwnfw.c
>> ld  -d -warn-common -r -d -o iwnfw.kld iwlwifi-4965-4.44.17.fw.fwo iwnfw.o
>> :> export_syms
>> awk -f /sys/conf/kmod_syms.awk iwnfw.kld  export_syms | xargs -J%
>> objcopy % iwnfw.kld
>> ld -Bshareable  -d -warn-common -o iwnfw.ko iwnfw.kld
>> objcopy --strip-debug iwnfw.ko
>>
>> # make install
>> install -o root -g wheel -m 555   iwnfw.ko /boot/kernel
>> kldxref /boot/kernel
>> #cd ../iwn
>> # make
>> Warning: Object directory not changed from original
>> /root/iwn/sys/modules/iwn
>> _at_ -> /usr/src/sys
>> machine -> /usr/src/sys/i386/include
>> :> opt_bdg.h
>> awk -f _at_/tools/makeobjops.awk _at_/kern/device_if.m -h
>> awk -f _at_/tools/makeobjops.awk _at_/kern/bus_if.m -h
>> awk -f _at_/tools/makeobjops.awk _at_/dev/pci/pci_if.m -h
>> cc -O2 -fno-strict-aliasing -pipe -march=prescott -g -DWITNESS
>> -DINVARIANT_SUPPORT -DINVARIANTS -Werror -D_KERNEL -DKLD_MODULE
>> -std=c99 -nostdinc  -I/root/iwn/sys/modules/iwn/../../ -I. -I_at_
>> -I_at_/contrib/altq -finline-limit=8000 --param inline-unit-growth=100
>> --param large-function-growth=1000 -fno-common
>> -mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx
>> -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding
>> -fstack-protector -fstack-protector -Wall -Wredundant-decls
>> -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes
>> -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign
>> -fformat-extensions -c
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c: In function
>> 'iwn_attach':
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:366: error: 'struct
>> ieee80211com' has no member named 'ic_state'
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:370: error:
>> 'IEEE80211_C_WEP' undeclared (first use in this function)
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:370: error: (Each
>> undeclared identifier is reported only once
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:370: error: for each
>> function it appears in.)
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:409: error: 'struct
>> ieee80211com' has no member named 'ic_bmissthreshold'
>> cc1: warnings being treated as errors
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:410: warning:
>> assignment from incompatible pointer type
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:416: warning:
>> assignment from incompatible pointer type
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:417: warning:
>> assignment from incompatible pointer type
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:420: error: 'struct
>> ieee80211com' has no member named 'ic_newstate'
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:421: error: 'struct
>> ieee80211com' has no member named 'ic_newstate'
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:422: error: too many
>> arguments to function 'ieee80211_media_init'
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:426: warning: passing
>> argument 2 of 'ieee80211_amrr_init' from incompatible pointer type
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:426: error: too few
>> arguments to function 'ieee80211_amrr_init'
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c: In function
>> 'iwn_newassoc':
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:910: error: too few
>> arguments to function 'ieee80211_amrr_node_init'
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c: In function
>> 'iwn_newstate':
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:940: error: 'struct
>> ieee80211com' has no member named 'ic_state'
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:950: error: 'struct
>> ieee80211com' has no member named 'ic_state'
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:954: error: 'struct
>> ieee80211com' has no member named 'ic_state'
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c: In function
>> 'iwn_calib_timeout':
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:1279: error: 'struct
>> ieee80211com' has no member named 'ic_state'
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:1283: error: 'struct
>> ieee80211com' has no member named 'ic_fixed_rate'
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:1287: error: 'struct
>> ieee80211com' has no member named 'ic_bss'
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c: In function
>> 'iwn_iter_func':
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:1309: warning:
>> passing argument 1 of 'ieee80211_amrr_choose' from incompatible
>> pointer type
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:1309: warning:
>> passing argument 2 of 'ieee80211_amrr_choose' from incompatible
>> pointer type
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:1309: error: too many
>> arguments to function 'ieee80211_amrr_choose'
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c: In function
>> 'iwn_rx_intr':
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:1443: error: 'struct
>> ieee80211com' has no member named 'ic_state'
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:1467:45: error: macro
>> "ieee80211_input" passed 6 arguments, but takes just 5
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:1467: error:
>> 'ieee80211_input' undeclared (first use in this function)
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c: In function
>> 'iwn_rx_statistics':
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:1482: error: 'struct
>> ieee80211com' has no member named 'ic_state'
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c: In function
>> 'iwn_notif_intr':
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:1652: error: 'struct
>> ieee80211com' has no member named 'ic_state'
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:1654: error: 'struct
>> ieee80211com' has no member named 'ic_bmissthreshold'
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c: In function
>> 'iwn_tx_data':
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:1835: error: 'struct
>> ieee80211com' has no member named 'ic_mcast_rate'
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:1836: error: 'struct
>> ieee80211com' has no member named 'ic_fixed_rate'
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:1837: error: 'struct
>> ieee80211com' has no member named 'ic_fixed_rate'
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:1843: warning:
>> passing argument 1 of 'ieee80211_crypto_encap' from incompatible
>> pointer type
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:1843: warning:
>> passing argument 2 of 'ieee80211_crypto_encap' from incompatible
>> pointer type
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:1843: error: too many
>> arguments to function 'ieee80211_crypto_encap'
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:1877: error: 'struct
>> ieee80211com' has no member named 'ic_rtsthreshold'
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c: In function 'iwn_start':
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:2026: error: 'struct
>> ieee80211com' has no member named 'ic_mgtq'
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:2035: error: 'struct
>> ieee80211com' has no member named 'ic_mgtq'
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:2035: error: 'struct
>> ieee80211com' has no member named 'ic_mgtq'
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:2035: error: 'struct
>> ieee80211com' has no member named 'ic_mgtq'
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:2035: error: 'struct
>> ieee80211com' has no member named 'ic_mgtq'
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:2035: error: 'struct
>> ieee80211com' has no member named 'ic_mgtq'
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:2035: error: 'struct
>> ieee80211com' has no member named 'ic_mgtq'
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:2043: error: 'struct
>> ieee80211com' has no member named 'ic_state'
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:2053: warning:
>> passing argument 1 of 'ieee80211_cancel_scan' from incompatible
>> pointer type
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:2062: warning:
>> passing argument 1 of 'ieee80211_find_txnode' from incompatible
>> pointer type
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:2068: warning:
>> passing argument 1 of 'ieee80211_classify' from incompatible pointer
>> type
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:2068: error: too many
>> arguments to function 'ieee80211_classify'
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:2083: warning:
>> passing argument 1 of 'ieee80211_encap' from incompatible pointer type
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:2083: error: too many
>> arguments to function 'ieee80211_encap'
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:2087: error: 'struct
>> ieee80211com' has no member named 'ic_rawbpf'
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:2088: error: 'struct
>> ieee80211com' has no member named 'ic_rawbpf'
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c: In function 'iwn_ioctl':
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:2148: warning:
>> passing argument 1 of 'ieee80211_ioctl' from incompatible pointer type
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:2153: error: 'struct
>> ieee80211com' has no member named 'ic_roaming'
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c: In function
>> 'iwn_power_calibration':
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:2674: error: 'struct
>> ieee80211com' has no member named 'ic_state'
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c: In function 'iwn_auth':
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:3205: error: 'struct
>> ieee80211com' has no member named 'ic_bss'
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c: In function 'iwn_run':
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:3297: error: 'struct
>> ieee80211com' has no member named 'ic_bss'
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:3385: error: 'struct
>> ieee80211com' has no member named 'ic_bss'
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c: In function 'iwn_scan':
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:3486: error: 'struct
>> ieee80211com' has no member named 'ic_des_ssid'
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:3487: error: 'struct
>> ieee80211com' has no member named 'ic_des_ssid'
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:3487: error: 'struct
>> ieee80211com' has no member named 'ic_des_ssid'
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:3507: error: 'struct
>> ieee80211com' has no member named 'ic_des_ssid'
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:3508: error: 'struct
>> ieee80211com' has no member named 'ic_des_ssid'
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:3508: error: 'struct
>> ieee80211com' has no member named 'ic_des_ssid'
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:3509: error: 'struct
>> ieee80211com' has no member named 'ic_des_ssid'
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:3541: error: 'struct
>> ieee80211com' has no member named 'ic_des_ssid'
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c: In function 'iwn_init':
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:3988: error: 'struct
>> ieee80211com' has no member named 'ic_roaming'
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:3989: warning:
>> passing argument 1 of 'ieee80211_new_state' from incompatible pointer
>> type
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:3991: warning:
>> passing argument 1 of 'ieee80211_new_state' from incompatible pointer
>> type
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c: In function 'iwn_stop':
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:4015: warning:
>> passing argument 1 of 'ieee80211_new_state' from incompatible pointer
>> type
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c: In function 'iwn_ops':
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:4150: warning:
>> passing argument 1 of 'ieee80211_scan_next' from incompatible pointer
>> type
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:4157: warning:
>> passing argument 1 of 'ieee80211_cancel_scan' from incompatible
>> pointer type
>> /root/iwn/sys/modules/iwn/../../dev/iwn/if_iwn.c:4173: warning:
>> passing argument 1 of 'ieee80211_cancel_scan' from incompatible
>> pointer type
>> *** Error code 1
>>
>> Stop in /root/iwn/sys/modules/iwn.
>>
>>
>>
>> Any help will be appreciated. Thanks.
>>
>> --
>>
>> Fl?vio do Carmo J?nior
>> _______________________________________________
>> freebsd-current_at_freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-current
>> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
>>
>
Received on Thu Sep 25 2008 - 13:37:54 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:35 UTC