Beagleboard-xm Wifi Issue (can see the wifi device by lsusb bot cannot make it work)

Hello,

Up to today, I have been tethering my phone’s 3g connection for my BeagleBoard-xM but today my friend gave me a usb wifi dongle and decided to use it from now on. However even though I can see the attached device:

root@beagleboard:~# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 002 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 002 Device 004: ID 1737:0078 Linksys

root@beagleboard:~# dmesg

[ 343.905029] usb 2-2.2: new high speed USB device using ehci-omap and address 4
[ 344.057891] usb 2-2.2: New USB device found, idVendor=1737, idProduct=0078
[ 344.064880] usb 2-2.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 344.072265] usb 2-2.2: Product: Linksys RangePlus Wireless Network USB Adapter
[ 344.079528] usb 2-2.2: Manufacturer: Cisco-Linksys LLC
[ 344.810485] Restoring csi2 context
[ 344.867797] twl_rtc twl_rtc: rtc core: registered twl_rtc as rtc0
[ 346.177886] Saving csi2 context
[ 358.598968] Bluetooth: Core ver 2.15
[ 358.603515] NET: Registered protocol family 31
[ 358.608062] Bluetooth: HCI device and connection manager initialized
[ 358.614440] Bluetooth: HCI socket layer initialized
[ 358.635070] Bluetooth: L2CAP ver 2.14
[ 358.638793] Bluetooth: L2CAP socket layer initialized
[ 358.658782] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[ 358.770202] NET: Registered protocol family 10
[ 358.830932] irda_init()
[ 358.830993] NET: Registered protocol family 23
[ 358.851196] IrCOMM protocol (Dag Brattli)
[ 358.946472] Bluetooth: RFCOMM TTY layer initialized
[ 358.951538] Bluetooth: RFCOMM socket layer initialized
[ 358.956695] Bluetooth: RFCOMM ver 1.11
[ 374.076477] usb0: no IPv6 routers present

I cannot even search for the available wireless networks:

root@beagleboard:~# iwlist scan
lo Interface doesn’t support scanning.

usb0 Interface doesn’t support scanning.

There does not exist a wlan0 connection:

root@beagleboard:~# ifconfig -a
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:492 (492.0 b) TX bytes:492 (492.0 b)

usb0 Link encap:Ethernet HWaddr FA:9D:F5:81:B0:C2
inet6 addr: fe80::f89d:f5ff:fe81:b0c2/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1492 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:54 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:15906 (15.5 KiB)

I tried “ifconfig wlan0 up”:

root@beagleboard:~# ifconfig wlan0 up
wlan0: unknown interface: No such device

I do not understand that, if I can see the usb wifi dongle with dmesg, then there does not exist a driver problem, right? However if a driver problem does not exist, then I should have had a wlan0 connection which I do not have currently. So can my problem be related to a driver issue or is it about my connection settings? Should I do something to enable wireless connections?

Could you please help me? I would appreciate any kind of help efforts.

Regards,
Amadeus

Couple things:

Did you install the firmware for this device?

(hint: its one of the rt*.bin for ralink from:
http://git.kernel.org/?p=linux/kernel/git/firmware/linux-firmware.git;a=tree
based on the vid/pid)

And did you have the modules installed?

lsmod

Regards,

Unfortunately I did not install any firmware for the device because I though if I can see the device at lsusb and dmesg outputs then I do not need any firmware. Do I?

I am using Linksys wusb100 v2. Could you please tell me which firmware I should install to the device? I really did not understand from the link you gave, which firmware is for what. Sorry for my ignorance.

Also here is another output:

root@beagleboard:~# ifup wlan0
Error for wireless request “Set Mode” (8B06) :
SET failed on device wlan0 ; No such device.
Error for wireless request “Set ESSID” (8B1A) :
SET failed on device wlan0 ; No such device.
wlan0: unknown interface: No such device
wlan0: unknown interface: No such device
wlan0 No such device

Internet Systems Consortium DHCP Client 4.1.1-P1
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

can’t create /var/lib/dhcp/dhclient.wlan0.leases: No such file or directory
SIOCSIFADDR: No such device
wlan0: unknown interface: No such device
wlan0: unknown interface: No such device
Bind socket to interface: No such device

If you did not get this software from ftp.isc.org, please
get the latest from ftp.isc.org and install that before
requesting help.

If you did get this software from ftp.isc.org and have not
yet read the README, please read it before requesting help.
If you intend to request help from the dhcp-server@isc.org
mailing list, please read the section on the README about
submitting bug reports and requests for help.

Please do not under any circumstances send requests for
help directly to the authors of this software - please
send them to the appropriate mailing list as described in
the README file.

exiting.
Failed to bring up wlan0.

Unfortunately I did not install any firmware for the device because I though
if I can see the device at lsusb and dmesg outputs then I do not need any
firmware. Do I?

Nope, lsusb just matches vid/pid to a usb database..

and dmesg, just reported it detected a device with vid/pid...

"lsmod" would give you the best indication..

I am using Linksys wusb100 v2. Could you please tell me which firmware I
should install to the device? I really did not understand from the link you
gave, which firmware is for what. Sorry for my ignorance.

That's the git repo on kernel.org that has ALL the firmware for most devices..

Honestly, i couldn't tell you which firmware to use, just that your missing it..

The easiest thing, would be to download every rt*.bin fimware in the
base directory from:

http://git.kernel.org/?p=linux/kernel/git/firmware/linux-firmware.git;a=tree

aka these:

-rw-r--r-- 8192 rt2561.bin blob | history | raw
-rw-r--r-- 8192 rt2561s.bin blob | history | raw
-rw-r--r-- 8192 rt2661.bin blob | history | raw
-rw-r--r-- 8192 rt2860.bin blob | history | raw
-rw-r--r-- 8192 rt2870.bin blob | history | raw
lrwxrwxrwx 10 rt3070.bin -> rt2870.bin blob | history | raw
-rw-r--r-- 4096 rt3071.bin blob | history | raw
lrwxrwxrwx 10 rt3090.bin -> rt2860.bin blob | history | raw
-rw-r--r-- 4096 rt3290.bin blob | history | raw
-rw-r--r-- 2048 rt73.bin blob | history | raw

and copy them to /lib/firmware/

Or really simply:

cd /lib/firmware/
git clone git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
.

Also here is another output:

root@beagleboard:~# ifup wlan0

wlan0 No such device

^driver isn't loaded...

Regards,

Probably it is not necessary but here is the including of linux-firmware: (seems like I downloaded everything)

root@beagleboard:/lib/firmware/linux-firmware# ls
3com iwlwifi-5000-1.ucode
GPL-3 iwlwifi-5000-2.ucode
LICENCE.Marvell iwlwifi-5000-5.ucode
LICENCE.OLPC iwlwifi-5150-2.ucode
LICENCE.agere iwlwifi-6000-4.ucode
LICENCE.atheros_firmware iwlwifi-6000g2a-5.ucode
LICENCE.broadcom_bcm43xx iwlwifi-6000g2a-6.ucode
LICENCE.chelsio_firmware iwlwifi-6000g2b-5.ucode
LICENCE.ene_firmware iwlwifi-6000g2b-6.ucode
LICENCE.i2400m iwlwifi-6050-4.ucode
LICENCE.iwlwifi_firmware iwlwifi-6050-5.ucode
LICENCE.mwl8335 kaweth
LICENCE.myri10ge_firmware keyspan
LICENCE.phanfw keyspan_pda
LICENCE.qla2xxx korg
LICENCE.ralink-firmware.txt lbtf_usb.bin
LICENCE.rtlwifi_firmware.txt lgs8g75.fw
LICENCE.tda7706-firmware.txt libertas
LICENCE.ti-connectivity matrox
LICENCE.ueagle-atm4-firmware mrvl
LICENCE.via_vt6656 mts_cdma.fw

LICENCE.xc5000 mts_edge.fw
LICENSE.dib0700 mts_gsm.fw
LICENSE.radeon mts_mt9234mu.fw
Makefile mts_mt9234zba.fw
README mwl8k
RTL8192E myri10ge_eth_z8e.dat
TDA7706_OM_v2.5.1_boot.txt myri10ge_ethp_z8e.dat
TDA7706_OM_v3.0.2_boot.txt myri10ge_rss_eth_z8e.dat
WHENCE myri10ge_rss_ethp_z8e.dat
acenic myricom
adaptec ositech
advansys phanfw.bin
agere_ap_fw.bin ql2100_fw.bin
agere_sta_fw.bin ql2200_fw.bin
ar3k ql2300_fw.bin
ar7010.fw ql2322_fw.bin
ar7010_1_1.fw ql2400_fw.bin
ar9170-1.fw ql2500_fw.bin
ar9170-2.fw qlogic
ar9271.fw r128
ath3k-1.fw radeon
ath6k rt2561.bin
atmsar11.fw rt2561s.bin
av7110 rt2661.bin
bnx2 rt2860.bin
bnx2x rt2870.bin
bnx2x-e1-4.8.53.0.fw rt3070.bin
bnx2x-e1-5.2.13.0.fw rt3071.bin
bnx2x-e1-5.2.7.0.fw rt3090.bin
bnx2x-e1h-4.8.53.0.fw rt3290.bin
bnx2x-e1h-5.2.13.0.fw rt73.bin
bnx2x-e1h-5.2.7.0.fw rtl_nic
brcm rtlwifi
cis s2250.fw
configure s2250_loader.fw
cpia2 sb16
cxgb3 slicoss
cxgb4 sun
dabusb sxg
dsp56k tehuti

dvb-fe-xc5000-1.6.114.fw ti-connectivity
dvb-usb-dib0700-1.20.fw ti_3410.fw
dvb-usb-terratec-h5-drxk.fw ti_5052.fw
e100 tigon
edgeport tlg2300_firmware.bin
emi26 tr_smctr.bin
emi62 ttusb-budget
ene-ub6250 ueagle-atm
ess usbdux
f2255usb.bin usbdux_firmware.bin
htc_7010.fw usbduxfast_firmware.bin
htc_9271.fw usbduxsigma_firmware.bin
i2400m-fw-usb-1.4.sbcf v4l-cx231xx-avcore-01.fw
i2400m-fw-usb-1.5.sbcf v4l-cx23418-apu.fw
i6050-fw-usb-1.5.sbcf v4l-cx23418-cpu.fw
intelliport2.bin v4l-cx23418-dig.fw
isci v4l-cx23885-avcore-01.fw
iwlwifi-100-5.ucode v4l-cx23885-enc.fw
iwlwifi-1000-3.ucode v4l-cx25840.fw
iwlwifi-1000-5.ucode vicam
iwlwifi-105-6.ucode vntwusb.fw
iwlwifi-135-6.ucode vxge
iwlwifi-2000-6.ucode whiteheat.fw
iwlwifi-2030-6.ucode whiteheat_loader.fw
iwlwifi-3945-2.ucode yam
iwlwifi-4965-2.ucode yamaha

Sorry for spamming but now I tried to install rt2870sta kernel module; RT2870/RT3070 Wireless Lan Linux Driver:

root@beagleboard:~# opkg install kernel-module-rt2870sta_2.6.39-r102o.9_beaglebo
ard.ipk
Installing kernel-module-rt2870sta (2.6.39-r102o.9) to root…
Collected errors:

  • satisfy_dependencies_for: Cannot satisfy the following dependencies for kernel-module-rt2870sta:
  • kernel-2.6.39 *
  • opkg_install_cmd: Cannot install package kernel-module-rt2870sta.

Is there a way to install that module to my current kernel version?

Robert, first of all I would like to thank you for spending time on my
problem and helping me:

I did as you said and here are the outputs:

root@beagleboard:~# cd /lib/firmware/
root@beagleboard:/lib/firmware# git clone
git://git.kernel.org/pub/scm/linux/ker
nel/git/firmware/linux-firmware.git
Initialized empty Git repository in /lib/firmware/linux-firmware/.git/

Crap, i knew that would happen after reading what i sent.. the "." at
the end turned to a new line..

mv /lib/firmware/linux-firmware/r*.bin /lib/firmware/

and they'll be in the right place. :wink:

(after moving them, you can remove /lib/firmware/linux-firmware/ to
save space..)

remote: Counting objects: 1817, done.
remote: Compressing objects: 100% (1116/1116), done.
remote: Total 1817 (delta 944), reused 1336 (delta 671)
Receiving objects: 100% (1817/1817), 34.25 MiB | 80 KiB/s, done.
Resolving deltas: 100% (944/944), done.
Checking out files: 100% (586/586), done.

root@beagleboard:/lib/firmware# ls
edgeport keyspan_pda mts_edge.fw ti_3410.fw whiteheat.fw
emi26 linux-firmware mts_gsm.fw ti_5052.fw whiteheat_loader.fw
emi62 mts_cdma.fw omap4 vicam

root@beagleboard:~# lsmod
Module Size Used by
rfcomm 33484 0
ircomm_tty 30305 0
ircomm 16429 1 ircomm_tty
irda 162973 2 ircomm_tty,ircomm
ipv6 249063 14
hidp 11193 0
l2cap 30104 4 rfcomm,hidp
bluetooth 49221 3 rfcomm,hidp,l2cap
rfkill 14838 1 bluetooth
minix 25759 0
mt9t112 9246 0

Regards,

Omg! I new that they should not be in that directory.

root@beagleboard:/lib/firmware# ls
edgeport mts_cdma.fw rt2561s.bin rt3071.bin ti_5052.fw
emi26 mts_edge.fw rt2661.bin rt3090.bin vicam
emi62 mts_gsm.fw rt2860.bin rt3290.bin whiteheat.fw
keyspan_pda omap4 rt2870.bin rt73.bin whiteheat_loader.fw
linux-firmware rt2561.bin rt3070.bin ti_3410.fw

But still my problem still exists:

root@beagleboard:~# iwlist scan
lo Interface doesn’t support scanning.

usb0 Interface doesn’t support scanning.

root@beagleboard:~# ifup wlan0
Error for wireless request “Set Mode” (8B06) :
SET failed on device wlan0 ; No such device.
Error for wireless request “Set ESSID” (8B1A) :
SET failed on device wlan0 ; No such device.
wlan0: unknown interface: No such device
wlan0: unknown interface: No such device
wlan0 No such device

Internet Systems Consortium DHCP Client 4.1.1-P1
Copyright 2004-2010 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

can’t create /var/lib/dhcp/dhclient.wlan0.leases: No such file or directory
SIOCSIFADDR: No such device
wlan0: unknown interface: No such device
wlan0: unknown interface: No such device
Bind socket to interface: No such device

If you did not get this software from ftp.isc.org, please
get the latest from ftp.isc.org and install that before
requesting help.

If you did get this software from ftp.isc.org and have not
yet read the README, please read it before requesting help.
If you intend to request help from the dhcp-server@isc.org
mailing list, please read the section on the README about
submitting bug reports and requests for help.

Please do not under any circumstances send requests for
help directly to the authors of this software - please
send them to the appropriate mailing list as described in
the README file.

exiting.
Failed to bring up wlan0.

root@beagleboard:~# lsmod
Module Size Used by
rfcomm 33484 0
ircomm_tty 30305 0
ircomm 16429 1 ircomm_tty
irda 162973 2 ircomm_tty,ircomm
ipv6 249063 14
hidp 11193 0
l2cap 30104 4 rfcomm,hidp
bluetooth 49221 3 rfcomm,hidp,l2cap
rfkill 14838 1 bluetooth
minix 25759 0
mt9t112 9246 0

Any ideas?

This got me on the path to success, I needed to copy the rtlwifi folder inside the git (linux-firmware/rtlwifi/) to /lib/firmware (/lib/firmware/rtlwifi/) for my wifi dongle (Edimax ew-7811un).

Lots of messing around with the /etc/network/interfaces file to get it to auto start wlan0 properly but I was able to successfully get a wifi ssh connection with no ethernet cable connected.

Hi,
i am having the same wifi issue with the beagleboard-xm. Can you please tell me which interface in /etc/network/interfaces did you use?
I have already copied all the required .bin files to the /lib/firmware/rtlwifi directory. But i still can,t see any light on the dongle nor any wifi connections.
Please help.