You are not logged in.

#1 2015-03-22 20:50:37

jackpot
Member
From: Riyadh, Saudi Arabia
Registered: 2014-08-18
Posts: 86

Compining error RT2870/RT3070 Wireless Adapter

I am trying to compile RT2870/RT3070 usb-dongle driver from source downloaded from Mediatek because of performance issues mainly frequent disconnections and slow speed at times.

I have followed instructions from an old thread here. Changed cpu flag from i686 (default) to "x86_64" (sans quotes) and "mpreferred-stack-boundary" to 4.

Compilation starts but interrupts with an error in mid:

/home/compiling/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../sta/sta_cfg.c: In function 'set_quality':
/home/compiling/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../sta/sta_cfg.c:5548:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
  BOOLEAN bInitial = FALSE;
  ^
cc1: some warnings being treated as errors
scripts/Makefile.build:257: recipe for target '/home/compiling/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../sta/sta_cfg.o' failed
make[2]: *** [/home/compiling/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../sta/sta_cfg.o] Error 1
Makefile:1382: recipe for target '_module_/home/compiling/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux' failed
make[1]: *** [_module_/home/compiling/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux] Error 2
make[1]: Leaving directory '/usr/lib/modules/3.19.2-1-ARCH/build'
Makefile:388: recipe for target 'LINUX' failed
make: *** [LINUX] Error 2

Following are details:

1. Kernel

Linux arch 3.19.2-1-ARCH #1 x86_64 GNU/Linux

2. Build support packages

linux-headers-3.19.2-1
abs-2.4.4-2

3. My questions

a. How to fix these error?
b. Will I have to recompile head each time whenever kernel gets updated? (I think yes).

Thank you.


KDE is all good bloated, try to trim away from K*.apps... whatever it leaves behind equals "Kuck yourself!"
nVidia.... fsck sdy0

Offline

#2 2015-03-22 22:01:41

MoonSwan
Member
From: Great White North
Registered: 2008-01-23
Posts: 881

Re: Compining error RT2870/RT3070 Wireless Adapter

I can't help with your complilation error but could you perhaps update this PKGBUILD from the AUR:https://aur.archlinux.org/packages/rt2870/

Might work better than compiling from source.

Offline

#3 2015-03-23 21:15:21

jackpot
Member
From: Riyadh, Saudi Arabia
Registered: 2014-08-18
Posts: 86

Re: Compining error RT2870/RT3070 Wireless Adapter

Thanks for answer. I tried from AUR pkbuild using makepkg, compilation is break with same error. I think I am unable to manage architecture.

cc1: some warnings being treated as errors
scripts/Makefile.build:257: recipe for target '/home/smt/Downloads/rt2870/src/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../os/linux/sta_ioctl.o' failed
make[2]: *** [/home/smt/Downloads/rt2870/src/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux/../../os/linux/sta_ioctl.o] Error 1
Makefile:1382: recipe for target '_module_/home/smt/Downloads/rt2870/src/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux' failed
make[1]: *** [_module_/home/smt/Downloads/rt2870/src/2010_0709_RT2870_Linux_STA_v2.4.0.1/os/linux] Error 2
make[1]: Leaving directory '/usr/lib/modules/3.19.2-1-ARCH/build'
Makefile:243: recipe for target 'LINUX' failed
make: *** [LINUX] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

KDE is all good bloated, try to trim away from K*.apps... whatever it leaves behind equals "Kuck yourself!"
nVidia.... fsck sdy0

Offline

Board footer

Powered by FluxBB