Firefly Open Source Community

   Login   |   Register   |
New_Topic
12
New Topic
Print Previous Topic Next Topic

[Linux] Need help with USB WIFI Adapter on ROC-RK3323-CC...

9

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
9

【Linux】 Need help with USB WIFI Adapter on ROC-RK3323-CC...

Posted at 8/29/2018 05:40:50      View:12164 | Replies:10        Print      Only Author   [Copy Link] 1#


I have spent many hours and am extremely frustrated. I installed image "ROC-RK3328-CC_Debian9-Arch64_20180525.img" on a new Renegade board and plugged in a compatible USB Wireless adapter "Ralink Technology, Corp. MT7601U Wireless Adapter" but when I run 'ifconfig -a' or 'iwconfig' I am only showing lo and eth0.

Everything looks right, can anyone help what I am missing???
apt-get install firmware-misc-nonfree (installed)
lsusb

Bus 001 Device 002: ID 148f:7601 Ralink Technology, Corp. MT7601U Wireless Adapter

root@renegade:/lib/firmware# find / -name mt7601u*
/lib/firmware/mt7601u.bin

root@renegade:/lib/firmware# find / -name mt7601u
/usr/src/linux-headers-4.4.114-00003-g78cbf59-dirty/drivers/net/wireless/mediatek/mt7601u
/lib/modules/4.4.114-00003-g78cbf59-dirty/kernel/drivers/net/wireless/mediatek/mt7601u

root@renegade:/lib/firmware# iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

root@renegade:/lib/firmware# ifconfig -a
eth0: flags=-28605<UP,BROADCAST,RUNNING,MULTICAST,DYNAMIC> mtu 1500
inet 192.168.5.108 netmask 255.255.255.0 broadcast 192.168.5.255
inet6 fe80::8cfd:79ff:fe5e:859 prefixlen 64 scopeid 0x20
ether 8e:fd:79:5e:08:59 txqueuelen 1000 (Ethernet)
RX packets 1899 bytes 189893 (185.4 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1558 bytes 574408 (560.9 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 38

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
loop txqueuelen 1 (Local Loopback)
RX packets 52 bytes 4769 (4.6 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 52 bytes 4769 (4.6 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

Here is the full 'dmesg': https://pastebin.com/J7xpz8Vk

Any guidance would be appreciated, thanks!
Reply

Use props Report

8

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
8
Posted at 8/30/2018 03:49:11        Only Author  2#
The OS's are experimental at this point. It is possible it is broken. Try updating through wired connection, it may fix things. If that doesn't do it, try a different OS.  I'm using Arrmbian booting off external HD on the USB 3.0 (very fast!). It's not perfect eg (video choppy, and wont run Kodi yet) Can't tell you if if wi/fi works thorough. I never use it. Wired is healthier for you and,faster.  I'm not connected to this site so, you my get better advice but, I see lots of unanswered posts here though.
Reply

Use props Report

9

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
9
Posted at 8/31/2018 15:53:23        Only Author  3#
I had luck using the image on here

[url=]http://share.loverpi.com/board/libre-computer-project/libre-computer-board-roc-rk3328-cc/image/ubuntu/[/url]

that wifi will work out of the box.

The problem with video acceleration still persists though.
Reply

Use props Report

18

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
18
Posted at 3/1/2019 06:34:46        Only Author  4#
Last edited by Scarcha In 3/1/2019 06:36 Editor

Hi!
Sorry for opening this post again, but I still have this problem. I tried with the image perello left there, but no `wlan` in ifconfig or anything else.
I read in another forum which drivers are already installed in ubuntu images (http://forum.loverpi.com/discuss ... 4-114-linux-headers) , and I bought a wifi dongle with a RTL8811AU chip, with no luck at all.

How have you managed to solve it?
I am completely lost...

Sorry again
Reply

Use props Report

1387

Credits

0

Prestige

0

Contribution

vip

Rank: 6Rank: 6

Credits
1387
Posted at 3/2/2019 16:18:29        Only Author  5#
@Scarcha

What's the kernel message when you plug in the wifi dongle?
Reply

Use props Report

18

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
18
Posted at 3/5/2019 06:07:34        Only Author  6#
Last edited by Scarcha In 3/5/2019 06:11 Editor
penguin Posted at 3/2/2019 16:18
@Scarcha

What's the kernel message when you plug in the wifi dongle?
This is the message for the RTL8811AU wifi dongle:
dmesg

[ 7919.892530] usb 4-1: new high-speed USB device number 3 using xhci-hcd
[ 7920.005845] usb 4-1: New USB device found, idVendor=0bda, idProduct=c811
[ 7920.005856] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 7920.005862] usb 4-1: Product: 802.11ac NIC
[ 7920.005868] usb 4-1: Manufacturer: Realtek
[ 7920.005873] usb 4-1: SerialNumber: 123456

I also installed the package rtl8812au-dkms, but the result it was the same as before:

```
firefly@firefly:~$ lsmod
Module                  Size  Used by
8812au               1019904  0

firefly@firefly:~$ uname -r
4.4.114

firefly@firefly:~$ lsusb
Bus 005 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 004 Device 003: ID 0bda:c811 Realtek Semiconductor Corp.     <---this is the wifi dongle
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 002: ID 046d:c062 Logitech, Inc. M-UAS144 [LS1 Laser Mouse]
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 04d9:a088 Holtek Semiconductor, Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
firefly@firefly:~$ iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

firefly@firefly:~$
```

For the TP-Link WIFI (chipset MT7610u) the message is the following:

```
[ 8803.151433] usb 4-1: new high-speed USB device number 4 using xhci-hcd
[ 8803.264833] usb 4-1: New USB device found, idVendor=2357, idProduct=011e
[ 8803.264844] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 8803.264849] usb 4-1: Product: 802.11ac WLAN Adapter
[ 8803.264855] usb 4-1: Manufacturer: Realtek
[ 8803.264861] usb 4-1: SerialNumber: 00e04c000001
```

With the same result as the previous one



Thanks in advance
Reply

Use props Report

1387

Credits

0

Prestige

0

Contribution

vip

Rank: 6Rank: 6

Credits
1387
Posted at 3/6/2019 16:07:48        Only Author  7#
@Scarcha

It turns out that RTL8812AU is supported out of box, and NOT RTL8811AU.

We do not have RTL8811AU at our hands. However, when looking up
Windows drivers, both RTL8812AU and RTL8811AU use the same one:

https://www.realtek.com/zh-tw/co ... /rtl8812au-software
https://www.realtek.com/zh-tw/co ... /rtl8811au-software

After installing the Windows driver,  the RTL8812AU dongle is recognized as
RTL8811AU.

Maybe, you can try to add the vid/pid to
kernel/drivers/net/wireless/rockchip_wlan/rtl8812au/os_dep/linux/usb_intf.c

and try it yourself.

Compiling instructions:
http://wiki.t-firefly.com/ROC-RK ... mpile_firmware.html
Reply

Use props Report

18

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
18
Posted at 3/9/2019 02:59:27        Only Author  8#
@penguin

Thank you very much for your help.

But I am afraid a noob in terms of modifying kernels.
What should I do exactly? Do I have to download a clean ubuntu image and then compile the kernel manually like the instructions of the webpage you have posted? But how can I add the drivers there?

Sorry
Reply

Use props Report

1387

Credits

0

Prestige

0

Contribution

vip

Rank: 6Rank: 6

Credits
1387
Posted at 3/12/2019 17:31:57        Only Author  9#
@Scarcha

We're gonna to buy the RTL8811AU dongle. Please be patient.
Reply

Use props Report

1387

Credits

0

Prestige

0

Contribution

vip

Rank: 6Rank: 6

Credits
1387
Posted at 3/14/2019 16:08:37        Only Author  10#
@Scarcha

Hard to get the right dongle. We buy the stated RTL8812AU dongle, but its VID/PID is:
  1. Bus 002 Device 002: ID 0bda:0811 Realtek Semiconductor Corp.
Copy the code


Never mind. We managed to add your dongle's 0bda:c811 to the kernel module
to see if it works for you.

Plz following these steps below:

1. Download  8812au.zip from attachment 8812au.zip (445.09 KB, Down times: 18)

2. Extract 8812au.ko from 8812au.zip

3. Copy 8812au.ko to the board

4. Move the kernel module to the system path:

  1. sudo cp 8812au.ko /lib/modules/4.4.114/kernel/drivers/net/wireless/rockchip_wlan/rtl8812au/
  2. sudo depmod -a
Copy the code
5. Check module installation by:

  1. grep C811 /lib/modules/4.4.114/modules.alias
  2. # should return:
  3. # alias usb:v0BDApC811d*dc*dsc*dp*ic*isc*ip*in* 8812au
Copy the code
6. Reboot your board to take effect.
  1. sudo reboot
Copy the code




Reply

Use props Report

Return to List
12
You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list