DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 16th January 2013
EverydayDiesel EverydayDiesel is offline
Shell Scout
 
Join Date: Jan 2009
Posts: 108
Thanked 0 Times in 0 Posts
Default Trouble Connecting Laptop With wpi0

Hello,

Can someone please take a look and see what I am doing wrong? I am trying to connect my laptop to my wireless router (which uses wpa2/aes).


/etc/hostname.wpi0
Code:
dhcp NONE NONE NONE nwid mynetwork wpa wpapsk mykeygoeshere

This is the output of ifconfig wpi0
Code:
wpi0: flags=8803<UP,BROADCAST,SIMPLEX,MULTICAST> mtu 1500
	lladdr 00:13:02:23:80:26
	priority: 4
	groups: wlan
	media: IEEE802.11 autoselect
	status: no network
	ieee80211: nwid mynetwork wpaprotos wpa1,wpa2 wpaakms psk wpaciphers tkip,ccmp wpagroupcipher tkip
This is dmesg
Code:
OpenBSD 5.2 (GENERIC.MP) #339: Wed Aug  1 10:13:24 MDT 2012
    deraadt@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Genuine Intel(R) CPU T2300 @ 1.66GHz ("GenuineIntel" 686-class) 1.67 GHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,NXE,SSE3,MWAIT,VMX,EST,TM2,xTPR,PDCM
real mem  = 1071706112 (1022MB)
avail mem = 1043312640 (994MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 09/07/07, BIOS32 rev. 0 @ 0xfd600, SMBIOS rev. 2.4 @ 0xe3810 (17 entries)
bios0: vendor Hewlett-Packard version "F.24" date 09/07/2007
bios0: Hewlett-Packard HP Pavilion dv8000 (EU006UA#ABA)
acpi0 at bios0: rev 0
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC HPET MCFG BOOT APIC SSDT SSDT
acpi0: wakeup devices LANC(S5) PS2K(S3) PS2M(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: apic clock running at 166MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Genuine Intel(R) CPU T2300 @ 1.66GHz ("GenuineIntel" 686-class) 1.67 GHz
cpu1: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,NXE,SSE3,MWAIT,VMX,EST,TM2,xTPR,PDCM
ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 20, 24 pins
ioapic0: misconfigured as apic 2, remapped to apid 1
acpihpet0 at acpi0: 14318179 Hz
acpimcfg0 at acpi0 addr 0xe0000000, bus 0-255
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (PEGP)
acpiprt2 at acpi0: bus 2 (RP01)
acpiprt3 at acpi0: bus 3 (RP02)
acpiprt4 at acpi0: bus 6 (RP03)
acpiprt5 at acpi0: bus 8 (PCIB)
acpiec0 at acpi0
acpicpu0 at acpi0: C3, C2, C1, PSS
acpicpu1 at acpi0: C3, C2, C1, PSS
acpitz0 at acpi0: critical temperature is 99 degC
acpitz1 at acpi0: critical temperature is 105 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: PWRB
acpibat0 at acpi0: BAT1 model "Primary " type Lion oem "Hewlett-Packard "
acpiac0 at acpi0: AC unit online
acpivideo0 at acpi0: VGA_
acpivout0 at acpivideo0: LCD_
acpivideo1 at acpi0: GFX0
acpivout1 at acpivideo1: LCD_
bios0: ROM list: 0xc0000/0xf000 0xcf000/0x1800 0xe0000/0x1800! 0xe3800/0x800!
cpu0: Enhanced SpeedStep 1663 MHz: speeds: 1667, 1333, 1000 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82945GM Host" rev 0x03
ppb0 at pci0 dev 1 function 0 "Intel 82945GM PCIE" rev 0x03: apic 1 int 16
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "NVIDIA GeForce 7400 Go" rev 0xa1
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x01: msi
azalia0: codecs: Conexant CX20551
audio0 at azalia0
ppb1 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x01: apic 1 int 17
pci2 at ppb1 bus 2
ppb2 at pci0 dev 28 function 1 "Intel 82801GB PCIE" rev 0x01: apic 1 int 16
pci3 at ppb2 bus 3
ppb3 at pci0 dev 28 function 2 "Intel 82801GB PCIE" rev 0x01: apic 1 int 18
pci4 at ppb3 bus 6
mem address conflict 0xd2100000/0x1000
wpi0 at pci4 dev 0 function 0 "Intel PRO/Wireless 3945ABG" rev 0x02: msi, MoW1, address 00:13:02:23:80:26
uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x01: apic 1 int 23
uhci1 at pci0 dev 29 function 1 "Intel 82801GB USB" rev 0x01: apic 1 int 19
uhci2 at pci0 dev 29 function 2 "Intel 82801GB USB" rev 0x01: apic 1 int 18
uhci3 at pci0 dev 29 function 3 "Intel 82801GB USB" rev 0x01: apic 1 int 16
ehci0 at pci0 dev 29 function 7 "Intel 82801GB USB" rev 0x01: apic 1 int 23
ehci0: timed out waiting for BIOS
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb4 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xe1
pci5 at ppb4 bus 8
cbb0 at pci5 dev 6 function 0 "TI PCIXX12 CardBus" rev 0x00: apic 1 int 18
"TI PCIXX12 FireWire" rev 0x00 at pci5 dev 6 function 1 not configured
"TI PCIXX12 Multimedia Card Reader" rev 0x00 at pci5 dev 6 function 2 not configured
sdhc0 at pci5 dev 6 function 3 "TI PCIXX12 Secure Data" rev 0x00: apic 1 int 20
sdmmc0 at sdhc0
fxp0 at pci5 dev 8 function 0 "Intel PRO/100 VM" rev 0x01, i82562: apic 1 int 20, address 00:0f:b0:ff:6b:1f
inphy0 at fxp0 phy 1: i82562ET 10/100 PHY, rev. 0
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 9 device 0 cacheline 0x10, lattimer 0x20
pcmcia0 at cardslot0
ichpcib0 at pci0 dev 31 function 0 "Intel 82801GBM LPC" rev 0x01: PM disabled
pciide0 at pci0 dev 31 function 1 "Intel 82801GB IDE" rev 0x01: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility
atapiscsi0 at pciide0 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <HL-DT-ST, DVDRAM GSA-4084N, KQ09> ATAPI 5/cdrom removable
cd0(pciide0:0:0): using PIO mode 4, DMA mode 2
pciide0: channel 1 ignored (disabled)
ahci0 at pci0 dev 31 function 2 "Intel 82801GBM AHCI" rev 0x01: msi, AHCI 1.1
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0: <ATA, HTS541080G9SA00, MB4O> SCSI3 0/direct fixed t10.ATA_HTS541080G9SA00_MPBDL0X6KJDVXM
sd0: 76319MB, 512 bytes/sector, 156301488 sectors
sd1 at scsibus1 targ 2 lun 0: <ATA, HTS541080G9SA00, MB4O> SCSI3 0/direct fixed t10.ATA_HTS541080G9SA00_MPBDL0X6KJ4YNM
sd1: 76319MB, 512 bytes/sector, 156301488 sectors
ichiic0 at pci0 dev 31 function 3 "Intel 82801GB SMBus" rev 0x01: apic 1 int 19
iic0 at ichiic0
spdmem0 at iic0 addr 0x50: 512MB DDR2 SDRAM non-parity PC2-5300CL5 SO-DIMM
spdmem1 at iic0 addr 0x52: 512MB DDR2 SDRAM non-parity PC2-5300CL5 SO-DIMM
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb4 at uhci3: USB revision 1.0
uhub4 at usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1
isa0 at ichpcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pms0: Synaptics touchpad, firmware 6.2
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
mtrr: Pentium Pro MTRR support
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
root on sd0a (b5b6cdf80eb27433.a) swap on sd0b dump on sd0b
wpi0: error, 2, could not read firmware wpi-3945abg
wpi0: could not read firmware
wpi0: error, 2, could not read firmware wpi-3945abg
wpi0: could not read firmware
wpi0: error, 2, could not read firmware wpi-3945abg
wpi0: could not read firmware
umass0 at uhub0 port 6 configuration 1 interface 0 " Patriot Memory" rev 2.00/1.00 addr 2
umass0: using SCSI over Bulk-Only
scsibus4 at umass0: 2 targets, initiator 0
sd2 at scsibus4 targ 1 lun 0: <, Patriot Memory, PMAP> SCSI0 0/direct removable serial.13fe310006013C489063
sd2: 30528MB, 512 bytes/sector, 62521344 sectors
sd2 detached
scsibus4 detached
umass0 detached
umass0 at uhub0 port 1 configuration 1 interface 0 " Patriot Memory" rev 2.00/1.00 addr 2
umass0: using SCSI over Bulk-Only
scsibus4 at umass0: 2 targets, initiator 0
sd2 at scsibus4 targ 1 lun 0: <, Patriot Memory, PMAP> SCSI0 0/direct removable serial.13fe310006013C489063
sd2: 30528MB, 512 bytes/sector, 62521344 sectors
Reply With Quote
  #2   (View Single Post)  
Old 16th January 2013
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,894
Thanked 214 Times in 189 Posts
Default

You were using an out-of-date how-to. "wpapsk" has not been a valid option for years. Use "wpakey". See ifconfig(8).
Reply With Quote
  #3   (View Single Post)  
Old 16th January 2013
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,894
Thanked 214 Times in 189 Posts
Default

To clarify - wpakey was added to ifconfig as on option a little over two years ago -- October, 2010, and included in 4.9-release.

The wpapsk option required the use of wpa-psk(8), which was removed for 4.9-release. That program generated the 256-bit pre-shared key from a combination of the SSID and an ASCII passphrase.

The replacement of wpapsk with wpakey eliminated this pre-processing step.

Even if an admin had previously created a pre-shared key with wpa-psk(8), the wpapsk functionality was removed from ifconfig in August of 2011, and not present in 5.1-release.

At 5.1 and beyond, wpakey is required.

Last edited by jggimi; 16th January 2013 at 08:08 PM. Reason: clarity
Reply With Quote
  #4   (View Single Post)  
Old 17th January 2013
EverydayDiesel EverydayDiesel is offline
Shell Scout
 
Join Date: Jan 2009
Posts: 108
Thanked 0 Times in 0 Posts
Default

Thanks, you have helped me alot on many threads and I appreciate that!

I changed it wpakey (which was one of my problems) which helped but still did not work.

So from the dmesg I googled this error message
Code:
wpi0: error, 2, could not read firmware wpi-3945abg
wpi0: could not read firmware
So then I downloaded

http://firmware.openbsd.org/firmware...rmware-3.2.tgz

and used pkg_add to add it (just incase someone else is trying to do this in the future)
Reply With Quote
  #5   (View Single Post)  
Old 17th January 2013
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,894
Thanked 214 Times in 189 Posts
Default

Take a look at the fw_update(1) man page. This tool automates firmware acquisition for many devices where their licensing does not permit packaging firmware with the OS.

The RAMDISK kernel's install and upgrade scripts normally set this to run at first boot after install or upgrade. Of course, if you don't have a working network interface on first boot, it won't do much for you.

Here's the two lines in /usr/src/distrib/miniroot/install.sub that do this:
Code:
update_firmware() {
    echo "/usr/sbin/fw_update -v" >> /mnt/etc/rc.firsttime
Reply With Quote
  #6   (View Single Post)  
Old 17th January 2013
EverydayDiesel EverydayDiesel is offline
Shell Scout
 
Join Date: Jan 2009
Posts: 108
Thanked 0 Times in 0 Posts
Default

NICE! Thanks again!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
any consequences to moving a laptop-based installed disk to another different laptop daemonfowl OpenBSD General 7 2nd August 2012 04:29 PM
SSH failure when connecting to another machine via X daemonfowl OpenBSD Security 4 27th July 2012 03:50 AM
Lenovo T60 as a wireless AP (wpi0), DHCP server mbonitat OpenBSD General 5 30th December 2011 08:25 PM
Trouble connecting to the internet sepuku OpenBSD General 10 25th July 2011 07:05 PM
Connecting to wireless router TomAmundsen FreeBSD General 19 25th August 2008 10:14 PM


All times are GMT. The time now is 08:49 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick