• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2024
  • Last Modified:

Trouble installing network card driver

Having trouble installing Advantek ALN-318c gigabit pci card on dell pc. PC is running fedora core 4. The cd that came with network card does have linux drivers, just dont know if im doing it correctly. I am somewhat new to linux so i need help. this is how far i got so far:

[root@localhost Desktop]# cd netdriver
[root@localhost netdriver]# ls
ipg_constants.h  ipg_main.c     make2.2mod.sh  PhyParam.h
ipg.h            ipg_structs.h  make2.2.sh     readme.txt
ipg_macros.h     ipg_tune.h     Makefile
[root@localhost netdriver]# make all
make -C /lib/modules/2.6.11-1.1369_FC4/build SUBDIRS=/root/Desktop/netdriver modules
make[1]: Entering directory `/usr/src/kernels/2.6.11-1.1369_FC4-i686'
  CC [M]  /root/Desktop/netdriver/ipg_main.o
/root/Desktop/netdriver/ipg_main.c: In function ‘ipg_get_rxbuff’:
/root/Desktop/netdriver/ipg_main.c:2297: warning: integer constant is too large for ‘long’ type
/root/Desktop/netdriver/ipg_main.c: In function ‘ipg_nic_hard_start_xmit’:
/root/Desktop/netdriver/ipg_main.c:2598: warning: integer constant is too large for ‘long’ type
/root/Desktop/netdriver/ipg_main.c: In function ‘ipg_nic_set_multicast_list’:
/root/Desktop/netdriver/ipg_main.c:3113: warning: passing argument 2 of ‘set_bit’ from incompatible pointer type
/root/Desktop/netdriver/ipg_main.c: At top level:
/root/Desktop/netdriver/ipg_main.c:3506: warning: initialization from incompatible pointer type
/root/Desktop/netdriver/ipg_main.c:3507: warning: initialization from incompatible pointer type
/root/Desktop/netdriver/ipg_main.c:3508: warning: initialization from incompatible pointer type
  LD [M]  /root/Desktop/netdriver/ipg.o
  Building modules, stage 2.
  MODPOST
  CC      /root/Desktop/netdriver/ipg.mod.o
  LD [M]  /root/Desktop/netdriver/ipg.ko
make[1]: Leaving directory `/usr/src/kernels/2.6.11-1.1369_FC4-i686'
[root@localhost netdriver]# ls
ipg_constants.h  ipg_macros.h  ipg.mod.c  ipg_structs.h  make2.2.sh  readme.txt
ipg.h            ipg_main.c    ipg.mod.o  ipg_tune.h     Makefile
ipg.ko           ipg_main.o    ipg.o      make2.2mod.sh  PhyParam.h
[root@localhost netdriver]# insmod ipg.ko
insmod: error inserting 'ipg.ko': -1 No such device
[root@localhost netdriver]#                      
0
Sentinel8o
Asked:
Sentinel8o
  • 7
  • 4
  • 3
1 Solution
 
owensleftfootCommented:
You need to copy the driver to the right location ie  cp ipg.o /lib/modules/2.6.11-1.1369/kernel/drivers/net/ (or a similar path)
0
 
ravenplCommented:
> [root@localhost netdriver]# insmod ipg.ko
> insmod: error inserting 'ipg.ko': -1 No such device
You doing OK, but the driver does not recognize Your device. Either broken driver or driver for wrong device, or the device isn't plugged in.
command: lspci # will show You devices connected to the PCI bus. Is there Your netcard?
0
 
owensleftfootCommented:
According to the readme, the ipg.o is the driver which should be insmoding.
0
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

 
Sentinel8oAuthor Commented:
a.for kernel 2.4.x
        -------------------
          a1. Redhat 7.3 (linux kernel 2.4.18)
          a1.1. install way 1:
              #make all =>generate ipg.o
              #cp ipg.o /lib/modules/2.4.18-3/kernel/drivers/net/
              #insmod ipg
              #ifconfig eth0 xxx.xxx.xxx.xxx netmask yyy.yyy.yyy.yyy
              eth0 is your network adapter,use dmesg to check it,
                   ex: eth0, eth1...
              xxx  is your ip address, ex: 192.168.102.211
              yyy  is your netmask address, ex:255.255.255.0

see what confuses me is that the instructions still say 2.4x.x.x but this was taken from the zipped folder for 2.6.x.x.x.x. also shouldnt the insmod ipg command have a file extension like insmod ipg.o or something?
0
 
owensleftfootCommented:
cd to /lib/modules and have a look at the dirs. There should be at least one starting with 2.6.xxx. ie I'm on suse 10 and mine is /lib/modules/2.6.13-15.8-default/kernel/drivers/net/

Insmod looks in specific places. After you copy ipg.o to the right place (the previous command in the readme) insmod ipg actually does mean insmod ipg.o
0
 
Sentinel8oAuthor Commented:
[root@localhost Desktop]# cd netdriver
[root@localhost netdriver]# ls
ipg_constants.h  ipg_macros.h  ipg.mod.c  ipg_structs.h  make2.2.sh  readme.txt
ipg.h            ipg_main.c    ipg.mod.o  ipg_tune.h     Makefile
ipg.ko           ipg_main.o    ipg.o      make2.2mod.sh  PhyParam.h
[root@localhost netdriver]# make all
make -C /lib/modules/2.6.11-1.1369_FC4/build SUBDIRS=/root/Desktop/netdriver modules
make[1]: Entering directory `/usr/src/kernels/2.6.11-1.1369_FC4-i686'
  Building modules, stage 2.
  MODPOST
make[1]: Leaving directory `/usr/src/kernels/2.6.11-1.1369_FC4-i686'
[root@localhost netdriver]# cd /lib/modules
[root@localhost modules]# ls
2.6.11-1.1369_FC4
[root@localhost modules]# cd 2.6*
[root@localhost 2.6.11-1.1369_FC4]# ls
build          modules.ccwmap       modules.inputmap   modules.symbols
kernel         modules.dep          modules.isapnpmap  modules.usbmap
modules.alias  modules.ieee1394map  modules.pcimap     source
[root@localhost 2.6.11-1.1369_FC4]# cd kernel/drivers/net
[root@localhost net]# ls
3c501.ko     cs89x0.ko    forcedeth.ko   pcnet32.ko      smc-ultra.ko
3c503.ko     de600.ko     hamachi.ko     plip.ko         starfire.ko
3c505.ko     de620.ko     hp100.ko       ppp_async.ko    sundance.ko
3c507.ko     depca.ko     hp.ko          ppp_deflate.ko  sungem.ko
3c509.ko     dgrs.ko      hp-plus.ko     ppp_generic.ko  sungem_phy.ko
3c515.ko     dl2k.ko      irda           pppoe.ko        sunhme.ko
3c59x.ko     dummy.ko     ixgb           pppox.ko        tg3.ko
8139cp.ko    e1000        lance.ko       ppp_synctty.ko  tlan.ko
8139too.ko   e100.ko      lp486e.ko      r8169.ko        tokenring
82596.ko     e2100.ko     mii.ko         s2io.ko         tulip
8390.ko      eepro100.ko  natsemi.ko     sb1000.ko       tun.ko
ac3200.ko    eepro.ko     ne2k-pci.ko    seeq8005.ko     typhoon.ko
acenic.ko    eexpress.ko  ne.ko          sis900.ko       via-rhine.ko
amd8111e.ko  epic100.ko   netconsole.ko  sk98lin         via-velocity.ko
appletalk    eql.ko       ni52.ko        skfp            wd.ko
atp.ko       eth16i.ko    ni65.ko        slhc.ko         wireless
b44.ko       ewrk3.ko     ns83820.ko     slip.ko         yellowfin.ko
bonding      fealnx.ko    pcmcia         smc9194.ko      znet.ko
[root@localhost net]# pwd
/lib/modules/2.6.11-1.1369_FC4/kernel/drivers/net
[root@localhost net]# cd ~
[root@localhost ~]# cd Desktop/netdriver
[root@localhost netdriver]# ls
ipg_constants.h  ipg_macros.h  ipg.mod.c  ipg_structs.h  make2.2.sh  readme.txt
ipg.h            ipg_main.c    ipg.mod.o  ipg_tune.h     Makefile
ipg.ko           ipg_main.o    ipg.o      make2.2mod.sh  PhyParam.h
[root@localhost netdriver]# cp ipg.o /lib/modules/2.6.11-1.1369_FC4/kernel/drivers/net
[root@localhost netdriver]# insmod ipg.o
insmod: error inserting 'ipg.o': -1 Invalid module format
[root@localhost netdriver]#  
0
 
Sentinel8oAuthor Commented:
I get that error now
0
 
ravenplCommented:
In Your case the proper file is ipg.ko
Have You confirmed (with lspci) that the Your card is available?
0
 
Sentinel8oAuthor Commented:
So whats the difference between ipg.ko and ipg.o? i did lspci and it shows the gigbit network card as there. here is the output, still get error

lspci output:
[root@localhost netdriver]# cp ipg.ko /lib/modules/2.6.11-1.1369_FC4/kernel/drivers/net
[root@localhost netdriver]# cd /lib/modules/2.6.11-1.1369_FC4/kernel/drivers/net
[root@localhost net]# ls
3c501.ko     appletalk  eepro100.ko   ipg.o          pcnet32.ko      skfp           tun.ko
3c503.ko     atp.ko     eepro.ko      irda           plip.ko         slhc.ko        typhoon.ko
3c505.ko     b44.ko     eexpress.ko   ixgb           ppp_async.ko    slip.ko        via-rhine.ko
3c507.ko     bonding    epic100.ko    lance.ko       ppp_deflate.ko  smc9194.ko     via-velocity.ko
3c509.ko     cs89x0.ko  eql.ko        lp486e.ko      ppp_generic.ko  smc-ultra.ko   wd.ko
3c515.ko     de600.ko   eth16i.ko     mii.ko         pppoe.ko        starfire.ko    wireless
3c59x.ko     de620.ko   ewrk3.ko      natsemi.ko     pppox.ko        sundance.ko    yellowfin.ko
8139cp.ko    depca.ko   fealnx.ko     ne2k-pci.ko    ppp_synctty.ko  sungem.ko      znet.ko
8139too.ko   dgrs.ko    forcedeth.ko  ne.ko          r8169.ko        sungem_phy.ko
82596.ko     dl2k.ko    hamachi.ko    netconsole.ko  s2io.ko         sunhme.ko
8390.ko      dummy.ko   hp100.ko      ni52.ko        sb1000.ko       tg3.ko
ac3200.ko    e1000      hp.ko         ni65.ko        seeq8005.ko     tlan.ko
acenic.ko    e100.ko    hp-plus.ko    ns83820.ko     sis900.ko       tokenring
amd8111e.ko  e2100.ko   ipg.ko        pcmcia         sk98lin         tulip
[root@localhost net]# insmod ipg.ko
insmod: error inserting 'ipg.ko': -1 No such device
0
 
ravenplCommented:
.o is old style (2.4.x and older) kernel object module. .ko stands for lernel object - since 2.6.x.
I suppose You are getting wrong/too old netcard driver.
0
 
Sentinel8oAuthor Commented:
this is the only driver they have on the site. so this means i cant use it?
0
 
Sentinel8oAuthor Commented:
Need this answered asap=)
upping the points again
0
 
Sentinel8oAuthor Commented:
er noticed a mistake lspci output is acutally

[root@localhost ~]# lspci
00:00.0 Host bridge: Intel Corporation 82815 815 Chipset Host Bridge and Memory Controller Hub (rev 02)
00:02.0 VGA compatible controller: Intel Corporation 82815 CGC [Chipset Graphics Controller] (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 02)
00:1f.0 ISA bridge: Intel Corporation 82801BA ISA Bridge (LPC) (rev 02)
00:1f.1 IDE interface: Intel Corporation 82801BA IDE U100 (rev 02)
00:1f.2 USB Controller: Intel Corporation 82801BA/BAM USB (Hub #1) (rev 02)
00:1f.3 SMBus: Intel Corporation 82801BA/BAM SMBus (rev 02)
00:1f.4 USB Controller: Intel Corporation 82801BA/BAM USB (Hub #2) (rev 02)
00:1f.5 Multimedia audio controller: Intel Corporation 82801BA/BAM AC'97 Audio (rev 02)
01:09.0 Ethernet controller: Sundance Technology Inc IC Plus IP1000 Family Gigabit Ethernet (rev 41)
You have new mail in /var/spool/mail/root
[root@localhost ~]#
0
 
ravenplCommented:
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 7
  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now