[ltp] Debian on R50e - how to make wpa_supplicant work with wpa2?

AC Perdon linux-thinkpad@linux-thinkpad.org
Mon, 21 Nov 2005 09:48:01 +0800


------=_Part_30596_17185598.1132537681263
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Hi,

This is OT question, sorry for that but is just so happened that im using a
R50e, And you said you have things work out of the box how about the
winmodem is it working out of the box if i'll use Debian unstable right now
my distro is Ubuntu 5.10 but the winmodem is not detected (im not surprise!=
)
below is the detail of my modem:

------------ -------------- System information ------------------------
Ubuntu 5.10 "Breezy Badger"
on System with processor: i686
currently under kernel: 2.6.12-9-686
The kernel was assembled with compiler: 3.4.5
a gcc-3.4.5 package must be installed to support driver compiling

A package kernel-kbuild-2.6-3 or later version must be installed to support
compiling

Checking for kernel-headers needed for compiling.
Checking /usr/src/ for compressed compressed headers or kernel-source

Kernel-header resources needed for compiling are not manifestly ready!
If compressed resources are present, expand and then configure them
following DriverCompiling.txt
They may have to be installed.
Within your Linux distributions' installation CD or online resource (and
mirrows), search for :
Distribution PackageName OnLine
----------------------------------------------------------------------
Debian kernel-headers-2.6.12-9-686 http://www.debian.org/distrib/packages o=
r
install CD
Ubuntu linux-headers-2.6.12-9-686 http://http://packages.ubuntu.com/ or
install CD
Xandros
kernel-kbuild-3.6 are additionally required by Debian, Ubuntu and Xandros
Mandrake kernel-source-2.6.12-9-686 If not present on install CDs search
http://mirror.switch.ch/ftp/mirror/mandrake/official/10.0/i586/Mandrake/RPM=
S/
http://rpms.mandrakeclub.com/rpms/mandrake/official/LByName.html, or other
mirrors.
SuSE kernel-source-2.6.12-9-686 , kernels are named k_deflt
FedoraCore4 kernel-devel-2.6.12-9-686 or kernel-smp-devel-2.6.12-9-686 on
install CD1 or CD4
One of which must be installed if compiling drivers to match kernel
2.6.12-9-686 proves necessary.
Within the output Modem/ folder, read CompilingDrivers.txt for details.


A /dev/modem symbolic link is not set.

drwxr-xr-x 2 root root 0 2005-10-25 21:21 /dev/.udevdb
There is an active UDEV file system, creating device nodes in volatile RAM.
However information from Proprietary drivers is soon to be excluded from
the supporting /sys/ file structure. Thus device nodes for Proprietary mode=
m
drivers
will then have to be created by bootup scripts.

Checking for modem symbolic link support lines within /etc/udev/ files

USB modem not detected.

0000:00:1f.5 Multimedia audio controller: Intel Corp. 82801DB/DBL/DBM
(ICH4/ICH4-L/ICH4-M) AC'97 Audio Controller (rev 01)

Modem candidates are at PCI_buses: 0000:00:1f.6

Providing detail for device at 0000:00:1f.6
with vendor-ID:device-ID
----:----
Class 0703: 8086:24c6 Modem: Intel Corp. 82801DB/DBL/DBM
(ICH4/ICH4-L/ICH4-M) AC'97 Modem Controller (rev 01) (prog-if 00 [Generic])
SubSystem 1014:0559 IBM: Unknown device 0559
Flags: medium devsel, IRQ 11
Checking for IRQ 11 sharing with modem.
XT-PIC uhci_hcd:usb1, uhci_hcd:usb2, uhci_hcd:usb3, ehci_hcd:usb4, Intel
82801DB-ICH4, yenta, ipw2200, i915@pci:0000:00:02.0


-----PCI_IDs------- --CompilerVer-
Feature List: Primary Subsystem Distr KernelVer kernel default CPU
./scanModem test 8086:24c6 1014:0559 debian 2.6.12-9-686 3.4.5 none i686


The soft modem Subsystem operates under a controller
8086:24c6 82801DB ICH4
capable of supporting under Linux AT LEAST modem Subsystem chips from
manufacturers:

Broadcom
AgereSystems
Conexant
Intel
Smartlink
The Subsystem PCI id does not itself identify the modem Codec.

slmodemd software in ALSA mode may support this modem

Driver snd-intel8x0m may enable codec acquisition

Thank you,

AC Perdon


On 11/19/05, Vaclav Stepan <stepan@kmlinux.fjfi.cvut.cz> wrote:
>
> Hello,
>
> I am trying to get a Debian unstable system running on an R50e.
> Most things worked out of the box, several things were easy solved using
> Google and the Wiki (frequency scaling, tpb etc).
> Two problems remain which I am currently stuck with so I am asking for
> help.
> Tell me please, should I provide any additional information.
>
> (1) Suspend to disk using swsusp
> (2) Getting WPA2 running
>
> (1) Suspend to disk using swsusp
>
> Suspend to RAM works fine - I disabled the GLX module in Xorg
> configuration
> and save/restore the graphics state as described in Wiki.
>
> I created a 1 GB swap and added it to fstab. After swapon, its there.
> However, when I do an
> echo -n "disk" >/sys/power/state
>
> it frees memory and than complains about non-accessible swap
> ``Try swapon -a''. Then it just recovers to running state.
>
> Is there some limit on which partition it can save? (here its hda9)
> Should I say somewhere ,,save to partition this and this''?
>
> The kernel is Debian 2.6.14-2-686 (distro prebuilt). It's no problem to
> recompile
> if that would help, but otherwise I am happy with it
>
>
> (2) Getting WPA2 running
>
> I downloaded firmware for ipw2200 driver, installed it under
> /usr/lib/hotplug/firmware/
> and the radio works just fine for non-encrypted links.
>
> But I need to get it running with an AP using WPA2 encryption.
>
> So I downloaded wpa_supplicant package and tried to set it up.
>
> I added a network section to /etc/wpa_supplicant.conf:
> network=3D{
> ssid=3D"xxx"
> proto=3DRSN
> key_mgmt=3DWPA-PSK
> pairwise=3DCCMP
> group=3DCCMP
> #psk=3D"..."
> psk=3D...
> }
>
> where the psk values are from wpa_passphrase. Then I started
> wpa_supplicant for ipw driver:
> wpa_supplicant -ddd -ieth1 -Dipw -K -c/etc/wpa_supplicant.conf
>
> However, after the initial few lines I get:
> ....
> proto: 0x2
> key_mgmt: 0x2
> pairwise: 0x10
> group: 0x10
> ....
> Initializing interface (2) 'eth1'
> EAPOL: SUPP_PAE entering state DISCONNECTED
> EAPOL: KEY_RX entering state NO_KEY_RECEIVE
> EAPOL: SUPP_BE entering state INITIALIZE
> EAP: EAP entering state DISABLED
> EAPOL: External notification - portEnabled=3D0
> EAPOL: External notification - portValid=3D0
> wpa_driver_ipw_init is called
> SIOCGIWRANGE: WE(compiled)=3D19 WE(source)=3D16 enc_capa=3D0x0
> capabilities: key_mgmt 0x0 enc 0x3
> Own MAC address: 00:12:f0:ac:00:02
> wpa_driver_ipw_set_wpa: enabled=3D1
> ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
> wpa_driver_ipw_set_key: alg=3Dnone key_idx=3D0 set_tx=3D0 seq_len=3D0 key=
_len=3D0
> ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported
> Failed to set encryption.
> ...
>
> Which seems like if the driver has not the requested capabilities.
> Is that a sad truth or is there just something to be enabled somewhere?
>
> Thank you very much for any advice
>
> Vaclav Stepan
> --
> The linux-thinkpad mailing list home page is at:
> http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad
>

------=_Part_30596_17185598.1132537681263
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Hi,<br>
<br>
&nbsp;&nbsp; This is OT question, sorry for that but is just so
happened that im using a R50e, And you said you have things work out of
the box how about the winmodem is it working out of the box if i'll use
Debian unstable right now my distro is Ubuntu 5.10 but the winmodem is
not detected (im not&nbsp;
surprise!) below is the detail of my modem:<br>
<br>
------------ --------------&nbsp; System information ----------------------=
--<br>
&nbsp;Ubuntu 5.10 &quot;Breezy Badger&quot; <br>
&nbsp;on System with processor: i686<br>
&nbsp;currently under kernel:&nbsp;&nbsp; 2.6.12-9-686<br>
&nbsp;The kernel was assembled with compiler:&nbsp; 3.4.5<br>
&nbsp;a gcc-3.4.5&nbsp; package must be installed to support driver compili=
ng<br>
<br>
A package kernel-kbuild-2.6-3 or later version must be installed to support=
 compiling<br>
<br>
Checking for kernel-headers needed for compiling.<br>
Checking /usr/src/ for compressed compressed headers or kernel-source<br>
<br>
Kernel-header resources needed for compiling are not manifestly ready!<br>
If compressed resources are present, expand and then configure them followi=
ng DriverCompiling.txt<br>
They may have to be installed.<br>
Within your Linux distributions' installation CD or online resource (and mi=
rrows), search for :<br>
&nbsp; Distribution&nbsp; PackageName&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp; OnLine<br>
&nbsp; --------------------------------------------------------------------=
--<br>
&nbsp;Debian&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
kernel-headers-2.6.12-9-686&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
<a href=3D"http://www.debian.org/distrib/packages">http://www.debian.org/di=
strib/packages</a> or install CD<br>
&nbsp;Ubuntu &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
linux-headers-2.6.12-9-686&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
<a href=3D"http://http://packages.ubuntu.com/">http://http://packages.ubunt=
u.com/</a> or install CD<br>
&nbsp;Xandros<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
kernel-kbuild-3.6 are additionally required by&nbsp; Debian, Ubuntu and
Xandros<br>
&nbsp;Mandrake &nbsp;&nbsp;&nbsp; kernel-source-2.6.12-9-686&nbsp;&nbsp;&nb=
sp; &nbsp;&nbsp; If not present on install CDs search<br>
&nbsp;&nbsp;&nbsp;&nbsp; <a href=3D"http://mirror.switch.ch/ftp/mirror/mand=
rake/official/10.0/i586/Mandrake/RPMS/">http://mirror.switch.ch/ftp/mirror/=
mandrake/official/10.0/i586/Mandrake/RPMS/</a> <br>
&nbsp;&nbsp;&nbsp; <a href=3D"http://rpms.mandrakeclub.com/rpms/mandrake/of=
ficial/LByName.html">http://rpms.mandrakeclub.com/rpms/mandrake/official/LB=
yName.html</a>, or other mirrors.<br>
&nbsp; SuSE&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
kernel-source-2.6.12-9-686&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;,
kernels are named k_deflt<br>
&nbsp; FedoraCore4&nbsp; kernel-devel-2.6.12-9-686 or kernel-smp-devel-2.6.=
12-9-686 on install CD1 or CD4<br>
One of which must be installed if compiling drivers to match kernel 2.6.12-=
9-686 proves necessary.<br>
Within the output Modem/ folder, read CompilingDrivers.txt for details.<br>
&nbsp;&nbsp; <br>
<br>
&nbsp;A /dev/modem symbolic link is not set.<br>
<br>
drwxr-xr-x&nbsp; 2 root root 0 2005-10-25 21:21 /dev/.udevdb<br>
There is an active UDEV file system, creating device nodes in volatile RAM.=
<br>
However information from Proprietary drivers is soon to be excluded from <b=
r>
the supporting /sys/ file structure.&nbsp; Thus device nodes for Proprietar=
y modem drivers<br>
will then have to be created by bootup scripts.<br>
<br>
&nbsp;Checking for modem symbolic link support lines within /etc/udev/ file=
s<br>
<br>
&nbsp;USB modem not detected.<br>
<br>
0000:00:1f.5 Multimedia audio controller: Intel Corp. 82801DB/DBL/DBM (ICH4=
/ICH4-L/ICH4-M) AC'97 Audio Controller (rev 01)<br>
<br>
Modem candidates are at PCI_buses:&nbsp; 0000:00:1f.6<br>
&nbsp;&nbsp;&nbsp; <br>
Providing detail for device at&nbsp; 0000:00:1f.6<br>
&nbsp; with vendor-ID:device-ID<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ----:----<br>
Class 0703: 8086:24c6&nbsp;&nbsp; Modem: Intel Corp. 82801DB/DBL/DBM
(ICH4/ICH4-L/ICH4-M) AC'97 Modem Controller (rev 01) (prog-if 00
[Generic])<br>
&nbsp; SubSystem 1014:0559&nbsp; IBM: Unknown device 0559<br>
&nbsp;&nbsp;&nbsp; Flags: medium devsel, IRQ 11<br>
&nbsp;Checking for IRQ 11 sharing with modem.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; XT-PIC&nbsp; uhci_hcd:usb1,
uhci_hcd:usb2, uhci_hcd:usb3, ehci_hcd:usb4, Intel 82801DB-ICH4, yenta,
ipw2200, i915@pci:0000:00:02.0<br>
<br>
&nbsp; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;
-----PCI_IDs-------&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
--CompilerVer- <br>
&nbsp;&nbsp;&nbsp; Feature List:&nbsp; Primary&nbsp; Subsystem Distr&nbsp; =
KernelVer&nbsp;&nbsp; kernel default&nbsp; CPU<br>
&nbsp;./scanModem test 8086:24c6 1014:0559 debian 2.6.12-9-686&nbsp; 3.4.5 =
none&nbsp;&nbsp;&nbsp; i686<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
&nbsp;The soft modem Subsystem operates under a controller<br>
&nbsp;&nbsp; 8086:24c6 82801DB ICH4 <br>
&nbsp;capable of supporting under Linux AT LEAST modem Subsystem chips from=
 manufacturers:<br>
<br>
&nbsp;&nbsp;&nbsp; Broadcom<br>
&nbsp;&nbsp;&nbsp; AgereSystems<br>
&nbsp;&nbsp;&nbsp; Conexant<br>
&nbsp;&nbsp;&nbsp; Intel<br>
&nbsp;&nbsp;&nbsp; Smartlink<br>
&nbsp;The Subsystem PCI id does not itself identify the modem Codec.<br>
<br>
&nbsp;&nbsp;&nbsp; slmodemd software in ALSA mode may support this modem <b=
r>
<br>
&nbsp; Driver snd-intel8x0m&nbsp; may enable codec acquisition <br>
<br>
Thank you,<br>
<br>
AC Perdon<br>
<br>
<br><div><span class=3D"gmail_quote">On 11/19/05, <b class=3D"gmail_sendern=
ame">Vaclav Stepan</b> &lt;<a href=3D"mailto:stepan@kmlinux.fjfi.cvut.cz">s=
tepan@kmlinux.fjfi.cvut.cz</a>&gt; wrote:</span><blockquote class=3D"gmail_=
quote" style=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt =
0pt 0.8ex; padding-left: 1ex;">
Hello,<br><br>I am trying to get a Debian unstable system running on an R50=
e.<br>Most things worked out of the box, several things were easy solved us=
ing<br>Google and the Wiki (frequency scaling, tpb etc).<br>Two problems re=
main which I am currently stuck with so I am asking for help.
<br>Tell me please, should I provide any additional information.<br><br>(1)=
 Suspend to disk using swsusp<br>(2) Getting WPA2 running<br><br>(1) Suspen=
d to disk using swsusp<br><br>Suspend to RAM works fine - I disabled the GL=
X module in Xorg configuration
<br>and save/restore the graphics state as described in Wiki.<br><br>I crea=
ted a 1 GB swap and added it to fstab. After swapon, its there.<br>However,=
 when I do an<br> echo -n &quot;disk&quot; &gt;/sys/power/state<br><br>
it frees memory and than complains about non-accessible swap<br>``Try swapo=
n -a''. Then it just recovers to running state.<br><br>Is there some limit =
on which partition it can save? (here its hda9)<br>Should I say somewhere ,=
,save to partition this and this''?
<br><br>The kernel is Debian 2.6.14-2-686 (distro prebuilt). It's no proble=
m to recompile<br>if that would help, but otherwise I am happy with it<br><=
br><br>(2) Getting WPA2 running<br><br>I downloaded firmware for ipw2200 dr=
iver, installed it under /usr/lib/hotplug/firmware/
<br>and the radio works just fine for non-encrypted links.<br><br>But I nee=
d to get it running with an AP using WPA2 encryption.<br><br>So I downloade=
d wpa_supplicant package and tried to set it up.<br><br>I added a network s=
ection to /etc/wpa_supplicant.conf:
<br>network=3D{<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ssid=3D&=
quot;xxx&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;proto=3DR=
SN<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;key_mgmt=3DWPA-PSK<br=
>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pairwise=3DCCMP<br>&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;group=3DCCMP<br>&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#psk=3D&quot;...&quot;<br>&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;psk=3D...<br>}<br><br>where the psk values are=
 from wpa_passphrase. Then I started wpa_supplicant for ipw driver:
<br> wpa_supplicant -ddd -ieth1 -Dipw -K -c/etc/wpa_supplicant.conf<br><br>=
However, after the initial few lines I get:<br> ....<br>proto: 0x2<br>key_m=
gmt: 0x2<br>pairwise: 0x10<br>group: 0x10<br> ....<br>Initializing interfac=
e (2) 'eth1'
<br>EAPOL: SUPP_PAE entering state DISCONNECTED<br>EAPOL: KEY_RX entering s=
tate NO_KEY_RECEIVE<br>EAPOL: SUPP_BE entering state INITIALIZE<br>EAP: EAP=
 entering state DISABLED<br>EAPOL: External notification - portEnabled=3D0
<br>EAPOL: External notification - portValid=3D0<br>wpa_driver_ipw_init is =
called<br>SIOCGIWRANGE: WE(compiled)=3D19 WE(source)=3D16 enc_capa=3D0x0<br=
>&nbsp;&nbsp;capabilities: key_mgmt 0x0 enc 0x3<br>Own MAC address: 00:12:f=
0:ac:00:02<br>
wpa_driver_ipw_set_wpa: enabled=3D1<br>ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Ope=
ration not supported<br>wpa_driver_ipw_set_key: alg=3Dnone key_idx=3D0 set_=
tx=3D0 seq_len=3D0 key_len=3D0<br>ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operatio=
n not supported
<br>Failed to set encryption.<br> ...<br><br>Which seems like if the driver=
 has not the requested capabilities.<br>Is that a sad truth or is there jus=
t something to be enabled somewhere?<br><br>Thank you very much for any adv=
ice
<br><br>Vaclav Stepan<br>--<br>The linux-thinkpad mailing list home page is=
 at:<br><a href=3D"http://mailman.linux-thinkpad.org/mailman/listinfo/linux=
-thinkpad">http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpa=
d
</a><br></blockquote></div><br>

------=_Part_30596_17185598.1132537681263--