LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-13-2004, 10:37 AM   #1
vanhelsing
Member
 
Registered: May 2004
Posts: 130

Rep: Reputation: 15
Install NIC(LAN) driver card


I must post again becoz nobody answer me

I face with first broblem, "install driver"
I use LAN card "SMC1255TX"

my kernel is 2.4.20-8, on an i686

This is my manual that give me in driver CD, I copy it ------>

FOR LINUX KERNEL 2.4
======================

The readme file contains the following information for SMC EZ
Card 10/100 (SMC1255TX) adapter Linux driver installation.

A. Rebuild the SMC1255TX Linux driver

B. Driver installation


A. Rebuild the SMC1255TX Linux driver
======================================

1. Copy the source code directory to a temporary directory, for example /tmp,

#cp -r tulip /tmp

2. Rebuild the driver using the following command,

#cd /tmp/tulip

#make

Now, you have the new driver object code in the /tmp/tulip directory.
You can go to section B, to install the new driver.

and This is all my work and my broblem ------------------->

[root@localhost /]# cd /mnt/cdrom
[root@localhost cdrom]# ls
Adobe Acrobat LINUX NDIS2 RELEASE.htm snmp WIN98
Autorun.inf MAC NETWARE RELEASE.TXT UW7 Winetool
DIAG Manual PKTDRV SCO5 vlans WINme2kxp
EtherGuard MSLANMAN.DOS README.htm SMC1255TX.exe WIN95 WINNT
LANDRV32 MSLANMAN.OS2 README.TXT smc.exe WIN95SR2
[root@localhost cdrom]# cd LI*
[root@localhost LINUX]# ls
2.2 2.4
[root@localhost LINUX]# cd 2.4
[root@localhost 2.4]# ls
README.TXT TULIP
[root@localhost 2.4]# cp -r TULIP /tmp
[root@localhost 2.4]# cd /tmp
[root@localhost tmp]# ls
7izsyr8l.rpm mcop-root ssh-XXgGzSJ2 ssh-XXUWztVH
gaim_root.6049 orbit-root ssh-XXj4czwo ssh-XXVBhSF0
immdrjcj.rpm qt33-whitepaper-a4.pdf ssh-XXjnG9L2 ssh-XXWZhEXj
kde-root ssh-XX4lsUen ssh-XXlS5Xhs TULIP
ksocket-root ssh-XXEbJBc8 ssh-XXr7AdBG
[root@localhost tmp]# cd TU*
[root@localhost TULIP]# ls
21142.C interrupt.c MEDIA.C TIMER.C TULIP.H
EEPROM.C Makefile PNIC.C tulip_core.c
[root@localhost TULIP]# make
g++ -c -o 21142.o 21142.C
21142.C:16:19: tulip.h: No such file or directory
In file included from /usr/include/linux/sched.h:14,
from /usr/include/linux/delay.h:12,
from 21142.C:18:
/usr/include/linux/timex.h:173: field `time' has incomplete type
In file included from /usr/include/linux/bitops.h:69,
from /usr/include/asm/system.h:7,
from /usr/include/linux/sched.h:16,
from /usr/include/linux/delay.h:12,
from 21142.C:18:
/usr/include/asm/bitops.h:327:2: warning: #warning This includefile is not avail
able on all architectures.
/usr/include/asm/bitops.h:328:2: warning: #warning Using kernel headers in users
pace: atomicity not guaranteed
In file included from /usr/include/linux/signal.h:4,
from /usr/include/linux/sched.h:25,
from /usr/include/linux/delay.h:12,
from 21142.C:18:
/usr/include/asm/signal.h:107: 'sigset_t' is used as a type, but is not defined
as a type.
In file included from /usr/include/linux/sched.h:81,
from /usr/include/linux/delay.h:12,
from 21142.C:18:
/usr/include/linux/timer.h:32: field `vec' has incomplete type
/usr/include/linux/timer.h:37: field `vec' has incomplete type
/usr/include/linux/timer.h:45: 'spinlock_t' is used as a type, but is not
defined as a type.
/usr/include/linux/timer.h:63: field `list' has incomplete type
/usr/include/linux/timer.h: In function `void init_timer(timer_t*)':
/usr/include/linux/timer.h:105: `struct timer_list' has no member named `list'
/usr/include/linux/timer.h:105: `struct timer_list' has no member named `list'
/usr/include/linux/timer.h: In function `int timer_pending(const timer_t*)':
/usr/include/linux/timer.h:121: `struct timer_list' has no member named `list'
In file included from 21142.C:18:
/usr/include/linux/delay.h:13:23: asm/delay.h: No such file or directory
21142.C: At global scope:
21142.C:21: syntax error before `[' token
21142.C:22: parse error before `[' token
21142.C:23: syntax error before `[' token
21142.C: In function `void t21142_timer(long unsigned int)':
21142.C:31: invalid use of undefined type `struct net_device'
21142.C:30: forward declaration of `struct net_device'
21142.C:32: invalid use of undefined type `struct net_device'
21142.C:30: forward declaration of `struct net_device'
21142.C:33: `CSR12' undeclared (first use this function)
21142.C:33: (Each undeclared identifier is reported only once for each function
it appears in.)
21142.C:33: `inl' undeclared (first use this function)
21142.C:37: `tulip_debug' undeclared (first use this function)
21142.C:38: `KERN_INFO' undeclared (first use this function)
21142.C:38: parse error before string constant
21142.C:40: `tulip_media_cap' undeclared (first use this function)
21142.C:40: invalid use of undefined type `struct net_device'
21142.C:30: forward declaration of `struct net_device'
21142.C:40: `MediaIsMII' undeclared (first use this function)
21142.C:41: `tulip_check_duplex' undeclared (first use this function)
21142.C:43: invalid use of undefined type `struct tulip_private'
21142.C:31: forward declaration of `struct tulip_private'
21142.C:46: parse error before string constant
21142.C:48: invalid use of undefined type `struct tulip_private'
21142.C:31: forward declaration of `struct tulip_private'
21142.C:50: invalid use of undefined type `struct net_device'
21142.C:30: forward declaration of `struct net_device'
21142.C:53: parse error before string constant
21142.C:55: `t21142_start_nway' undeclared (first use this function)
21142.C:61: parse error before string constant
21142.C:65: invalid use of undefined type `struct net_device'
21142.C:30: forward declaration of `struct net_device'
21142.C:66: `CSR13' undeclared (first use this function)
21142.C:66: `outl' undeclared (first use this function)
21142.C:67: `CSR14' undeclared (first use this function)
21142.C:68: `t21142_csr15' undeclared (first use this function)
21142.C:68: invalid use of undefined type `struct net_device'
21142.C:30: forward declaration of `struct net_device'
21142.C:68: `CSR15' undeclared (first use this function)
21142.C:68: `outw' undeclared (first use this function)
21142.C:69: `t21142_csr13' undeclared (first use this function)
21142.C:69: invalid use of undefined type `struct net_device'
21142.C:30: forward declaration of `struct net_device'
21142.C:73: invalid use of undefined type `struct net_device'
21142.C:30: forward declaration of `struct net_device'
21142.C:80: parse error before string constant
21142.C:82: invalid use of undefined type `struct tulip_private'
21142.C:31: forward declaration of `struct tulip_private'
21142.C:83: invalid use of undefined type `struct tulip_private'
21142.C:31: forward declaration of `struct tulip_private'
21142.C:84: invalid use of undefined type `struct tulip_private'
21142.C:31: forward declaration of `struct tulip_private'
21142.C:86: invalid use of undefined type `struct tulip_private'
21142.C:31: forward declaration of `struct tulip_private'
21142.C:86: `tulip_restart_rxtx' undeclared (first use this function)
21142.C:94: invalid use of undefined type `struct tulip_private'
21142.C:31: forward declaration of `struct tulip_private'
21142.C:94: `RUN_AT' undeclared (first use this function)
21142.C: In function `void t21142_start_nway(net_device*)':
21142.C:99: `void t21142_start_nway(net_device*)' used prior to declaration
21142.C:100: invalid use of undefined type `struct net_device'
21142.C:98: forward declaration of `struct net_device'
21142.C:101: invalid use of undefined type `struct net_device'
21142.C:98: forward declaration of `struct net_device'
21142.C:102: invalid use of undefined type `struct tulip_private'
21142.C:100: forward declaration of `struct tulip_private'
21142.C:103: invalid use of undefined type `struct tulip_private'
21142.C:100: forward declaration of `struct tulip_private'
21142.C:105: `DPRINTK' undeclared (first use this function)
21142.C:107: invalid use of undefined type `struct net_device'
21142.C:98: forward declaration of `struct net_device'
21142.C:108: invalid use of undefined type `struct tulip_private'
21142.C:100: forward declaration of `struct tulip_private'
21142.C:108: invalid use of undefined type `struct tulip_private'
21142.C:100: forward declaration of `struct tulip_private'
21142.C:109: invalid use of undefined type `struct tulip_private'
21142.C:100: forward declaration of `struct tulip_private'
21142.C:109: invalid use of undefined type `struct tulip_private'
21142.C:100: forward declaration of `struct tulip_private'
21142.C:111: `KERN_DEBUG' undeclared (first use this function)
21142.C:111: parse error before string constant
21142.C:114: `udelay' undeclared (first use this function)
21142.C:116: invalid use of undefined type `struct tulip_private'
21142.C:100: forward declaration of `struct tulip_private'
21142.C:116: `PNIC2' undeclared (first use this function)
21142.C:117: invalid use of undefined type `struct tulip_private'
21142.C:100: forward declaration of `struct tulip_private'
21142.C:117: invalid use of undefined type `struct tulip_private'
21142.C:100: forward declaration of `struct tulip_private'
21142.C:119: invalid use of undefined type `struct tulip_private'
21142.C:100: forward declaration of `struct tulip_private'
21142.C:119: invalid use of undefined type `struct tulip_private'
21142.C:100: forward declaration of `struct tulip_private'
21142.C:120: invalid use of undefined type `struct tulip_private'
21142.C:100: forward declaration of `struct tulip_private'
21142.C:120: `CSR6' undeclared (first use this function)
21142.C:120: `tulip_outl_csr' undeclared (first use this function)
21142.C:121: invalid use of undefined type `struct tulip_private'
21142.C:100: forward declaration of `struct tulip_private'
21142.C:121: invalid use of undefined type `struct tulip_private'
21142.C:100: forward declaration of `struct tulip_private'
21142.C:122: invalid use of undefined type `struct tulip_private'
21142.C:100: forward declaration of `struct tulip_private'
21142.C:123: invalid use of undefined type `struct tulip_private'
21142.C:100: forward declaration of `struct tulip_private'
21142.C: In function `void t21142_lnk_change(net_device*, int)':
21142.C:132: invalid use of undefined type `struct net_device'
21142.C:98: forward declaration of `struct net_device'
21142.C:133: invalid use of undefined type `struct net_device'
21142.C:98: forward declaration of `struct net_device'
21142.C:137: parse error before string constant
21142.C:141: invalid use of undefined type `struct tulip_private'
21142.C:132: forward declaration of `struct tulip_private'
21142.C:141: invalid use of undefined type `struct tulip_private'
21142.C:132: forward declaration of `struct tulip_private'
21142.C:143: invalid use of undefined type `struct tulip_private'
21142.C:132: forward declaration of `struct tulip_private'
21142.C:144: invalid use of undefined type `struct tulip_private'
21142.C:132: forward declaration of `struct tulip_private'
21142.C:145: invalid use of undefined type `struct tulip_private'
21142.C:132: forward declaration of `struct tulip_private'
21142.C:146: invalid use of undefined type `struct net_device'
21142.C:98: forward declaration of `struct net_device'
21142.C:147: invalid use of undefined type `struct net_device'
21142.C:98: forward declaration of `struct net_device'
21142.C:148: invalid use of undefined type `struct net_device'
21142.C:98: forward declaration of `struct net_device'
21142.C:149: invalid use of undefined type `struct net_device'
21142.C:98: forward declaration of `struct net_device'
21142.C:151: invalid use of undefined type `struct tulip_private'
21142.C:132: forward declaration of `struct tulip_private'
21142.C:152: invalid use of undefined type `struct tulip_private'
21142.C:132: forward declaration of `struct tulip_private'
21142.C:153: invalid use of undefined type `struct net_device'
21142.C:98: forward declaration of `struct net_device'
21142.C:155: invalid use of undefined type `struct tulip_private'
21142.C:132: forward declaration of `struct tulip_private'
21142.C:155: invalid use of undefined type `struct net_device'
21142.C:98: forward declaration of `struct net_device'
21142.C:155: `MediaAlwaysFD' undeclared (first use this function)
21142.C:158: invalid use of undefined type `struct tulip_private'
21142.C:132: forward declaration of `struct tulip_private'
21142.C:159: parse error before string constant
21142.C:169: invalid use of undefined type `struct tulip_private'
21142.C:132: forward declaration of `struct tulip_private'
21142.C:171: invalid use of undefined type `struct tulip_private'
21142.C:132: forward declaration of `struct tulip_private'
21142.C:172: invalid use of undefined type `struct tulip_private'
21142.C:132: forward declaration of `struct tulip_private'
21142.C:172: invalid use of undefined type `struct net_device'
21142.C:98: forward declaration of `struct net_device'
21142.C:173: invalid use of undefined type `struct tulip_private'
21142.C:132: forward declaration of `struct tulip_private'
21142.C:174: `tulip_select_media' undeclared (first use this function)
21142.C:180: invalid use of undefined type `struct tulip_private'
21142.C:132: forward declaration of `struct tulip_private'
21142.C:180: invalid use of undefined type `struct net_device'
21142.C:98: forward declaration of `struct net_device'
21142.C:181: invalid use of undefined type `struct tulip_private'
21142.C:132: forward declaration of `struct tulip_private'
21142.C:182: invalid use of undefined type `struct tulip_private'
21142.C:132: forward declaration of `struct tulip_private'
21142.C:191: invalid use of undefined type `struct tulip_private'
21142.C:132: forward declaration of `struct tulip_private'
21142.C:191: `csr6_st' undeclared (first use this function)
21142.C:191: `csr6_sr' undeclared (first use this function)
21142.C:193: parse error before string constant
21142.C:196: invalid use of undefined type `struct tulip_private'
21142.C:132: forward declaration of `struct tulip_private'
21142.C:197: invalid use of undefined type `struct net_device'
21142.C:98: forward declaration of `struct net_device'
21142.C:197: invalid use of undefined type `struct net_device'
21142.C:98: forward declaration of `struct net_device'
21142.C:199: invalid use of undefined type `struct tulip_private'
21142.C:132: forward declaration of `struct tulip_private'
21142.C:199: `TPLnkFail' undeclared (first use this function)
21142.C:201: invalid use of undefined type `struct tulip_private'
21142.C:132: forward declaration of `struct tulip_private'
21142.C:203: invalid use of undefined type `struct tulip_private'
21142.C:132: forward declaration of `struct tulip_private'
21142.C:204: invalid use of undefined type `struct tulip_private'
21142.C:132: forward declaration of `struct tulip_private'
21142.C:205: invalid use of undefined type `struct net_device'
21142.C:98: forward declaration of `struct net_device'
21142.C:205: invalid use of undefined type `struct net_device'
21142.C:98: forward declaration of `struct net_device'
21142.C:207: parse error before string constant
21142.C:210: invalid use of undefined type `struct tulip_private'
21142.C:132: forward declaration of `struct tulip_private'
21142.C:211: invalid use of undefined type `struct tulip_private'
21142.C:132: forward declaration of `struct tulip_private'
21142.C:213: invalid use of undefined type `struct tulip_private'
21142.C:132: forward declaration of `struct tulip_private'
21142.C:214: invalid use of undefined type `struct tulip_private'
21142.C:132: forward declaration of `struct tulip_private'
21142.C:216: invalid use of undefined type `struct net_device'
21142.C:98: forward declaration of `struct net_device'
21142.C:216: invalid use of undefined type `struct net_device'
21142.C:98: forward declaration of `struct net_device'
21142.C:218: parse error before string constant
21142.C:222: parse error before string constant
21142.C:224: invalid use of undefined type `struct net_device'
21142.C:98: forward declaration of `struct net_device'
21142.C:225: invalid use of undefined type `struct tulip_private'
21142.C:132: forward declaration of `struct tulip_private'
21142.C:227: parse error before string constant
21142.C:231: parse error before string constant
21142.C:233: invalid use of undefined type `struct net_device'
21142.C:98: forward declaration of `struct net_device'
21142.C:234: invalid use of undefined type `struct tulip_private'
21142.C:132: forward declaration of `struct tulip_private'
21142.C:237: invalid use of undefined type `struct tulip_private'
21142.C:132: forward declaration of `struct tulip_private'
make: *** [21142.o] Error 1
[root@localhost TULIP]#

Tell me , Why does it have error?


 
Old 08-01-2004, 05:49 PM   #2
zatriz
Member
 
Registered: Aug 2003
Location: Seattle, Wa
Distribution: Fedora,Trustix,Debian
Posts: 290

Rep: Reputation: 30
Hope this helps
21142.C:16:19: tulip.h: No such file or directory
there is a file in that directory /TULIP
but its all upper case.
so you could edit the 21142.C file and check for references to tulip.h and make sure that it is in upper case and then
make clean
then run make again

linux kernel 2.4 comes with a tulip driver, i would recommend trying to install the driver that comes with linux instead of trying to build this one. depending on our distribution install the tulip driver for eth0 if this is the only card in your system.

if you cant do it in the gui then try this
run "dmesg | less" and make sure that the card is being detected.
and read what it says.
then "modprobe tulip"
and add this line to your /etc/modules.conf file
"alias eth0 tulip"

then run "ifconfig eth0"

Last edited by zatriz; 08-01-2004 at 05:50 PM.
 
  


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
SUSE9PRO-NIC Card works in office LAN but when at home causes siemans router to fail andersab Linux - Laptop and Netbook 1 05-02-2008 08:02 AM
LAN card driver for network install yisnixslow Linux - General 3 03-23-2005 07:52 AM
3Com 11Mbps Wireless LAN NIC driver? csvke Linux - Wireless Networking 0 01-09-2005 10:10 AM
nic card driver Rydog2987 Linux - Networking 2 08-16-2004 03:31 AM
Knoppix LAN NIC CARD frankiet Linux - Newbie 0 08-30-2003 10:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:42 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