RaLink-RT3290-Drivers-Ubuntu icon indicating copy to clipboard operation
RaLink-RT3290-Drivers-Ubuntu copied to clipboard

Can not compile the driver

Open StoleYourBike opened this issue 7 years ago • 23 comments

Can not compile the driver

StoleYourBike avatar Jan 15 '18 23:01 StoleYourBike

What's the error log?

the-dagger avatar Jan 15 '18 23:01 the-dagger

I don't have an error log, but i noticed the same issue when using either the kernel 4.13.0.25 or 4.13.0.26, while it had no problems with 4.10

mgabriell1 avatar Jan 17 '18 12:01 mgabriell1

same issue. I have the kernel 4.13.0.26

hellbago avatar Jan 17 '18 18:01 hellbago

@the-dagger Can you solve the problem?

hellbago avatar Jan 19 '18 13:01 hellbago

When I execute Run.sh without sudo, I get error Cannot extract src.tar.gz. With sudo, it just says installation unsuccessful. Running kernel 4.13

ThorodanBrom avatar Jan 27 '18 18:01 ThorodanBrom

Hi everyone, I no longer use Linux (Shifted to mac a while ago) so sadly won't be able to help with this. However, here's something related which I managed to find, hoping that it might help someone.

https://askubuntu.com/questions/973087/wifi-does-not-work-after-ubuntu-update-17-10

P.S. I will however try to boot my old ubuntu machine and see if I am able to get this to work.

the-dagger avatar Jan 28 '18 07:01 the-dagger

same issue. I have the kernel 4.15.0

big-data-bolivia avatar Nov 06 '18 22:11 big-data-bolivia

Is there any update on booting your old ubuntu machine? @the-dagger

LexiHDev avatar Nov 11 '18 20:11 LexiHDev

Here's a log of someone trying to compile it and it failing.

                 from /home/pavel/Загрузки/RaLink-RT3290-Drivers-Ubuntu-master/src/include/os/rt_linux.h:18,
                 from /home/pavel/Загрузки/RaLink-RT3290-Drivers-Ubuntu-master/src/include/rtmp_os.h:42,
                 from /home/pavel/Загрузки/RaLink-RT3290-Drivers-Ubuntu-master/src/include/rtmp_comm.h:56,
                 from /home/pavel/Загрузки/RaLink-RT3290-Drivers-Ubuntu-master/src/os/linux/../../os/linux/rt_linux.c:35:
/home/pavel/Загрузки/RaLink-RT3290-Drivers-Ubuntu-master/src/os/linux/../../os/linux/rt_linux.c: In function ‘__RTMP_OS_Init_Timer’:
./include/linux/timer.h:116:27: error: passing argument 2 of ‘init_timer_key’ from incompatible pointer type [-Werror=incompatible-pointer-types]
  init_timer_key((_timer), (_fn), (_flags), NULL, NULL)
                           ^
./include/linux/timer.h:132:2: note: in expansion of macro ‘__init_timer’
  __init_timer((timer), (callback), (flags))
  ^~~~~~~~~~~~
/home/pavel/Загрузки/RaLink-RT3290-Drivers-Ubuntu-master/src/os/linux/../../os/linux/rt_linux.c:126:9: note: in expansion of macro ‘timer_setup’
         timer_setup(pTimer, function, 0);
         ^~~~~~~~~~~
./include/linux/timer.h:81:6: note: expected ‘void (*)(struct timer_list *)’ but argument is of type ‘TIMER_FUNCTION {aka void (*)(long unsigned int)}’
 void init_timer_key(struct timer_list *timer,
      ^~~~~~~~~~~~~~
cc1: some warnings being treated as errors
scripts/Makefile.build:332: recipe for target '/home/pavel/Загрузки/RaLink-RT3290-Drivers-Ubuntu-master/src/os/linux/../../os/linux/rt_linux.o' failed
make[2]: *** [/home/pavel/Загрузки/RaLink-RT3290-Drivers-Ubuntu-master/src/os/linux/../../os/linux/rt_linux.o] Error 1
Makefile:1551: recipe for target '_module_/home/pavel/Загрузки/RaLink-RT3290-Drivers-Ubuntu-master/src/os/linux' failed
make[1]: *** [_module_/home/pavel/Загрузки/RaLink-RT3290-Drivers-Ubuntu-master/src/os/linux] Error 2
make[1]: 

LexiHDev avatar Nov 11 '18 20:11 LexiHDev

Same problem here (Ubuntu 18.04, kernel 4.15

$ sudo dkms install -m rt3290sta -v 2.6.0.0 --force

Creating symlink /var/lib/dkms/rt3290sta/2.6.0.0/source ->
                 /usr/src/rt3290sta-2.6.0.0

DKMS: add completed.

Kernel preparation unnecessary for this kernel.  Skipping...
applying patch rt3290sta.patch...patching file src/include/os/rt_linux.h
patching file src/Makefile
patching file src/os/linux/config.mk
patching file src/os/linux/Makefile.6
patching file src/os/linux/Makefile.clean
patching file src/os/linux/pci_main_dev.c
patching file src/os/linux/rt_linux.c
patching file src/tools/Makefile


Building module:
cleaning build area...
make -j8 KERNELRELEASE=4.15.0-39-generic -C src/ LINUX_SRC=/lib/modules/4.15.0-39-generic/build......(bad exit status: 2)
ERROR (dkms apport): binary package for rt3290sta: 2.6.0.0 not found
Error! Bad return status for module build on kernel: 4.15.0-39-generic (x86_64)
Consult /var/lib/dkms/rt3290sta/2.6.0.0/build/make.log for more information.

The content of make.log can be found here

frznn avatar Dec 03 '18 12:12 frznn

I think this is related: https://github.com/gnab/rtl8812au/issues/144

Maybe implementing the same patch might solve the issue.

frznn avatar Dec 03 '18 14:12 frznn

I implemented the patch. Working fine on my ASUS N56JN-CN086H, Ubuntu 18.04 with kernel 4.15.0-43-generic, but I'm a newbie in drivers. Feedback would be appreciated.

maurizak avatar Jan 13 '19 23:01 maurizak

That's great. I'll try it ASAP and let you know if it works.

fed-franz avatar Jan 31 '19 17:01 fed-franz

That's great. I'll try it ASAP and let you know if it works.

Did you get it to work?

reinzmet avatar Feb 28 '19 08:02 reinzmet

I did, but not with the patch. That didn't work for me. At some point it just started working again, but I'm not really sure how... Maybe some OS update did the trick... I'll be glad to share any config file you might need.

I'm currently running this driver: 'rt2800pci'. I don't know if that might help

fed-franz avatar Mar 08 '19 13:03 fed-franz

Oh okay, thanks man Can you please tell me the OS and kernel version where you got the card to work. At this point I’d be happy if it just worked on any distro.

reinzmet avatar Mar 18 '19 11:03 reinzmet

Ubuntu 18.04, kernel 4.15.0-46-generic

fed-franz avatar Mar 18 '19 14:03 fed-franz

Okay so I installed that, and indeed rt2800pci was my default driver. That still did not solve the problem though. Even "rfkill list" shows that the interface is hardware blocked. Any Ideas?

reinzmet avatar Mar 23 '19 13:03 reinzmet

Hi, I am unable to compile it on Ubuntu 18.04 with kernel 4.15.0-66-generic and here is the error:

In file included from ./include/linux/bitmap.h:9:0,
                 from ./include/linux/cpumask.h:12,
                 from ./arch/x86/include/asm/cpumask.h:5,
                 from ./arch/x86/include/asm/msr.h:11,
                 from ./arch/x86/include/asm/processor.h:21,
                 from ./arch/x86/include/asm/cpufeature.h:5,
                 from ./arch/x86/include/asm/thread_info.h:53,
                 from ./include/linux/thread_info.h:38,
                 from ./arch/x86/include/asm/preempt.h:7,
                 from ./include/linux/preempt.h:81,
                 from ./include/linux/spinlock.h:51,
                 from ./include/linux/seqlock.h:36,
                 from ./include/linux/time.h:6,
                 from ./include/linux/stat.h:19,
                 from ./include/linux/module.h:10,
                 from /home/deepankar/RaLink-RT3290-Drivers-Ubuntu/src/include/os/rt_linux.h:18,
                 from /home/deepankar/RaLink-RT3290-Drivers-Ubuntu/src/include/rtmp_os.h:42,
                 from /home/deepankar/RaLink-RT3290-Drivers-Ubuntu/src/include/rtmp_comm.h:56,
                 from /home/deepankar/RaLink-RT3290-Drivers-Ubuntu/src/os/linux/../../os/linux/sta_ioctl.c:33:
In function ‘memcpy’,
    inlined from ‘rt_ioctl_iwaplist’ at /home/deepankar/RaLink-RT3290-Drivers-Ubuntu/src/os/linux/../../os/linux/sta_ioctl.c:700:2:
./include/linux/string.h:343:4: error: call to ‘__read_overflow2’ declared with attribute error: detected read beyond size of object passed as 2nd parameter
    __read_overflow2();
    ^~~~~~~~~~~~~~~~~~
scripts/Makefile.build:330: recipe for target '/home/deepankar/RaLink-RT3290-Drivers-Ubuntu/src/os/linux/../../os/linux/sta_ioctl.o' failed
make[2]: *** [/home/deepankar/RaLink-RT3290-Drivers-Ubuntu/src/os/linux/../../os/linux/sta_ioctl.o] Error 1
Makefile:1577: recipe for target '_module_/home/deepankar/RaLink-RT3290-Drivers-Ubuntu/src/os/linux' failed
make[1]: *** [_module_/home/deepankar/RaLink-RT3290-Drivers-Ubuntu/src/os/linux] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.15.0-66-generic'
Makefile:380: recipe for target 'LINUX' failed
make: *** [LINUX] Error 2

Thanks in advance for any help.

deep110 avatar Nov 06 '19 12:11 deep110

ubuntu 19.10, cant compile :(

vastril4o avatar Feb 24 '20 19:02 vastril4o

Ubuntu 20.04 cant compile too

RogerFranca avatar Jul 16 '20 01:07 RogerFranca

if anyone get soln. ? please let us know

devbtc avatar Aug 05 '20 14:08 devbtc

if anyone get soln. ? please let us know

devbtc avatar Aug 05 '20 14:08 devbtc