D'link dwa-510 wireless SOLVED !

Getting your soundcard to work, using Debian on non-i386 hardware, etc

D'link dwa-510 wireless SOLVED !

Postby samharris » 2009-06-24 02:59

Hello:

I have installed a D'link dwa-510 wireless card on my desktop. It works fine on UBUNTU, however I prefer Debian, but I really need Wireless.

When I made "ifup wlan0" I obtain:

SIOCSIFFLAGS: Device or resurce busy

Some people recomends disable PnP at Bios, but my desktop Bios do not show such option, moreover the wireless card works fine on UBUNTU so I don't believe this is a BIOS problem.


Any help will be welcome
Last edited by samharris on 2009-06-24 18:54, edited 1 time in total.
samharris
 
Posts: 71
Joined: 2008-03-11 20:17

Re: D'link dwa-510 wireless Help

Postby julian67 » 2009-06-24 08:54

Nothing to do with PNP or the BIOS. You need the firmware. Your card uses a ralink chipset http://linux-wless.passys.nl/query_part.php?brandname=D-Link so install from non-free firmware-ralink and it will work.

The driver is already in the kernel so don't get distracted with that, just install the firmware.
Wisdom from my inbox: "do not mock at your pottenocy"
User avatar
julian67
 
Posts: 4648
Joined: 2007-04-06 14:39
Location: Just hanging around

Re: D'link dwa-510 wireless Help

Postby aspnair » 2009-06-24 10:06

From the link julian67 has sent, it looks like your wireless card uses ralink rt61 chipset.
You may try

Code: Select all
apt-get install firmware-ralink


I do have a wireless USB card based on rt73 chipset. It started working when I installed this package.
Compressed Air Energy Storage, Entropy and Efficiency
http://saurorja.org/2012/06/18/compress ... fficiency/
User avatar
aspnair
 
Posts: 1247
Joined: 2009-06-18 12:27
Location: Twitter: @anand_sivaram

Re: D'link dwa-510 wireless Help

Postby samharris » 2009-06-24 14:10

Unfortunatelly I already do that:

Before I obtain something like:

SIOCSIFFLAGS: No such file (or some thing similar)

After reading on some forums I made what you say..

#apt-get install firmware-ralink

From then I obtain the message that post before:

SIOCSIFFLAGS: Device or resurce busy

Acording some forum I even made a copy paste from Ubuntu firmware to Debian Firmware but obtain the same.
samharris
 
Posts: 71
Joined: 2008-03-11 20:17

Re: D'link dwa-510 wireless Help

Postby smallchange » 2009-06-24 14:22

What does ifconfig -a show?
smallchange
 
Posts: 1740
Joined: 2009-05-04 15:56

Re: D'link dwa-510 wireless Help

Postby julian67 » 2009-06-24 14:22

samharris wrote:Acording some forum I even made a copy paste from Ubuntu firmware to Debian Firmware but obtain the same.

I have no idea what that means but it doesn't sound good....

Anyway after you install the firmware you need to reload the driver or reboot. To check what driver your card uses run
Code: Select all
lspci -k
and you should see the device listed and on the line below see "Kernel driver in use: <some_driver>"

Then as root unload and reload the driver. I expect you're going to find the driver is rt61, in which case:

Code: Select all
# modprobe -r rt61 && modprobe rt61


restart the networking:
Code: Select all
# /etc/init.d/networking restart


If you use network-manager then restart that too:
Code: Select all
# /etc/init.d/network-manager restart


or just reboot.
Wisdom from my inbox: "do not mock at your pottenocy"
User avatar
julian67
 
Posts: 4648
Joined: 2007-04-06 14:39
Location: Just hanging around

Re: D'link dwa-510 wireless Help

Postby samharris » 2009-06-24 17:14

Dear Friends:

Thanks a lot for your help, my problem is solved DWA-510 works perfectly on Debian Lenny, I think that the problem is I didn't reboot my PC after hardware instalation (oops!), today is all right, but for those friends that still can't install DWA-510 successfully here are the instructions:


#lspci -k (this show your DWA-510 and kernel modules asociated you do not need to download or compile D'link driver !! don't loose your time)

01:06.0 Network controller: RaLink RT2561/RT61 rev B 802.11g
Kernel driver in use: rt61pci
Kernel modules: rt61pci

#apt-get install wireless-tools
#iwconfig (this will show your wifi card status)

wlan0 IEEE 802.11 ESSID:""
Mode:Managed Frequency:2.412 GHz Access Point: Not-Associated
Tx-Power=0 dBm
Retry min limit:7 RTS thr:off Fragment thr=2352 B
Encryption key:off
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

Now you need to configure /etc/network/interfaces like this (you can do this with graphics tools like gnome network manager too):

iface wlan0 inet static
address 192.168.0.xx
netmask 255.255.255.0
gateway 192.168.0.1
wireless-key s:mywepsharedkey
wireless-essid mywifinetwork
auto wlan0

Now try to bring your wifi up (don't worry it will not work, keep reading)

# ifup wlan0
SIOCSIFFLAGS: No such file or directory
SIOCSIFFLAGS: No such file or directory
Failed to bring up wlan0.

Don't worry, now you need to install the ralink firmware, this is at a non free repository, add this entry to your /etc/apt/sources.list file (this info is at http://www.debian.org):

deb http://ftp.de.debian.org/debian lenny main non-free

Now do this:

#apt-get update (you need internet access by eth0 interface or similar)
#apt-get install firmware-ralink

this install some files at /lib/firmware, before this probably there where nothing.

reboot your machine (don't forget this o you will no be able to connect even wifi is up)

#reboot

now you can configure your network as always, if you want to know if your wifi is up do this:

#iwlist wlan0 scan

And you will see many information about many wifi's around you.


Hope this help another people.

Thanks a lot to those who colaborate with me.

Regards from Chile.
samharris
 
Posts: 71
Joined: 2008-03-11 20:17

Re: D'link dwa-510 wireless Help

Postby julian67 » 2009-06-24 17:31

Glad it worked out. You can edit the title of your original post and add [solved]. This will help the next person.
Wisdom from my inbox: "do not mock at your pottenocy"
User avatar
julian67
 
Posts: 4648
Joined: 2007-04-06 14:39
Location: Just hanging around


Return to Hardware

Who is online

Users browsing this forum: No registered users and 6 guests

fashionable