LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Insmod RTMP error (https://www.linuxquestions.org/questions/linux-newbie-8/insmod-rtmp-error-894220/)

gloridel 07-28-2011 02:27 AM

Insmod RTMP error
 
Hi I am still new to porting wifi drivers, and I am not sure if I posted this at the correct section. Since I am a newbie..

I am currently porting Ralink RT5370 driver, no problem with the compilation but when I execute insmod operation I got a lot of errors regarding RTMP which I have no idea where and what to fix.

this is a part of the error I got
Quote:

rt5370sta: Unknown symbol rausb_buffer_free
rt5370sta: Unknown symbol RtmpOsFreeSpinLock
rt5370sta: Unknown symbol RtmpOsPktHeadBufExtend
rt5370sta: Unknown symbol RtmpOSTaskNotifyToExit
rt5370sta: Unknown symbol RtmpOsGetNetDevName
rt5370sta: Unknown symbol RtmpOsHtonl
rt5370sta: Unknown symbol RtmpOsAtomicInterlockedExchange
rt5370sta: Unknown symbol RtmpUtilInit
rt5370sta: Unknown symbol RtmpOSTaskInit
rt5370sta: Unknown symbol RtmpOsAtomicInit

insmod: can't insert '/home/rt5370sta.ko': unknown symbol in module or invalid parameter

Based on the some forum that I've read, adding the MODULE_LICENSE("GPL") is one of the solution.

I did add it inside usb_main_dev.c and recompile but I still get the same errors.

If anybody has any idea , please....

gloridel 08-01-2011 01:52 AM

these errors were related to license issues and the new code structure of the current code that I have.

mwojnars 08-23-2011 05:06 AM

Hi
I had the same problem with Tenda W311M usb wifi, chinese crap. I had to debug the source code in the same way: correct license declarations. I did:

1) "grep MODULE_LICENSE" in os/linux/
2) there were 2 places found; I moved the license declarations out of ifdef's, so that they're always active - this helped.

Plus, I used these tips by chili555: ubuntuforums.org/showthread.php?t=1625657&page=13 - I don't know if this was important.
And I modified "config.mk" in 2 places ("y" instead of "n"), according to the readme (wpa_supplicant).

Note that so-called "manual" that came with Tenda was talking about different chipset, rt2870, not rt5370. And in general everything in this manual was either incorrect or outdated. Crap.


All times are GMT -5. The time now is 10:35 PM.