Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-07-2006, 10:03 AM
|
#1
|
Member
Registered: May 2006
Location: Hyderabad,India
Distribution: Ubuntu
Posts: 35
Rep: 
|
Please Compile This Module For Me...
Hello people..
I am havin some tuff time trying to compile this thing.
I need Linux_source for this..which I don't have.
its a 35 MB file..that'll take ages to download for me.
I am Presently on Breezy Badger(Kernel 2.6x)
I need you guys to Compile the Kernal Module for me
There is the make file that must be edited acc. to your kernel
Please do it..I beg of u guys...
http://www.megaupload.com/?d=OGK2WNVP
is the file
thanks guys
|
|
|
05-07-2006, 10:35 AM
|
#2
|
Senior Member
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
|
Why, the file is for a 2.4.18 kernel and will not build for a 2.6 kernel.
Besides you can probably just 'modprobe 8139too' and then assign eth(whatever) an address.
|
|
|
05-07-2006, 10:42 AM
|
#3
|
Member
Registered: May 2006
Location: Hyderabad,India
Distribution: Ubuntu
Posts: 35
Original Poster
Rep: 
|
the make file is for 2.4X
but the 8139too is for 2.6X
tats why I said...u need to change the MAKE FILE
and then compile
PLEASE do it dude.
|
|
|
05-07-2006, 10:51 AM
|
#4
|
Member
Registered: Aug 2005
Location: Upstate NY
Distribution: Ubuntu 7.10 Gutsy Gibbon
Posts: 100
Rep:
|
u would probably get better results if u didnt just say "do it" what i did with dialup is just leave thje dwnload overnight and it would be done in the morning, and then u could ask the ppl on here how to compile it and change the Makefile urself. Ive had quite a few problems, and all u have to do is ask how to do it urself and u get ppl replying.
|
|
|
05-07-2006, 10:54 AM
|
#5
|
Member
Registered: May 2006
Location: Hyderabad,India
Distribution: Ubuntu
Posts: 35
Original Poster
Rep: 
|
Yaa dude..But i have a stupid connection that has a limit of 1GB
per month..
If i exceed I am doomed.
Please understand man.
Please do it if its possible, for me.
|
|
|
05-07-2006, 11:10 AM
|
#6
|
Member
Registered: Aug 2005
Location: Upstate NY
Distribution: Ubuntu 7.10 Gutsy Gibbon
Posts: 100
Rep:
|
o that sucks a big one. Im really new at this stuff, it kind of sucks when u post something and either noone wants to do it or noone knows how to.idk how to
|
|
|
05-07-2006, 12:17 PM
|
#7
|
Member
Registered: Aug 2004
Posts: 210
Rep:
|
Dear Lenard,
I badly need some help with load balancing using ip route. I can't post the picture of my topology but I can send it to you via email. Mine is "vishamr2000@gmail.com". If you want, pls do give me urs so that I can send you the topology..
Great if you could help me out dude..
Warm regards,
Visham
|
|
|
05-07-2006, 01:23 PM
|
#8
|
Member
Registered: Oct 2005
Location: Ontario, Canada
Distribution: Arch, Gentoo
Posts: 98
Rep:
|
hellmet, this driver is already included in 2.6.x kernels. The network card this machine has uses this same driver and I tried ubuntu a couple of weeks ago with no problem. Why do you need this compiled when it is already available with your kernel?
Anyways, it won't compile against a 2.6.16 kernel, presumably because it is for a 2.4.x kernel. If you give some kind of explanation other than "please do it" we might be able to help.
Code:
gcc -O6 -Wall -DCONFIG_KERNELD -DMODULE -D__KERNEL__ -DLINUX -I /usr/src/linux/
include/ -c 8139too.c
In file included from /usr/src/linux/include/linux/sched.h:20,
from /usr/src/linux/include/linux/module.h:10,
from 8139too.c:107:
/usr/src/linux/include/asm/semaphore.h: In function `down':
/usr/src/linux/include/asm/semaphore.h:105: error: syntax error before "KBUILD_B
ASENAME"
/usr/src/linux/include/asm/semaphore.h: In function `down_interruptible':
/usr/src/linux/include/asm/semaphore.h:130: error: syntax error before "KBUILD_B
ASENAME"
/usr/src/linux/include/asm/semaphore.h: In function `down_trylock':
/usr/src/linux/include/asm/semaphore.h:155: error: syntax error before "KBUILD_B
ASENAME"
/usr/src/linux/include/asm/semaphore.h: In function `up':
/usr/src/linux/include/asm/semaphore.h:105: error: syntax error before "KBUILD_BASENAME"
/usr/src/linux/include/asm/semaphore.h: In function `down_interruptible':
/usr/src/linux/include/asm/semaphore.h:130: error: syntax error before "KBUILD_BASENAME"
/usr/src/linux/include/asm/semaphore.h: In function `down_trylock':
/usr/src/linux/include/asm/semaphore.h:155: error: syntax error before "KBUILD_BASENAME"
/usr/src/linux/include/asm/semaphore.h: In function `up':
/usr/src/linux/include/asm/semaphore.h:179: error: syntax error before "KBUILD_BASENAME"
In file included from /usr/src/linux/include/linux/irq.h:22,
from /usr/src/linux/include/asm/hardirq.h:6,
from /usr/src/linux/include/linux/hardirq.h:7,
from /usr/src/linux/include/linux/interrupt.h:11,
from /usr/src/linux/include/linux/netdevice.h:534,
from 8139too.c:112:
/usr/src/linux/include/asm/irq.h:16:25: irq_vectors.h: No such file or directory
In file included from /usr/src/linux/include/asm/hardirq.h:6,
from /usr/src/linux/include/linux/hardirq.h:7,
from /usr/src/linux/include/linux/interrupt.h:11,
from /usr/src/linux/include/linux/netdevice.h:534,
from 8139too.c:112:
/usr/src/linux/include/linux/irq.h: At top level:
/usr/src/linux/include/linux/irq.h:85: error: `NR_IRQS' undeclared here (not in a function)
In file included from /usr/src/linux/include/linux/irq.h:94,
from /usr/src/linux/include/asm/hardirq.h:6,
from /usr/src/linux/include/linux/hardirq.h:7,
from /usr/src/linux/include/linux/interrupt.h:11,
from /usr/src/linux/include/linux/netdevice.h:534,
from 8139too.c:112:
/usr/src/linux/include/asm/hw_irq.h:30: error: `NR_IRQ_VECTORS' undeclared here (not in a function)
8139too.c: In function `rtl8139_init_board':
8139too.c:813: warning: implicit declaration of function `init_etherdev'
8139too.c:813: warning: assignment makes pointer from integer without a cast
8139too.c:931: error: structure has no member named `slot_name'
8139too.c:932: error: structure has no member named `slot_name'
8139too.c: In function `rtl8139_init_one':
8139too.c:1053: error: structure has no member named `driver_data'
8139too.c: In function `rtl8139_remove_one':
8139too.c:1136: error: structure has no member named `driver_data'
8139too.c:1164: error: structure has no member named `driver_data'
8139too.c: In function `rtl8139_open':
8139too.c:1382: warning: passing arg 2 of `request_irq' from incompatible pointer type
8139too.c: In function `rtl8139CP_open':
8139too.c:1570: warning: passing arg 2 of `request_irq' from incompatible pointer type
8139too.c: In function `rtl8139_thread':
8139too.c:1926: error: too few arguments to function `daemonize'
8139too.c:1927: error: structure has no member named `sigmask_lock'
8139too.c:1929: error: too many arguments to function `recalc_sigpending'
8139too.c:1930: error: structure has no member named `sigmask_lock'
8139too.c: In function `rtl8139_set_rx_mode':
8139too.c:2994: warning: passing arg 2 of `set_bit' from incompatible pointer type
8139too.c: In function `rtl8139_suspend':
8139too.c:3019: error: structure has no member named `driver_data'
8139too.c: In function `rtl8139_resume':
8139too.c:3051: error: structure has no member named `driver_data'
8139too.c: At top level:
8139too.c:3074: warning: initialization from incompatible pointer type
make: *** [8139too.o] Error 1
Last edited by dmartins; 05-07-2006 at 01:32 PM.
|
|
|
05-07-2006, 10:29 PM
|
#9
|
Member
Registered: May 2006
Location: Hyderabad,India
Distribution: Ubuntu
Posts: 35
Original Poster
Rep: 
|
I read it in the very Forum that addin a line to the 8139too.c and then compiling it
wud enable support for RTL8139D NICs.
Thats what I want to do.
I can't edit an object file rite?
|
|
|
05-08-2006, 03:59 AM
|
#10
|
Senior Member
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802
Rep:
|
There is no way I would download a file from megauploads.com and build it on my computer. Especially from someone with less than a dozen posts here. But if you could post the patch to 8139too.c I might try building using my own 2.6 src.
|
|
|
05-08-2006, 05:30 AM
|
#11
|
Senior Member
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
|
No reason to download and build, this is from November 2001, it's a backport from the 2.4.18 kernel source for Red Hat Linux 7.1/2 kernels, from the readme.txt file for the patch;
Quote:
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).
|
Support for the RTL8139C+ PCI ethernet chips have been included in the 2.6 kernel series since 2.6.0 was released.
|
|
|
All times are GMT -5. The time now is 07:15 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|