SMCWPCI-G2 Wireless Card

This forum discusses issues related to running FreeBSD on notebooks, laptops, and other mobile equipment.

SMCWPCI-G2 Wireless Card

Postby arupsarkar » 21 May 2010, 17:34

Hi,

Yesterday I installed freeBSD 8.0 in my desktop replacing windows XP, everything is working as expected, except my wireless (PCI card SMCWPCI-G2). The reason being I do not have the drivers installed. I got the linux driver downloaded from smc website. My question is which one do I install? I see the following directories.

I cannot attach the file, since it is pretty big, but the URL is the following for the driver.

http://www.smc.com/index.cfm?event=downloads.searchResultsDetail&localeCode=EN_USA&productCategory=5&partNumber=4244&modelNumber=1672&knowsPartNumber=false&userPartNumber=&docId=6170


NOTE: It has been few hours that I installed this OS for the first time and I am already a fan, because of it's speed and security, it is gift to my 7 year old daughter.

Regards
Arup
arupsarkar
Junior Member
 
Posts: 11
Joined: 21 May 2010, 17:13

Postby wblock@ » 21 May 2010, 17:55

arupsarkar wrote:Hi,

Yesterday I installed freeBSD 8.0 in my desktop replacing windows XP, everything is working as expected, except my wireless (PCI card SMCWPCI-G2). The reason being I do not have the drivers installed. I got the linux driver downloaded from smc website.


FreeBSD is not Linux, so Linux drivers will not work.

Some web searching indicates that the SMCWPCI-G2 has an Atheros chipset, so the ath driver is the one to use. The ath driver is part of the GENERIC kernel, so it should already be present. Typically, all you have to do to get it working is add entries to [file]/etc/rc.conf[/file]:
Code: Select all
wlans_ath0="wlan0"
ifconfig_wlan0="WPA DHCP"


Then create [file]/etc/wpa_supplicant.conf[/file] with your ssid and psk:
Code: Select all
network={
  ssid="[I]myssid[/I]"
  psk="[I]mypsk[/I]"
}


See http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-wireless.html for more detail.
User avatar
wblock@
Old Fart
 
Posts: 10204
Joined: 07 Sep 2009, 23:23
Location: Milky Way galaxy

Postby arupsarkar » 21 May 2010, 18:12

Thanks wblock, I exactly did what you suggested last night. But it is not working. I also added in [FILE]/boot/loader.conf[/FILE] the following entries.

Code: Select all
if_ath_load="YES"
wlan_scan_ap_load="YES"
wlan_scan_sta_load="YES"
wlan_wep_load="YES"
wlan_ccmp_load="YES"
wlan_tkip_load="YES"


When I am running the command
[CMD=" "]wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf[/CMD]
I get DRIVER not installed, I will attach the output of both netif,wpa_supplicant and dhclient in this thread.

Regards,
Arup
arupsarkar
Junior Member
 
Posts: 11
Joined: 21 May 2010, 17:13

Postby arupsarkar » 25 May 2010, 04:37

Hi, The following are the output of [FILE]/etc/rc.conf[/FILE]

Code: Select all

# -- sysinstall generated deltas -- # Sat May 22 07:21:50 2010
# Created: Sat May 22 07:21:50 2010
# 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.
defaultrouter="192.168.1.1"
hostname="home.freebsd.com"
network_interfaces="dc0 lo0 ath0"
ifconfig_lo0="inet 127.0.0.1"
#ifconfig_dc0="inet 192.168.1.9 netmask 255.255.255.0"
ifconfig_dc0="DHCP"
gnome_enable="YES"
if_ath_load="YES"
wlans_ath0="wlan0"
ifconfig_wlan0="WPA DHCP"

gdm_enable="YES"
dbus_enable="YES"
hald_enable="YES"

# Start PPP at start-up
ppp_enable="YES"
ppp_mode="ddial"
ppp_profile="VERIZONFIOS"
ppp_nat="NO"




output of [FILE]/boot/loader.conf[/FILE]

Code: Select all
if_ath_load="YES"
wlan_scan_ap_load="YES"
wlan_scan_sta_load="YES"
wlan_wep_load="YES"
wlan_ccmp_load="YES"
wlan_tkip_load="YES"
nvidia_load="YES"


[cmd=]ifconfig wlan0 create wlandev ath0[/cmd]

Code: Select all
ifconfig: SIOCIFCREATE2: Device not configured


Code: Select all
home# /etc/rc.d/netif start
ifconfig: SIOCIFCREATE2: Device not configured
Starting wpa_supplicant.
/etc/rc.d/wpa_supplicant: WARNING: failed to start wpa_supplicant
Starting Network: dc0 lo0.
dc0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
   options=8<VLAN_MTU>
   ether 00:08:a1:14:89:9d
   inet 192.168.1.9 netmask 0xffffff00 broadcast 192.168.1.255
   media: Ethernet autoselect (100baseTX <full-duplex>)
   status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
   options=3<RXCSUM,TXCSUM>
   inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
   inet6 ::1 prefixlen 128
   inet 127.0.0.1 netmask 0xff000000


Code: Select all
home# pciconf -vl | more
hostb0@pci0:0:0:0:      class=0x060000 card=0x1a308086 chip=0x1a308086 rev=0x11 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Host-Hub Interface Bridge (82845G[GL/GV/GE/PE])'
    class      = bridge
    subclass   = HOST-PCI
pcib1@pci0:0:1:0:       class=0x060400 card=0x00000000 chip=0x1a318086 rev=0x11 hdr=0x01
    vendor     = 'Intel Corporation'
    device     = '82845/E/MP/MZ Brookdale CPU to AGP Bridge'
    class      = bridge
    subclass   = PCI-PCI
uhci0@pci0:0:29:0:      class=0x0c0300 card=0x01321028 chip=0x24c28086 rev=0x01 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller *1'
    class      = serial bus
    subclass   = USB
uhci1@pci0:0:29:1:      class=0x0c0300 card=0x01321028 chip=0x24c48086 rev=0x01 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller *2'
    class      = serial bus
    subclass   = USB
uhci2@pci0:0:29:2:      class=0x0c0300 card=0x01321028 chip=0x24c78086 rev=0x01 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller *3'
    class      = serial bus
    subclass   = USB
ehci0@pci0:0:29:7:      class=0x0c0320 card=0x01321028 chip=0x24cd8086 rev=0x01 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB 2.0 EHCI Controller'
    class      = serial bus
    subclass   = USB
pcib2@pci0:0:30:0:      class=0x060400 card=0x00000000 chip=0x244e8086 rev=0x81 hdr=0x01
    vendor     = 'Intel Corporation'
    device     = '82801 Family (ICH2/3/4/5/6/7/8/9,63xxESB) Hub Interface to PCI Bridge'
    class      = bridge
    subclass   = PCI-PCI
isab0@pci0:0:31:0:      class=0x060100 card=0x00000000 chip=0x24c08086 rev=0x01 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801DB/DBL (ICH4/ICH4-L) LPC Interface Bridge'
    class      = bridge
    subclass   = PCI-ISA
atapci0@pci0:0:31:1:    class=0x01018a card=0x01321028 chip=0x24cb8086 rev=0x01 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801DB/DBL (ICH4/ICH4-L) UltraATA/100 EIDE Controller'
    class      = mass storage
    subclass   = ATA
none0@pci0:0:31:3:      class=0x0c0500 card=0x01321028 chip=0x24c38086 rev=0x01 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) SMBus Controller'
    class      = serial bus
    subclass   = SMBus
none1@pci0:0:31:5:      class=0x040100 card=0x01321028 chip=0x24c58086 rev=0x01 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Realtek AC97 Audio  (82801DBM SoundMAXController (ICH4-M B0 step))'
    class      = multimedia
    subclass   = audio
vgapci0@pci0:1:0:0:     class=0x030000 card=0x015a10de chip=0x017210de rev=0xa3 hdr=0x00
    vendor     = 'Nvidia Corp'
    device     = 'GeForce4 MX 420 [NV17.3]'
    class      = display
    subclass   = VGA
--More--(byte 2917)
none2@pci0:2:0:0:       class=0x040100 card=0x80641102 chip=0x00021102 rev=0x07 hdr=0x00
    vendor     = 'Creative Technology LTD.'
    device     = 'Sound Blaster Live! (Also Live! 5.1) - OEM from DELL - CT4780 (CT5880DCQ)'
    class      = multimedia
    subclass   = audio
none3@pci0:2:0:1:       class=0x098000 card=0x00201102 chip=0x70021102 rev=0x07 hdr=0x00
    vendor     = 'Creative Technology LTD.'
    device     = 'GamePort (EMU10000)'
    class      = input device
none4@pci0:2:1:0:       class=0x070300 card=0x00011028 chip=0x421214e4 rev=0x02 hdr=0x00
    vendor     = 'Broadcom Corporation'
    device     = '56k Modem (BCM V.90)'
    class      = simple comms
    subclass   = generic modem
dc0@pci0:2:2:0: class=0x020000 card=0x434e4554 chip=0x91021282 rev=0x31 hdr=0x00
    vendor     = 'Davicom Semiconductor Inc.'
    device     = '10/100 Mbps Fast Ethernet Controller (DM9102/A/AF)'
    class      = network
    subclass   = ethernet
none5@pci0:2:12:0:      class=0x020000 card=0xabb213d1 chip=0x818510ec rev=0x20 hdr=0x00
    vendor     = 'Realtek Semiconductor'
    device     = 'IEEE 802.11a/b/g Wireless LAN Controller (rev 20) (RTL-8185)'
    class      = network
    subclass   = ethernet
arupsarkar
Junior Member
 
Posts: 11
Joined: 21 May 2010, 17:13

Postby DutchDaemon » 25 May 2010, 12:00

Format your posts correctly, please: Posting and Editing in the FreeBSD Forums
User avatar
DutchDaemon
Old Fart
 
Posts: 10464
Joined: 16 Nov 2008, 20:17
Location: The Netherlands

Postby wblock@ » 25 May 2010, 13:57

arupsarkar wrote:
Code: Select all
none5@pci0:2:12:0:      class=0x020000 card=0xabb213d1 chip=0x818510ec rev=0x20 hdr=0x00
    vendor     = 'Realtek Semiconductor'
    device     = 'IEEE 802.11a/b/g Wireless LAN Controller (rev 20) (RTL-8185)'
    class      = network
    subclass   = ethernet


There's the problem--it's not an Atheros chipset, but a Realtek. Vendors sometimes change chipsets without notice. Unfortunately, that Realtek looks to be unsupported by FreeBSD. A possibility is ndis(4) and ndisgen(8).
User avatar
wblock@
Old Fart
 
Posts: 10204
Joined: 07 Sep 2009, 23:23
Location: Milky Way galaxy

Postby arupsarkar » 25 May 2010, 14:23

Hi,

I have formatted the output for better clarity, apologize did not do it the first time, my wireless card is recognized by OS, which I have pasted at the very end.

The following are the output of file [file]/etc/rc.conf[/file]
Code: Select all
# -- sysinstall generated deltas -- # Sat May 22 07:21:50 2010
# Created: Sat May 22 07:21:50 2010
# 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.
defaultrouter="192.168.1.1"
hostname="home.freebsd.com"
network_interfaces="dc0 lo0 ath0"
ifconfig_lo0="inet 127.0.0.1"
#ifconfig_dc0="inet 192.168.1.9 netmask 255.255.255.0"
ifconfig_dc0="DHCP"
gnome_enable="YES"
if_ath_load="YES"
wlans_ath0="wlan0"
ifconfig_wlan0="WPA DHCP"

gdm_enable="YES"
dbus_enable="YES"
hald_enable="YES"

# Start PPP at start-up
ppp_enable="YES"
ppp_mode="ddial"
ppp_profile="VERIZONFIOS"
ppp_nat="NO"


output of file [file]/boot/loader.conf[/file]

Code: Select all
if_ath_load="YES"
wlan_scan_ap_load="YES"
wlan_scan_sta_load="YES"
wlan_wep_load="YES"
wlan_ccmp_load="YES"
wlan_tkip_load="YES"
nvidia_load="YES"


[cmd=#]
ifconfig wlan0 create wlandev ath0
[/cmd]

output of the above command
Code: Select all
ifconfig: SIOCIFCREATE2: Device not configured


[cmd=#]
/etc/rc.d/netif start
[/cmd]
output of the above command

Code: Select all
ifconfig: SIOCIFCREATE2: Device not configured
Starting wpa_supplicant.
/etc/rc.d/wpa_supplicant: WARNING: failed to start wpa_supplicant
Starting Network: dc0 lo0.
dc0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
   options=8<VLAN_MTU>
   ether 00:08:a1:14:89:9d
   inet 192.168.1.9 netmask 0xffffff00 broadcast 192.168.1.255
   media: Ethernet autoselect (100baseTX <full-duplex>)
   status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
   options=3<RXCSUM,TXCSUM>
   inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
   inet6 ::1 prefixlen 128
   inet 127.0.0.1 netmask 0xff000000


[cmd=#]
pciconf -vl | more
[/cmd]

The above do recognize my card which is listed at the very end of the following output.

Code: Select all
hostb0@pci0:0:0:0:      class=0x060000 card=0x1a308086 chip=0x1a308086 rev=0x11 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Host-Hub Interface Bridge (82845G[GL/GV/GE/PE])'
    class      = bridge
    subclass   = HOST-PCI
pcib1@pci0:0:1:0:       class=0x060400 card=0x00000000 chip=0x1a318086 rev=0x11 hdr=0x01
    vendor     = 'Intel Corporation'
    device     = '82845/E/MP/MZ Brookdale CPU to AGP Bridge'
    class      = bridge
    subclass   = PCI-PCI
uhci0@pci0:0:29:0:      class=0x0c0300 card=0x01321028 chip=0x24c28086 rev=0x01 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller *1'
    class      = serial bus
    subclass   = USB
uhci1@pci0:0:29:1:      class=0x0c0300 card=0x01321028 chip=0x24c48086 rev=0x01 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller *2'
    class      = serial bus
    subclass   = USB
uhci2@pci0:0:29:2:      class=0x0c0300 card=0x01321028 chip=0x24c78086 rev=0x01 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB UHCI Controller *3'
    class      = serial bus
    subclass   = USB
ehci0@pci0:0:29:7:      class=0x0c0320 card=0x01321028 chip=0x24cd8086 rev=0x01 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) USB 2.0 EHCI Controller'
    class      = serial bus
    subclass   = USB
pcib2@pci0:0:30:0:      class=0x060400 card=0x00000000 chip=0x244e8086 rev=0x81 hdr=0x01
    vendor     = 'Intel Corporation'
    device     = '82801 Family (ICH2/3/4/5/6/7/8/9,63xxESB) Hub Interface to PCI Bridge'
    class      = bridge
    subclass   = PCI-PCI
isab0@pci0:0:31:0:      class=0x060100 card=0x00000000 chip=0x24c08086 rev=0x01 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801DB/DBL (ICH4/ICH4-L) LPC Interface Bridge'
    class      = bridge
    subclass   = PCI-ISA
atapci0@pci0:0:31:1:    class=0x01018a card=0x01321028 chip=0x24cb8086 rev=0x01 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801DB/DBL (ICH4/ICH4-L) UltraATA/100 EIDE Controller'
    class      = mass storage
    subclass   = ATA
none0@pci0:0:31:3:      class=0x0c0500 card=0x01321028 chip=0x24c38086 rev=0x01 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '82801DB/DBL/DBM (ICH4/ICH4-L/ICH4-M) SMBus Controller'
    class      = serial bus
    subclass   = SMBus
none1@pci0:0:31:5:      class=0x040100 card=0x01321028 chip=0x24c58086 rev=0x01 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = 'Realtek AC97 Audio  (82801DBM SoundMAXController (ICH4-M B0 step))'
    class      = multimedia
    subclass   = audio
vgapci0@pci0:1:0:0:     class=0x030000 card=0x015a10de chip=0x017210de rev=0xa3 hdr=0x00
    vendor     = 'Nvidia Corp'
    device     = 'GeForce4 MX 420 [NV17.3]'
    class      = display
    subclass   = VGA
--More--(byte 2917)
none2@pci0:2:0:0:       class=0x040100 card=0x80641102 chip=0x00021102 rev=0x07 hdr=0x00
    vendor     = 'Creative Technology LTD.'
    device     = 'Sound Blaster Live! (Also Live! 5.1) - OEM from DELL - CT4780 (CT5880DCQ)'
    class      = multimedia
    subclass   = audio
none3@pci0:2:0:1:       class=0x098000 card=0x00201102 chip=0x70021102 rev=0x07 hdr=0x00
    vendor     = 'Creative Technology LTD.'
    device     = 'GamePort (EMU10000)'
    class      = input device
none4@pci0:2:1:0:       class=0x070300 card=0x00011028 chip=0x421214e4 rev=0x02 hdr=0x00
    vendor     = 'Broadcom Corporation'
    device     = '56k Modem (BCM V.90)'
    class      = simple comms
    subclass   = generic modem
dc0@pci0:2:2:0: class=0x020000 card=0x434e4554 chip=0x91021282 rev=0x31 hdr=0x00
    vendor     = 'Davicom Semiconductor Inc.'
    device     = '10/100 Mbps Fast Ethernet Controller (DM9102/A/AF)'
    class      = network
    subclass   = ethernet
none5@pci0:2:12:0:      class=0x020000 card=0xabb213d1 chip=0x818510ec rev=0x20 hdr=0x00
    vendor     = 'Realtek Semiconductor'
    device     = 'IEEE 802.11a/b/g Wireless LAN Controller (rev 20) (RTL-8185)'
    class      = network
    subclass   = ethernet
arupsarkar
Junior Member
 
Posts: 11
Joined: 21 May 2010, 17:13


Return to Mobile Computing

Who is online

Users browsing this forum: No registered users and 0 guests