All seems to be configured properly, but still can't use Intel 3945ABG Wireless

Good day everybody! First of all - I am noobie. I've read FreeBSD Handbook (chapter 31.3 Wireless Networking), checked this forum, looked for tips in the internet. But my Intel 3945ABG do not want to work :\.

I use FreeBSD-8.1-RELEASE-i386

# pciconf -lv | grep -B3 network
Code:
wpi0@pci0:3:0:0 class=0x028000 card=0x10018086
chip=0x42228086 rev=0x02 hdr=0x00
     vendor='Intel Corporation'
     device='Intel 3945ABG Wireless LAN Controller (10208086)'

And here i post my conf files

1. /boot/loader.conf
Code:
if_wpi_load="YES"
wlan_ccmp_load="YES"
wlan_tkip_load="YES"
legal.wpi.license_ack=1

2. /etc/rc.conf
Code:
sshd_enable="YES"
hald_enable="YES"
dbus_enable="YES"
hostname="aspire.freebsd.org"
wlans_wpi0="wlan0"
ifconfig_wlan0="ssid MY_SSID WPA DHCP"

3. /etc/wpa_supplicant.conf
Code:
network={
        ssid="MY_SSID"
        proto=RSN
        psk="my_password"
}

After that I've rebooted the system and tryied to create virtual interface "wlan0" with command
[cmd=]# ifconfig wlan0 create wlandev wpi0[/cmd] to be able to use [cmd=]# ifconfig wlan0 up scan[/cmd] and [cmd=]# /etc/rc.d/netif start[/cmd]

BUT I receive every time this message :q:
Code:
ifconfig: SIOCIFCREATE2: Device not found
or
Code:
ifconfig: SIOCIFCREATE2: Device not configured
.

By the way, just to check all variants (about which I know), after using of native BSD-driver for my Wi-Fi controller (wpi), I've also tryied to use the Windows driver with the help of the NDIS driver wrapper. All passed very good and I've seen ndis0 adapter after issuing [cmd=]# pciconf -lv | grep -B3 network[/cmd] But I continued to receive the same error messages.

Could anybody help me to solve this problem?
Thank you.
 
Buddah_Finga said:
1. /boot/loader.conf
Code:
if_wpi_load="YES"
wlan_ccmp_load="YES"
wlan_tkip_load="YES"
legal.wpi.license_ack=1

The ccmp and tkip modules are in the GENERIC kernel, so usually don't need to be loaded.

2. /etc/rc.conf
Code:
sshd_enable="YES"
hald_enable="YES"
dbus_enable="YES"
hostname="aspire.freebsd.org"
wlans_wpi0="wlan0"
ifconfig_wlan0="ssid MY_SSID WPA DHCP"

ssid comes from /etc/wpa_supplicant.conf. A lot of wireless connections take a while to connect, so SYNCDHCP is useful, too:
Code:
ifconfig_wlan0="WPA SYNCDHCP"
 
Thanks, wblock. I'll try it. And about explicit
Code:
wlan_ccmp_load="YES"
wlan_tkip_load="YES"
config lines I've read in Handbook, so I decided to write them also... . But I think you are right: they are in GENERIC kernel.

Just for additional info about My Wi-Fi: IPv4, DHCP, 802.11g, WPA2-PSK, AES-CCMP.
 
Hmm. Not sure what the situation is with the license ack now, but you might try replacing the one in /boot/loader.conf with:
Code:
legal.[B]intel_[/B]wpi.license_ack=1

% dmesg -a | grep wpi
might show a message about that.
 
bschmidt, here is my verbose logging. (As far as I know it's the contents of dmesg.boot + booting with verbose logging in Startup menu. Or boot -v. Right?).

The link with my verbose is here (it's simply too large to post it right here on the forum):

http://pastie.org/private/h46rxhubpndfoe0fyztt6a


And about
Code:
legal.intel_wpi.license_ack=1
... yes I know that, and already tried with zero success =).

I think this is something wrong with the command
Code:
# ifconfig wlan0 create wlandev wpi0

For example, how I should use it to create pseudo-device for my 'bge0' ethernet card? It's Broadcom BCM5789 Gigabit Ethernet card, also built-in my laptop.

I can see it with
Code:
# pciconf -lv | grep -B3 network
. But cannot use
in
Code:
ifconfig
because I have there only loopback interface, and 2 firewires.

Of course i added to /etc/rc.conf
Code:
ifconfig_bge0="DHCP"

+

Code:
if_bge_load="YES"
to /boot/loader.conf.
 
Code:
wpi0: <Intel(R) PRO/Wireless 3945ABG> irq 17 at device 0.0 on pci3
wpi0: Driver Revision 20071127
pcib3: wpi0 requested unsupported memory range 0-0xffffffff (decoding 0-0, 0-0)
wpi0: 0x1000 bytes of rid 0x10 res 3 failed (0, 0xffffffff).
wpi0: could not allocate memory resource
device_attach: wpi0 attach returned 6

and

Code:
bge0: <Broadcom NetXtreme Gigabit Ethernet Controller, ASIC rev. 0x004201> irq 18 at device 0.0 on pci4
pcib4: bge0 requested unsupported memory range 0-0xffffffff (decoding 0-0, 0-0)
bge0: 0x10000 bytes of rid 0x10 res 3 failed (0, 0xffffffff).
bge0: couldn't map memory
device_attach: bge0 attach returned 6

Woooow! I can't believe it =).
None of my LAN-WLAN controllers supported. So, what should I do? May be I should try again NDIS wrapper to use WinXP drivers, which work great?
 
Buddah_Finga said:
Code:
wpi0: <Intel(R) PRO/Wireless 3945ABG> irq 17 at device 0.0 on pci3
wpi0: Driver Revision 20071127
pcib3: wpi0 requested unsupported memory range 0-0xffffffff (decoding 0-0, 0-0)
wpi0: 0x1000 bytes of rid 0x10 res 3 failed (0, 0xffffffff).
wpi0: could not allocate memory resource
device_attach: wpi0 attach returned 6

and

Code:
bge0: <Broadcom NetXtreme Gigabit Ethernet Controller, ASIC rev. 0x004201> irq 18 at device 0.0 on pci4
pcib4: bge0 requested unsupported memory range 0-0xffffffff (decoding 0-0, 0-0)
bge0: 0x10000 bytes of rid 0x10 res 3 failed (0, 0xffffffff).
bge0: couldn't map memory
device_attach: bge0 attach returned 6

Woooow! I can't believe it =).
None of my LAN-WLAN controllers supported. So, what should I do? May be I should try again NDIS wrapper to use WinXP drivers, which work great?

Yeah.. that's what I was not hoping for. That errors come from a flaw in either the PCI-Bridge or ACPI-Bridge code, not related at all to the wpi(4) or bge(4) drivers. There are already quite a bunch of PRs about that.

I doubt that NDIS is able to bypass the issue, because it will want to use the same resources which aren't available to real drivers.

Sorry, can't provide any solution, this is way above my clue level. Though, I once heard rumors were playing with BIOS settings fixed that issue.
 
DutchDaemon said:
There was nothing in the mod queue. Are you sure it wasn't refused as being too big? Better use http://pastie.org or http://pastebin.com for big chunks of output.

Yeah, yeah... I've seen your post about it on another forum-thread. 'Pastie' is very useful. And my message was moderated for some time, so I've said only to wait a little... .

Dank u vriendelijk! :)
 
bschmidt said:
Sorry, can't provide any solution, this is way above my clue level. Though, I once heard rumors were playing with BIOS settings fixed that issue.

I understand. :\
This problem is more particular for the model of notebook I own: Acer Aspire 5673. I name it for those unfortunates that have PCs from the same model range. But I have an idea :i

What do you think if I try some older releases like FreeBSD 7.3-RELEASE, or even FreeBSD 6.4-RELEASE? Is there any chance that using older ones I should not encounter the same problem?

If so, I believe I can continue to learn new things on this powerful system! :stud
 
Buddah_Finga said:
I understand. :\
This problem is more particular for the model of notebook I own: Acer Aspire 5673. I name it for those unfortunates that have PCs from the same model range. But I have an idea :i

What do you think if I try some older releases like FreeBSD 7.3-RELEASE, or even FreeBSD 6.4-RELEASE? Is there any chance that using older ones I should not encounter the same problem?

If so, I believe I can continue to learn new things on this powerful system! :stud

You can try with a bootonly iso, at least you should see the bge0 interface if it works.. doubt that though.
 
I've solved the problem :). First I will paste my configs and then I shall give some explanations.

FreeBSD 8.1-RELEASE (but I've also successfully tried on FreeBSD 7.3-RELEASE, configuration files have been changed accordingly).

Notebook model: Acer Aspire 5673.

Here is my dmesg.boot -> http://pastie.org/private/8aierrkmgromzzhacviw

/boot/loader.conf ->
Code:
hint.acpi.0.disabled=1
legal.wpi.license_ack=1
if_wpi_load="YES"
wlan_ccmp_load="YES"
wlan_tkip_load="YES"

/etc/rc.conf ->
Code:
hostname="aspire.freebsdbox.org"
sshd_enable="YES"
hald_enable="YES"
dbus_enable="YES"
ifconfig_bge0="DHCP"
wlans_wpi0="wlan0"
ifconfig_wlan0="ssid MY_SSID WPA DHCP"

/etc/wpa_supplicant ->
Code:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel

network={
  ssid="MY_SSID"
  proto=RSN
  psk="my_password"
}

As you remember I had problems with memory allocation needed by two LAN-WAN interafaces. FreeBSD 7.3-RELEASE even freezed during boot process with enabled wpi driver! :x
I analyzed dmesg and found that the ACPI (Advanced Configuration and Power Interface) is always trying to allocate the same address range as some devices on my notebook.
So I needed to disable ACPI somehow! I've looked in the Handbook, in the Internet, and I found string, which accomplish this:
Code:
hint.acpi.0.disabled=1
As you can see I've just wrote it in /boot/loader.conf. Now I can normaly boot the system (and not typing '2' on the Boot screen each tyme I power on).

Soon after that... after first reboot I've seen bge0 automatically. And with those config files above I'd successfully installed xorg using
Code:
pkg_add -r -v xorg
with my wlan0 from fastest (for me) FTP-site in Germany.

Yeeehhaa! :beergrin
 
Buddah_Finga said:
I've solved the problem :).

[..]

Soon after that... after first reboot I've seen bge0 automatically. And with those config files above I'd successfully installed xorg using
Code:
pkg_add -r -v xorg
with my wlan0 from fastest (for me) FTP-site in Germany.

Yeeehhaa! :beergrin

congratz! :)
 
Back
Top