Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Mar 2008 10:56:26 +0200
From:      "Dennis Melentyev" <dennis.melentyev@gmail.com>
To:        "knowtree@aloha.com" <knowtree@aloha.com>
Cc:        Johan Johansen <Johan.Johansen@cc.uit.no>, freebsd-mobile@freebsd.org
Subject:   Re: if_wpi will not work for me
Message-ID:  <b84edfa10803200156x7b60354ei50456bf4562a2d75@mail.gmail.com>
In-Reply-To: <200803200815.m2K8F67R030345@yoda.pixi.com>
References:  <200803200815.m2K8F67R030345@yoda.pixi.com>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Hello Gary,

Everything looks reasonable. Attached is a collection of data on my
setup (note driver version is quite old!!!). Have no chance yet to try
with newer one.

There is an ambiguity in wpa_supplicant and rc.conf settings, but I
gave both configs just to be fair. AFAIU, rc.conf is used ATM.

Also note, that I have no AP at work, so device is not associated in
the logs. But it does work at home.

2008/3/20, knowtree@aloha.com <knowtree@aloha.com>:
> > My notebook is HP Compaq nc2400 running FreeBSD 7.0-RELEASE
>  >
>  > kldload if_wpi give me
>  > Mar 18 10:29:34 juba kernel: wpi0: <Intel(R) PRO/Wireless 3945ABG> mem
>  > 0xf0000000-0xf0000fff irq 16 at device 0.0 on pci8
>  > Mar 18 10:29:34 juba kernel: wpi0: could not allocate memory resource
>  > Mar 18 10:29:34 juba kernel: device_attach: wpi0 attach returned 6
>  >
>  > and ifconfig show no wpi0
>  >
>  > I have not seen this behaviour mentioned before, so could anyone
>  > give me some hints, please?
>  >
>
> > mvh
>  >
>  > johan
>
>  I have been describing related problems in a different thread, but it might
>  help others if I join this one.
>
>  Before I go on, a big mahalo (thanks) to everyone with advice on how to get
>  my Lucent Gold wifi card working better. Much better now.
>
>  My Dell Latitude D830 has a built-in wifi interface which Dennis Melentyev
>  said might work with the wpi driver. I followed his advice and the
>  instructions on the wpi man page, but no luck yet.
>
>  Here is my entire /boot/loader.conf file, which includes stuff for the
>  sound card (which does not send output through the built-in speakers, which
>  is not much of a loss).
>
>  sound_load="YES"
>  snd_hda_load="YES"
>  # enable ATAPI/CAM driver for CD-ROM
>  atapicam_load="YES"
>  # enable wpi wireless driver for Dell internal
>  legal.intel_wpi.license_ack=1
>  if_wpi_load="YES"
>  wlan_load="YES"
>  wlan_amrr_load="YES"
>  firmware_load="YES"
>  wpifw_load="YES"
>
>  Does it matter what sequence these come in?
>
>  Here the output of kldstat:
>
>  Id Refs Address    Size     Name
>   1   19 0xc0400000 926ed4   kernel
>   2    2 0xc0d27000 4a5ac    sound.ko
>   3    1 0xc0d72000 14324    snd_hda.ko
>   4    1 0xc0d87000 4d20     atapicam.ko
>   5    1 0xc0d8c000 f140     if_wpi.ko
>   6    1 0xc0d9c000 25f60    wpifw.ko
>   7    1 0xc0dc2000 6a1c4    acpi.ko
>   8    1 0xc5987000 22000    linux.ko
>
>  I noticed some things not listed, wlan, wlan_amrr, and firmware. Just for
>  fun I tried loading them manually, and got this:
>
>  # kldload wlan.ko
>  kldload: can't load wlan.ko: File exists
>
>  The other two, wlan_amrr, and firmware, do the same. I suspect that means
>  those modules are configured into the kernel. ???
>
>  When the system boots I see no sign of activity from wpi0. It does not
>  appear in /var/run/dmesg.boot or /var/log/messages. Is there a log file for
>  loader.conf?
>
>  The computer has an LED that is on in Windows (it comes on about half way
>  through the boot sequence), but remains off when I boot into FreeBSD from
>  power-on. The slider switch on the side of the computer does not switch on
>  the radio. If I go into Windows, then restart and select FreeBSD, the LED
>  remains on but with no change, still nothing in the logs or in the output
>  of ifconfig.
>
>  I can load and unload if_wpi without error.
>
>  I added this to /etc/rc.conf:
>
>  network_interfaces=bge0 wi0 wpi0
>
>  to try to force recognition of wpi0 but no change. (bge0 is the built-in
>  wired Ethernet NIC.)
>
>  Any suggestions?
>
>  Gary Dunn
>  Open Slate Project
>
>
>
>  _______________________________________________
>  freebsd-mobile@freebsd.org mailing list
>  http://lists.freebsd.org/mailman/listinfo/freebsd-mobile
>  To unsubscribe, send any mail to "freebsd-mobile-unsubscribe@freebsd.org"
>


-- 
Dennis Melentyev

[-- Attachment #2 --]
$Id$: 
/*      $FreeBSD: src/sys/dev/wpi/if_wpivar.h,v 1.1.2.1 2007/12/08 12:44:57 benjsc Exp $        */
/*      $FreeBSD: src/sys/dev/wpi/if_wpireg.h,v 1.2.2.1 2007/12/08 12:44:57 benjsc Exp $        */
__FBSDID("$FreeBSD: src/sys/dev/wpi/if_wpi.c,v 1.5.2.1 2007/12/08 12:44:57 benjsc Exp $");
#define VERSION "20071127"

/boot/loader.conf:

legal.intel_wpi.license_ack=1
#hw.psm.synaptics_support=1
wlan_load="YES"
wlan_amrr_load="YES"
firmware_load="YES"
wpifw_load="YES"
if_wpi_load="YES"
snd_hda_load="YES"
hw.acpi.osname="Windows 2001"
ucom_load="YES"
umodem_load="YES"
uplcom_load="YES"

kldstat:

Id Refs Address    Size     Name
 1   28 0xc0400000 926ed4   kernel
 2    1 0xc0d27000 14324    snd_hda.ko
 3    2 0xc0d3c000 4a5ac    sound.ko
 4    1 0xc0d87000 342c     umodem.ko
 5    3 0xc0d8b000 3518     ucom.ko
 6    1 0xc0d8f000 25f60    wpifw.ko
 7    1 0xc0db5000 f140     if_wpi.ko
 8    1 0xc0dc5000 405c     uplcom.ko
 9    1 0xc0dca000 6a1c4    acpi.ko
10    1 0xc466d000 22000    linux.ko
11    1 0xc46df000 e000     fuse.ko
12    1 0xc48fd000 6000     i915.ko
13    1 0xc4914000 f000     drm.ko

/etc/rc.conf:

# -- sysinstall generated deltas -- # Sun Dec  9 06:21:51 2007
# -- sysinstall generated deltas -- # Tue Nov 13 02:32:29 2007
# Created: Tue Nov 13 02:32:29 2007
# Enable network daemons for user convenience.
# Please make all changes to this file, not to /etc/defaults/rc.conf.
# This file now contains just the overrides from /etc/defaults/rc.conf.
font8x14="cp866u-8x14"
font8x16="cp866u-8x16"
font8x8="cp866u-8x8"
hostname="dmelentyev-mobi.xxx.xxx.ua"
ifconfig_bge0="DHCP"
ifconfig_wpi0="ssid dm-home wep weptxkey 1 wepkey 0xXXXXXXXXXXXXXXXXXXXXXXXXXX DHCP"
#ifconfig_wpi0="ssid hotel-blautal DHCP"
#ifconfig_wpi0="ssid AIS DHCP"
#ifconfig_wpi0="wpa DHCP"
keymap="ua.koi8-u.shift.alt"
linux_enable="YES"
mousechar_start="3"
moused_enable="YES"
nfs_client_enable="YES"
nfs_server_enable="YES"
rpcbind_enable="YES"
scrnmap="koi8-u2cp866u"
sshd_enable="YES"
wpa_supplicant_enable="YES"
fusefs_enable="YES"

/etc/wpa_supplicant.conf:

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel

#network={
#	ssid="hotel-blautal"
#	scan_ssid=0
#	key_mgmt=NONE
#}
#
#network={
#	ssid="AIS"
#	scan_ssid=0
#	key_mgmt=NONE
#}

network={
	ssid="dm-home"
	scan_ssid=1
	key_mgmt=NONE
	wep_tx_keyidx=1
	wep_key0=XXXXXXXXXXXXXXXXXXXXXXXXXX
	wep_key1=XXXXXXXXXXXXXXXXXXXXXXXXXX
}

dmesg|grep wpi:

wpi0: <Intel(R) PRO/Wireless 3945ABG> mem 0xfe8ff000-0xfe8fffff irq 17 at device 0.0 on pci12
wpi0: Ethernet address: 00:1b:77:2d:65:91
wpi0: [ITHREAD]
wpi0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wpi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
wpi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wpi0: wpi_cmd: cmd 72 not sent, busy
wpi0: wpi_cmd: cmd 72 not sent, busy

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b84edfa10803200156x7b60354ei50456bf4562a2d75>