HP Laptop No Wifi Connection: Classic Newbie Mistake

Help with setting up network cards, including WiFi cards.
Post Reply
cWs
Posts: 4
Joined: Thu Mar 21, 2019 1:47 am
Has thanked: 0
Been thanked: 0

HP Laptop No Wifi Connection: Classic Newbie Mistake

Post by cWs » Thu Mar 21, 2019 1:56 am

Hello GhostBSD users. I am currently migrating a laptop from Fedora 28 to GostBSD.
So I am somewhat okay with the terminal. I read the FreeBSD Manual and the wiki, and I can not get my wiifi to work. I even did Youtube searches for help.

I am currently connected with a hardwire ethernetport and would like to be come unthetered

Reading some previous posts this is my output from the terminal.

Welcome to fish, the friendly interactive shell
cws@cws /u/h/c/Desktop> pciconf -lv
usbconfig list
uname -a
kldstat
sysctl -v net.wlan.devices
hostb0@pci0:0:0:0: class=0x060000 card=0x216f103c chip=0x15361022 rev=0x00 hdr=0x00
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 16h Processor Root Complex'
class = bridge
subclass = HOST-PCI
vgapci0@pci0:0:1:0: class=0x030000 card=0x216f103c chip=0x98341002 rev=0x00 hdr=0x00
vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]'
device = 'Kabini [Radeon HD 8210]'
class = display
subclass = VGA
hdac0@pci0:0:1:1: class=0x040300 card=0x216f103c chip=0x98401002 rev=0x00 hdr=0x00
vendor = 'Advanced Micro Devices, Inc. [AMD/ATI]'
device = 'Kabini HDMI/DP Audio'
class = multimedia
subclass = HDA
hostb1@pci0:0:2:0: class=0x060000 card=0x00000000 chip=0x15381022 rev=0x00 hdr=0x00
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 16h Processor Function 0'
class = bridge
subclass = HOST-PCI
pcib1@pci0:0:2:2: class=0x060400 card=0x12341022 chip=0x14391022 rev=0x00 hdr=0x01
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 16h Processor Functions 5:1'
class = bridge
subclass = PCI-PCI
pcib2@pci0:0:2:3: class=0x060400 card=0x12341022 chip=0x14391022 rev=0x00 hdr=0x01
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 16h Processor Functions 5:1'
class = bridge
subclass = PCI-PCI
pcib3@pci0:0:2:5: class=0x060400 card=0x12341022 chip=0x14391022 rev=0x00 hdr=0x01
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 16h Processor Functions 5:1'
class = bridge
subclass = PCI-PCI
xhci0@pci0:0:16:0: class=0x0c0330 card=0x216f103c chip=0x78141022 rev=0x01 hdr=0x00
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'FCH USB XHCI Controller'
class = serial bus
subclass = USB
ahci0@pci0:0:17:0: class=0x010601 card=0x216f103c chip=0x78041022 rev=0x00 hdr=0x00
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'FCH SATA Controller [AHCI mode]'
class = mass storage
subclass = SATA
ohci0@pci0:0:18:0: class=0x0c0310 card=0x216f103c chip=0x78071022 rev=0x39 hdr=0x00
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'FCH USB OHCI Controller'
class = serial bus
subclass = USB
ehci0@pci0:0:18:2: class=0x0c0320 card=0x216f103c chip=0x78081022 rev=0x39 hdr=0x00
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'FCH USB EHCI Controller'
class = serial bus
subclass = USB
ohci1@pci0:0:19:0: class=0x0c0310 card=0x216f103c chip=0x78071022 rev=0x39 hdr=0x00
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'FCH USB OHCI Controller'
class = serial bus
subclass = USB
ehci1@pci0:0:19:2: class=0x0c0320 card=0x216f103c chip=0x78081022 rev=0x39 hdr=0x00
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'FCH USB EHCI Controller'
class = serial bus
subclass = USB
intsmb0@pci0:0:20:0: class=0x0c0500 card=0x216f103c chip=0x780b1022 rev=0x3a hdr=0x00
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'FCH SMBus Controller'
class = serial bus
subclass = SMBus
hdac1@pci0:0:20:2: class=0x040300 card=0x216f103c chip=0x780d1022 rev=0x02 hdr=0x00
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'FCH Azalia Controller'
class = multimedia
subclass = HDA
isab0@pci0:0:20:3: class=0x060100 card=0x216f103c chip=0x780e1022 rev=0x11 hdr=0x00
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'FCH LPC Bridge'
class = bridge
subclass = PCI-ISA
hostb2@pci0:0:24:0: class=0x060000 card=0x00000000 chip=0x15301022 rev=0x00 hdr=0x00
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 16h Processor Function 0'
class = bridge
subclass = HOST-PCI
hostb3@pci0:0:24:1: class=0x060000 card=0x00000000 chip=0x15311022 rev=0x00 hdr=0x00
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 16h Processor Function 1'
class = bridge
subclass = HOST-PCI
hostb4@pci0:0:24:2: class=0x060000 card=0x00000000 chip=0x15321022 rev=0x00 hdr=0x00
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 16h Processor Function 2'
class = bridge
subclass = HOST-PCI
hostb5@pci0:0:24:3: class=0x060000 card=0x00000000 chip=0x15331022 rev=0x00 hdr=0x00
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 16h Processor Function 3'
class = bridge
subclass = HOST-PCI
hostb6@pci0:0:24:4: class=0x060000 card=0x00000000 chip=0x15341022 rev=0x00 hdr=0x00
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 16h Processor Function 4'
class = bridge
subclass = HOST-PCI
hostb7@pci0:0:24:5: class=0x060000 card=0x00000000 chip=0x15351022 rev=0x00 hdr=0x00
vendor = 'Advanced Micro Devices, Inc. [AMD]'
device = 'Family 16h Processor Function 5'
class = bridge
subclass = HOST-PCI
none0@pci0:1:0:0: class=0x028000 card=0x197d103c chip=0x817910ec rev=0x01 hdr=0x00
vendor = 'Realtek Semiconductor Co., Ltd.'
device = 'RTL8188EE Wireless Network Adapter'
class = network
re0@pci0:5:0:0: class=0x020000 card=0x216f103c chip=0x813610ec rev=0x07 hdr=0x00
vendor = 'Realtek Semiconductor Co., Ltd.'
device = 'RTL810xE PCI Express Fast Ethernet controller'
class = network
subclass = ethernet
none1@pci0:6:0:0: class=0xff0000 card=0x216f103c chip=0x522910ec rev=0x01 hdr=0x00
vendor = 'Realtek Semiconductor Co., Ltd.'
device = 'RTS5229 PCI Express Card Reader'
ugen4.1: <AMD EHCI root HUB> at usbus4, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
ugen1.1: <AMD OHCI root HUB> at usbus1, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE (0mA)
ugen3.1: <AMD OHCI root HUB> at usbus3, cfg=0 md=HOST spd=FULL (12Mbps) pwr=SAVE (0mA)
ugen2.1: <AMD EHCI root HUB> at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
ugen0.1: <0x1022 XHCI root HUB> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA)
ugen4.2: <SuYin HP Webcam> at usbus4, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA)
FreeBSD cws.ghostbsd-pc.home 12.0-CURRENT FreeBSD 12.0-CURRENT #2 r324678+196052f4a15(trueos-stable-18.06): Thu Jan 17 20:26:16 CET 2019 root@builder.ghostbsd.org:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64
Id Refs Address Size Name
1 174 0xffffffff80200000 23545b8 kernel
2 2 0xffffffff82555000 a390 opensolaris.ko
3 1 0xffffffff82560000 37cfd0 zfs.ko
4 1 0xffffffff828dd000 fca0 tmpfs.ko
5 1 0xffffffff828ed000 1e0c0 geom_eli.ko
6 1 0xffffffff8290c000 ca38 aesni.ko
7 1 0xffffffff82a21000 37058 linux.ko
8 3 0xffffffff82a59000 2f88 linux_common.ko
9 1 0xffffffff82a5c000 317f8 linux64.ko
10 2 0xffffffff82a8e000 2ed0 libiconv.ko
11 1 0xffffffff82a91000 1dce libmchain.ko
12 1 0xffffffff82a93000 1ae msdosfs_iconv.ko
13 1 0xffffffff82a94000 339e0 if_bwn.ko
14 14 0xffffffff82ac8000 37ad8 bhnd.ko
15 2 0xffffffff82b00000 2988 gpiobus.ko
16 4 0xffffffff82b03000 95a0 bhndb.ko
17 1 0xffffffff82b0d000 3c30 bhndb_pci.ko
18 1 0xffffffff82b11000 1a48 bhnd_pci_hostb.ko
19 2 0xffffffff82b13000 1aa4 bhnd_pci.ko
20 1 0xffffffff82b15000 598 bcma_bhndb.ko
21 1 0xffffffff82b16000 4900 bcma.ko
22 1 0xffffffff82b1b000 ae4 siba_bhndb.ko
23 1 0xffffffff82b1c000 4b18 siba.ko
24 1 0xffffffff82b21000 19e20 if_bwi.ko
25 1 0xffffffff82b3b000 2157 runfw.ko
26 1 0xffffffff82b3e000 11ec0 if_run.ko
27 1 0xffffffff82b50000 10360 if_rum.ko
28 1 0xffffffff82b61000 14750 if_iwm.ko
29 1 0xffffffff82b76000 40b0 cuse.ko
30 1 0xffffffff82b7b000 6078 geom_uzip.ko
31 1 0xffffffff82b82000 18a8 fdescfs.ko
32 1 0xffffffff82b84000 2dfaf iwn4965fw.ko
33 1 0xffffffff82bb2000 527cf iwn1000fw.ko
34 1 0xffffffff82c05000 5343f iwn5000fw.ko
35 1 0xffffffff82c59000 5275f iwn5150fw.ko
36 1 0xffffffff82cac000 6f12f iwn6000fw.ko
37 1 0xffffffff82d1c000 a5715 iwn6000g2afw.ko
38 1 0xffffffff82dc2000 a5f75 iwn6000g2bfw.ko
39 1 0xffffffff82e68000 72c7f iwn6050fw.ko
40 1 0xffffffff82edb000 10e80 if_urtw.ko
41 1 0xffffffff82eec000 150e0 rtwn.ko
42 1 0xffffffff82f02000 2540 acpi_video.ko
43 1 0xffffffff82f05000 91a8 fuse.ko
44 1 0xffffffff82f0f000 27e8 ums.ko
45 1 0xffffffff82f12000 42a0 atp.ko
46 1 0xffffffff82f17000 45ec linprocfs.ko
47 1 0xffffffff82f1c000 2278 intpm.ko
48 1 0xffffffff82f1f000 a40 smbus.ko
49 1 0xffffffff82f20000 db148 radeonkms.ko
50 1 0xffffffff82ffc000 3f7d0 drm2.ko
51 4 0xffffffff8303c000 1ed0 iicbus.ko
52 1 0xffffffff8303e000 e50 iic.ko
53 1 0xffffffff8303f000 1570 iicbb.ko
sysctl: illegal option -- v
usage: sysctl [-bdehiNnoqTtWx] [ -B <bufsize> ] [-f filename] name[=value] ...
sysctl [-bdehNnoqTtWx] [ -B <bufsize> ] -a


I know that I am using a Realtek wifi card. When I did previous commands i recv'd an error stating wlan0 was not configured.


Any help would be great. I know that I need some hand holding. I want to learn BSD, and leave Linux. I just hope I am not over my head.

-cws

User avatar
ericbsd
Developer
Posts: 1355
Joined: Mon Nov 19, 2012 7:54 pm
Has thanked: 34 times
Been thanked: 39 times

Re: HP Laptop No Wifi Connection: Classic Newbie Mistake

Post by ericbsd » Thu Mar 21, 2019 6:40 pm

Could you give me your output of ifconfig and sysctl net.wlan.devices?

cWs
Posts: 4
Joined: Thu Mar 21, 2019 1:47 am
Has thanked: 0
Been thanked: 0

Re: HP Laptop No Wifi Connection: Classic Newbie Mistake

Post by cWs » Sun Mar 24, 2019 4:16 pm

cws@cws /u/h/c/Desktop> ifconfig
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
ether a0:2b:b8:53:5f:48
inet 192.168.1.19 netmask 0xffffff00 broadcast 192.168.1.255
nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
media: Ethernet autoselect (100baseTX <full-duplex>)
status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
inet 127.0.0.1 netmask 0xff000000
nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
groups: lo
cws@cws /u/h/c/Desktop> sysctl net.wlan.devices
net.wlan.devices:
cws@cws /u/h/c/Desktop>


It appears I am missing a driver. I read the advanced networking manual, and could not figure out how to get the driver. Or perhaps I am over my head. I understand i still need to configure my adapter.

User avatar
ericbsd
Developer
Posts: 1355
Joined: Mon Nov 19, 2012 7:54 pm
Has thanked: 34 times
Been thanked: 39 times

Re: HP Laptop No Wifi Connection: Classic Newbie Mistake

Post by ericbsd » Mon Mar 25, 2019 4:04 pm

Sorry for my slow reply.

Ok it could be any Realtek driver

Code: Select all

# apropos wireless | grep Realtek
rsu, if_rsu(4) - Realtek RTL8188SU/RTL8192SU USB IEEE 802.11b/g/n wireless network device
rtwn(4) - Realtek IEEE 802.11 wireless network driver
rtwnfw(4) - Firmware Module for Realtek Wireless driver
urtw, if_urtw(4) - Realtek RTL8187B/L USB IEEE 802.11b/g wireless network device
There is a lot of drivers, that are not loaded by default you can try to load on the driver above one by one.

Code: Select all

kldload if_rsu
sysctl net.wlan.devices
if you find it you will need to add if_driver_load="YES" in /boot/loader.conf.

cWs
Posts: 4
Joined: Thu Mar 21, 2019 1:47 am
Has thanked: 0
Been thanked: 0

Re: HP Laptop No Wifi Connection: Classic Newbie Mistake

Post by cWs » Thu Mar 28, 2019 12:08 am

Welcome to fish, the friendly interactive shell
cws@cws /u/h/c/Desktop> kldload if_rsu
kldload: can't load if_rsu: Operation not permitted
cws@cws /u/h/c/Desktop>

Am I messing up the syntax?

User avatar
ericbsd
Developer
Posts: 1355
Joined: Mon Nov 19, 2012 7:54 pm
Has thanked: 34 times
Been thanked: 39 times

Re: HP Laptop No Wifi Connection: Classic Newbie Mistake

Post by ericbsd » Thu Mar 28, 2019 7:12 am

Use sudo.

cWs
Posts: 4
Joined: Thu Mar 21, 2019 1:47 am
Has thanked: 0
Been thanked: 0

Re: HP Laptop No Wifi Connection: Classic Newbie Mistake

Post by cWs » Fri Apr 05, 2019 12:21 am

No improvement. The firmware listed did not work.

wb7odyfred
Posts: 35
Joined: Sat Nov 12, 2016 5:44 pm
Has thanked: 0
Been thanked: 0

Re: HP Laptop No Wifi Connection: Classic Newbie Mistake

Post by wb7odyfred » Thu Apr 18, 2019 11:16 pm

read my hand holding and complete instructions in two previous forum posts. Please correct my misspellings or errors in writing the commands. You can list/post what works for your hardware and operating system version.
https://forums.ghostbsd.org/viewtopic.php?f=64&t=526 USB Edimax Realtek Wifi Dongle

https://forums.ghostbsd.org/viewtopic.php?f=64&t=570 PCI Realtek RTL8188CE Chip
https://helpmanual.io/man4/if_rsu-freebsd/ if_rsu manual with 2 files to edit and one firmware to load
Alternatively, to load the driver as a module at boot time, place the following line in loader.conf5:

if_rsu_load="YES"

After you have read the license in /usr/share/doc/legal/realtek.LICENSE you will want to add the following lines to loader.conf5:

legal.realtek.license_ack=1
rsu-rtl8712fw_load="YES"

Code: Select all

sudo kldload if_rsu.ko
Verify firmware file exists here:
The driver needs at least version 1.2 of the following firmware file, which is loaded when an interface is attached:

/boot/kernel/rsu-rtl8712fw.ko
Follow those similar steps listed in my forum posts and post back here the answers you find.
Start with usbconfig and pciconf and kldstat comands

Code: Select all

pciconf -lv
usbconfig  list
kldstat
# Check that you do not have a typo errors in files /boot/loader.conf or /boot/device.hints like a missing "#" tag. The typo error will cause the processing of the file to abort, before completing the following lines in the file. So carefully check the boot logs for error messages or missing loading of device driver kernel modules.

Code: Select all

dmesg -a | less
less /var/run/dmesg.boot
Now edit these 3 files /boot/loader.conf, /etc/rc.conf, and /etc/wpa_supplicant.conf

/boot/loader.conf add 3 lines for RTL8188SU

Code: Select all

if_rsu_load="YES"
legal.realtek.license_ack=1
rsu-rtl8712fw_load="YES"
/etc/rc.conf add 2 lines for RTL8188SU

Code: Select all

wlans_rsu0="wlan0"
ifconfig_wlan0="WPA DHCP"
Edit file /etc/wpa_supplicant.conf example file for an Open Network connection to Wireless SSID name "innflux"

Code: Select all

network={
   ssid="innflux"
   key_mgmt=NONE
}
Bare minimum fields necessary for an encrypted Wi-Fi connection using wpa_supplicant command

Code: Select all

network={
	#: my NetGear box
	ssid="NETGEAR59"
	psk="my_passkey_892"
	key_mgmt=WPA-PSK
}
Manually issue the wpa_supplicant with the background Dameon option and dhclient commands

Code: Select all

wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf 
dhclient wlan0
Use the following line for testing with the Debug and Password debug printout options

Code: Select all

wpa_supplicant -d -K -i wlan0 -c /etc/wpa_supplicant.conf 
dhclient wlan0
Problems running dhclient? Then kill the previously running dhclient.

Code: Select all

killall dhclient
dhclient wlan0
use Netstat commands to list out the new network interface connections
use Sockstat commands to list out the socket connections

Code: Select all

netstat -r
or

Code: Select all

netstat -i
or

Code: Select all

sockstat -4
Check connectivity with ping command to a specific IP address like Google Domain Name service
Ping google Domain Naming Service (DNS) 3 times.

Code: Select all

ping -c 3 8.8.8.8
Ping Open Domain Naming Service (DNS) 3 times.

Code: Select all

ping -c 3 208.67.222.222
Ping Hurricane Electric Internet Service Provider 3 times.

Code: Select all

 ping -c 3 he.net
Ping an OpenNic DNS server in Colorado ns4.co.us.dns.opennic.glue https://servers.opennicproject.org/

Code: Select all

ping -c 3 63.231.92.27
#Sometimes you might need to restart the network interfaces and the routing services, after editing the /etc/rc.conf file or the /etc/wpa_supplicant.conf file.

Code: Select all

service netif restart  && service routing restart
These are just the commands to interrogate the computer hardware to understand what WiFi hardware devices are in your system. Verify that FreeBSD supports these Wifi Hardware devices that you see in your computer, or go buy a WiFi nano usb dongle with Realtek RTL8192cu chip like TPLink W725 or Edimax EW-7811un that FreeBSD does support.
List kernel modules already loaded

Code: Select all

kldstat
glad you are trying something new like GhostBSD and learning. Don't give up keep trying that is how we learn.
GhostBSD is nice and stable. You enjoy learning.



Fred Finster
Other URL Links

Code: Select all

https://manpages.debian.org/stretch/freebsd-manpages/if_rsu.4freebsd.en.html

Code: Select all

http://www.leidinger.net/FreeBSD/dox/dev_usb/html/dd/d20/if__rsu_8c_source.html

User avatar
ericbsd
Developer
Posts: 1355
Joined: Mon Nov 19, 2012 7:54 pm
Has thanked: 34 times
Been thanked: 39 times

Re: HP Laptop No Wifi Connection: Classic Newbie Mistake

Post by ericbsd » Fri Apr 19, 2019 8:21 am

@wb7odyfred "service netif restart" is a FreeBSD command not GhostBSD command, GhostBSD command its "service network restart".

Post Reply