LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 07-04-2004, 12:51 PM   #1
Tangz
LQ Newbie
 
Registered: Jul 2004
Location: Deland, FL
Posts: 26

Rep: Reputation: 15
(HELP) how to: Compile new drivers for SMC NIC


ok, I am having a tad bit of problems here. I have SuSe Linux 8.2 installed on a VMWare workstation. That was a pain in the neck to setup but I did actually get it running smoothly.

My question now is. Since using vmware limits the cababilities of linux (virtual video driver etc etc) I am wanting to install it on a actual hard drive. 3 seperate computers have been tried on and failed, then I got a new network card and on the disk it has the C source code for the drivers.

I need to know how to properly compile it so that I can use it as a module disk when I install 8.2 since none of the other network modules seem to work. When I tried by the instructions below all I got were a ton of errors when i used konsole or x terminal

I need the network card to be able to ftp to a local server and install via ftp.

(i dont know which kernal I have, so if someone could help me find that out too that would be greatly appreciated)

here is the readme for the 2.2 kernal drivers
< ==================================================
==============>
< SMC Networks, Inc. >
< SMC EZ Card 10/100 (SMC1255TX) >
< SOFTWARE DRIVER SUPPORT >
< >
< Copyright 2001 SMC Networks, Inc. >
< All Rights Reserved. >
< >
< ==================================================
==============>

FOR LINUX KERNEL 2.2
======================

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 to a temporary directory, for example /tmp,

#cp tulip.c /tmp

2. Rebuild the driver using the following command,

#cd /tmp

-- for single-processor system,
#gcc -DMODVERSIONS -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O6 -c tulip.c

-- for symmetric-multi-processor system,
#gcc -DMODVERSIONS -D__SMP__ -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O6 -c tulip.c

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



here is the readme from the 2.4 kernal drivers
< ==================================================
==============>
< SMC Networks, Inc. >
< SMC EZ Card 10/100 (SMC1255TX) >
< SOFTWARE DRIVER SUPPORT >
< >
< Copyright 2001 SMC Networks, Inc. >
< All Rights Reserved. >
< >
< ==================================================
==============>

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.
 
Old 07-04-2004, 01:10 PM   #2
mritch
Member
 
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667

Rep: Reputation: 30
maybe i'm wrong but doesn't vmware provide a ethernet device (which iirc gives you the possibilty to emulate a nic for the os sitting on top of vmware). or are you talkling 'bout the underlaying linux* - providing vmware?

to get your kernel-version type "uname -r" or take a look at /proc/sys/kernel/. procinfo also will give it i the first line.

afaik your ethernet card IS supported with your kernel (there is a good ethernet howto at www.tldp.org ), so maybe you just have to use the right module and won't have to recompile your kernel (i do that on every machine i set up and it's not that hard anyway). can you send in a "lspci -v" so we'll get a view of your pcispace?

sl mritch.
 
Old 07-04-2004, 01:43 PM   #3
Tangz
LQ Newbie
 
Registered: Jul 2004
Location: Deland, FL
Posts: 26

Original Poster
Rep: Reputation: 15
Yes VMWare does provide a virtual device, which is why I want to install a full copy on a empty HDD, so I wont be limited by vmware.

I am posting in another topic as well, and the built in card on my mainboard is an rtl8139, which is listed in the modules and it gets installed with no problems but I cannot seem to connect to my ftp server which is located 5 feet away on my server machine (Win2000 Hosted) I can set up all the ip address, gateway, server ip blah blah....but when it tries to connect it says something like error connecting to server....any Idea of what I'm doing wrong?
 
Old 07-04-2004, 02:24 PM   #4
mritch
Member
 
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667

Rep: Reputation: 30
tried the 8139too module?

sl mritch.
 
Old 07-04-2004, 04:02 PM   #5
Tangz
LQ Newbie
 
Registered: Jul 2004
Location: Deland, FL
Posts: 26

Original Poster
Rep: Reputation: 15
Im in the process of working on it right now, I am trying instead to use the ntfs module and install directly from that 2nd hard disk that has the linux OS on it.

And yes I did try that 8139too module as well, it asks for perameters and whatever I put in always comes up with "error loading module"

please let me know if i am doing this correctly..

when I want to install from an ntfs partition it asks me for the directory.
The directory that it is in in windows is
D:\PROGRAMS\OS\suse\81

I know linux reads directories differently so what should I put for the directory location??????
 
Old 07-04-2004, 05:15 PM   #6
mritch
Member
 
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667

Rep: Reputation: 30
be sure your sys supports ntfs by getting the supported filesystems with

cat /proc/filesystems

ntfs should show up there; then mount it with

mount -t ntfs /dev/[partition] /mnt/windows_d

the partition will be mounted to mountpoint /mnt/windows_d (<- this directory must exist for success) - [partition] is the place where your ntfs is located. under linux there are (ide)disks: "hda" for the first (master at ide0) drive, "hdb" for the slave, "hdc" master at ide1 ...
each drive may contain one or more partitions (primary or extended/logical). they are called hda1 (1st primary partition at 1st drive), hda2(second),...

so your windows d: drive *could* be hdb1. if you are not sure you can take a look at your partition-table from the first drive via "cfdisk /dev/hda"

take a look at /etc/fstab for the current configuration of mountable filesystems in your system. you can get a view of your mounted fs's via calling "mount" or "df -h".
you always can type "man [program-name]" to get further information about a program.

sl mritch.
 
  


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
Slack 10 has problem with SMC nic Phaete Linux - Networking 1 03-09-2005 11:45 PM
SMC 8508T switch and SMC9462TX gigabit NIC problems kobus Linux - Networking 0 09-15-2004 08:40 AM
NIC help!! SMC Gunslinger_ROL Linux - Networking 1 06-13-2004 05:07 PM
SMC EtherPower 10/100 dual NIC Phydeaux Linux - Networking 4 02-20-2004 04:30 PM
SMC 2435w Drivers osfestus Linux - Networking 14 10-16-2003 01:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:52 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration