LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-15-2009, 08:49 AM   #1
mango_boy
LQ Newbie
 
Registered: Dec 2009
Posts: 3

Rep: Reputation: 0
Question AR8121 Makefile:62 error on el5 x86_64


hi

i have p5q pro.my linux OEL 5.4 box is not detecting one eth card.how to solve the issue?

PHP Code:
To build a binary RPMpackage of this driverrun 'rpmbuild -tb 

<filename.tar.gz>'
Replace <filename.tar.gzwith the specific filename of 

the driver
.



NOTE: For the build to work properlythe currently running kernel MUST match 

      the version 
and configuration of the installed kernel sources. If you 

      have just recompiled the kernel reboot the system now
.



      
RPM functionality has only been tested in Red Hat distributions.



1. Move the base driver tar file to the directory of your choice. For example,

   use /
home/username/arl1e or /usr/local/src/arl1e.



2. Untar/unzip archive:



     
tar zxf arl1e-x.x.x.x.tar.gz



3. Change to the driver src directory
:



     
cd arl1e-x.x.x.x/src/



4. Compile the driver module:



     
make install



   The binary will be installed 
as:



     /
lib/modules/<KERNEL VERSION>/kernel/drivers/net/arl1e.[k]o



   The install locations listed above are the 
default locationsThey might 

   not be correct 
for certain Linux distributions. For more information

   
see the ldistrib.txt file included in the driver tar.



5. Install the module:



     
insmod arl1e <parameter>=<value>



6. Assign an IP address to the interface by entering the followingwhere

   x is the 
interface number:



     
ifconfig ethx <IP_address>



7. Verify that the interface worksEnter the followingwhere <IP_address>

   
is the IP address for another machine on the same subnet as the interface 

   
that is being tested:



     
ping  <IP_address



Command Line Parameters

=======================



If 
the driver is built as a modulethe  following optional parameters are 

used by entering them on the command line with the modprobe 
or insmod command

using this syntax
:



     
modprobe arl1e [<option>=<VAL1>,<VAL2>,...]



     
insmod arl1e [<option>=<VAL1>,<VAL2>,...] 



For 
examplewith two L001 PCIE adaptersentering:



     
insmod arl1e TxMemSize=80,128

loads the arl1e driver with 8KB TX memory 
for the first adapter and 10KB TX memory 

for the second adapter.



The default value for each parameter is generally the recommended setting,

unless otherwise noted.



    
NOTESA descriptor describes a data buffer and attributes related to the 

           data buffer
This information is accessed by the hardware.



MediaType

Valid Range
0-4

    0    
auto-negotiate at all supported speeds

    1    
only link at 100Mbps Full Duplex

    2    
only link at 100Mbps Half Duplex

    3    
only link at 10Mbps Full Duplex

    4    
only link at 10Mbps Half Duplex

Default Value0

    MediaType forces the line speed
/duplex to the specified value in 

    megabits per second
(Mbps). If this parameter is not specified or is set 

    to 0 
and the link partner is set to auto-negotiatethe board will 

    auto
-detect the correct speed



IntModTimer

Valid Range
50-65000

Default Value100

    This value represents the minmum interval between interrupts controller 

    generated




RxMemBlock

Valid Range
16-512 

Default Value64

    This value is the number of receice memory block allocated by the driver


    
Increasing this value allows the driver to buffer more incoming packets

    
Each memory block is 1536 bytes.



    
NOTEDepending on the available system resourcesthe request for a

    higher number of receive descriptors may be denied
.  In this case,

    use 
a lower number.



TxMemSize

Valid Range
4-64

Default Value8

    This value is the number KB of transmit memory allocated by the driver


    
Increasing this value allows the driver to queue more transmits.



    
NOTEDepending on the available system resourcesthe request for a

    higher number of transmit descriptors may be denied
.  In this case,

    use 
a lower number.



FlashVendor

Valid Range
0-2

Default Value0

    This value standards on vendor of spi flash used by the adapter
.

    
for Atmelfor SSTfor ST

    



Additional Configurations

=========================



  
Configuring the Driver on Different Distributions

  
-------------------------------------------------



  
Configuring a network driver to load properly when the system is started is

  distribution dependent
Typicallythe configuration process involves adding

  an alias line to 
/etc/modules.conf as well as editing other system startup 

  scripts 
and/or configuration filesMany popular Linux distributions ship 

  with tools to make these changes 
for youTo learn the proper way to 

  configure a network device 
for your systemrefer to your distribution 

  documentation
. If during this process you are asked for the driver or module 

  name
the name for the Linux Base Driver for the Atheros AR8121/AR8113 is arl1e

  

  
As an example, if you install the arl1e driver for two AR8121/AR8113 adapters 

  
(eth0 and eth1) and set the speed and duplex to 10full and 100halfadd the 

  following to modules
.conf:



       
alias eth0 arl1e

       alias eth1 arl1e

       options arl1e Speed
=10,100 Duplex=2,1



  Viewing Link Messages

  
---------------------



  
Link messages will not be displayed to the console if the distribution is 

  restricting system messages
In order to see network driver link messages 

  on your console
set dmesg to eight by entering the following:



       
dmesg -n 8



  NOTE
This setting is not saved across reboots
PHP Code:
[root@pc-~]# lspci -v
00:00.0 Host bridgeIntel Corporation 4 Series Chipset DRAM Controller (rev 03)
        
SubsystemASUSTeK Computer IncUnknown device 82d3
        Flags
bus masterfast devsellatency 0
        Capabilities
: [e0Vendor Specific Information

00
:01.0 PCI bridgeIntel Corporation 4 Series Chipset PCI Express Root Port (rev 03) (prog-if 00 [Normal decode])
        
Flagsbus masterfast devsellatency 0
        Bus
primary=00secondary=01subordinate=01sec-latency=0
        I
/O behind bridge0000b000-0000bfff
        Memory behind bridge
fe800000-fe8fffff
        Prefetchable memory behind bridge
00000000d0000000-00000000dff00000
        Capabilities
: [88#0d [0000]
        
Capabilities: [80Power Management version 3
        Capabilities
: [90Message Signalled Interrupts64bitQueue=0/0 Enable+
        
Capabilities: [a0Express Root Port (Slot+) IRQ 0

00
:1a.0 USB ControllerIntel Corporation 82801JI (ICH10 FamilyUSB UHCI Controller #4 (prog-if 00 [UHCI])
        
SubsystemASUSTeK Computer IncUnknown device 82d4
        Flags
bus mastermedium devsellatency 0IRQ 169
        I
/O ports at a800 [size=32]
        
Capabilities: [50Vendor Specific Information

00
:1a.1 USB ControllerIntel Corporation 82801JI (ICH10 FamilyUSB UHCI Controller #5 (prog-if 00 [UHCI])
        
SubsystemASUSTeK Computer IncUnknown device 82d4
        Flags
bus mastermedium devsellatency 0IRQ 50
        I
/O ports at a880 [size=32]
        
Capabilities: [50Vendor Specific Information

00
:1a.2 USB ControllerIntel Corporation 82801JI (ICH10 FamilyUSB UHCI Controller #6 (prog-if 00 [UHCI])
        
SubsystemASUSTeK Computer IncUnknown device 82d4
        Flags
bus mastermedium devsellatency 0IRQ 225
        I
/O ports at ac00 [size=32]
        
Capabilities: [50Vendor Specific Information

00
:1a.7 USB ControllerIntel Corporation 82801JI (ICH10 FamilyUSB2 EHCI Controller #2 (prog-if 20 [EHCI])
        
SubsystemASUSTeK Computer IncUnknown device 82d4
        Flags
bus mastermedium devsellatency 0IRQ 225
        Memory at fe7ffc00 
(32-bitnon-prefetchable) [size=1K]
        
Capabilities: [50Power Management version 2
        Capabilities
: [58Debug port
        Capabilities
: [98Vendor Specific Information

00
:1b.0 Audio deviceIntel Corporation 82801JI (ICH10 FamilyHD Audio Controller
        Subsystem
ASUSTeK Computer IncUnknown device 82fe
        Flags
bus masterfast devsellatency 0IRQ 66
        Memory at fe7f8000 
(64-bitnon-prefetchable) [size=16K]
        
Capabilities: [50Power Management version 2
        Capabilities
: [60Message Signalled Interrupts64bitQueue=0/0 Enable-
        
Capabilities: [70Express Unknown type IRQ 0

00
:1c.0 PCI bridgeIntel Corporation 82801JI (ICH10 FamilyPCI Express Port 1 (prog-if 00 [Normal decode])
        
Flagsbus masterfast devsellatency 0
        Bus
primary=00secondary=04subordinate=04sec-latency=0
        Prefetchable memory behind bridge
00000000fdf00000-00000000fdf00000
        Capabilities
: [40Express Root Port (Slot+) IRQ 0
        Capabilities
: [80Message Signalled Interrupts64bitQueue=0/0 Enable+
        
Capabilities: [90#0d [0000]
        
Capabilities: [a0Power Management version 2

00
:1c.4 PCI bridgeIntel Corporation 82801JI (ICH10 FamilyPCI Express Port 5 (prog-if 00 [Normal decode])
        
Flagsbus masterfast devsellatency 0
        Bus
primary=00secondary=03subordinate=03sec-latency=0
        I
/O behind bridge0000d000-0000dfff
        Memory behind bridge
fea00000-feafffff
        Capabilities
: [40Express Root Port (Slot+) IRQ 0
        Capabilities
: [80Message Signalled Interrupts64bitQueue=0/0 Enable+
        
Capabilities: [90#0d [0000]
        
Capabilities: [a0Power Management version 2

00
:1c.5 PCI bridgeIntel Corporation 82801JI (ICH10 FamilyPCI Express Port 6 (prog-if 00 [Normal decode])
        
Flagsbus masterfast devsellatency 0
        Bus
primary=00secondary=02subordinate=02sec-latency=0
        I
/O behind bridge0000c000-0000cfff
        Memory behind bridge
fe900000-fe9fffff
        Capabilities
: [40Express Root Port (Slot+) IRQ 0
        Capabilities
: [80Message Signalled Interrupts64bitQueue=0/0 Enable+
        
Capabilities: [90#0d [0000]
        
Capabilities: [a0Power Management version 2

00
:1d.0 USB ControllerIntel Corporation 82801JI (ICH10 FamilyUSB UHCI Controller #1 (prog-if 00 [UHCI])
        
SubsystemASUSTeK Computer IncUnknown device 82d4
        Flags
bus mastermedium devsellatency 0IRQ 233
        I
/O ports at a080 [size=32]
        
Capabilities: [50Vendor Specific Information

00
:1d.1 USB ControllerIntel Corporation 82801JI (ICH10 FamilyUSB UHCI Controller #2 (prog-if 00 [UHCI])
        
SubsystemASUSTeK Computer IncUnknown device 82d4
        Flags
bus mastermedium devsellatency 0IRQ 58
        I
/O ports at a400 [size=32]
        
Capabilities: [50Vendor Specific Information

00
:1d.2 USB ControllerIntel Corporation 82801JI (ICH10 FamilyUSB UHCI Controller #3 (prog-if 00 [UHCI])
        
SubsystemASUSTeK Computer IncUnknown device 82d4
        Flags
bus mastermedium devsellatency 0IRQ 225
        I
/O ports at a480 [size=32]
        
Capabilities: [50Vendor Specific Information

00
:1d.7 USB ControllerIntel Corporation 82801JI (ICH10 FamilyUSB2 EHCI Controller #1 (prog-if 20 [EHCI])
        
SubsystemASUSTeK Computer IncUnknown device 82d4
        Flags
bus mastermedium devsellatency 0IRQ 233
        Memory at fe7ff800 
(32-bitnon-prefetchable) [size=1K]
        
Capabilities: [50Power Management version 2
        Capabilities
: [58Debug port
        Capabilities
: [98Vendor Specific Information

00
:1e.0 PCI bridgeIntel Corporation 82801 PCI Bridge (rev 90) (prog-if 01 [Subtractive decode])
        
Flagsbus masterfast devsellatency 0
        Bus
primary=00secondary=05subordinate=05sec-latency=32
        I
/O behind bridge0000e000-0000efff
        Memory behind bridge
feb00000-febfffff
        Prefetchable memory behind bridge
0000000050000000-0000000050000000
        Capabilities
: [50#0d [0000]

00:1f.0 ISA bridgeIntel Corporation 82801JIR (ICH10RLPC Interface Controller
        Subsystem
ASUSTeK Computer IncUnknown device 82d4
        Flags
bus mastermedium devsellatency 0
        Capabilities
: [e0Vendor Specific Information

00
:1f.2 IDE interface: Intel Corporation 82801JI (ICH10 Family4 port SATA IDE Controller (prog-if 8f [Master SecP SecO PriP PriO])
        
SubsystemASUSTeK Computer IncUnknown device 82d4
        Flags
bus master66MHzmedium devsellatency 0IRQ 58
        I
/O ports at 9000 [size=8]
        
I/O ports at 8c00 [size=4]
        
I/O ports at 8880 [size=8]
        
I/O ports at 8800 [size=4]
        
I/O ports at 8480 [size=16]
        
I/O ports at 8400 [size=16]
        
Capabilities: [70Power Management version 3
        Capabilities
: [b0Vendor Specific Information

00
:1f.3 SMBusIntel Corporation 82801JI (ICH10 FamilySMBus Controller
        Subsystem
ASUSTeK Computer IncUnknown device 82d4
        Flags
medium devselIRQ 225
        Memory at fe7ff400 
(64-bitnon-prefetchable) [size=256]
        
I/O ports at 0400 [size=32]

00:1f.5 IDE interface: Intel Corporation 82801JI (ICH10 Family2 port SATA IDE Controller (prog-if 85 [Master SecO PriO])
        
SubsystemASUSTeK Computer IncUnknown device 82d4
        Flags
bus master66MHzmedium devsellatency 0IRQ 58
        I
/O ports at a000 [size=8]
        
I/O ports at 9c00 [size=4]
        
I/O ports at 9880 [size=8]
        
I/O ports at 9800 [size=4]
        
I/O ports at 9480 [size=16]
        
I/O ports at 9400 [size=16]
        
Capabilities: [70Power Management version 3
        Capabilities
: [b0Vendor Specific Information

01
:00.0 VGA compatible controllerATI Technologies Inc RV710 [Radeon HD 4350] (prog-if 00 [VGA controller])
        
SubsystemXFX Pine Group IncUnknown device 2462
        Flags
bus masterfast devsellatency 0IRQ 10
        Memory at d0000000 
(64-bitprefetchable) [size=256M]
        
Memory at fe8e0000 (64-bitnon-prefetchable) [size=64K]
        
I/O ports at b000 [size=256]
        
Expansion ROM at fe8c0000 [disabled] [size=128K]
        
Capabilities: [50Power Management version 3
        Capabilities
: [58Express Legacy Endpoint IRQ 0
        Capabilities
: [a0Message Signalled Interrupts64bitQueue=0/0 Enable-

01:00.1 Audio deviceATI Technologies Inc R700 Audio Device [Radeon HD 4000 Series]
        
SubsystemXFX Pine Group IncUnknown device aa38
        Flags
bus masterfast devsellatency 0IRQ 177
        Memory at fe8fc000 
(64-bitnon-prefetchable) [size=16K]
        
Capabilities: [50Power Management version 3
        Capabilities
: [58Express Legacy Endpoint IRQ 0
        Capabilities
: [a0Message Signalled Interrupts64bitQueue=0/0 Enable-

02:00.0 Ethernet controllerAttansic Technology CorpAtheros AR8121/AR8113/AR8114 PCI-E Ethernet Controller (rev b0)
        
SubsystemASUSTeK Computer IncUnknown device 8226
        Flags
bus masterfast devsellatency 0IRQ 11
        Memory at fe9c0000 
(64-bitnon-prefetchable) [size=256K]
        
I/O ports at cc00 [size=128]
        
Capabilities: [40Power Management version 2
        Capabilities
: [48Message Signalled Interrupts64bitQueue=0/0 Enable-
        
Capabilities: [58Express Endpoint IRQ 0

03
:00.0 IDE interface: Marvell Technology Group Ltd88SE6121 SATA II Controller (rev b2) (prog-if 8f [Master SecP SecO PriP PriO])
        
SubsystemASUSTeK Computer IncUnknown device 82e0
        Flags
bus masterfast devsellatency 0IRQ 169
        I
/O ports at dc00 [size=8]
        
I/O ports at d880 [size=4]
        
I/O ports at d800 [size=8]
        
I/O ports at d480 [size=4]
        
I/O ports at d400 [size=16]
        
Memory at feaffc00 (32-bitnon-prefetchable) [size=1K]
        
Capabilities: [48Power Management version 2
        Capabilities
: [50Message Signalled Interrupts64bitQueue=0/0 Enable-
        
Capabilities: [e0Express Legacy Endpoint IRQ 0

05
:01.0 Ethernet controllerADMtek NC100 Network Everywhere Fast Ethernet 10/100 (rev 11)
        
SubsystemAccton Technology Corporation Unknown device 1216
        Flags
bus mastermedium devsellatency 64IRQ 177
        I
/O ports at e800 [size=256]
        
Memory at febffc00 (32-bitnon-prefetchable) [size=1K]
        
Expansion ROM at 50000000 [disabled] [size=128K]
        
Capabilities: [c0Power Management version 2

05
:03.0 FireWire (IEEE 1394): Agere Systems FW322/323 (rev 70) (prog-if 10 [OHCI])
        
SubsystemASUSTeK Computer IncIEEE 1394a Firewire Controller
        Flags
bus mastermedium devsellatency 64IRQ 5
        Memory at febfe000 
(32-bitnon-prefetchable) [size=4K]
        
Capabilities: [44Power Management version 2

[root@pc-~]
PHP Code:
[root@pc-~]# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:00:E8:F7:02:B0  
          inet addr
:192.168.1.3  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr
fe80::200:e8ff:fef7:2b0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU
:1500  Metric:1
          RX packets
:47809 errors:0 dropped:0 overruns:0 frame:0
          TX packets
:45868 errors:0 dropped:0 overruns:0 carrier:0
          collisions
:0 txqueuelen:1000 
          RX bytes
:56252091 (53.6 MiB)  TX bytes:5590484 (5.3 MiB)
          
Interrupt:177 Base address:0x8c00 

lo        Link encap
:Local Loopback  
          inet addr
:127.0.0.1  Mask:255.0.0.0
          inet6 addr
: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU
:16436  Metric:1
          RX packets
:2095 errors:0 dropped:0 overruns:0 frame:0
          TX packets
:2095 errors:0 dropped:0 overruns:0 carrier:0
          collisions
:0 txqueuelen:
          RX bytes
:2762138 (2.6 MiB)  TX bytes:2762138 (2.6 MiB)

sit0      Link encap:IPv6-in-IPv4  
          NOARP  MTU
:1480  Metric:1
          RX packets
:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets
:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions
:0 txqueuelen:
          RX bytes
:(0.0 b)  TX bytes:(0.0 b)

virbr0    Link encap:Ethernet  HWaddr 00:00:00:00:00:00  
          inet addr
:192.168.122.1  Bcast:192.168.122.255  Mask:255.255.255.0
          inet6 addr
fe80::200:ff:fe00:0/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU
:1500  Metric:1
          RX packets
:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets
:51 errors:0 dropped:0 overruns:0 carrier:0
          collisions
:0 txqueuelen:
          RX bytes
:(0.0 b)  TX bytes:10188 (9.9 KiB)

[
root@pc-~]
To compile the src i am getting error:
PHP Code:
[root@pc-2 src]# make install
Makefile:62: *** Linux kernel source not found.  Stop.
[
root@pc-2 src]
so i searched for the kernel-devel but:
PHP Code:
[root@pc-2 src]# apt-get install kernel-devel
Reading Package Lists... Done
Building Dependency Tree
... Done
Selecting kernel
-xen-devel for 'kernel-devel'
kernel-xen-devel is already the newest version.
0 upgraded0 newly installed0 removed and 0 not upgraded.
[
root@pc-2 src]
my kernel version
PHP Code:
[root@pc-2 src]# uname -a
Linux pc-2.mango-boy 2.6.18-164.el5 #1 SMP Thu Sep 3 04:15:13 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
[root@pc-2 src]
i need eth1 too 4 my box to response.how to do that?

regards

Last edited by mango_boy; 12-15-2009 at 08:52 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
gcc creating a huge executable image (RedHat 2.6.18-8.el5, x86_64, Linux) dbulka Linux - General 1 10-02-2009 11:06 PM
ipm timed out error on Red Hat 2.6.9-67.0.22.ELsmp #1 SMP x86_64 x86_64 x86_64 GNU/L bellnarm Linux - Newbie 0 07-07-2009 05:36 PM
rpm -ivh gcc-4.1.1-52.el5.2.src.rpm failed with no error henli Linux - Newbie 5 04-15-2009 02:08 PM
how to install ethernet card driver- ATHEROS AR8121 on FC9 truonghq Linux - Newbie 3 10-14-2008 01:08 PM
Unable to get ip-address on RHEL5 with GNU/Linux x86_64 with 2.6.18-8.el5 kernel. RHEL5_1979 Linux - Wireless Networking 5 08-21-2008 06:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration