Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am following the below steps to get my wifi adaptor working. There is a patch which needs to be installed, I have not done this before and getting an error:

FIX FOR RALINK WLAN DRIVER:

  1. download driver 2 tar -xvf /home/ukbeast/USERNAME/Downloads/2011_1007_RT5390_RT5392_Linux_STA_V2.5.0.3_DPO_v2. bz2.bz2 3 cd 2011_1007_RT5390_RT5392_Linux_STA_V2.5.0.3_DPO 4 download patch http://gridlox.net/diff/rt5592sta_fix_64bit_3.8.patch 5 patch -p1

http://ubuntuforums.org/showthread.php?t=2138302

On step 7 (make) I start getting loads of errors, the last of which looks quite ominous.

    /home/adrian/2011_1007_RT5390_RT5392_Linux_STA_V2.5.0.3_DPO/os/linux/../../os/ing/pci_main_dev.c:346:13: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default]/home/adrian/2011_1007_RT5390_RT5392_Linux_STA_V2.5.0.3_DPO/os/linux/../../os/linux/pci_main_dev.c: At top level:
/home/adrian/2011_1007_RT5390_RT5392_Linux_STA_V2.5.0.3_DPO/os/linux/../../os/linux/pci_main_dev.c:493:13: warning: ‘rt2860_remove_one’ defined but not used [-Wunused-function]
  CC [M]  /home/adrian/2011_1007_RT5390_RT5392_Linux_STA_V2.5.0.3_DPO/os/linux/../../common/frq_cal.o
/home/adrian/2011_1007_RT5390_RT5392_Linux_STA_V2.5.0.3_DPO/os/linux/../../common/frq_cal.c: In function ‘FrequencyCalibration’:
/home/adrian/2011_1007_RT5390_RT5392_Linux_STA_V2.5.0.3_DPO/os/linux/../../common/frq_cal.c:197:18: warning: comparison of distinct pointer types lacks a cast [enabled by default]
/home/adrian/2011_1007_RT5390_RT5392_Linux_STA_V2.5.0.3_DPO/os/linux/../../common/frq_cal.c:210:18: warning: comparison of distinct pointer types lacks a cast [enabled by default]
/home/adrian/2011_1007_RT5390_RT5392_Linux_STA_V2.5.0.3_DPO/os/linux/../../common/frq_cal.c:226:18: warning: comparison of distinct pointer types lacks a cast [enabled by default]
/home/adrian/2011_1007_RT5390_RT5392_Linux_STA_V2.5.0.3_DPO/os/linux/../../common/frq_cal.c:251:18: warning: comparison of distinct pointer types lacks a cast [enabled by default]
/home/adrian/2011_1007_RT5390_RT5392_Linux_STA_V2.5.0.3_DPO/os/linux/../../common/frq_cal.c:264:18: warning: comparison of distinct pointer types lacks a cast [enabled by default]
/home/adrian/2011_1007_RT5390_RT5392_Linux_STA_V2.5.0.3_DPO/os/linux/../../common/frq_cal.c:280:18: warning: comparison of distinct pointer types lacks a cast [enabled by default]
  LD [M]  /home/adrian/2011_1007_RT5390_RT5392_Linux_STA_V2.5.0.3_DPO/os/linux/rt5390sta.o
  Building modules, stage 2.
  MODPOST 1 modules
WARNING: modpost: missing MODULE_LICENSE() in /home/adrian/2011_1007_RT5390_RT5392_Linux_STA_V2.5.0.3_DPO/os/linux/rt5390sta.o
see include/linux/module.h for more information
  LD [M]  /home/adrian/2011_1007_RT5390_RT5392_Linux_STA_V2.5.0.3_DPO/os/linux/rt5390sta.ko
make[1]: Leaving directory `/usr/src/linux-headers-3.8.0-23-generic'
cp -f /home/adrian/2011_1007_RT5390_RT5392_Linux_STA_V2.5.0.3_DPO/os/linux/rt5390sta.ko /tftpboot
cp: cannot create regular file ‘/tftpboot’: Permission denied
make: *** [LINUX] Error 1
adrian@adrian-X55C:~/2011_1007_RT5390_RT5392_Linux_STA_V2.5.0.3_DPO$
share|improve this question
    
For some reason can't add all the steps to create the patch. If you can be bothered please see post #4 on the ubuntuforums link –  Adrian May 31 '13 at 18:51
    
My guess is you have to run sudo make install –  bodhi.zazen May 31 '13 at 19:04
    
Hey. The geyser does say (which you can't see in my post): 7 make 8 sudo make install 9 modprobe rt5390sta. If I ignore step 7 (make) step 8 seems to work fine but falls over on step 9 with a "ERROR: could not insert 'rt5390sta': Operation not permi"tted –  Adrian May 31 '13 at 19:10
    
Please update your question to indicate which command gave that error. You may need sudo make although usually you do not need to run make as root. There is only one error in your post and it is a permissions problem. –  bodhi.zazen May 31 '13 at 19:13
    
Its very frustrating, when I edit my post I can see that I have listed all the steps and commands I used but everything after step 1 disappears after I save changes. –  Adrian May 31 '13 at 19:15
show 2 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.