• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: Problems building and inserting driver module for Ralink RT3070 (RT307X/RT3072)  (Read 5912 times)
mooreaa
Newbie
*

Karma: 0
Posts: 1


View Profile
« on: May 15, 2010, 08:19:02 PM »

Hello everyone,

I am new to the sheeva platform and I have been reading this site for several weeks finding it very resourceful. I'm trying to develop an application involving wifi for the SheevaPlug and have run into an issue with drivers and was hoping to get some feedback/help from the community.

I have a number of Ralink chipset 802.11n USB wifi devices (RT3070/RT3072 chipsets) that i wanted to test with my SheevaPlug (v1.3). I'm using an upgraded u-boot 3.4.27 - pingtoo patch.01 and Debian Linux running on 2.6.32.3-kirkwood kernel.

After downloading the driver source from Ralink's website I followed the notes (link) to add the MODULE_LICENSE("GPL") to the driver source to overcome one of the bugs. The driver compiles fine with the default make settings and I get a fully built RT3070STA.ko module.

However, when I go to install the module insmod RT3070STA.ko I get the error:

insmod: error inserting 'rt3070sta.ko': -1 Invalid module format

When I check the output of dmesg I see this:

[12633.806712] rt3070sta: unknown relocation: 3

I'm building from this version of the ralink source: DPO_RT3070_LinuxSTA_V2.3.0.2_20100412

Wondering if anyone else has had any luck or someone could point me in the right direction to resolve this issue.

Thank you,

Aaron

« Last Edit: May 15, 2010, 08:39:40 PM by mooreaa » Logged

bsmeets
Newbie
*

Karma: 0
Posts: 1



View Profile
« Reply #1 on: August 27, 2010, 10:56:11 AM »

Aaron,

I am having the same troubles on my sheevaplug. uname -r gives 2.6.32-5-kirkwood and I've succesfully downloaded (from ralinktech), adapted the files according to the instructions, and did make and make install resulting in a rt2870sta.ko. The vermagic of the .ko file matches the uname -r.

Because I'm no longer sure what driver the Linksys wusb54Gv3 needs, I also built  rt3070sta.ko.

I get the same errors as you posted back in May when I try to modprobe:


modprobe rt2870sta
WARNING: All config files need .conf: /etc/modprobe.d/cfg80211, it will be ignored in a future release.
FATAL: Error inserting rt2870sta (/lib/modules/2.6.32-5-kirkwood/kernel/drivers/net/wireless/rt2870sta.ko): Invalid module format

modprobe rt3070sta
WARNING: All config files need .conf: /etc/modprobe.d/cfg80211, it will be ignored in a future release.
FATAL: Error inserting rt3070sta (/lib/modules/2.6.32-5-kirkwood/kernel/drivers/net/wireless/rt3070sta.ko): Invalid module format

dmesg shows:
[73447.591695] rt2870sta: unknown relocation: 3
[73456.589486] rt3070sta: unknown relocation: 3

Did you solve the issue in the meantime (I see you've been struggling with it back in May)?

Bob
Logged

johnsoftek
Newbie
*

Karma: 0
Posts: 5


View Profile
« Reply #2 on: March 20, 2011, 04:42:23 AM »

One cause of this error ("unknown relocation: 3") when loading a kernel module on an arm machine is the GCC 4.4 compiler. See this post: http://forums.arm.com/index.php?/topic/8122-kernel-modulec-not-handling-r-arm-rel32/

The fix involves adding a few lines to the kernel Makefile.
Logged

Pages: [1]
Print
Jump to: