On Wed, Sep 09, 2015 at 07:57:11PM -0400, Nickolas P. O'Malley wrote:
> Hello,
> I'm new to the OpenBSD community and mailing list, so please forgive me if 
> this is the wrong list to ask.
> I decided to install a snapshot of 5.8 on my workstation today, because I 
> found out that it features a new driver that supports my wireless NIC. 
> However I'm hitting roadblock after roadblock trying to find support.
> I found one thread in the archives mentioning rtwn(4), and a Stefan was 
> asking if there's anyone who has an RTL8192CE and wants to test it with the 
> driver. I have this card and I'm having trouble getting it to work. I've run 
> fw_update locally on the rtwn-firmware-1.0.tgz file. I'm just not sure if 
> this is a problem with the driver, or just plain user error.
> I looked around the FAQ and read a few manpages, but I'm still at a loss 
> here. Has anyone had any luck with this card and driver? Doea OpenBSD expect 
> me to do anything more than install the firmware and reboot?
> If it helps at all, this is the dmesg entry for my card:
> "Realtek RTL8192CE" rev 0x01 at pci5 dev 0 function 0 not configured
> Thanks a lot!

Hi Nickolas,

The GENERIC kernel won't attach this device to rtwn(4) yet. rtwn(4) will only
attach to 8188ce cards. That's why the 8192ce shows up as "not configured".

You'll need a self-compiled kernel to try this driver with your device.
To learn about doing this I recommend you start reading here:
  http://www.openbsd.org/faq/faq5.html#Bld
all the way up to (and including) this section:
  http://www.openbsd.org/faq/faq5.html#BldKernel

Your goal is to have a self-built -current GENERIC kernel which includes
the patch below.

Once you've got the -current sources (see the FAQ for how to get them)
run the commands below before building the kernel. Please save this email
as a text file (say, in /tmp/patch.txt) and use it as input for the patch
program:

  cd /usr/src/sys/dev/pci
  patch < /tmp/patch.txt
 
Now proceed with the kernel build steps and reboot into your new kernel.
The device might now work. Or it might not. In either case, please report back.
Thanks!

The patch follows below. It adds one line to the file if_rtwn.c which
associates the 8192ce device with the rtwn(4) driver.

Index: if_rtwn.c
===================================================================
RCS file: /cvs/src/sys/dev/pci/if_rtwn.c,v
retrieving revision 1.1
diff -u -p -r1.1 if_rtwn.c
--- if_rtwn.c   4 Jun 2015 21:08:40 -0000       1.1
+++ if_rtwn.c   4 Jun 2015 22:57:25 -0000
@@ -80,7 +80,8 @@ int rtwn_debug = 0;
                        R92C_IMR_RXFOVW)
 
 static const struct pci_matchid rtwn_pci_devices[] = {
-       { PCI_VENDOR_REALTEK,   PCI_PRODUCT_REALTEK_RT8188 }
+       { PCI_VENDOR_REALTEK,   PCI_PRODUCT_REALTEK_RT8188 },
+       { PCI_VENDOR_REALTEK,   PCI_PRODUCT_REALTEK_RTL8192CE }
 };
 
 int            rtwn_match(struct device *, void *, void *);

Reply via email to