Hello juusso and thank you again for answerring me.
I spent the last 3 days trying to figure out what is not working with me, but I really need your help.
WiFi Dongle is up and running smoothly.
Here is where I get stuck:
Code: Select all
sudo make
[...big cut...]
/home/ale/Scrivania/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../os/linux/sta_ioctl.c: In function ‘RTMPIoctlE2PROM’:
/home/ale/Scrivania/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../os/linux/sta_ioctl.c:6035:1: warning: the frame size of 1344 bytes is larger than 1024 bytes [-Wframe-larger-than=]
}
^
cc1: some warnings being treated as errors
scripts/Makefile.build:258: set di istruzioni per l'obiettivo "/home/ale/Scrivania/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../os/linux/sta_ioctl.o" non riuscito
make[2]: *** [/home/ale/Scrivania/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../os/linux/sta_ioctl.o] Errore 1
Makefile:1420: set di istruzioni per l'obiettivo "_module_/home/ale/Scrivania/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux" non riuscito
make[1]: *** [_module_/home/ale/Scrivania/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux] Errore 2
make[1]: uscita dalla directory "/usr/src/linux-headers-4.4.0-83-generic"
Makefile:243: set di istruzioni per l'obiettivo "LINUX" non riuscito
make: *** [LINUX] Errore 2
of course, sudo make install doesn't work.
on the web forum linked in the SamyGo Using Non Samsung USB Dongles wiki, I read that:
Code: Select all
Newer kernels >= 2.6.35 will fail to compile (make) the driver because the driver makes use of the functions usb_buffer_alloc() and usb_buffer_free() which were renamed in kernel 2.6.35 .. so if during the next (make && make install) step it fails with this error:
Quote
make[2]: *** [/home/mark/Desktop/RT2870/os/linux/../../common/cmm_mac_usb.o] Error 1
make[1]: *** [_module_/home/mark/Desktop/RT2870/os/linux] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.35-27-generic'
make: *** [LINUX] Error 2
or similar.
The fix is to cd to the driver source directory (eg. 2010_0709_RT2870_Linux_STA_v2.4.0.1), and run the following 3 commands which will clean the build directory and replace the old calls with the new ones:
Code: [Select]
make clean
find . -name \*.[ch] -exec grep usb_buffer_alloc "{}" ";" -exec sed -i 's/usb_buffer_alloc/usb_alloc_coherent/g' "{}" ";"
find . -name \*.[ch] -exec grep usb_buffer_free "{}" ";" -exec sed -i 's/usb_buffer_free/usb_free_coherent/g' "{}" ";"
(hitting enter after each line)
Or, I've uploaded a pre-modified version of the driver that WILL compile on kernels >= 2.6.35 here:
2010_0709_RT2870_Linux_STA_v2.4.0.1.tar.bz2
Then carry on with the "sudo su" and "make && make install", as per the instructions below.
but even after running those three commands one by one, can't make and make install.
Can you help me please?
The big problem is that I cannot see any .ko files as well