I have had a Pine64 since a while ago and just a few days ago I finally tried to turn it on! xD I plan to use it as a main home router since it has a gigabit ethernet.. well scrap that, I think I found a better device for that. Anyway, I still want to use it but now as another kind of (wireless) router that will route and bridge all my tiny bitty wireless devices based on ESP8266. I intentionally wanted to have them separated from the main home network.
So, also a while ago, I bought a USB wireless dongle because I didn’t buy the WiFi module from Pine64 guys. Apparently the dongle uses a Realtek chipset, RTL8188CUS. I plugged the device into my Pine64 and then.. nothing xD nothing showed up on the
ifconfig -a device list. Ah, I used the Debian Base (Debian Base (3.10.102 BSP 2) to be precise) distribution for the Pine64 btw.
Google around, and I found a page on Debian Wiki that says I would need to have
rtl8192cu module loaded. Sure enough, it’s not there. The search continued, this time with a more specific keyword. I then ended up on a GitHub page and looks like some is having a similar problem as mine. After trying here and there I finally made the device showed up! I haven’t configured it thogh.. but anyway.. here’s what I did.
Apparently I had to upgrade the kernel of the Debian installed on the Pine64. It used to use Linux
3.10.65-7-pine64-longsleep. After the upgrade, it changed to
3.10.104-1-pine64-longsleep. What I had to do was just running the following command.
$ sudo pine64_update_kernel.sh
The script should come already with the distribution. It will download, verify, and install a new kernel. After it finished, you will be asked to restart the device.
I tried to replug the USB dongle and nothing still showed up. I check the log using
journalctland found the following message.
Nov 19 04:20:28 localhost.localdomain kernel: usb 2-1: new high-speed USB device number 3 using sunxi-ehci Nov 19 04:20:28 localhost.localdomain kernel: rtl8192cu: Chip version 0x10 Nov 19 04:20:28 localhost.localdomain kernel: rtl8192cu: MAC address: 01:23:455:67:89:0a Nov 19 04:20:28 localhost.localdomain kernel: rtl8192cu: Board Type 0 Nov 19 04:20:28 localhost.localdomain kernel: rtlwifi: rx_max_size 15360, rx_urb_num 8, in_ep 1 Nov 19 04:20:28 localhost.localdomain kernel: rtl8192cu: Loading firmware rtlwifi/rtl8192cufw_TMSC.bin Nov 19 04:20:28 localhost.localdomain kernel: rtlwifi: Loading alternative firmware rtlwifi/rtl8192cufw.bin Nov 19 04:20:28 localhost.localdomain kernel: rtlwifi: Firmware rtlwifi/rtl8192cufw_TMSC.bin not available
Looked like the kernel finally recognized the device but it could not continue to activate it because it did not have and could not load the suitable firmware.
After I checked the GitHub page again, one comment there says I need to install a package named
linux-firmware. So that’s what I did next.
$ sudo apt-get install linux-firmware
- I then tried the dongle again.. now it seemed to be a success! If I typed
ipconfig -a, I could see a new device albeit with a weird naming:
So.. the setup can now continue. Hope this helps.