LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 12-27-2002, 01:51 PM   #1
JafferAB
LQ Newbie
 
Registered: Sep 2002
Location: England, Notts.
Distribution: Red Hat 7.3 w/ 2.4.19 kernel.
Posts: 15

Rep: Reputation: 0
The FIle with no extension!


Hiya! Im tryign to install some new drivers, and it has included a file called Makefile which is meant to sort it all out, but i dunno how to run it

can anybody help me ?? thanks
 
Old 12-27-2002, 02:00 PM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86; Gentoo PPC; Gentoo Sparc64; FreeBSD; OS X; Solaris
Posts: 3,731
Blog Entries: 4

Rep: Reputation: 65
Usually you run three steps:
./configure
make
make install

Is there not a file called README or INSTALL? If you read that file it should have installation instructions specific to what you are building.
 
Old 12-27-2002, 02:04 PM   #3
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
You should always include the name of what your installing
 
Old 12-27-2002, 02:08 PM   #4
JafferAB
LQ Newbie
 
Registered: Sep 2002
Location: England, Notts.
Distribution: Red Hat 7.3 w/ 2.4.19 kernel.
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by bulliver
Usually you run three steps:
./configure
make
make install

Is there not a file called README or INSTALL? If you read that file it should have installation instructions specific to what you are building.
okok...

the readme doesnt tell me what i have to do

there are 3 files...

Makefile
Readme.txt
8139too.c

the point of makefile is to compile 8139too.c. The read me tells me to run the Makefile file!

make Makefile doesnt work
exec Makefile doesnt work
run Makefile deosnt work

I dont know what else to do, i have attached the readme file...

Code:
Comments for 8139too.c version 1.0.0
2001/10/31 by ShuChen Shao

1.This driver was originally based on 8139too.c version "0.9.15".
	
2.It has been enhanced to support RTL8139C+ PCI ethernet chips and tested in 2.4.2 kernel.

3.RTL8139C+ PCI ethernet chips is set to support C+ mode by default.
  If FORCE_C_Mode below is enabled, the RTL8139C+ chip will be forced to support C mode
  after reboot.

4.This program can be compiled using the attached Makefile.
  And the object file named 8139too.o should be moved to the directory 
  /lib/modules/2.4.2-2/kernel/drivers/net/

5.It can support Auto-Negotiation ability,that is
	10-half	 0x01
	10-full	 0x02
	100-half 0x04
	100-full 0x08
  If 10-half mode is expected, it can be achieved by the following steps:
	#ifconfig eth0 down
	#rmmod 8139too
	#insmod 8139too media=0x01

6.If the "Install Type", selected during the Linux install procedure, is "laptop",
  this driver can work normally for CardBus application without any modification.
  Otherwise, reinstall Linux and select "Install Type" as "laptop". 
  Then this driver can also work.

##############################################################################################
Comments for 8139too.c version 1.0.1
2001/11/21 by ShuChen Shao

1.It is able to support RTL8139C+ PCI ethernet chips in RedHat 7.2 (kernel 2.4.7).
  In addition, it is backward compatiable with RedHat 7.1 (kerne 2.4.2).
If code works here that should look like I have it

thanks!
 
Old 12-27-2002, 02:11 PM   #5
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86; Gentoo PPC; Gentoo Sparc64; FreeBSD; OS X; Solaris
Posts: 3,731
Blog Entries: 4

Rep: Reputation: 65
Don't type "make Makefile", just try "make"
 
Old 12-27-2002, 02:25 PM   #6
JafferAB
LQ Newbie
 
Registered: Sep 2002
Location: England, Notts.
Distribution: Red Hat 7.3 w/ 2.4.19 kernel.
Posts: 15

Original Poster
Rep: Reputation: 0
it didnt go too well... It was meant to make 8139too.o but it had an error...

Code:
make: *** Warning: File `Makefile' has modification time in the future (2002-06-26 21:49:26 > 1999-01-18 22:29:02)
gcc -O6 -Wall -DCONFIG_KERNELD -DMODULE -D__KERNEL__ -DLINUX  -I /usr/src/linux-2.4.18-3/include/ -c 8139too.c
In file included from /usr/include/linux/timex.h:152,
                 from /usr/include/linux/sched.h:14,
                 from /usr/include/linux/delay.h:12,
                 from 8139too.c:115:
/usr/include/asm/timex.h:10:21: asm/msr.h: No such file or directory
In file included from 8139too.c:115:
/usr/include/linux/delay.h:13:23: asm/delay.h: No such file or directory
make: *** [8139too.o] Error 1
btw, thanks for all the help so far
 
Old 12-27-2002, 02:32 PM   #7
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
try to make this link if you don't have /usr/src/linux


ln -s /usr/src/linux-2.4 /usr/src/linux
 
Old 12-27-2002, 03:00 PM   #8
JafferAB
LQ Newbie
 
Registered: Sep 2002
Location: England, Notts.
Distribution: Red Hat 7.3 w/ 2.4.19 kernel.
Posts: 15

Original Poster
Rep: Reputation: 0
hmmm, i did that, but it just says exactly the same :-/
 
Old 12-27-2002, 08:53 PM   #9
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 56
Why are you building a module that is included in the kernel already?
 
Old 01-30-2003, 05:44 PM   #10
tesdall
LQ Newbie
 
Registered: Jan 2003
Posts: 1

Rep: Reputation: 0
Unhappy

I am experiencing the same problem with another driver. Has anyone found the solution to this problem?
 
Old 01-30-2003, 06:45 PM   #11
newpenguin
Member
 
Registered: Sep 2002
Location: lahore pakistan
Distribution: slackware,redhat, FreeBSD,openbsd
Posts: 219

Rep: Reputation: 30
i think you dont have kernel headers installed.
install
kernel-headers-???.rpm
or
gcc-kernelheaders????.rpm
as you have a rpm based distribution.

but AUSIE is right dont need to compile it just modprobe it because its already in kernel.the module you are compiling is for kernel 2.4.2-2 (according to readme)and your distributin redhet 7.3 has a newer one 2.4.18-3.
 
Old 01-30-2003, 08:17 PM   #12
rnturn
Member
 
Registered: Jan 2003
Location: Illinois (Chicago area)
Distribution: Red Hat (8.0), SuSE (10.x, 11.x, 12.2), Solaris (8-10), Tru64
Posts: 905

Rep: Reputation: 45
Quote:
Originally posted by bulliver
Don't type "make Makefile", just try "make"
Or use the syntax:

make -f Makefile
 
Old 01-30-2003, 08:25 PM   #13
rnturn
Member
 
Registered: Jan 2003
Location: Illinois (Chicago area)
Distribution: Red Hat (8.0), SuSE (10.x, 11.x, 12.2), Solaris (8-10), Tru64
Posts: 905

Rep: Reputation: 45
Quote:
Originally posted by JafferAB
it didnt go too well... It was meant to make 8139too.o but it had an error...

Code:

make: *** Warning: File `Makefile' has modification time in the future (2002-06-26 21:49:26 > 1999-01-18 22:29:02)
gcc -O6 -Wall -DCONFIG_KERNELD -DMODULE -D__KERNEL__ -DLINUX  -I /usr/src/linux-2.4.18-3/include/ -c 8139too.c
In file included from /usr/include/linux/timex.h:152,
                 from /usr/include/linux/sched.h:14,
                 from /usr/include/linux/delay.h:12,
                 from 8139too.c:115:
Say, what's up with the clock on the system? I think that might have an, um, adverse effect on whatever make is trying to do.

I'd suggect either setting up NTP or setting the clock from the radio or something. Having the date/time off by four years is bound to drive you batty. And I suspect it's having a similar effect on make.
 
Old 01-30-2003, 08:39 PM   #14
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154

Rep: Reputation: 56
I probably got changed somehow, Now the files on the system are in the future. No telling how much havoc this will cause.
 
Old 01-30-2003, 09:54 PM   #15
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 46
Quote:
Originally posted by JafferAB
it didnt go too well... It was meant to make 8139too.o but it had an error...

Code:
make: *** Warning: File `Makefile' has modification time in the future (2002-06-26 21:49:26 > 1999-01-18 22:29:02)
gcc -O6 -Wall -DCONFIG_KERNELD -DMODULE -D__KERNEL__ -DLINUX  -I /usr/src/linux-2.4.18-3/include/ -c 8139too.c
In file included from /usr/include/linux/timex.h:152,
                 from /usr/include/linux/sched.h:14,
                 from /usr/include/linux/delay.h:12,
                 from 8139too.c:115:
/usr/include/asm/timex.h:10:21: asm/msr.h: No such file or directory
In file included from 8139too.c:115:
/usr/include/linux/delay.h:13:23: asm/delay.h: No such file or directory
make: *** [8139too.o] Error 1
btw, thanks for all the help so far

The error here is because the directory
Code:
/usr/src/linux-2.4.18-3/include/
either doesn't exist or doesn't contain the path:
Code:
asm/msr.h
If you didn't install your kernel source, you don't have the kernel
header files (as previously mentioned). You need to install the
source code for the kernel. This should come with RedHat.

You also should make sure your clock is reporting the correct
time. . .
If there does exist a directory like /usr/src/linux/include (or some
version of that), but is not exactly what the Makefile contains,
you'll also get an error. Either install what the Makefile expects,
or change it, but only if your kernel version is greater than 2.4.18
(-3 -- which is some modification version by RH).
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux file extension vs Dos file Extension? manaa Linux - Newbie 6 02-12-2009 04:19 PM
File extension...?? jojojo Linux - Newbie 1 05-23-2005 04:42 PM
why when redirecting output to a file any file extension seems to be fine? dr_zayus69 Linux - General 1 05-21-2005 04:09 AM
.la file extension n_hendrick Linux - Newbie 1 01-11-2004 04:20 PM
file extension help Netrack Linux - Newbie 9 01-21-2003 08:53 PM


All times are GMT -5. The time now is 12:21 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration