WLAN driver not loaded by bone

Hi,

On my bone i am running the Ubuntu demo image.
When I plug in my wireless dwa-127 dongle nothing really happens.
Dmesg does show a USB device found and that it is a ralink
manufacturer but nothing is said about any driver being loaded. It
should be able to use the rt2800usb driver that as far as I can tell
is available in the image.
If I try to insmod this driver I get a lot of complaints in dmesg
about unknown symbols from rt2800usb.
It should also be able to use rt2870sta driver but this driver does
not seem to be available in the image. I could try to build it.

Does anyone know how to get Ubuntu to load the driver?

Hi,

On my bone i am running the Ubuntu demo image.
When I plug in my wireless dwa-127 dongle nothing really happens.
Dmesg does show a USB device found and that it is a ralink
manufacturer but nothing is said about any driver being loaded. It
should be able to use the rt2800usb driver that as far as I can tell
is available in the image.
If I try to insmod this driver I get a lot of complaints in dmesg
about unknown symbols from rt2800usb.

That's normal when you ismod that module directly..

use "sudo modprobe -v rt2800usb" to see what you forgot to load first..

It should also be able to use rt2870sta driver but this driver does
not seem to be available in the image. I could try to build it.

rt2870sta was ripped out of the mainline tree in the 3.0-rc cycle..

Does anyone know how to get Ubuntu to load the driver?

Another thing, what's the vid/pid of the dongle? just dump 'lsusb'

Regards,

Hi,

On my bone i am running the Ubuntu demo image.

When I plug in my wireless dwa-127 dongle nothing really happens.

Dmesg does show a USB device found and that it is a ralink

manufacturer but nothing is said about any driver being loaded. It

should be able to use the rt2800usb driver that as far as I can tell

is available in the image.

If I try to insmod this driver I get a lot of complaints in dmesg

about unknown symbols from rt2800usb.

That’s normal when you ismod that module directly…

use “sudo modprobe -v rt2800usb” to see what you forgot to load first…

ubuntu@omap:~$ sudo modprobe -v rt2800usb
[sudo] password for ubuntu:
insmod /lib/modules/3.2.0-psp6/kernel/net/rfkill/rfkill.ko
insmod /lib/modules/3.2.0-psp6/kernel/net/wireless/cfg80211.ko
insmod /lib/modules/3.2.0-psp6/kernel/net/mac80211/mac80211.ko
insmod /lib/modules/3.2.0-psp6/kernel/drivers/net/wireless/rt2x00/rt2x00lib.ko
insmod /lib/modules/3.2.0-psp6/kernel/drivers/net/wireless/rt2x00/rt2x00usb.ko
insmod /lib/modules/3.2.0-psp6/kernel/lib/crc-ccitt.ko
insmod /lib/modules/3.2.0-psp6/kernel/drivers/net/wireless/rt2x00/rt2800lib.ko
insmod /lib/modules/3.2.0-psp6/kernel/drivers/net/wireless/rt2x00/rt2800usb.ko
ubuntu@omap:~$

It should also be able to use rt2870sta driver but this driver does

not seem to be available in the image. I could try to build it.

rt2870sta was ripped out of the mainline tree in the 3.0-rc cycle…

Does anyone know how to get Ubuntu to load the driver?

Another thing, what’s the vid/pid of the dongle? just dump ‘lsusb’

ubuntu@omap:~$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 2001:3c1b D-Link Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
ubuntu@omap:~$

Regards,


Robert Nelson
http://www.rcn-ee.com/

– To join: http://beagleboard.org/discuss
To unsubscribe from this group, send email to:
beagleboard+unsubscribe@googlegroups.com
Frequently asked questions: http://beagleboard.org/faq

Hope this was what you asked for

It was just recently added in 3.3-rc's..

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commit;h=d42a179b941a9e4cc6cf41d0f3cbadd75fc48a89

Regards,

Hi,

On my bone i am running the Ubuntu demo image.

When I plug in my wireless dwa-127 dongle nothing really happens.

Dmesg does show a USB device found and that it is a ralink

manufacturer but nothing is said about any driver being loaded. It

should be able to use the rt2800usb driver that as far as I can tell

is available in the image.

If I try to insmod this driver I get a lot of complaints in dmesg

about unknown symbols from rt2800usb.

That's normal when you ismod that module directly..

use "sudo modprobe -v rt2800usb" to see what you forgot to load first..

ubuntu@omap:~$ sudo modprobe -v rt2800usb
[sudo] password for ubuntu:
insmod /lib/modules/3.2.0-psp6/kernel/net/rfkill/rfkill.ko
insmod /lib/modules/3.2.0-psp6/kernel/net/wireless/cfg80211.ko
insmod /lib/modules/3.2.0-psp6/kernel/net/mac80211/mac80211.ko
insmod
/lib/modules/3.2.0-psp6/kernel/drivers/net/wireless/rt2x00/rt2x00lib.ko
insmod
/lib/modules/3.2.0-psp6/kernel/drivers/net/wireless/rt2x00/rt2x00usb.ko
insmod /lib/modules/3.2.0-psp6/kernel/lib/crc-ccitt.ko
insmod
/lib/modules/3.2.0-psp6/kernel/drivers/net/wireless/rt2x00/rt2800lib.ko
insmod
/lib/modules/3.2.0-psp6/kernel/drivers/net/wireless/rt2x00/rt2800usb.ko
ubuntu@omap:~$

It should also be able to use rt2870sta driver but this driver does

not seem to be available in the image. I could try to build it.

rt2870sta was ripped out of the mainline tree in the 3.0-rc cycle..

Does anyone know how to get Ubuntu to load the driver?

Another thing, what's the vid/pid of the dongle? just dump 'lsusb'

ubuntu@omap:~$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 2001:3c1b D-Link Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
ubuntu@omap:~$

It was just recently added in 3.3-rc's..

rt2x00: Add support for D-Link DWA-127 to rt2800usb. - kernel/git/torvalds/linux.git - Linux kernel source tree

You mean that my best approach is to have some patience until the 3.3
is available?

Thanks a lot for your answer

Nah, why wait.. :wink:

https://github.com/RobertCNelson/linux-dev/commit/fbe78f3e7ce4a2c21e6ab86c60a6967de64d381f

git clone git://github.com/RobertCNelson/linux-dev.git
cd linux-dev
git checkout origin/am33x-v3.2 -b am33x-v3.2
./build_kernel.sh (follow it's error messages to fix things up)

Regards,

Hi,

On my bone i am running the Ubuntu demo image.

When I plug in my wireless dwa-127 dongle nothing really happens.

Dmesg does show a USB device found and that it is a ralink

manufacturer but nothing is said about any driver being loaded. It

should be able to use the rt2800usb driver that as far as I can tell

is available in the image.

If I try to insmod this driver I get a lot of complaints in dmesg

about unknown symbols from rt2800usb.

That's normal when you ismod that module directly..

use "sudo modprobe -v rt2800usb" to see what you forgot to load first..

ubuntu@omap:~$ sudo modprobe -v rt2800usb
[sudo] password for ubuntu:
insmod /lib/modules/3.2.0-psp6/kernel/net/rfkill/rfkill.ko
insmod /lib/modules/3.2.0-psp6/kernel/net/wireless/cfg80211.ko
insmod /lib/modules/3.2.0-psp6/kernel/net/mac80211/mac80211.ko
insmod
/lib/modules/3.2.0-psp6/kernel/drivers/net/wireless/rt2x00/rt2x00lib.ko
insmod
/lib/modules/3.2.0-psp6/kernel/drivers/net/wireless/rt2x00/rt2x00usb.ko
insmod /lib/modules/3.2.0-psp6/kernel/lib/crc-ccitt.ko
insmod
/lib/modules/3.2.0-psp6/kernel/drivers/net/wireless/rt2x00/rt2800lib.ko
insmod
/lib/modules/3.2.0-psp6/kernel/drivers/net/wireless/rt2x00/rt2800usb.ko
ubuntu@omap:~$

It should also be able to use rt2870sta driver but this driver does

not seem to be available in the image. I could try to build it.

rt2870sta was ripped out of the mainline tree in the 3.0-rc cycle..

Does anyone know how to get Ubuntu to load the driver?

Another thing, what's the vid/pid of the dongle? just dump 'lsusb'

ubuntu@omap:~$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 2001:3c1b D-Link Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
ubuntu@omap:~$

It was just recently added in 3.3-rc's..

rt2x00: Add support for D-Link DWA-127 to rt2800usb. - kernel/git/torvalds/linux.git - Linux kernel source tree

You mean that my best approach is to have some patience until the 3.3
is available?

Nah, why wait.. :wink:

add mainline cherry pick for D-Link-DWA-127-to-rt2800usb · RobertCNelson/linux-dev@fbe78f3 · GitHub

git clone git://github.com/RobertCNelson/linux-dev.git
cd linux-dev
git checkout origin/am33x-v3.2 -b am33x-v3.2
./build_kernel.sh (follow it's error messages to fix things up)

Regards,

I will give it a go and see if I can figure it out. First time I
compile a kernel and even change a kernel.
One thing though can I do this on the bone? I hate cross compiling :slight_smile:

Sure, but it'll take a little over 2G of space on your bone, and
around 5-6 hours..

voodoo@hades:/opt/github/linux-dev$ du -sh
619M .
voodoo@hades:/opt/git_repo/linux$ du -sh
1.3G .

Regards,

Hi,

On my bone i am running the Ubuntu demo image.

When I plug in my wireless dwa-127 dongle nothing really happens.

Dmesg does show a USB device found and that it is a ralink

manufacturer but nothing is said about any driver being loaded. It

should be able to use the rt2800usb driver that as far as I can tell

is available in the image.

If I try to insmod this driver I get a lot of complaints in dmesg

about unknown symbols from rt2800usb.

That's normal when you ismod that module directly..

use "sudo modprobe -v rt2800usb" to see what you forgot to load first..

ubuntu@omap:~$ sudo modprobe -v rt2800usb
[sudo] password for ubuntu:
insmod /lib/modules/3.2.0-psp6/kernel/net/rfkill/rfkill.ko
insmod /lib/modules/3.2.0-psp6/kernel/net/wireless/cfg80211.ko
insmod /lib/modules/3.2.0-psp6/kernel/net/mac80211/mac80211.ko
insmod
/lib/modules/3.2.0-psp6/kernel/drivers/net/wireless/rt2x00/rt2x00lib.ko
insmod
/lib/modules/3.2.0-psp6/kernel/drivers/net/wireless/rt2x00/rt2x00usb.ko
insmod /lib/modules/3.2.0-psp6/kernel/lib/crc-ccitt.ko
insmod
/lib/modules/3.2.0-psp6/kernel/drivers/net/wireless/rt2x00/rt2800lib.ko
insmod
/lib/modules/3.2.0-psp6/kernel/drivers/net/wireless/rt2x00/rt2800usb.ko
ubuntu@omap:~$

It should also be able to use rt2870sta driver but this driver does

not seem to be available in the image. I could try to build it.

rt2870sta was ripped out of the mainline tree in the 3.0-rc cycle..

Does anyone know how to get Ubuntu to load the driver?

Another thing, what's the vid/pid of the dongle? just dump 'lsusb'

ubuntu@omap:~$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 2001:3c1b D-Link Corp.
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
ubuntu@omap:~$

It was just recently added in 3.3-rc's..

rt2x00: Add support for D-Link DWA-127 to rt2800usb. - kernel/git/torvalds/linux.git - Linux kernel source tree

You mean that my best approach is to have some patience until the 3.3
is available?

Nah, why wait.. :wink:

add mainline cherry pick for D-Link-DWA-127-to-rt2800usb · RobertCNelson/linux-dev@fbe78f3 · GitHub

git clone git://github.com/RobertCNelson/linux-dev.git
cd linux-dev
git checkout origin/am33x-v3.2 -b am33x-v3.2
./build_kernel.sh (follow it's error messages to fix things up)

Regards,

I will give it a go and see if I can figure it out. First time I
compile a kernel and even change a kernel.
One thing though can I do this on the bone? I hate cross compiling :slight_smile:

Sure, but it'll take a little over 2G of space on your bone, and
around 5-6 hours..

voodoo@hades:/opt/github/linux-dev$ du -sh
619M .
voodoo@hades:/opt/git_repo/linux$ du -sh
1.3G .

Regards,

No problem thanks a lot

Just out of curiosity. Is the problem simply that the kernel does know
what driver to use based on those vid/pid values?

exactly... with usb drivers, there's a way to force a specific one,
but my google searching hasn't turned it up..

btw, i built up the uImage/modules, you can grab them here:
http://rcn-ee.homeip.net:81/testing/beaglebone/3.2-D-Link-DWA-127/

Regards,

Just out of curiosity. Is the problem simply that the kernel does know
what driver to use based on those vid/pid values?

exactly... with usb drivers, there's a way to force a specific one,
but my google searching hasn't turned it up..

Thanks that makes sense.

btw, i built up the uImage/modules, you can grab them here:
http://rcn-ee.homeip.net:81/testing/beaglebone/3.2-D-Link-DWA-127/

That is very kind of you I am looking forward to try this.
Is it just a matter of copying these to the right place on the sd?

Yeap, copy the *.uImage as "uImage" in your fat partition, and extract
the modules to the rootfs partition, like:

sudo tar xfv *-modules.tar.gz -C /media/rootfs/

Regards,

Just out of curiosity. Is the problem simply that the kernel does know
what driver to use based on those vid/pid values?

exactly... with usb drivers, there's a way to force a specific one,
but my google searching hasn't turned it up..

Thanks that makes sense.

btw, i built up the uImage/modules, you can grab them here:
http://rcn-ee.homeip.net:81/testing/beaglebone/3.2-D-Link-DWA-127/

That is very kind of you I am looking forward to try this.
Is it just a matter of copying these to the right place on the sd?

Yeap, copy the *.uImage as "uImage" in your fat partition, and extract
the modules to the rootfs partition, like:

sudo tar xfv *-modules.tar.gz -C /media/rootfs/

Thanks I will try this tomorrow.

Just out of curiosity. Is the problem simply that the kernel does know
what driver to use based on those vid/pid values?

exactly... with usb drivers, there's a way to force a specific one,
but my google searching hasn't turned it up..

Thanks that makes sense.

btw, i built up the uImage/modules, you can grab them here:
http://rcn-ee.homeip.net:81/testing/beaglebone/3.2-D-Link-DWA-127/

That is very kind of you I am looking forward to try this.
Is it just a matter of copying these to the right place on the sd?

Yeap, copy the *.uImage as "uImage" in your fat partition, and extract
the modules to the rootfs partition, like:

sudo tar xfv *-modules.tar.gz -C /media/rootfs/

This works great thank you very much.
Both normal an ad-hoc connections works great and master mode to use
it as an access point works almost perfect :slight_smile: