OldWizard
Posts: 6
Joined: Mon Apr 01, 2013 3:49 pm

Wireless (Yet Again)

Fri Apr 05, 2013 2:39 am

Trying to get a D-Link WUA-2340 installed on a new Pi running Arch Linux. Searched quite a few of the recent posts on wireless but still not quite getting the picture. Know that I need to set netcfg to bring up both eth0 & wlan0, but not seeing how to set up for the D-Link in the USB and "Creating" the wlan0 Device on the system. Any help?

OldWizard
Posts: 6
Joined: Mon Apr 01, 2013 3:49 pm

Re: Wireless (Yet Again)

Fri Apr 05, 2013 6:46 am

Shows up under lsusb but not under lsmod

Code: Select all

[root@KensRaspberry ~]# lsusb
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp. LAN9500 Ethernet 10/100 Adapter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. 
Bus 001 Device 004: ID 07d1:3a08 D-Link System WUA-2340 RangeBooster G Adapter(rev.A) (no firmware) [Atheros AR5523]
Bus 001 Device 005: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
[root@KensRaspberry ~]# lsmod
Module                  Size  Used by
ipv6                  297874  14 
spidev                  5232  0 
btusb                  11607  0 
bluetooth             193715  2 btusb
leds_gpio               2275  0 
led_class               3586  1 leds_gpio
spi_bcm2708             4542  0 
i2c_bcm2708             3759  0 
snd_bcm2835            15903  0 
snd_pcm                77452  1 snd_bcm2835
snd_page_alloc          5177  1 snd_pcm
snd_timer              19790  1 snd_pcm
snd                    58415  3 snd_bcm2835,snd_timer,snd_pcm
bcm2708_rng             1021  0 
rng_core                3856  1 bcm2708_rng

pepedog
Posts: 1043
Joined: Fri Oct 07, 2011 9:55 am

Re: Wireless (Yet Again)

Fri Apr 05, 2013 9:32 am

Are you plugging this into a powered hub? It looks high powered and needs to be

OldWizard
Posts: 6
Joined: Mon Apr 01, 2013 3:49 pm

Re: Wireless (Yet Again)

Fri Apr 05, 2013 2:02 pm

Main problem is how to get driver SW and turn on wlan0.

pepedog
Posts: 1043
Joined: Fri Oct 07, 2011 9:55 am

Re: Wireless (Yet Again)

Fri Apr 05, 2013 3:23 pm

Plug in stick

Code: Select all

tail dmesg
Is it plugged into powered hub? If not, how many mA does stick draw?

OldWizard
Posts: 6
Joined: Mon Apr 01, 2013 3:49 pm

Re: Wireless (Yet Again)

Fri Apr 05, 2013 9:04 pm

Clips from dmesg:

[ 3.406189] usb 1-1.2: new high-speed USB device number 4 using dwc_otg
[ 3.507789] usb 1-1.2: New USB device found, idVendor=07d1, idProduct=3a08
[ 3.507818] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 3.507835] usb 1-1.2: Product: USB WLAN Device
[ 3.507850] usb 1-1.2: Manufacturer: Atheros Communications Inc
[ 3.507865] usb 1-1.2: SerialNumber: 1.0

[ 11.101181] systemd-modules-load[63]: Failed to find module 'rt2870'

[ 16.363824] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 17.521623] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 17.523939] smsc95xx 1-1.1:1.0: eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1

Device is old and made to be plugged into early USB sockets, before there were iPads.

MacTzu
Posts: 9
Joined: Wed Sep 12, 2012 11:12 am

Re: Wireless (Yet Again)

Sat Apr 06, 2013 11:17 am

Hey OldWizard,

So from your post it seems that the kernel recognises the hardware. You have noted the driver which you have installed (I assume that you have installed the driver ?) .

Your dmesg says "missing rt2870" so looks like you have a driver issue of some kind. It is hard for me because at the mo I am in between distros. But the driver may only be in AUR or at least that is what i read in the normal arch wiki. I am not sure how familar you are with arch so forgive me if you already know this.

For newcomers to arch you can build your own packages (yay!). But is can be a bit of a hassle. So I recommend installed "yaourt" which is kind of a auto builder.
https://wiki.archlinux.org/index.php/Yaourt

However because AURS is setup for x86 and x86_64 you need to make some changes. As part of yaourt its allows you to edit the PKGBUILD. You need to make sure that you where file says "arch=" that you say arm instead of x86 or other entries. (fyi I have successfully rebuilt razor-qt with this method)

Good luck

Lemme know how you go

OldWizard
Posts: 6
Joined: Mon Apr 01, 2013 3:49 pm

Re: Wireless (Yet Again)

Sat Apr 06, 2013 6:03 pm

MacTzu:

Thanks for the help. Not sure HOW to add the driver for this. Arch does seem to have one for the WUA-2340 but trying to find the "Current" right method is like looking for a needle in a needle stack (Ouch). Any help on this end of the problem?

Output from ifconfig: (Note: No wlan0)

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.21 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::ba27:ebff:fe29:65fe prefixlen 64 scopeid 0x20<link>
ether b8:27:eb:29:65:fe txqueuelen 1000 (Ethernet)
RX packets 140022 bytes 44902178 (42.8 MiB)
RX errors 0 dropped 100 overruns 0 frame 0
TX packets 22887 bytes 2263657 (2.1 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 16436
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 0 (Local Loopback)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

I have /etc/conf.d/netcfg edited to show both "Wired" and "Wireless" network.
NETWORKS=(ethernet-dhcp wireless-wpa)

pepedog
Posts: 1043
Joined: Fri Oct 07, 2011 9:55 am

Re: Wireless (Yet Again)

Sat Apr 06, 2013 10:18 pm

I googled about for WUA-2340 and conclusion is to get it working with ndiswrapper.
So you are out of luck, arm can't do ndiswrapper

OldWizard
Posts: 6
Joined: Mon Apr 01, 2013 3:49 pm

Re: Wireless (Yet Again)

Sun Apr 07, 2013 3:31 am

Sites I found showed D-Link WUA-2340 uses rt2870. May have gotten that wrong.

How DO I set a driver for a USB WiFi under Arch and how do I find WHICH driver to set up?

drirr
Posts: 54
Joined: Sun Sep 09, 2012 8:06 am

Re: Wireless (Yet Again)

Sun Apr 07, 2013 7:28 am

From what I can see on the ath5k and ath9k pages, neither of them support your module. According to what I've found on google, you want the "ar5523" driver as mentioned here. Googling for that driver tells me it's available since Linux 3.8. The Debian wiki also suggests the ar5523 module with suggestions on how to build it for Debian. You could try to checkout the source on your rpi and see if it builds.

- EDIT -
Scratch that last part, it seems like that svn-repo only contain Debian patches and not the actual source code.

The code is available in the kernel tree: https://git.kernel.org/cgit/linux/kerne ... inux-3.8.y. As well as in the RPi 3.8-tree: https://github.com/raspberrypi/linux/tr ... ath/ar5523. So I'd suggest waiting for the 3.8-kernel, or try building it yourself.

- EDIT2 -
OldWizard wrote:How DO I set a driver for a USB WiFi under Arch and how do I find WHICH driver to set up?
To load a driver in Linux that's built as a module you just run "modprobe <module_name>". You hardly ever need to do that though, the kernel will auto-load modules for you as needed.

As for how to find the correct module, using lspci/lsusb to find the vendor and product id and then google those. These are the ones I'm talking about (from your dmesg output):
[ 3.507789] usb 1-1.2: New USB device found, idVendor=07d1, idProduct=3a08
Just google for "Linux 07d1:3a08" and hopefully you'll find the information you need.
Raspberry Pi (rev 000f, 512MB RAM) with heatsinks and a modmypi case running Arch Linux ARM (armv6h) hooked up to a 750GB 2.5" USB-harddrive

daviddave
Posts: 39
Joined: Sat Apr 06, 2013 9:47 am

Re: Wireless (Yet Again)

Wed Apr 10, 2013 3:51 am

If It that doesn't work try element14 wi-pi driver that should work.

bitcoinminer
Posts: 2
Joined: Thu Mar 20, 2014 10:26 pm

Re: Wireless (Yet Again)

Thu Mar 20, 2014 10:31 pm

wait so can some one tell me all the code that is needed to import into the RP so that i can make my bitcoin miner wirreless by connecting the D-Link

bitcoinminer
Posts: 2
Joined: Thu Mar 20, 2014 10:26 pm

Re: Wireless (Yet Again)

Fri Mar 21, 2014 9:02 pm

hey you guys reading this post there are about 100 of you every day once one of you find out the code or solution please post a reply that includes a download link or the code. not only will it help me but every one who views this forum every day

Return to “Arch”