WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: wifi woes  (Read 5203 times)

Offline huffpuff

  • Jr. Member
  • **
  • Posts: 55
wifi woes
« on: February 10, 2011, 08:25:57 AM »
Hmmm, trouble here getting the edimax ew-7711uan usb wifi adapter driver compiled.

This adapter needs the ralink rt3070 [now rebadged as rt3370] the source for which I downloaded from the ralinktech support page.

Having installed the compiling metapackage for tc all went well until I hit an error which related to the lack of the Linux headers being installed. Once remedied the compiling went ahead without error except that when I went to insert the driver module with 'insmod' it yelped something about 'unknown symbols'...

At this point the trail went cold and intensive googling has only deepened the mystery.

Any help would be appreciated.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11586
Re: wifi woes
« Reply #1 on: February 10, 2011, 08:47:56 AM »
Hi huffpuff
This may or may not solve your problem but I believe you are supposed to use
modprobe, not insmod.
« Last Edit: February 10, 2011, 08:54:30 AM by Rich »

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: wifi woes
« Reply #2 on: February 10, 2011, 08:57:27 AM »
And doing a
Code: [Select]
sudo depmod -a first, after having installed the drivers to their path.

Edit: A proper path would probably be
Code: [Select]
ls -l /usr/local/lib/modules/`uname -r`/kernel/drivers/net/wireless
(where `uname -r`is the name of your kernel)
« Last Edit: February 10, 2011, 09:07:24 AM by tinypoodle »
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14796
Re: wifi woes
« Reply #3 on: February 10, 2011, 09:25:33 AM »
Once remedied the compiling went ahead without error except that when I went to insert the driver module with 'insmod' it

insmod would not install any depencies your module might have whereas modprobe would - the missing symbols error might be due to a missing dependent module

Offline huffpuff

  • Jr. Member
  • **
  • Posts: 55
Re: wifi woes
« Reply #4 on: February 10, 2011, 10:12:40 AM »
OK thnx

think I will re-compile but wondered if the makefile should not be tweaked? The relevant bit is:

Code: [Select]
ifeq ($(PLATFORM),PC)
# Linux 2.6
LINUX_SRC = /lib/modules/$(shell uname -r)/build
# Linux 2.4 Change to your local setting
#LINUX_SRC = /usr/src/linux-2.4
LINUX_SRC_MODULE = /lib/modules/$(shell uname -r)/kernel/drivers/net/wireless/
CROSS_COMPILE =
endif

just wondered if the 'usr/local' prefix should be added somewhere...

If not is it simply a matter of copying over the compiled driver module [rt3070sta.ko] to the path:
Code: [Select]
/usr/local/lib/modules/`uname -r`/kernel/drivers/net/wireless
then running 'depmod -a' and then 'modprobe'?

I have also copied the firmware file to /etc/Wireless/RT2870STA as instructed in the readme file.



Offline huffpuff

  • Jr. Member
  • **
  • Posts: 55
Re: wifi woes
« Reply #5 on: February 10, 2011, 02:51:10 PM »
Nope re-compiled & copied the resulting driver to:
Code: [Select]
/lib/modules/2.6.33.3-tinycore/kernel/drivers/net/usb
ran depmod -a to update modprobe.dep & then modprobe [driver] & still got
Code: [Select]
modprobe: can't load module rt3070sta (kernel/drivers/net/usb/rt3070sta.ko): unknown symbol in module, or unknown parameter
I'm stumped. Might have to put my Edimax up for sale.... >:(


Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11586
Re: wifi woes
« Reply #6 on: February 10, 2011, 03:55:16 PM »
Hi huffpuff
What does dmesg say after you try loading the module?

Offline huffpuff

  • Jr. Member
  • **
  • Posts: 55
Re: wifi woes
« Reply #7 on: February 10, 2011, 04:11:51 PM »
Hi Rich

Yup this is the gubbins of dmesg that refers to the driver:

Code: [Select]
nvidia 0000:03:00.0: PCI INT A -> Link[SGRU] -> GSI 23 (level, low) -> IRQ 23
nvidia 0000:03:00.0: setting latency timer to 64
vgaarb: device changed decodes: PCI:0000:03:00.0,olddecodes=io+mem,decodes=none:owns=io+mem
NVRM: loading NVIDIA UNIX x86 Kernel Module  260.19.21  Thu Nov  4 20:24:24 PDT 2010
HDA Intel 0000:00:08.0: power state changed by ACPI to D0
ACPI: PCI Interrupt Link [LAZA] enabled at IRQ 22
HDA Intel 0000:00:08.0: PCI INT A -> Link[LAZA] -> GSI 22 (level, low) -> IRQ 22
hda_intel: Disable MSI for Nvidia chipset
HDA Intel 0000:00:08.0: setting latency timer to 64
hda_codec: ALC662 rev1: BIOS auto-probing.
rt3070sta: Unknown symbol usb_alloc_urb
rt3070sta: Unknown symbol usb_free_urb
rt3070sta: Unknown symbol usb_register_driver
rt3070sta: Unknown symbol usb_put_dev
rt3070sta: Unknown symbol usb_get_dev
rt3070sta: Unknown symbol usb_submit_urb
rt3070sta: Unknown symbol usb_control_msg
rt3070sta: Unknown symbol usb_deregister
rt3070sta: Unknown symbol usb_kill_urb
rt3070sta: Unknown symbol usb_buffer_free
rt3070sta: Unknown symbol usb_buffer_alloc

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11586
Re: wifi woes
« Reply #8 on: February 10, 2011, 04:28:31 PM »
Sorry, I meant modprobe from a terminal and then check the last entries from dmesg.

Offline huffpuff

  • Jr. Member
  • **
  • Posts: 55
Re: wifi woes
« Reply #9 on: February 10, 2011, 05:01:19 PM »
yes Rich I did modprobe from a terminal and that is the last part of dmesg but fear ye not I have just tracked the prob to a missing reference to the driver 'license' in 'usb_main_dev.c' and also to the firmware file being misnamed. What are those ralink tech chaps playing at?

Now if a wicd built around python 2.7 is imminent I would be a happy chappy indeed.

BTW how does one get the driver module to persist across reboots?? Hmmm...

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11586
Re: wifi woes
« Reply #10 on: February 10, 2011, 05:14:53 PM »
Hi huffpuff
My mistake, the dmesg looked like it was in the middle of booting. So I guess you
need a MODULE_LICENSE("GPL") statement somewhere in the source. You need to
add a line to /etc/modprobe.conf but I'll let one of the smarter guys chime in with
the specifics.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11586
Re: wifi woes
« Reply #11 on: February 10, 2011, 05:22:36 PM »
Are you compiling the 2.2.1.0 or the 2.5.0.1 version?

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: wifi woes
« Reply #12 on: February 10, 2011, 05:43:05 PM »
BTW how does one get the driver module to persist across reboots?? Hmmm...

You could squash it incl. all parent dirs with mksquashfs and name it e.g. rt3370.tcz
« Last Edit: February 10, 2011, 07:55:54 PM by tinypoodle »
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline huffpuff

  • Jr. Member
  • **
  • Posts: 55
Re: wifi woes
« Reply #13 on: February 10, 2011, 09:13:22 PM »
Sorry Rich it's about 2:00am where I am and I'm fading out but to answer your query it is ver 2.5.0.1 & after pasting in the license thingy & renaming the dat file it has loaded into the kernel without so much as a burp. Thnx for your input though.

Tinypoodle [you're a big dog as far as I'm concerned] I'll give that a whirl. Thought! Would it be sensible to do likewise with the dat file for the firmware that resides in /etc/Wireless/RT3070STA/RT3070STA.dat as currently I restore it using the .filetool.lst? I'm thinking it needs to be around about the same time in the boot cycle...

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: wifi woes
« Reply #14 on: February 10, 2011, 10:14:36 PM »
Either could work..
But you could as well put both in one extension, if you plan to always use them in combination.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)