wifi not working with edimax ew-7811Un

Help with setting up network cards, including WiFi cards.
rootman
Posts: 2
Joined: Sat Jan 09, 2021 1:19 am

wifi not working with edimax ew-7811Un

Post by rootman »

Code: Select all

ugen0.1: <0x8086 XHCI root HUB> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA)
ugen2.1: <Intel EHCI root HUB> at usbus2, 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: <Realtek Edimax N150 Adapter> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA)
ugen2.2: <vendor 0x8087 product 0x8000> at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
ugen1.2: <vendor 0x8087 product 0x8008> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE (0mA)
ugen0.3: <Vimicro corp. Lenovo EasyCamera> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (256mA)
ugen0.4: <Broadcom Corp BCM43142A0> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (0mA)
ugen0.5: <Generic USB2.0-CRW> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA) 

Code: Select all

pwr=ON (500mA)

  
ugen0.2: <Realtek Edimax N150 Adapter> at usbus0, 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 = 0x7392 
idProduct = 0xb811 
bcdDevice = 0x0000 
iManufacturer = 0x0001  <Realtek>
iProduct = 0x0002  <Edimax N150 Adapter>
iSerialNumber = 0x0003  <08BEAC0EE83A>
bNumConfigurations = 0x0001 

Code: Select all

ifconfig
alc0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
    options=c319a<TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MCAST,WOL_MAGIC,VLAN_HWTSO,LINKSTATE>
    ether 20:1a:06:95:b0:8f
    inet 192.168.0.15 netmask 0xffffff00 broadcast 192.168.0.255
    media: Ethernet autoselect (100baseTX <full-duplex>)
    status: active
    nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
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
    groups: lo
[CODE]cat /boot/loader.conf
# hw.syscons.disable=1
hw.psm.synaptics_support="1"
net.inet.ip.fw.default_to_accept="1"
entropy_cache_load="YES"
crypto_load="YES"
aesni_load="YES"
geom_eli_load="YES"
vfs.zfs.arc_max="512M"
vfs.root.mountfrom="zfs:tank/ROOT/initial"
zfs_load="YES"
legal.realtek.license_ack=1
if_rtwn_usb_load="YES"
if_rtwn_load="YES"
legal.realtek.license_ack=1

Code: Select all

 cat /etc/rc.conf
wlans_rtwn0="wlan0"
ifconfig_wlan0="DHCP"

Code: Select all

sudo ifconfig wlan0 create wlandrev rtwn0
ifconfig: must specify a parent device (wlandev) when creating a wlan device

Code: Select all

kldstat
Id Refs Address                Size Name
 1   74 0xffffffff80200000  2c0bb60 kernel
 2    1 0xffffffff82e0c000   3bacf0 zfs.ko
 3    2 0xffffffff831c7000     a448 opensolaris.ko
 4    1 0xffffffff831d2000     eed8 aesni.ko
 5    1 0xffffffff831e1000    1e7b0 geom_eli.ko
 6    1 0xffffffff83919000     87d0 tmpfs.ko
 7    1 0xffffffff83922000     35b4 geom_uzip.ko
 8    1 0xffffffff83926000     2e30 xz.ko
 9    1 0xffffffff83929000     1a20 fdescfs.ko
10    1 0xffffffff8392b000    103f0 fuse.ko
11    1 0xffffffff8393c000     2908 ums.ko
12    1 0xffffffff8393f000    3c4c0 linux.ko
13    3 0xffffffff8397c000     4b80 linux_common.ko
14    1 0xffffffff83981000    35ce0 linux64.ko
15    1 0xffffffff839b7000     4ea4 cuse.ko
16    1 0xffffffff839bc000   12bfbc i915kms.ko
17    1 0xffffffff83ae8000    75e30 drm.ko
18    4 0xffffffff83b5e000    13770 linuxkpi.ko
19    3 0xffffffff83b72000    13f30 linuxkpi_gplv2.ko
20    2 0xffffffff83b86000      6d0 debugfs.ko
21    1 0xffffffff83b87000     54fc linprocfs.ko
22    1 0xffffffff83b8d000    25360 ipfw.ko
is rtwn not loading?

I'm not sure what to do
User avatar
ericbsd
Developer
Posts: 2052
Joined: Mon Nov 19, 2012 7:54 pm

Re: wifi not working with edimax ew-7811Un

Post by ericbsd »

Is that the first or second generation?
rootman
Posts: 2
Joined: Sat Jan 09, 2021 1:19 am

Re: wifi not working with edimax ew-7811Un

Post by rootman »

2nd gen (v2)

Is that the reason?

if so,

do you have any recommendations for working usb dongles?
wb7odyfred
Posts: 203
Joined: Sat Nov 12, 2016 5:44 pm

Re: wifi is working with edimax ew-7811Un

Post by wb7odyfred »

https://forums.ghostbsd.org/viewtopic.php?f=64&t=526 Here is my take on manually setting up EW-7811un RTL8192cu
I did not see the realtek driver modules loaded in your kldstat output.

Code: Select all

 sudo kldload if_rtwn.ko if_rtwn_usb.ko
or older version driver module

Code: Select all

sudo kldload  if_urtwn.ko
Thanks for your posting specifics. Please, in return, Help me to improve my forum post on making it work. You have knowledge that something you have NOT done, is not documented. So compare your steps, with mine in the post, and tell me what is finally working for your setup.
# Use wlandebug and sysctl -a | grep wlan to explore settings and debug non-working system problems.

Code: Select all

wlandebug --help
sysctl -a | grep wlan
There are 3 files need edited /boot/loader.conf /etc/rc.conf /etc/wpa_supplicant.conf you will need to install 2 modules with

Code: Select all

 sudo kldload if_rtwn.ko if_rtwn_usb.ko
kldstat will tell what modules are loaded in memory. Maybe with the new modules, something needs updated in "Networkmgr python script file". open a command line terminal and issue command

Code: Select all

networkmgr
See what errors come back. Networkmgr has the tools to rewrite the 3 files, adding in the necessary information to make networking operational

https://forums.ghostbsd.org/viewtopic.php?f=64&t=570 Here is my take on manually setting up Realtek PCI chipset RTL8188CE Use this as kind of comparison of which steps to do when manually setting up.

If the wifi device needs loaded with a firmware file, the firmware modules must be available in the file system. The action of initializing the driver will cause the firmware to be loaded into the chip set.

Check for legal acknowledgement of the Realtek License in the /boot/loader.conf file.

Other Useful commands for debugging

Code: Select all

dmesg | tail -15 
or

Code: Select all

sysctl net.wlan.devices
/etc/wpa_supplicant.conf file. What are the contents in here? Is it initialized correctly with the ESSID of the channel name and the password?

Code: Select all

ifconfig wlan0 down
service netif restart  && service routing restart
ifconfig wlan0 up scan

Code: Select all

ifconfig wlan0 down
ifconfig wlan0 up
for version 12.0 and greater, edit file /boot/loader.conf

Code: Select all

if_rtwn_load="YES"
if_rtwn_usb_load="YES"
legal.realtek.license_ack=1
#/etc/rc.conf add 2 lines for Edimax EW-7811utn

Code: Select all

wlans_rtwn0="wlan0"
ifconfig_wlan0="WPA DHCP"
/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
}
network={
	#: my NetGear box
	ssid="NETGEAR59"
	psk="my_passkey_892"
	key_mgmt=WPA-PSK
}
User avatar
ericbsd
Developer
Posts: 2052
Joined: Mon Nov 19, 2012 7:54 pm

Re: wifi not working with edimax ew-7811Un

Post by ericbsd »

@wb7odyfred the problem is Edimax ew-7811Un v2 install not supported on FreeBSD and not even on Linux.

the kernel module is already loaded on FreeBSD.
User avatar
ericbsd
Developer
Posts: 2052
Joined: Mon Nov 19, 2012 7:54 pm

Re: wifi not working with edimax ew-7811Un

Post by ericbsd »

rootman wrote: Sat Jan 09, 2021 3:08 pm 2nd gen (v2)

Is that the reason?

if so,

do you have any recommendations for working usb dongles?
Good luck with that, I have tried to find one that is supported I did spend a lot of money to find one every one of them was gen after or was not working properly. I am not gonna lie Wi-Fi support on FreeBSD is terrible we don't even have AC supports and AX is already out.
User avatar
ericbsd
Developer
Posts: 2052
Joined: Mon Nov 19, 2012 7:54 pm

Re: wifi not working with edimax ew-7811Un

Post by ericbsd »

Just a random search about ac supports I have found this https://forums.freebsd.org/threads/any- ... ost-488172. Looks like this one works https://www.amazon.com/gp/product/B07PB ... UTF8&psc=1
User avatar
ericbsd
Developer
Posts: 2052
Joined: Mon Nov 19, 2012 7:54 pm

Re: wifi not working with edimax ew-7811Un

Post by ericbsd »

I did order 1 to try.
wb7odyfred
Posts: 203
Joined: Sat Nov 12, 2016 5:44 pm

Re: wifi not working with edimax ew-7811Un Version 2

Post by wb7odyfred »

http://openbsd-archive.7691.n7.nabble.c ... 01834.html

Seems that openbsd has recompiled the rtwn driver to add support for this Edimax driver.

https://devicehunt.com/view/type/usb/vendor/7392 This list is missing the new Version 2 Edimax EW-7811un device RTL8188EU


Notice that the Version 2 Edimax EW-7811un 7932:b811 uses a different RealTek device RTL8188EU than the Version 1 Edimax EW-7811un USB Ids 7932:7811 specifies a RTL8192cu chipset device.

It looks like this device is RTL8188EU based (not RTL8188CU like the 7811Un), since the linux driver they offer for download is called rtl8188EUS, so you'd add

URTWN_DEV_8188EU(EDIMAX, EW7811UNV2)

to the USB device list in the following file.
https://github.com/freebsd/freebsd-src/ ... b_attach.h
at this section:

Code: Select all

/* RTL8188EU */
#define RTWN_RTL8188EU_DEV(v,p) \
	{ USB_VPI(USB_VENDOR_##v, USB_PRODUCT_##v##_##p, RTWN_CHIP_RTL8188EU) }
	RTWN_RTL8188EU_DEV(ABOCOM,		RTL8188EU),
	RTWN_RTL8188EU_DEV(DLINK,		DWA123D1),
	RTWN_RTL8188EU_DEV(DLINK,		DWA125D1),
	RTWN_RTL8188EU_DEV(EDIMAX,		0xb811),    		/*  New version EW7811unV2  */
	RTWN_RTL8188EU_DEV(ELECOM,		WDC150SU2M),
	RTWN_RTL8188EU_DEV(TPLINK,		WN722NV2),
	RTWN_RTL8188EU_DEV(TPLINK,		WN727NV5),
	RTWN_RTL8188EU_DEV(REALTEK,		RTL8188ETV),
	RTWN_RTL8188EU_DEV(REALTEK,		RTL8188EU),
	RTWN_RTL8188EU_DEV(MERCUSYS,		MW150US),
#undef RTWN_RTL8188EU_DEV

Relative new FreeBSD post from
https://forums.freebsd.org/threads/cann ... ost-489571
https://forums.freebsd.org/threads/how- ... ost-480681 Wow here is my post on Edimax EW7811 version 1

[1]: https://www.mail-archive.com/bugs@openb ... 15706.html
Last edited by wb7odyfred on Wed Jan 13, 2021 9:18 am, edited 3 times in total.
User avatar
ericbsd
Developer
Posts: 2052
Joined: Mon Nov 19, 2012 7:54 pm

Re: wifi not working with edimax ew-7811Un Version 2

Post by ericbsd »

wb7odyfred wrote: Wed Jan 13, 2021 4:41 am to the urtwn device list.
urtwn? There is no such kernel module in GhostBSD.
Post Reply