Compiling for newbies

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help

Compiling for newbies

Postby payne987 on Thu Nov 19, 2009 11:36 am

Hi.....

I'm from Serbia.......and as u presume i am new to linux os!Never used it before in my life......well, actually tried ubuntu once, but i didnt like all that orange colour(yeah i know it sounds stupid....:)) and i wasnt feel comfortable by using it.....
so i was searching on the net and i bumped into Linux Mint.... downloaded iso from the official website and installed it(yeah i have managed to install it without any problems :) ),
and i liked it.....
i have read official guide for newbies .....
now, my problem is following .....my internet is working properly, but i want to install ettercap (gtk), which i did , but it couldnt find my network interface, so i guess problem is in drivers of my wifi (MSI PC60G)rt61pci
i have downloaded drivers packed in BZ.2 archive
and i extracted it(right mouse button and extract)
and i've got folder on desktop....
now i followed some tutorials for compiling source code that i have found on the net, but it doesnt work......it always says there is no such a file or directory.......
now i would be very gratefull if someone could explain to me more precisely process of compiling in terminal......

thx in advance
payne987
Level 1
Level 1
 
Posts: 9
Joined: Tue Nov 10, 2009 2:31 pm

Linux Mint is funded by ads and donations.
 

Re: Compiling for newbies

Postby DruKe on Thu Nov 19, 2009 11:41 am

Generally to compile you need to run these commands

Code: Select all
./configure
make
make install


That is assuming you have installed the kernel source.

The driver may more specific compiling instructions. Look for a file called README or INSTALL in the extracted directory.
If your problem has been solved, PLEASE add [SOLVED] to your subject line! It helps everyone!
DruKe
Level 3
Level 3
 
Posts: 103
Joined: Mon Sep 28, 2009 6:54 pm
Location: Sheboygan, WI

Re: Compiling for newbies

Postby payne987 on Thu Nov 19, 2009 11:50 am

tried that commands....even tried to extract it using tar xvjf filename.tar.bz2 and tried CD command , but all i get is there is no such file or directory?!

I dont know if i have kernel source, i have installed it from Mint 7 main edition live cd,fully updated using update manager.....and tell me how to check wether tis installed or not and how to install it if i can?
payne987
Level 1
Level 1
 
Posts: 9
Joined: Tue Nov 10, 2009 2:31 pm

Re: Compiling for newbies

Postby DruKe on Thu Nov 19, 2009 12:05 pm

So I'm hitting reply and again Ikey.. you beat me to the punch line.
If your problem has been solved, PLEASE add [SOLVED] to your subject line! It helps everyone!
DruKe
Level 3
Level 3
 
Posts: 103
Joined: Mon Sep 28, 2009 6:54 pm
Location: Sheboygan, WI

Re: Compiling for newbies

Postby payne987 on Thu Nov 19, 2009 1:21 pm

i tried the uname -a command and it says:
Linux johny-mint 2.6.24-19-generic #1 SMP Wed Jun 18 14:43:41 UTC 2008 i686 GNU/Linux
and this i686 it doesnt mean that i use 64 bit version of linux, right?

i tried also the commands u named but it didnt work .....it says no such file or directory and error cannot be retreived or smth like that......
?
payne987
Level 1
Level 1
 
Posts: 9
Joined: Tue Nov 10, 2009 2:31 pm

Re: Compiling for newbies

Postby markcynt on Thu Nov 19, 2009 2:27 pm

Are you following these instructions? (Taken from the Readme file)

Do you have build-essential installed?

Are you building from the "./RT61_Linux_STA_Drv_x.x.x.x/Module" directory ?

Code: Select all
* README
*
* Ralink Tech Inc.
*
* http://www.ralinktech.com
*

=======================================================================
ModelName:
===========
RT61 Wireless Lan Linux Driver


=======================================================================
Driver lName:
===========
rt61.o/rt61.ko


=======================================================================
Supporting Kernel:
===================
linux kernel 2.4 and 2.6 series.
Tested in Redhat 7.3 or later.


=======================================================================
Description:
=============
This is a linux device driver for Ralink RT61 a/b/g WLAN Card.


=======================================================================
Contents:
=============
Makefile.4           : Makefile for kernel 2.4 series
Makefile.6           : Makefile for kernel 2.6 series
Makefile.RTL865x   : Makefile for big endian platform
*.c               : c files
*.h               : header files


=======================================================================
Features:
==========
   This driver implements basic IEEE802.11. Infrastructure and adhoc mode with
   open or shared or WPA-PSK or WPA2-PSK authentication method.
   NONE, WEP, TKIP and AES encryption.


=======================================================================
Build Instructions: 
====================

1> $tar -xvzf RT61_Linux_STA_Drv_x.x.x.x.tar.gz
    go to "./RT61_Linux_STA_Drv_x.x.x.x/Module" directory.
   
2> $cp Makefile.4  ./Makefile       # [kernel 2.4]
    or
   $cp Makefile.6  ./Makefile       # [kernel 2.6]
    or
   $cp Makefile.RTL865x ./Makefile  #  big endian platform
   
3> [kernel 2.4]
    $chmod 755 Configure
    $make config         # config build linux os version

4> $make all            # compile driver source code
4.1> $make install

5> $cp rt2561.bin /etc/Wireless/RT61STA/   # copy firmware
   $cp rt2561s.bin /etc/Wireless/RT61STA/
   $cp rt2661.bin /etc/Wireless/RT61STA/

6>  $dos2unix rt61sta.dat
    $cp rt61sta.dat  /etc/Wireless/RT61STA/rt61sta.dat       
    # !!!check if it is a binary file before loading !!! 
   
7> $load               
    #[kernel 2.4]
    #    $/sbin/insmod rt61.o
    #    $/sbin/ifconfig ra0 inet YOUR_IP up
       
    #[kernel 2.6]
    #    $/sbin/insmod rt61.ko
    #    $/sbin/ifconfig ra0 inet YOUR_IP up

       
Note: Script functionality:
load            load module to kernel
unload          unload module from kernel
Configure       retrieve linux version


=======================================================================
CONFIGURATION: 
====================
RT61 driver can be configured via following interfaces,
i.e. (i)"iwconfig" command, (ii)"iwpriv" command, (iii) configuration file,
     (iv)RaConfig61

i)  iwconfig comes with kernel. 
ii) iwpriv usage, please refer to file "iwpriv_usage.txt" for details.
iii)copy configuration file "rt61sta.dat" to /etc/Wireless/RT61STA/rt61sta.dat.
iv) RaConfig61 is utility for rt61.
           
Configuration File : rt61sta.dat
---------------------------------------
# Copy this file to /etc/Wireless/RT61STA/rt61sta.dat
# This file is a binary file and will be read on loading rt.o module.
#
# Use "vi -b rt61sta.dat" to modify settings according to your need.
#
# 1.) set NetworkType to "Adhoc" for using Adhoc-mode, otherwise using Infrastructure
# 2.) set Channel to "0" for auto-select on Infrastructure mode
# 3.) set SSID for connecting to your Accss-point.
# 4.) AuthMode can be "WEPAUTO", "OPEN", "SHARED", "WPAPSK", "WPA2PSK", "WPANONE"
# 5.) EncrypType can be "NONE", "WEP", "TKIP", "AES"
# for more information refer to the Readme file.
#
# The word of "[Default]" must not be removed
[Default]
CountryRegion=0
CountryRegionABand=7
WirelessMode=0
SSID=AP350
NetworkType=Infra
Channel=0
AuthMode=OPEN
EncrypType=NONE
DefaultKeyID=1
Key1Type=0
Key1Str=0123456789
Key2Type=0
Key2Str=
Key3Type=0
Key3Str=
Key4Type=0
Key4Str=
WPAPSK=abcdefghijklmnopqrstuvwxyz
TxBurst=0
PktAggregate=0
WmmCapable=0
APSDCapable=0
APSDAC=0;0;0;0
BGProtection=0
ShortSlot=0
IEEE80211H=0
TxRate=0
RTSThreshold=2347
FragThreshold=2346
PSMode=CAM
TxPreamble=0
FastRoaming=0
NativeWpa=1

-----------------------------------------------
*NOTE:
WMM parameters:
1.) WmmCapable         
    Set it as 1 to turn on WMM Qos support
   
2.) APSDCapable
   Set it as 1 to use automatic power-save delivery(APSD) on an Non-AP QSTA

3.) APSDAC
   Set ACs corresponding BE, BK, VI and VO as delivery-enabled or delivery-disabled

   
All WMM parameters do not support iwpriv command but WmmCapable,
   please store all parameter to rt61sta.dat, and restart driver.    



NetworkManager and WPS:
If Native WPA Supplicant (NetworkManager) is enabled, WPS CAN NOT be triggered.
For this case, we have to set NativeWpa=1 in rt61sta.dat.
Otherwise, if we want to use WPS, we have to disable NetworkManager by setting
NativeWpa=0 in rt61sta.dat.

-----------------------------------------------
syntax is 'Param'='Value' and describes below.

1. CountryRegion=value                                 
   value
      0: use 1 ~ 11 Channel
      1: use 1 ~ 13 Channel
      2: use 10, 11 Channel
      3: use 10 ~ 13 Channel
      4: use 14 Channel
      5: use 1 ~ 14 Channel
      6: use 3 ~ 9 Channel
      7: use 5 ~ 13 Channel
                                               
2. CountryRegionABand=value                           
   value   
      0: use 36, 40, 44, 48, 52, 56, 60, 64, 149, 153, 157, 161, 165 Channel
      1: use 36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140 Channel
      2: use 36, 40, 44, 48, 52, 56, 60, 64 Channel
      3: use 52, 56, 60, 64, 149, 153, 157, 161 Channel
      4: use 149, 153, 157, 161, 165 Channel
      5: use 149, 153, 157, 161 Channel
      6: use 36, 40, 44, 48 Channel
      7: use 36, 40, 44, 48, 52, 56, 60, 64, 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140, 149, 153, 157, 161, 165 Channel
      8: 52, 56, 60, 64 Channel
      9: 34, 38, 42, 46 Channel
      10: 34, 36, 38, 40, 42, 44, 46, 48, 52, 56, 60, 64 Channel
                                                   
3. SSID=value                   
   value
      0~z, 1~32 ascii characters.
                       
4. WirelessMode=value
   value   
      0: 11b/g mixed
      1: 11B only
      2: 11A only          //Support in RfIcType=1(id=RFIC_5225) or RfIcType=2(id=RFIC_5325)
      3: 11a/b/g mixed     //Support in RfIcType=1(id=RFIC_5225) or RfIcType=2(id=RFIC_5325)
      4: 11G only
      
5. TxRate=value
   value
       0: Auto       //WirelessMode=0~4   
       1: 1 Mbps       //WirelessMode=0 or 1 or 3
         2: 2 Mbps       //WirelessMode=0 or 1 or 3
         3: 5.5 Mbps    //WirelessMode=0 or 1 or 3
         4: 11 Mbps    //WirelessMode=0 or 1 or 3
         5: 6  Mbps     //WirelessMode=0 or 2 or 3 or 4
         6: 9  Mbps     //WirelessMode=0 or 2 or 3 or 4
         7: 12 Mbps     //WirelessMode=0 or 2 or 3 or 4
         8: 18 Mbps     //WirelessMode=0 or 2 or 3 or 4
         9: 24 Mbps     //WirelessMode=0 or 2 or 3 or 4
        10: 36 Mbps     //WirelessMode=0 or 2 or 3 or 4
        11: 48 Mbps     //WirelessMode=0 or 2 or 3 or 4
        12: 54 Mbps     //WirelessMode=0 or 2 or 3 or 4
                                           
6. Channel=value
   value
      depends on CountryRegion or CountryRegionABand
                       
7. BGProtection=value
   value
      0: Auto
      1: Always on
      2: Always off
                       
8. TxPreamble=value
     value
      0:Preamble Long
      1:Preamble Short
      2:Auto
                       
9. RTSThreshold=value
   value
      1~2347                                                       
                                                              
10. FragThreshold=value
   value          
      256~2346
                       
11. TxBurst=value
   value
      0: Disable
      1: Enable

12. NetworkType=value             
   value
      Infra: infrastructure mode
          Adhoc: adhoc mode
                                                                                                                                                                                                                    
13. AuthMode=value
   value
      OPEN       For open system   
      SHARED        For shared key system   
      WEPAUTO     Auto switch between OPEN and SHARED
      WPAPSK      For WPA pre-shared key  (Infra)
      WPA2PSK     For WPA2 pre-shared key (Infra)
      WPANONE      For WPA pre-shared key  (Adhoc)
      WPA         Use WPA_Supplicant
      WPA2        Use WPA_Supplicant

14. EncrypType=value
   value
      NONE      For AuthMode=OPEN                   
      WEP         For AuthMode=OPEN or AuthMode=SHARED
      TKIP      For AuthMode=WPAPSK or WPA2PSK                   
      AES         For AuthMode=WPAPSK or WPA2PSK                     
      
15. DefaultKeyID=value
   value
      1~4

16. Key1=value
    Key2=value
    Key3=value
    Key4=value
   value
      10 or 26 hexadecimal characters eg: 012345678
        5 or 13 ascii characters eg: passd
    (usage : "iwpriv" only)     

17. Key1Type=vaule
    Key2Type=value
    Key3Type=vaule
    Key4Type=vaule
    value
      0   hexadecimal type
      1   assic type
    (usage : reading profile only)

18. Key1Str=value
    Key2Str=value
    Key3Str=vaule
    Key4Str=vaule
    value
      10 or 26 characters (key type=0)
      5 or 13 characters  (key type=1)
    (usage : reading profile only)   

19. WPAPSK=value                 
   value
      8~63 ASCII        or
      64 HEX characters

20. PktAggregate=value
   value
      0: Disable
      1: Enable when the peer supports it
                                                
21. WmmCapable=value
   value
      0: Disable WMM
      1: Enable WMM
       
22. PSMode=value
    value
       CAM             Constantly Awake Mode
      Fast_PSP      Power Save Mode
      MAX_PSP         Max power save mode
      
23. IEEE80211H=value
   value
      0:   Disable
      1:   Enable   Spectrum management
      (This field can be enable only in A band)
      
24. FastRoaming=value            
   value
      0: Disable Fast Roaming
      1: Enable Fast Roaming

25. RoamThreshold=value
   value [Valid on FastRoaming=1]         
      60~90

26. APSDCapable=value
   value [Valid on WmmCapable=1]
      0: Disable APSD
      1: Enable APSD

27. APSDAC=value
   value [Valid on APSDCapable=1]
      0: Delivery-disabled AC
      1: Delivery-enabled AC
   
      //========================//
      AC_BE  AC_BK  AC_VI  AC_VO
      {0, 1};{0, 1};{0, 1};{0, 1}
        //========================//



MORE INFORMATION
=================================================================================
If you want for rt61 driver to auto-load at boot time:
A) choose ra0 for first RT61 WLAN card, ra1 for second RT61 WLAN card, etc.
 
B) go to "./RT61_Linux_STA_Drv_x.x.x.x/Module" directory.
   $make install

NOTE:
   if you use dhcp,
   add this line
   BOOTPROTO='dhcp'
   in the file ifcfg-ra0 .


*C) To ease the Default Gateway setting,
    add the line
    GATEWAY=x.x.x.x   
    in /etc/sysconfig/network

D) When build for SUSE, please unmark the part for SUSE in Makefile.
   When build for Mandriva 2007.1, please unmark the part for Mandriva in Makefile.
Image
P5N-E SLI, Core2Duo E6850 3GHZ X 2
2 GB DDR2 800MHZ
EVGA 8800GTS 320MB
2x320GB Hitachi
Arctic Cooling Freezer 7 Pro
User avatar
markcynt
Level 6
Level 6
 
Posts: 1131
Joined: Sun May 17, 2009 10:53 am
Location: Lakeland Florida

Re: Compiling for newbies

Postby ValleyGuy on Thu Nov 19, 2009 2:40 pm

.it always says there is no such a file or directory.......


I have found that when this message appears in the terminal, I forgot to log in as su(superuser) or did not use the sudo command.

Did you use either of these commands?
ValleyGuy
Level 1
Level 1
 
Posts: 1
Joined: Thu Nov 19, 2009 2:29 pm

Re: Compiling for newbies

Postby payne987 on Thu Nov 19, 2009 2:45 pm

Image here is screenshot of the problem.....
sry if i made a mistake cuz i am a begginer......still not fammiliar with commands,....etc

and no i havent installed build essential....

as for the readme file, well i have downloaded rl26xx drivers.....
cuz i found those on the net it says that they support my wifi card and there is no reade me file like that in there......
payne987
Level 1
Level 1
 
Posts: 9
Joined: Tue Nov 10, 2009 2:31 pm

Re: Compiling for newbies

Postby markcynt on Thu Nov 19, 2009 2:57 pm

Your screenshot is so small I can barely see it but from what I can see it looks like you are trying to unpack the files when you alreay did that.

The tar command and right click>extract do the same thing.
Image
P5N-E SLI, Core2Duo E6850 3GHZ X 2
2 GB DDR2 800MHZ
EVGA 8800GTS 320MB
2x320GB Hitachi
Arctic Cooling Freezer 7 Pro
User avatar
markcynt
Level 6
Level 6
 
Posts: 1131
Joined: Sun May 17, 2009 10:53 am
Location: Lakeland Florida

Re: Compiling for newbies

Postby markcynt on Thu Nov 19, 2009 3:00 pm

Run the first 3 commands from the page in this link.

https://help.ubuntu.com/community/CompilingSoftware
Image
P5N-E SLI, Core2Duo E6850 3GHZ X 2
2 GB DDR2 800MHZ
EVGA 8800GTS 320MB
2x320GB Hitachi
Arctic Cooling Freezer 7 Pro
User avatar
markcynt
Level 6
Level 6
 
Posts: 1131
Joined: Sun May 17, 2009 10:53 am
Location: Lakeland Florida

Re: Compiling for newbies

Postby markcynt on Thu Nov 19, 2009 3:38 pm

ikey wrote:I seem to have said this a lot today, but maybe trying 'mintwifi', or using ndiswrapper would be easier in this case?
markcynt, I wouldn't mind hearing what you have to say about it :)

- Ikey Doherty


Don't really know a lot about wifi.

Just trying to help on the compiling part of it.

I would try Mint's wifi tool 1st, then ndiswrapper, then compiling the Linux driver.

But I never did setup wireless in Mint.
Image
P5N-E SLI, Core2Duo E6850 3GHZ X 2
2 GB DDR2 800MHZ
EVGA 8800GTS 320MB
2x320GB Hitachi
Arctic Cooling Freezer 7 Pro
User avatar
markcynt
Level 6
Level 6
 
Posts: 1131
Joined: Sun May 17, 2009 10:53 am
Location: Lakeland Florida

Re: Compiling for newbies

Postby payne987 on Thu Nov 19, 2009 5:04 pm

i have tried all from the page u gave me, downloaded all it says there, but still it says:

tar: 2008_0506_RT61_Linux_STA_v1.1.2.1.tar.bz2: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now


idk whats wrong or what i am doing wrong?!
payne987
Level 1
Level 1
 
Posts: 9
Joined: Tue Nov 10, 2009 2:31 pm

Re: Compiling for newbies

Postby markcynt on Fri Nov 20, 2009 3:24 am

You don't have to run that command.

That is the command to extract, which you've already done as you stated in your first post.

Let's start over.

Download the RT2501 driver, which is a newer version of the one you have.

http://www.ralinktech.com/support.php?s=2

Then open a terminal, navigate to the directory the tar file downloaded to and run the extraction command.

For me it would be:

Code: Select all
cd /home/mark/Desktop
(mark is my user name) (cd tells the terminal to go to a directory) ( /home/mark/Desktop is the directory I downloaded to.)

then:
Code: Select all
tar -jxvf 2009_0123_RT61_Linux_STA_v1.1.2.3.tar.bz2

See if you can get that far.
Image
P5N-E SLI, Core2Duo E6850 3GHZ X 2
2 GB DDR2 800MHZ
EVGA 8800GTS 320MB
2x320GB Hitachi
Arctic Cooling Freezer 7 Pro
User avatar
markcynt
Level 6
Level 6
 
Posts: 1131
Joined: Sun May 17, 2009 10:53 am
Location: Lakeland Florida

Re: Compiling for newbies

Postby mick55 on Fri Nov 20, 2009 3:46 am

The directions markcynt gave are 100% accurate.
Last edited by mick55 on Fri Nov 20, 2009 1:54 pm, edited 2 times in total.
Things are more like they are now than they ever were before.

Dwight D. Eisenhower (1890 - 1969)
User avatar
mick55
Level 7
Level 7
 
Posts: 1507
Joined: Fri Sep 25, 2009 2:47 am

Re: Compiling for newbies

Postby payne987 on Fri Nov 20, 2009 7:39 am

Okay guys...i have succeded in using the tar and cd commands .....now when its extracted in "~" and i have got 2 folders in side of the extracted one:
1)Module(has Configuration file in side)
2)WPA_Supplicant
what should i do next? do "cd" to the Module so it is :
payne@payne ~/2009_0123_RT61_Linux_STA_v1.1.2.3/Module $
?
or stay in :
~/2009_0123_RT61_Linux_STA_v1.1.2.3 $?


cuz when i try to type :~/2009_0123_RT61_Linux_STA_v1.1.2.3 $ ./configure (in this case it says there is no such file or directory)

or

~/2009_0123_RT61_Linux_STA_v1.1.2.3/Module $ ./Configure (in this case says bash: ./Configure: Permission denied)
?
payne987
Level 1
Level 1
 
Posts: 9
Joined: Tue Nov 10, 2009 2:31 pm

Re: Compiling for newbies

Postby markcynt on Fri Nov 20, 2009 7:59 am

It looks like you're starting to get it.

Yes you cd into the module folder

The README file should also be in that folder.

It has the instructions.
Image
P5N-E SLI, Core2Duo E6850 3GHZ X 2
2 GB DDR2 800MHZ
EVGA 8800GTS 320MB
2x320GB Hitachi
Arctic Cooling Freezer 7 Pro
User avatar
markcynt
Level 6
Level 6
 
Posts: 1131
Joined: Sun May 17, 2009 10:53 am
Location: Lakeland Florida

Re: Compiling for newbies

Postby payne987 on Fri Nov 20, 2009 10:15 am

Yeah, but i bumped into one wall again...../
when i try those commands written in readme:
1st)cp Makefile.6 ./Makefile (it says just doesnt show anything, just payne@payne ~/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module $ )

2)make all
payne@payne ~/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module $ make all
make -C /lib/modules/2.6.28-11-generic/build SUBDIRS=/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.28-11-generic'
scripts/Makefile.build:46: *** CFLAGS was changed in "/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/Makefile". Fix it to use EXTRA_CFLAGS. Stop.
make[1]: *** [_module_/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.28-11-generic'
make: *** [all] Error 2


3)make install
payne@payne ~/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module $ make install
make -C /lib/modules/2.6.28-11-generic/build \
INSTALL_MOD_DIR=extra SUBDIRS=/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module \
modules_install
make[1]: Entering directory `/usr/src/linux-headers-2.6.28-11-generic'
DEPMOD 2.6.28-11-generic
make[1]: Leaving directory `/usr/src/linux-headers-2.6.28-11-generic'
Network device directory /etc/sysconfig/network-scripts
Module configuration file /etc/modprobe.conf
/sbin/depmod -a
FATAL: Could not open /lib/modules/2.6.28-11-generic/modules.dep.temp for writing: Permission denied
make: *** [install] Error 1


and when i am not using command cp Makefile.6, but just type make all:
payne@payne ~/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module $ make all
make -C /lib/modules/2.6.28-11-generic/build SUBDIRS=/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.28-11-generic'
CC [M] /home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_main.o
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_main.c: In function ‘rt61_get_drvinfo’:
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_main.c:78: warning: unused variable ‘pAd’
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_main.c: In function ‘rt61_get_regs’:
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_main.c:104: warning: unused variable ‘counter’
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_main.c:103: warning: unused variable ‘pAd’
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_main.c: In function ‘rt61_ethtool_get_link’:
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_main.c:120: warning: unused variable ‘pAd’
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_main.c: In function ‘rt61_get_eeprom’:
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_main.c:146: warning: unused variable ‘counter’
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_main.c:145: warning: unused variable ‘pAd’
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_main.c: At top level:
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_main.c:169: warning: initialization from incompatible pointer type
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_main.c: In function ‘RT61_probe’:
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_main.c:238: warning: assignment discards qualifiers from pointer target type
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_main.c:344: warning: ISO C90 forbids mixed declarations and code
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_main.c: In function ‘RT61_open’:
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_main.c:472: warning: passing argument 2 of ‘request_irq’ from incompatible pointer type
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_main.c: In function ‘rt61_get_eeprom’:
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_main.c:159: warning: control reaches end of non-void function
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_main.c: In function ‘rt61_get_eeprom_len’:
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_main.c:139: warning: control reaches end of non-void function
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_main.c: In function ‘rt61_ethtool_get_link’:
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_main.c:130: warning: control reaches end of non-void function
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_main.c: In function ‘rt61_get_regs_len’:
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_main.c:97: warning: control reaches end of non-void function
CC [M] /home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/mlme.o
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/mlme.c: In function ‘STAMlmePeriodicExec’:
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/mlme.c:740: warning: unused variable ‘RxSignal’
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/mlme.c: In function ‘MsgTypeSubst’:
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/mlme.c:3439: warning: unused variable ‘Return’
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/mlme.c: In function ‘AsicSetRxAnt’:
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/mlme.c:5421: warning: ‘R77’ may be used uninitialized in this function
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/mlme.c: In function ‘RadarDetectionStop’:
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/mlme.c:5859: warning: ‘R66’ may be used uninitialized in this function
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/mlme.c: In function ‘AsicSendCommandToMcu’:
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/mlme.c:5327: warning: ‘i’ may be used uninitialized in this function
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/mlme.c: In function ‘AsicAdjustTxPower’:
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/mlme.c:4372: warning: ‘BbpR1’ may be used uninitialized in this function
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/mlme.c: In function ‘AsicSwitchChannel’:
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/mlme.c:3692: warning: ‘BbpReg’ may be used uninitialized in this function
CC [M] /home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/connect.o
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/connect.c: In function ‘LinkDown’:
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/connect.c:1095: warning: unused variable ‘CurTxRxCsr4’
CC [M] /home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/sync.o
CC [M] /home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/assoc.o
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/assoc.c: In function ‘link_status_handler’:
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/assoc.c:831: warning: embedded ‘\0’ in format
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/assoc.c:855: warning: embedded ‘\0’ in format
CC [M] /home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/auth.o
CC [M] /home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/auth_rsp.o
CC [M] /home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_data.o
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_data.c: In function ‘REPORT_ETHERNET_FRAME_TO_LLC’:
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_data.c:79: warning: unused variable ‘pRxPkt’
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_data.c: In function ‘REPORT_ETHERNET_FRAME_TO_LLC_WITH_NON_COPY’:
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_data.c:116: warning: unused variable ‘pRxPkt’
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_data.c: In function ‘RTMPHandleRxDoneInterrupt’:
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_data.c:656: warning: ISO C90 forbids mixed declarations and code
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_data.c:688: warning: ISO C90 forbids mixed declarations and code
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_data.c: In function ‘RTMPHardTransmit’:
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_data.c:2144: warning: unused variable ‘pNextPacketBufVA’
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_data.c:2143: warning: unused variable ‘NextPacketInfo’
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_data.c:2143: warning: unused variable ‘PacketInfo’
CC [M] /home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_init.o
CC [M] /home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/sanity.o
CC [M] /home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_wep.o
CC [M] /home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_info.o
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_info.c: In function ‘rt_ioctl_siwauth’:
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_info.c:1845: warning: unused variable ‘param’
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_info.c:1844: warning: unused variable ‘pAd’
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_info.c: In function ‘rt_ioctl_giwauth’:
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_info.c:1920: warning: unused variable ‘ret’
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_info.c:1919: warning: unused variable ‘param’
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_info.c:1918: warning: unused variable ‘pAd’
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_info.c: In function ‘rt_ioctl_siwencodeext’:
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_info.c:2003: warning: unused variable ‘bufLen’
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_info.c:2002: warning: unused variable ‘pBuf’
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_info.c:2001: warning: unused variable ‘keyIdx’
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_info.c:1999: warning: unused variable ‘ext’
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_info.c:1998: warning: unused variable ‘encoding’
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_info.c:1997: warning: unused variable ‘pAd’
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_info.c: In function ‘rt_ioctl_siwpmksa’:
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_info.c:2205: warning: unused variable ‘found’
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_info.c:2204: warning: unused variable ‘CachedIdx’
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_info.c:2202: warning: unused variable ‘pmksa’
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_info.c:2201: warning: unused variable ‘pAd’
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_info.c: In function ‘rt_ioctl_siwgenie’:
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_info.c:2261: warning: unused variable ‘len’
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_info.c:2260: warning: unused variable ‘pAd’
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_info.c: In function ‘rt_ioctl_giwgenie’:
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_info.c:2298: warning: unused variable ‘err’
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_info.c:2297: warning: unused variable ‘pAd’
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_info.c: At top level:
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_info.c:2477: warning: initialization from incompatible pointer type
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_info.c: In function ‘rt_ioctl_giwauth’:
/home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_info.c:1988: warning: control reaches end of non-void function
CC [M] /home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/eeprom.o
CC [M] /home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_tkip.o
CC [M] /home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/wpa.o
CC [M] /home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/md5.o
CC [M] /home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rtmp_task.o
LD [M] /home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rt61.o
Building modules, stage 2.
MODPOST 1 modules
WARNING: modpost: missing MODULE_LICENSE() in /home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rt61.o
see include/linux/module.h for more information
CC /home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rt61.mod.o
LD [M] /home/payne/Preuzeto/2009_0123_RT61_Linux_STA_v1.1.2.3/Module/rt61.ko
make[1]: Leaving directory `/usr/src/linux-headers-2.6.28-11-generic'


and same thing with make install as described above.....?
payne987
Level 1
Level 1
 
Posts: 9
Joined: Tue Nov 10, 2009 2:31 pm

Linux Mint is funded by ads and donations.
 

Return to Newbie Questions

Who is online

Users browsing this forum: Bing [Bot], dbpbandit, gibbs1984, hihowareyou?, Roy and 42 guests