From owner-freebsd-questions@freebsd.org Sat Jul 18 15:06:28 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3476B9A5759 for ; Sat, 18 Jul 2015 15:06:28 +0000 (UTC) (envelope-from kevlo@ns.kevlo.org) Received: from ns.kevlo.org (220-135-115-6.HINET-IP.hinet.net [220.135.115.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "ns.kevlo.org", Issuer "ns.kevlo.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id DDABE12A0; Sat, 18 Jul 2015 15:06:27 +0000 (UTC) (envelope-from kevlo@ns.kevlo.org) Received: from ns.kevlo.org (localhost [127.0.0.1]) by ns.kevlo.org (8.14.9/8.14.9) with ESMTP id t6IF6HkJ009592 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sat, 18 Jul 2015 23:06:17 +0800 (CST) (envelope-from kevlo@ns.kevlo.org) Received: (from kevlo@localhost) by ns.kevlo.org (8.14.9/8.14.9/Submit) id t6IF6HEP009589; Sat, 18 Jul 2015 23:06:17 +0800 (CST) (envelope-from kevlo) Date: Sat, 18 Jul 2015 23:06:16 +0800 From: Kevin Lo To: freebsd-questions@freebsd.org Subject: Re: Can not get Realtek RTL8188CU USB adapter to work on 10.2-BETA1 laptop Message-ID: <20150718150616.GA9532@ns.kevlo.org> References: <20150717152228.GG751@dell4> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150717152228.GG751@dell4> User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Jul 2015 15:06:28 -0000 Try running kldload urtwn-rtl8192cfwT or adding this to /boot/loader.conf: urtwn-rtl8192cfwT_load="YES" The latter will require a reboot to take effect. Kevin On Fri, Jul 17, 2015 at 11:22:28AM -0400, William Bulley wrote: > > I have a new laptop with an Intel core i7-5600U CPU running 10.2-BETA1 FreeBSD. > > I tried following the directions here: > > https://vzaigrin.wordpress.com/2014/04/14/how-to-setup-usb-wifi-on-raspberry-pi-with-freebsd/ > > and I tried the directions in the "% man 4 urtwn" man page: > > To compile this driver into the kernel, place the following lines in your > kernel configuration file: > > device ehci > device uhci > device ohci > device usb > device urtwn > device wlan > > Alternatively, to load the driver as a module at boot time, place the > following line in loader.conf(5): > > if_urtwn_load="YES" > > In both cases, place the following line in loader.conf(5) to acknowledge > the firmware license (see below): > > legal.realtek.license_ack=1 > > [[I did both: rebuilt kernel AND added two lines to the /boot/loader.conf file]] > > and > > This driver requires the firmware built with the urtwnfw module to work. > For the loaded firmware to be enabled for use the license at > /usr/share/doc/legal/realtek must be agreed by adding the following line > to loader.conf(5): > > legal.realtek.license_ack=1 > > and > > The urtwn driver supports Realtek RTL8188CU/RTL8188RU/RTL8188EU/RTL8192CU > based USB IEEE 802.11b/g/n wireless network adapters, including: > > Edimax EW-7811Un [[which is the product I have]] > > Given that I have the urtwn(4) driver built into the kernel, and that I have > those two lines in the /boot/loader.conf file, it isn't surprising that the > laptop seems to detect the USB adapter at boot time: > > unix% dmesg | grep -i urtwn > urtwn0: on usbus0 > urtwn0: MAC/BB RTL8188CUS, RF 6052 1T1R > urtwn0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps > urtwn0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps > > However, this error occurs in /var/log/messages when I try to use it: > > urtwn-rtl8192cfwT: You need to read the LICENSE file in /usr/share/doc/legal/realtek/. > urtwn-rtl8192cfwT: If you agree with the license, set legal.realtek.license_ack=1 in /boot/loader.conf. > module_register_init: MOD_LOAD (urtwn-rtl8192cfwT_fw, 0xc2aa24f0, 0) error 1 > urtwn-rtl8192cfwT: could not load firmware image, error 8 > urtwn0: failed loadfirmware of file urtwn-rtl8192cfwT > > There is in fact, the /usr/share/doc/legal/realtek license file at that > location. But the urtwn(4) man page also says this: > > DIAGNOSTICS > urtwn%d: error %d, could not read firmware %s For some reason, the > driver was unable to read the microcode file from the filesystem. The > file might be missing or corrupted. > > When I issue this command as root "# ifconfig wlan0 create wlandev urtwn0" > I get this error: > > ifconfig: create: bad value > > The "could not read firmware" sub-string from the man page is close enough > to the generated error sub-string when I try to use the USB adapter: > > "could not load firmware image" > > to make me think the microcode file is missing or corrupted. > > These files are in the /usr/src/sys/contrib/dev/urtwn directory: > > unix% ls -l /usr/src/sys/contrib/dev/urtwn > -rw-r--r-- 1 root wheel 2115 Jul 12 09:22 LICENSE > -rw-r--r-- 1 root wheel 19198 Jul 12 09:22 urtwn-rtl8188eufw.fw.uu > -rw-r--r-- 1 root wheel 21765 Jul 12 09:22 urtwn-rtl8192cfwT.fw.uu > -rw-r--r-- 1 root wheel 21765 Jul 12 09:22 urtwn-rtl8192cfwU.fw.uu > > Since the adapter reports itself to be a RTL8188CUS, then the first of > the three firmware/microcode files above should be loaded, yet the error > message reproduced above is looking for the rtl8192cfwT firmware file. > But even that file is present -- the second of the above three files. > > Does anyone know how to make this wi-fi adapter work in 10.2BETA1 on > this laptop? It seems to work on the Raspberry Pi (see the URL above) > on an earlier 10.x system, so it ought to work today on 10.2BETA1 one > might surmise. Any thoughts on how to make this adapter work? Thanks. > > Regards, > > web... > > -- > > /"\ ASCII RIBBON / William Bulley > \ / CAMPAIGN AGAINST / > X HTML E-MAIL AND / E-MAIL: web@umich.edu > / \ LISTSERV POSTINGS / > > 72 characters width template ----------------------------------------->| > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >