November 13, 2019, 10:13:25 pm

News:

Have you visited the Allwinner Chipset wiki? - http://linux-sunxi.org/


Using a USB WiFi adapter on the cubietruck

Started by Nexus, July 24, 2015, 02:30:17 am

Previous topic - Next topic

Nexus

Hello, I am having trouble getting a USB WiFi adapter working on the cubietruck. The WiFi adapter is a TP Link TL-WDN3200 and the cubietruck itself is running Linaro 13.04 with kernel 3.4.79. When I checked the usb devices that the board knows are attached it sees that there is a Ralink device which I believe to be the TP Link adapter but it still doesn't seem to be recognized.

Any advice would be greatly appreciated.

actkk2000

Is the onboard wifi adapter not working?  ???

Nexus

I have tried to get the onboard WiFi adapter to work, however nothing has actually gotten it function properly or at all really. No instructions that I could find have been descriptive enough or were to confusing to help get it working.

phelum

Quote from: Nexus on July 24, 2015, 02:30:17 am
Hello, I am having trouble getting a USB WiFi adapter working on the cubietruck. The WiFi adapter is a TP Link TL-WDN3200 and the cubietruck itself is running Linaro 13.04 with kernel 3.4.79. When I checked the usb devices that the board knows are attached it sees that there is a Ralink device which I believe to be the TP Link adapter but it still doesn't seem to be recognized.


Some Ralink devices need firmware loaded and perhaps you don't have the required file(s).  If you do 'lsusb' can you tell me the VID:PID (eight digit code, 1111:2222) for the device ?  From memory the RA5370 was popular and I think the firmware file had RT2870 in the name.

If you think the firmware is missing, run aptitude and find and select firmware-ralink.

My problems with the on-board wifi were mainly setting the GPIO pins correctly and loading the Broadcom firmware.  It all works now but it was a bit of work.

Cheers,
Steven

Nexus

Alright I checked using the lsusb command as you suggested and the 8 digit code is 148f:5572. I looked for the ralink firmware and there does not appear to be any firmware related ralink present at all. Every search attempt using apt, or synaptic found nothing.

slovenia

July 29, 2015, 01:49:16 am #5 Last Edit: July 29, 2015, 01:53:30 am by slovenia
I suggest you to stick with on board wifi if possible. It can be worse than than ;) Onboard is broadcom based which is, generally speaking, better quality than Realtek / Mediatek.

More info about your stick: most likely there is no support in kernel 3.4
https://wikidevi.com/wiki/TP-LINK_TL-WDN3200

The possible driver which is in this kernel but the ID is obviously unknown if it's not found.
rt2800usb

Here is an example how to add new ID.

And yes, you need a valid firmware too.
Debian and Ubuntu images with kernel 3.4.110, 4.3.3, 4.4
http://www.armbian.com

Nexus

@slovenia: I do agree that the on board WiFi is a better option, however I have never been able to get it working. There has been mention of loading the correct firmware and setting the GPIO pins in this thread but have had no success in trying to set up everything.

Do you happen to have any instructions that would get it working? if so it would be greatly appreciated.

phelum

Quote from: Nexus on July 30, 2015, 11:03:38 am
Do you happen to have any instructions that would get it working? if so it would be greatly appreciated.

If I mentioned GPIO pins earlier then I apologise because I was thinking of the bluetooth portion of the same IC.  I've had no problems getting wifi station mode to work; hostapd took a bit of work.

What kernel are you running ?
Is the wifi device detected (/sys/class/net/wlan0) ?
Does "iwlist wlan0" return a list of local access points ?

My /etc/network/interfaces stanza is :
auto wlan0
iface wlan0 inet dhcp
   wpa-conf /etc/wpa_supplicant/truck.conf

My truck.conf is :
ctrl_interface=/var/run/wpa_supplicant
country=AU
network={
  ssid="CubieTruck"
  scan_ssid=1
  key_mgmt=WPA-PSK
  psk="xxxxxxxxxxxx"
}

Cheers,
Steven

slovenia

QuoteDo you happen to have any instructions that would get it working? if so it would be greatly appreciated.


First dump / upgrade that old system. Can't recall which problems and solutions were there if any.

When you upgrade follow Steven instructions or check my network configuration /etc/network/interfaces @my image. All needed info is inside conf file.
Debian and Ubuntu images with kernel 3.4.110, 4.3.3, 4.4
http://www.armbian.com

Nexus

In response to Steven's question, no the WiFi device onboard the cubieboard does not seem to be working. The only thing that shows up is eth0, lo, and tunl0.The kernel version is 3.4.79.

phelum

Quote from: Nexus on August 05, 2015, 01:51:30 am
In response to Steven's question, no the WiFi device onboard the cubieboard does not seem to be working. The only thing that shows up is eth0, lo, and tunl0.The kernel version is 3.4.79.

If wlan0 doesn't show up then I'd suspect your kernel doesn't have the code required to recognise the device.  Can you download and try Igor's 3.4.107 kernel ?  I think your kernel is a bit old.

Cheers,
Steven

slovenia

Quote from: Nexus on August 05, 2015, 01:51:30 am
In response to Steven's question, no the WiFi device onboard the cubieboard does not seem to be working. The only thing that shows up is eth0, lo, and tunl0.The kernel version is 3.4.79.



http://mirror.igorpecovnik.com/Cubietruck_Ubuntu_4.1_trusty_3.4.108_desktop.zip
Try this image.

It has desktop, wifi is enabled, easy to connect. Tested.
Debian and Ubuntu images with kernel 3.4.110, 4.3.3, 4.4
http://www.armbian.com

Nexus

Ah Igors kernel seems to have done the trick. The onboard WiFi is definitely working now. Thanks!