Page 1 of 1

How do I find out what driver I need?

Posted: Mon Apr 08, 2013 2:30 am
by OnionKiller
How do I find out what driver I need to configure my wireless card?
I am running ghostbsd 2.5 on an Asus One 722.
Thank you.

Re: How do I find out what driver I need?

Posted: Sat Apr 13, 2013 2:31 pm
by ericbsd

Use pciconf and usbconfig and kldstat and uname commands

Posted: Wed Jan 11, 2017 7:09 am
by wb7odyfred
How do I find out what driver I need? Here is a stab at answering this question
List the PCI Bus Devices operating in your hardware.. The RealTek RTL8188CE is what I am working to make operational in GhostBSD. It does work as of January 11, 2017 with FreeBSD 12.0 Current Revision greater than R307529 Note that in FreeBSD 12.0 Current revision 307529, the driver was rewritten where the RTL8192CU USB & RTL8188CE PCI Realtek Wi-Fi were combined into one driver if_rtwn with a USB interface if_rtwn_pci.ko and a PCI interface if_rtwn_pci.ko kernel modules. At this time the if_urtwn.ko kernel module is deprecated after revision R307529. Before this revision, use the if_urtwn.ko file with the RTL8192CU USB device driver with products like Edimax EW-7811un.
Device driver interface if_rtwn.ko and a PCI interface if_rtwn_pci.ko kernel modules

Code: Select all

 sudo pciconf -lv
Password:
alc0@pci0:1:0:0: class=0x020000 card=0xff1e1179 chip=0x20621969 rev=0xc1 hdr=0x00
vendor = 'Qualcomm Atheros'
device = 'AR8152 v2.0 Fast Ethernet'
class = network
subclass = ethernet
none2@pci0:2:0:0: class=0x028000 card=0x818110ec chip=0x817610ec rev=0x01 hdr=0x00
vendor = 'Realtek Semiconductor Co., Ltd.'
device = 'RTL8188CE 802.11b/g/n WiFi Adapter'
class = network
List the USB BUS devices operating in your hardware.

Code: Select all

usbconfig  list
ugen0.1: <Intel EHCI root HUB> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
ugen1.1: <Intel EHCI root HUB> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
ugen0.2: <vendor 0x8087 product 0x0024> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
ugen1.2: <vendor 0x8087 product 0x0024> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
ugen1.3: <vendor 0x0bda product 0x8191> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA)
ugen0.3: <Generic USB2.0-CRW> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA)
ugen0.4: <Importek TOSHIBA Web Camera> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA)
ugen1.4: <Maxtor OneTouch> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (2mA)

Code: Select all

usbconfig  dump_device_desc | less
A more full device description including company names like RealTek
ugen1.3: <vendor 0x0bda product 0x8191> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA)

bLength = 0x0012
bDescriptorType = 0x0001
bcdUSB = 0x0200
bDeviceClass = 0x0000 <Probed by interface class>
bDeviceSubClass = 0x0000
bDeviceProtocol = 0x0000
bMaxPacketSize0 = 0x0040
idVendor = 0x0bda
idProduct = 0x8191
bcdDevice = 0x0200
iManufacturer = 0x0001 <Realtek>
iProduct = 0x0002 <802.11n WLAN Adapter>
iSerialNumber = 0x0000 <no string>
bNumConfigurations = 0x0001
List the kernel modules loaded into kernel memory. You might need kldunload and kldload commands also.

Code: Select all

kldstat
fred@kliktel ~> kldstat
Id Refs Address Size Name
1 68 0xffffffff80200000 1d3f000 kernel
2 2 0xffffffff8222d000 c894 opensolaris.ko
3 1 0xffffffff8223b000 392db1 zfs.ko
4 1 0xffffffff82821000 a7dd linprocfs.ko
5 3 0xffffffff8282c000 7a2b linux_common.ko
6 1 0xffffffff82834000 12a2b geom_mirror.ko
7 1 0xffffffff82847000 fe29 geom_journal.ko
8 1 0xffffffff82857000 1110c geom_eli.ko
9 1 0xffffffff82869000 4042a linux.ko
10 1 0xffffffff828aa000 3afad linux64.ko
11 1 0xffffffff828e5000 1032c iscsi.ko
12 1 0xffffffff828f6000 97f41 i915kms.ko
13 1 0xffffffff8298e000 55088 drm2.ko
14 4 0xffffffff829e4000 273b iicbus.ko
15 1 0xffffffff829e7000 1cf7 iic.ko
16 1 0xffffffff829e9000 1e6b iicbb.ko
17 2 0xffffffff829eb000 1c048 if_rtwn.ko
18 1 0xffffffff82a08000 bf38 if_rtwn_pci.ko
fred@kliktel ~>
If you have to load kernel modules, use the kldload command.

Code: Select all

kldload if_rtwn_pci.ko if_rtwn.ko
or

Code: Select all

kldload if_rtwn_usb.ko if_rtwn.ko
or for older FreeBSD before revision r307529, use

Code: Select all

kldload if_urtwn.ko
device driver with Edimax EW-7811un contains an RealTek RTL8192CU USB device .

What version of GhostBSD or FreeBSD are you currently running? Is the device driver you need, functional with this release version of FreeBSD? r310386M

Code: Select all

uname -a
fred@kliktel ~> uname -a
FreeBSD kliktel.ghostbsd-pc.home 12.0-CURRENT FreeBSD 12.0-CURRENT #1 r310386M: Thu Dec 22 19:08:02 PST 2016 kliktel.ghostbsd-pc.home:/usr/obj/usr/src/sys/GENERIC amd64
fred@kliktel ~>
viewtopic.php?f=64&t=386&p=2581#p2581 More instructions from another GhostBSD forum post to get you going
https://www.freebsd.org/doc/handbook/ke ... vices.html 8.3. Finding the System Hardware
https://www.freebsd.org/relnotes/CURREN ... pport.html Supported kernel device hardware

Re: How do I find out what driver I need?

Posted: Wed Jan 11, 2017 9:56 am
by ASX
:) Being a very old thread I guess you will not receive an answer from the OP, so a big Thanks from me!