Finished: CALL FOR TESTERS Intel wireless 5100/5300 iwn(4) driver for FreeBSD

Hello
I've upgraded as well, it took a little while to figure out that I needed to load yet another module (iwn5000fw.ko).
Now wlan0 connects but not to the network specified in wpa_supplicant.conf!
I get an IP-address from someone elses network! How do I avoid this?
Thanks
/Leslie
 
I just want to ad that this config worked with v.24 of this driver!

rc.conf

Code:
wpa_supplicant_enable="YES"
wlans_iwn0="wlan0"
ifconfig_wlan0="WPA DHCP"


wpa_supplicant.conf

Code:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
ap_scan=1
#
network={
        ssid="my ssid"
        scan_ssid=1
        priority=1
        psk="hidden password"
}
 
so finally some time to test it. rev. 26 compiles and works so far on:

Code:
kernel: iwn0: <Intel(R) PRO/Wireless 5300> mem 0xf2500000-0xf2501fff irq 17 at device 0.0 on pci3

wpa_supplicant with WPA key + AP connection working perfeclty, doing some stress tests ...

observations i made:
1. changing the mac address of wlan0 ends up in a flapping connection with a former working wpa_supplicant configuration.

Code:
kernel: wlan0: link state changed to DOWN
kernel: wlan0: link state changed to UP
kernel: wlan0: link state changed to DOWN
kernel: wlan0: link state changed to UP

2. changing both, wlan0 and iwn0 to the same (fake) mac address results in no connection to the AP at all, even no flapping stuff.

3. i tried the also the aircrack-ng suite, now listening for other networks seems so far not to work i guess this would be also the same for injecting, but i didnt test that so far

if you need wpa_supplicant output i can paste you, but i guess you can reproduce the problem without problems.

in anyway thank you for a working wireless driver :) !!

regards,
 
If I have ifconfig_wlan0="WPA DHCP" in rc.conf. It will connect and work.
If I have ifconfig_wlan0="inet 172.17.0.159 netmask 255.255.255.0" it won't connect!
Any ideas on what's the problem?
 
eyebone said:
observations i made:
1. changing the mac address of wlan0 ends up in a flapping connection with a former working wpa_supplicant configuration.

Code:
kernel: wlan0: link state changed to DOWN
kernel: wlan0: link state changed to UP
kernel: wlan0: link state changed to DOWN
kernel: wlan0: link state changed to UP

2. changing both, wlan0 and iwn0 to the same (fake) mac address results in no connection to the AP at all, even no flapping stuff.

Never actually tried that, added to my TODO list.

eyebone said:
3. i tried the also the aircrack-ng suite, now listening for other networks seems so far not to work i guess this would be also the same for injecting, but i didnt test that so far

Yup, radiotap/monitor mode is another point on the TODO list. ;)
 
LesJen said:
If I have ifconfig_wlan0="WPA DHCP" in rc.conf. It will connect and work.
If I have ifconfig_wlan0="inet 172.17.0.159 netmask 255.255.255.0" it won't connect!
Any ideas on what's the problem?

Add a SSID maybe?
 
I saw now in the handbook what you mean! Unfortunately it won't connect with the line:

ifconfig_wlan0="ssid my_ssid inet 172.17.0.159 netmask 255.255.255.0"

Is there anything else I can do to make it connect?
 
I've tried now for more than ten minutes. It won't connect when an IP-address is set. DHCP is ok. If it's dependent of the ssid parameter when setting the IP-address, how come the ssid is not needed when using DCHP?
Could it be something else that's preventing it from connecting?
 
In the first line you were trying to connect with WPA (ifconfig_xxx0 WPA DHCP). Now you are trying to connect without it (ifconfig_xxx0 ssid YOURID youraddress netmask yournetmask)

Have you turned off encryption on the network, or have you just forgotten WPA?
 
robbak said:
In the first line you were trying to connect with WPA (ifconfig_xxx0 WPA DHCP). Now you are trying to connect without it (ifconfig_xxx0 ssid YOURID youraddress netmask yournetmask)

Have you turned off encryption on the network, or have you just forgotten WPA?

Thank you very much for this answer :) No I have not turned off the encryption! But I have forgotten to put WPA in the ifconfig line. Very observant of you and I need to polish my glasses :)

PS: SSID is not needed now :)
 
dduong said:
Is there a way I can check the rev that I'm using? I want to know if I applied the svn patch correctly.

Thanks!

If you mean something like
Code:
iwn revsion XY loaded
then no, there isn't.

The best way to ensure that you are using the latest SVN version, is to remove any if_iwn.ko and iwn??00fw.ko modules from /boot/kernel/ and checkout/build the driver afterward.
 
Thanks bschmidt.

I've recently upgraded my X200 to 4gb of RAM and after checkout/build of the rev 27 driver plus recompile the kernel; everytime I start wpa_supplicant, my wireless LED shows up and my whole laptop crashes and reboots. I enabled the debug and this is what I see:

Code:
Dec 27 10:38:58 dduong-freebsd kernel: Fatal trap 12: page fault while in kernel mode
Dec 27 10:38:58 dduong-freebsd kernel: cpuid = 0; apic id = 00
Dec 27 10:38:58 dduong-freebsd kernel: fault virtual address    = 0x1c
Dec 27 10:38:58 dduong-freebsd kernel: fault code               = supervisor read data, page not present
Dec 27 10:38:58 dduong-freebsd kernel: instruction pointer      = 0x20:0xffffffff80550a20
Dec 27 10:38:58 dduong-freebsd kernel: stack pointer            = 0x28:0xffffff8072b508f0
Dec 27 10:38:58 dduong-freebsd kernel: frame pointer            = 0x28:0xffffff8072b50900
Dec 27 10:38:58 dduong-freebsd kernel: code segment             = base 0x0, limit 0xfffff, type 0x1b
Dec 27 10:38:58 dduong-freebsd kernel: = DPL 0, pres 1, long 1, def32 0, gran 1
Dec 27 10:38:58 dduong-freebsd kernel: processor eflags = interrupt enabled, resume, IOPL = 0
Dec 27 10:38:58 dduong-freebsd kernel: current process          = 0 (iwn0 taskq)
Dec 27 10:38:58 dduong-freebsd kernel: trap number              = 12
Dec 27 10:38:58 dduong-freebsd kernel: panic: page fault
Dec 27 10:38:58 dduong-freebsd kernel: cpuid = 0
Dec 27 10:38:58 dduong-freebsd kernel: Uptime: 1m32s
Dec 27 10:38:58 dduong-freebsd kernel: Cannot dump. Device not defined or unavailable.
Dec 27 10:38:58 dduong-freebsd kernel: Automatic reboot in 15 seconds - press a key on the console to abort
Dec 27 10:38:58 dduong-freebsd kernel: Rebooting...
Dec 27 10:38:58 dduong-freebsd kernel: cpu_reset: Stopping other CPUs

Sorry, I'm new to this whole debugging process and I've only learned how to do it from the previous posts. I will try to provide you as much info as possible if requested.
 
Did you build/install the kernel before or after you've compiled the wireless driver? I just ask, because if you install a kernel afterwards it overwrites the wireless driver.
 
I built/installed the kernel after compiling the wireless driver.

I assume that I was suppose to compile the wireless driver without build/install the kernel?
 
Thanks!

Here is what I did so far.

1) Removed any if_iwn.ko and iwn??00fw.ko modules in /boot/kernel/
2) Build/Install kernel (start things from scratch)
3) Followed your instructions on post #16.
4) For kicks, I've rebooted

Kernel sees the hardware:

Code:
Dec 27 12:14:42 dduong-freebsd kernel: iwn0: <Intel(R) PRO/Wireless 5300> mem 0xf2500000-0xf2501fff irq 17 at device 0.0 on pci3
Dec 27 12:14:42 dduong-freebsd kernel: iwn0: MIMO 3T3R, MoW, address 00:21:6a:85:55:e0
Dec 27 12:14:42 dduong-freebsd kernel: iwn0: [ITHREAD]
Dec 27 12:14:42 dduong-freebsd kernel: iwn0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
Dec 27 12:14:42 dduong-freebsd kernel: iwn0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
Dec 27 12:14:42 dduong-freebsd kernel: iwn0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
Dec 27 12:14:42 dduong-freebsd kernel: iwn0: 11na MCS: 15Mbps 30Mbps 45Mbps 60Mbps 90Mbps 120Mbps 135Mbps 150Mbps 30Mbps 60Mbps 90Mbps 120Mbps 180Mbps 240Mbps 270Mbps 300Mbps
Dec 27 12:14:42 dduong-freebsd kernel: iwn0: 11ng MCS: 15Mbps 30Mbps 45Mbps 60Mbps 90Mbps 120Mbps 135Mbps 150Mbps 30Mbps 60Mbps 90Mbps 120Mbps 180Mbps 240Mbps 270Mbps 300Mbps

When I tried to start up the wpa_supplicDec 27 12:13:41 dduong-

Code:
freebsd kernel: wlan0: _ieee80211_crypto_delkey: NONE keyix 65535 flags 0x3 rsc 0 tsc 0 len 0
Dec 27 12:13:41 dduong-freebsd last message repeated 3 times
Dec 27 12:13:41 dduong-freebsd kernel: wlan0: start running, 0 vaps running
Dec 27 12:13:41 dduong-freebsd kernel: wlan0: ieee80211_start_locked: up parent iwn0
Dec 27 12:14:42 dduong-freebsd syslogd: kernel boot file is /boot/kernel/kernel
Dec 27 12:14:42 dduong-freebsd kernel: 
Dec 27 12:14:42 dduong-freebsd kernel: 
Dec 27 12:14:42 dduong-freebsd kernel: Fatal trap 12: page fault while in kernel mode
Dec 27 12:14:42 dduong-freebsd kernel: cpuid = 0; apic id = 00
Dec 27 12:14:42 dduong-freebsd kernel: fault virtual address    = 0x1c
Dec 27 12:14:42 dduong-freebsd kernel: fault code               = supervisor read data, page not present
Dec 27 12:14:42 dduong-freebsd kernel: instruction pointer      = 0x20:0xffffffff80550a20
Dec 27 12:14:42 dduong-freebsd kernel: stack pointer            = 0x28:0xffffff8072b508f0
Dec 27 12:14:42 dduong-freebsd kernel: frame pointer            = 0x28:0xffffff8072b50900
Dec 27 12:14:42 dduong-freebsd kernel: code segment             = base 0x0, limit 0xfffff, type 0x1b
Dec 27 12:14:42 dduong-freebsd kernel: = DPL 0, pres 1, long 1, def32 0, gran 1
Dec 27 12:14:42 dduong-freebsd kernel: processor eflags = interrupt enabled, resume, IOPL = 0
Dec 27 12:14:42 dduong-freebsd kernel: current process          = 0 (iwn0 taskq)
Dec 27 12:14:42 dduong-freebsd kernel: trap number              = 12
Dec 27 12:14:42 dduong-freebsd kernel: panic: page fault
Dec 27 12:14:42 dduong-freebsd kernel: cpuid = 0
Dec 27 12:14:42 dduong-freebsd kernel: Uptime: 2m10s
Dec 27 12:14:42 dduong-freebsd kernel: Cannot dump. Device not defined or unavailable.
Dec 27 12:14:42 dduong-freebsd kernel: Automatic reboot in 15 seconds - press a key on the console to abort
Dec 27 12:14:42 dduong-freebsd kernel: Rebooting...
Dec 27 12:14:42 dduong-freebsd kernel: cpu_reset: Stopping other CPUs
ant, it crashes again:
 
dduong said:
Code:
Dec 27 12:14:42 dduong-freebsd kernel: iwn0: <Intel(R) PRO/Wireless 5300> mem 0xf2500000-0xf2501fff irq 17 at device 0.0 on pci3
Dec 27 12:14:42 dduong-freebsd kernel: iwn0: MIMO 3T3R, MoW, address 00:21:6a:85:550
Dec 27 12:14:42 dduong-freebsd kernel: iwn0: [ITHREAD]
Dec 27 12:14:42 dduong-freebsd kernel: iwn0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
Dec 27 12:14:42 dduong-freebsd kernel: iwn0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
Dec 27 12:14:42 dduong-freebsd kernel: iwn0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
Dec 27 12:14:42 dduong-freebsd kernel: iwn0: 11na MCS: 15Mbps 30Mbps 45Mbps 60Mbps 90Mbps 120Mbps 135Mbps 150Mbps 30Mbps 60Mbps 90Mbps 120Mbps 180Mbps 240Mbps 270Mbps 300Mbps
Dec 27 12:14:42 dduong-freebsd kernel: iwn0: 11ng MCS: 15Mbps 30Mbps 45Mbps 60Mbps 90Mbps 120Mbps 135Mbps 150Mbps 30Mbps 60Mbps 90Mbps 120Mbps 180Mbps 240Mbps 270Mbps 300Mbps

Unfortunately that is still an old driver, the latest version doesn't print the 11n rates.

Can you do
Code:
# ls -l /boot/kernel/if_iwn*
# svn co http://svn.techwires.net/svn/projects/freebsd
# cd freebsd/sys/modules/iwnfw
# make
# make install
# cd ../iwn
# env CFLAGS=-I$PWD/../../ make
# make install
# ls -l /boot/kernel/if_iwn*
and post its output?
 
Sure.

Code:
[root@dduong-freebsd /var/log]# ls -l /boot/kernel/if_iwn*
-r-xr-xr-x  1 root  wheel  136160 Dec 27 12:09 /boot/kernel/if_iwn.ko
-r-xr-xr-x  1 root  wheel  430616 Dec 27 12:07 /boot/kernel/if_iwn.ko.symbols

Code:
[root@dduong-freebsd /usr/src/syssvn]# svn co [url]http://svn.techwires.net/svn/projects/freebsd[/url]
A    freebsd/sys
A    freebsd/sys/contrib
A    freebsd/sys/contrib/dev
A    freebsd/sys/contrib/dev/iwn
A    freebsd/sys/contrib/dev/iwn/LICENSE
A    freebsd/sys/contrib/dev/iwn/iwlwifi-6000-9.176.4.1.fw.uu
A    freebsd/sys/contrib/dev/iwn/iwlwifi-4965-228.61.2.24.fw.uu
A    freebsd/sys/contrib/dev/iwn/iwlwifi-1000-128.50.3.1.fw.uu
A    freebsd/sys/contrib/dev/iwn/iwlwifi-5000-8.24.2.12.fw.uu
A    freebsd/sys/contrib/dev/iwn/iwlwifi-5150-8.24.2.2.fw.uu
A    freebsd/sys/conf
A    freebsd/sys/conf/files
A    freebsd/sys/modules
A    freebsd/sys/modules/iwnfw
A    freebsd/sys/modules/iwnfw/iwn5000
A    freebsd/sys/modules/iwnfw/iwn5000/Makefile
A    freebsd/sys/modules/iwnfw/iwn6000
A    freebsd/sys/modules/iwnfw/iwn6000/Makefile
A    freebsd/sys/modules/iwnfw/Makefile.inc
A    freebsd/sys/modules/iwnfw/iwn4965
A    freebsd/sys/modules/iwnfw/iwn4965/Makefile
A    freebsd/sys/modules/iwnfw/iwn5150
A    freebsd/sys/modules/iwnfw/iwn5150/Makefile
A    freebsd/sys/modules/iwnfw/Makefile
A    freebsd/sys/modules/iwnfw/iwn1000
A    freebsd/sys/modules/iwnfw/iwn1000/Makefile
A    freebsd/sys/modules/iwn
A    freebsd/sys/modules/iwn/Makefile
A    freebsd/sys/dev
A    freebsd/sys/dev/iwn
A    freebsd/sys/dev/iwn/if_iwnreg.h
A    freebsd/sys/dev/iwn/if_iwnvar.h
A    freebsd/sys/dev/iwn/if_iwn.c
Checked out revision 27.

Code:
[root@dduong-freebsd /usr/src/syssvn]# cd freebsd/sys/modules/iwnfw
[root@dduong-freebsd /usr/src/syssvn/freebsd/sys/modules/iwnfw]# make
===> iwn1000 (all)
Warning: Object directory not changed from original /usr/src/syssvn/freebsd/sys/modules/iwnfw/iwn1000
uudecode -p /usr/src/syssvn/freebsd/sys/modules/iwnfw/iwn1000/../../../contrib/dev/iwn/iwlwifi-1000-128.50.3.1.fw.uu > iwlwifi-1000-128.50.3.1.fw
@ -> /usr/src/sys
machine -> /usr/src/sys/amd64/include
iwlwifi-1000-128.50.3.1.fw iwlwifi-1000-128.50.3.1.fw
awk -f @/tools/fw_stub.awk iwlwifi-1000-128.50.3.1.fw:iwn1000fw -miwn1000fw -ciwn1000fw.c  
cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc   -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-
unit-growth=100 --param large-function-growth=1000 -fno-common  -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone  -mfpmath=387 -mno-sse 
-mno-sse2 -mno-sse3 -mno-mmx -mno-3dnow  -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -std=iso9899:1999 
-fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  
-Wundef -Wno-pointer-sign -fformat-extensions -c iwn1000fw.c
ld  -d -warn-common -r -d -o iwn1000fw.ko iwlwifi-1000-128.50.3.1.fw.fwo iwn1000fw.o
:> export_syms
awk -f /sys/conf/kmod_syms.awk iwn1000fw.ko  export_syms | xargs -J% objcopy % iwn1000fw.ko
objcopy --strip-debug iwn1000fw.ko
===> iwn4965 (all)
Warning: Object directory not changed from original /usr/src/syssvn/freebsd/sys/modules/iwnfw/iwn4965
uudecode -p /usr/src/syssvn/freebsd/sys/modules/iwnfw/iwn4965/../../../contrib/dev/iwn/iwlwifi-4965-228.61.2.24.fw.uu > iwlwifi-
4965-228.61.2.24.fw
@ -> /usr/src/sys
machine -> /usr/src/sys/amd64/include
iwlwifi-4965-228.61.2.24.fw iwlwifi-4965-228.61.2.24.fw
awk -f @/tools/fw_stub.awk iwlwifi-4965-228.61.2.24.fw:iwn4965fw -miwn4965fw -ciwn4965fw.c  
cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc   -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-
unit-growth=100 --param large-function-growth=1000 -fno-common  -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone  -mfpmath=387 -mno-sse 
-mno-sse2 -mno-sse3 -mno-mmx -mno-3dnow  -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -std=iso9899:1999 
-fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  
-Wundef -Wno-pointer-sign -fformat-extensions -c iwn4965fw.c
ld  -d -warn-common -r -d -o iwn4965fw.ko iwlwifi-4965-228.61.2.24.fw.fwo iwn4965fw.o
:> export_syms
awk -f /sys/conf/kmod_syms.awk iwn4965fw.ko  export_syms | xargs -J% objcopy % iwn4965fw.ko
objcopy --strip-debug iwn4965fw.ko
===> iwn5000 (all)
Warning: Object directory not changed from original /usr/src/syssvn/freebsd/sys/modules/iwnfw/iwn5000
uudecode -p /usr/src/syssvn/freebsd/sys/modules/iwnfw/iwn5000/../../../contrib/dev/iwn/iwlwifi-5000-8.24.2.12.fw.uu > iwlwifi-5000-8.24.2.12.fw
@ -> /usr/src/sys
machine -> /usr/src/sys/amd64/include
iwlwifi-5000-8.24.2.12.fw iwlwifi-5000-8.24.2.12.fw
awk -f @/tools/fw_stub.awk iwlwifi-5000-8.24.2.12.fw:iwn5000fw -miwn5000fw -ciwn5000fw.c  
cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc   -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-
unit-growth=100 --param large-function-growth=1000 -fno-common  -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone  -mfpmath=387 -mno-sse 
-mno-sse2 -mno-sse3 -mno-mmx -mno-3dnow  -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -std=iso9899:1999 
-fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  
-Wundef -Wno-pointer-sign -fformat-extensions -c iwn5000fw.c
ld  -d -warn-common -r -d -o iwn5000fw.ko iwlwifi-5000-8.24.2.12.fw.fwo iwn5000fw.o
:> export_syms
awk -f /sys/conf/kmod_syms.awk iwn5000fw.ko  export_syms | xargs -J% objcopy % iwn5000fw.ko
objcopy --strip-debug iwn5000fw.ko
===> iwn5150 (all)
Warning: Object directory not changed from original /usr/src/syssvn/freebsd/sys/modules/iwnfw/iwn5150
uudecode -p /usr/src/syssvn/freebsd/sys/modules/iwnfw/iwn5150/../../../contrib/dev/iwn/iwlwifi-5150-8.24.2.2.fw.uu > iwlwifi-5150-8.24.2.2.fw
@ -> /usr/src/sys
machine -> /usr/src/sys/amd64/include
iwlwifi-5150-8.24.2.2.fw iwlwifi-5150-8.24.2.2.fw
awk -f @/tools/fw_stub.awk iwlwifi-5150-8.24.2.2.fw:iwn5150fw -miwn5150fw -ciwn5150fw.c  
cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc   -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-
unit-growth=100 --param large-function-growth=1000 -fno-common  -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone  -mfpmath=387 -mno-sse 
-mno-sse2 -mno-sse3 -mno-mmx -mno-3dnow  -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -std=iso9899:1999 
-fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  
-Wundef -Wno-pointer-sign -fformat-extensions -c iwn5150fw.c
ld  -d -warn-common -r -d -o iwn5150fw.ko iwlwifi-5150-8.24.2.2.fw.fwo iwn5150fw.o
:> export_syms
awk -f /sys/conf/kmod_syms.awk iwn5150fw.ko  export_syms | xargs -J% objcopy % iwn5150fw.ko
objcopy --strip-debug iwn5150fw.ko
===> iwn6000 (all)
Warning: Object directory not changed from original /usr/src/syssvn/freebsd/sys/modules/iwnfw/iwn6000
uudecode -p /usr/src/syssvn/freebsd/sys/modules/iwnfw/iwn6000/../../../contrib/dev/iwn/iwlwifi-6000-9.176.4.1.fw.uu > iwlwifi-6000-9.176.4.1.fw
@ -> /usr/src/sys
machine -> /usr/src/sys/amd64/include
iwlwifi-6000-9.176.4.1.fw iwlwifi-6000-9.176.4.1.fw
awk -f @/tools/fw_stub.awk iwlwifi-6000-9.176.4.1.fw:iwn6000fw -miwn6000fw -ciwn6000fw.c  
cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc   -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-
unit-growth=100 --param large-function-growth=1000 -fno-common  -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone  -mfpmath=387 -mno-sse 
-mno-sse2 -mno-sse3 -mno-mmx -mno-3dnow  -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -std=iso9899:1999 
-fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  
-Wundef -Wno-pointer-sign -fformat-extensions -c iwn6000fw.c
ld  -d -warn-common -r -d -o iwn6000fw.ko iwlwifi-6000-9.176.4.1.fw.fwo iwn6000fw.o
:> export_syms
awk -f /sys/conf/kmod_syms.awk iwn6000fw.ko  export_syms | xargs -J% objcopy % iwn6000fw.ko
objcopy --strip-debug iwn6000fw.ko
 
Back
Top