Upgrading wifi adapter

Hello,

I’m upgrading my Edimax EW-7811un to a EW-7822ulc and the ulc doesn’t seem to work.

Now I’ve tested the ulc and it works on my debian box.

Ok so here are the particulars working system with the 7811un: http://paste.osmc.io/poqulojufa

now just for fun I will show you the output of lsmod and lsusb

lsusb
osmc@osmc:~$ lsusb
Bus 001 Device 008: ID 7392:7811 Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS]
Bus 001 Device 007: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 001 Device 006: ID 050d:706a Belkin Components 2-N-1 7-Port Hub (Upper half)
Bus 001 Device 005: ID 14cd:6116 Super Top M6116 SATA Bridge
Bus 001 Device 004: ID 050d:0706 Belkin Components 2-N-1 7-Port Hub (Lower half)
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
osmc@osmc:~$

As you can see the 7811un is clearly visible

now the lsmod
osmc@osmc:~$ lsmod
Module Size Used by
bnep 12310 2
hci_uart 22713 1
btbcm 8478 1 hci_uart
bluetooth 425568 22 bnep,btbcm,hci_uart
joydev 9585 0
evdev 13192 2
8192cu 640986 0
brcmfmac 234779 0
hid_logitech_hidpp 15243 0
bcm2835_thermal 2541 0
bcm2835_gpiomem 4026 0
hid_logitech_dj 12935 0
brcmutil 9348 1 brcmfmac
snd_bcm2835 24938 0
sg 23925 0
cfg80211 565548 1 brcmfmac
rfkill 22502 6 cfg80211,bluetooth
snd_pcm 115812 1 snd_bcm2835
snd_timer 26094 1 snd_pcm
uas 16127 0
snd 78512 3 snd_bcm2835,snd_timer,snd_pcm
bcm2835_wdt 4081 0
uio_pdrv_genirq 3885 0
uio 10428 1 uio_pdrv_genirq
fuse 108681 1
ipv6 448018 42
osmc@osmc:~$

This is on a pi3 so I have wlan0 (pi3 onboard) and wlan1 (7811un)

Now I’ll add the 7822ulc: http://paste.osmc.io/oficefulup

lsusb
osmc@osmc:~$ lsusb
Bus 001 Device 009: ID 7392:b822 Edimax Technology Co., Ltd
Bus 001 Device 008: ID 7392:7811 Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS]
Bus 001 Device 007: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 001 Device 006: ID 050d:706a Belkin Components 2-N-1 7-Port Hub (Upper half)
Bus 001 Device 005: ID 14cd:6116 Super Top M6116 SATA Bridge
Bus 001 Device 004: ID 050d:0706 Belkin Components 2-N-1 7-Port Hub (Lower half)
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
osmc@osmc:~$

The new adapter is seen

lsmod
osmc@osmc:~$ lsmod
Module Size Used by
bnep 12310 2
hci_uart 22713 1
btbcm 8478 1 hci_uart
bluetooth 425568 22 bnep,btbcm,hci_uart
joydev 9585 0
evdev 13192 2
8192cu 640986 0
brcmfmac 234779 0
hid_logitech_hidpp 15243 0
bcm2835_thermal 2541 0
bcm2835_gpiomem 4026 0
hid_logitech_dj 12935 0
brcmutil 9348 1 brcmfmac
snd_bcm2835 24938 0
sg 23925 0
cfg80211 565548 1 brcmfmac
rfkill 22502 6 cfg80211,bluetooth
snd_pcm 115812 1 snd_bcm2835
snd_timer 26094 1 snd_pcm
uas 16127 0
snd 78512 3 snd_bcm2835,snd_timer,snd_pcm
bcm2835_wdt 4081 0
uio_pdrv_genirq 3885 0
uio 10428 1 uio_pdrv_genirq
fuse 108681 1
ipv6 448018 42
osmc@osmc:~$

I still have only wlan0 and wlan1

now just for kicks I will reboot and see if that makes the ulc work

no, it does not look like it changed anything: http://paste.osmc.io/wumacuhako

osmc@osmc:~$ lsusb
Bus 001 Device 009: ID 7392:b822 Edimax Technology Co., Ltd
Bus 001 Device 008: ID 7392:7811 Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS]
Bus 001 Device 007: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 001 Device 006: ID 050d:706a Belkin Components 2-N-1 7-Port Hub (Upper half)
Bus 001 Device 005: ID 14cd:6116 Super Top M6116 SATA Bridge
Bus 001 Device 004: ID 050d:0706 Belkin Components 2-N-1 7-Port Hub (Lower half)
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
osmc@osmc:~$ lsmod
Module Size Used by
bnep 12310 2
hci_uart 22713 1
btbcm 8478 1 hci_uart
bluetooth 425568 22 bnep,btbcm,hci_uart
joydev 9585 0
evdev 13192 2
8192cu 640986 0
hid_logitech_hidpp 15243 0
brcmfmac 234779 0
brcmutil 9348 1 brcmfmac
hid_logitech_dj 12935 0
cfg80211 565548 1 brcmfmac
sg 23925 0
uas 16127 0
rfkill 22502 6 cfg80211,bluetooth
bcm2835_gpiomem 4026 0
snd_bcm2835 24938 0
bcm2835_thermal 2541 0
snd_pcm 115812 1 snd_bcm2835
snd_timer 26094 1 snd_pcm
snd 78512 3 snd_bcm2835,snd_timer,snd_pcm
bcm2835_wdt 4081 0
uio_pdrv_genirq 3885 0
uio 10428 1 uio_pdrv_genirq
fuse 108681 1
ipv6 448018 42
osmc@osmc:~$

Hmmm… since I have an onboard wifi, let me just boot osmc with the ulc only.

http://paste.osmc.io/tixatelesi

osmc@osmc:~$ lsusb
Bus 001 Device 008: ID 7392:b822 Edimax Technology Co., Ltd
Bus 001 Device 007: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 001 Device 006: ID 050d:706a Belkin Components 2-N-1 7-Port Hub (Upper half)
Bus 001 Device 005: ID 14cd:6116 Super Top M6116 SATA Bridge
Bus 001 Device 004: ID 050d:0706 Belkin Components 2-N-1 7-Port Hub (Lower half)
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
osmc@osmc:~$ lsmod
Module Size Used by
bnep 12310 2
hci_uart 22713 1
btbcm 8478 1 hci_uart
bluetooth 425568 22 bnep,btbcm,hci_uart
brcmfmac 234779 0
brcmutil 9348 1 brcmfmac
joydev 9585 0
evdev 13192 2
hid_logitech_hidpp 15243 0
cfg80211 565548 1 brcmfmac
snd_bcm2835 24938 0
sg 23925 0
rfkill 22502 5 cfg80211,bluetooth
uas 16127 0
hid_logitech_dj 12935 0
snd_pcm 115812 1 snd_bcm2835
snd_timer 26094 1 snd_pcm
bcm2835_gpiomem 4026 0
snd 78512 3 snd_bcm2835,snd_timer,snd_pcm
bcm2835_thermal 2541 0
bcm2835_wdt 4081 0
uio_pdrv_genirq 3885 0
uio 10428 1 uio_pdrv_genirq
fuse 108681 1
ipv6 448018 42
osmc@osmc:~$

Check which driver is it using on the debian where it is working

here is a link to get it to work on my debian box. How to install EW-7822ULC/EW-7822UTC in Linux running kernel higher than v4.15 : EDiMAX

So compiling that driver on your Raspberry Pi is not working?

no it needs the linux-headers, which is not in the repository. Furthermore, the osmc box does not have the build link to the linux headers. I’ve tried looking for them, but no luck. If you can tell me where to look I will try to compile the driver.

Not sure what you mean with that, you surely can install the linux headers via apt-get should be based on your device rbp2-headers-$(uname -r)

ahhhh… naming is different, I was trying (linux|osmc)-header-$(uname -r).

And I wrote source instead of headers :wink:
Correct in my post for future reference

yes I corrected that when I transposed your solution. Yes it worked. thanks.

Though you may want to put that in the main repository too. So anyone with a 7822ulc can use it.

So compiling worked and driver works also?

Testing now. but the ifconfig looks good. Identifies it as wlan2. wlan1 is the 7811un. and wlan0 is the onboard wifi. Yep it works at 2.4. seeing if I can figure out how to bump it up to 5.

Actually, it works for a while and then terminal sessions freeze. According to the system info>network the link is connected but the internet changes from busy to not connected: Check network settings. According to the MyOSMC network settings, it is also connected. but can’t get an ssh to the osmc box.

A restart will bring the network adapter back up but it will go down again.

Disable power management. If you don’t want to have to compile the driver every time there is an update then send me a PM and we can get it included in OSMC

Sam

As Sam wrote, disable power saving and to avoid interference I would disable the build in adapter

My power management is and was off. Still doing this. now more frequently. within a minute of reboot an logging in. If you need any logs just ask.

Logs are best sent to the driver developer.
When it’s stable we can include it in OSMC.

Make sure power management is actually off; you usually have to patch the driver to do this.

I’m interested in your process for getting it installed. I have the same USB adapter and the tutorials on the manufacturers website call for commands Raspbian has but OSMC have excluded.