Click to See Complete Forum and Search --> : How do I recompile my kernel?
655321
02-27-2001, 04:21 AM
I have Mandrake 7.2 running on one of the partitions of my Athlon 700 mhz pc. My ethernet card doesn't work(its a linksys etherfast 10/100 LAN card)...the website for my card says I need to put a c++ file they provide called tulip.c into my /usr/src/linux/drivers/net directory(I've done this) and then recompile my kernel. Being as I'm fairly new to Linux, I have absolutely no idea on how to recompile my kernel. Someone please help me!
Thanks,
Matt
Tyr-7BE
02-27-2001, 05:00 AM
Chances are really good that you won't have to recompile your kernel. The C source-file they gave you is a source-file to the driver for your network card. If you look within the file, there should be instructions on exactly what to type to compile the driver (you'll probably want to be root for this). Once you're finished compiling the driver, type "lsmod" and see if "tulip" or "tulip.o" is listed anywhere. If it isn't, you'll have to find "tulip.o" and type "insmod tulip.o" when you're in its directory. Once that's done, type "modprobe eth0" (assuming that eth0 is your NIC device). That will get your NIC working :)
Come to think of it, I THINK tulip.o is included with Mandrake 7.2 by default. Does anyone reading this know where the modules are located under Mandrake/Red Hat? I'm inclined to think it's under /lib/modules/net or something along those lines. If you find a file called "tulip.o", you can just go straight to the "insmod" and save yourself a lot of trouble (compiling drivers under Drake is never a lot of fun). Hope this helps a little.
Edit: What are you using your ethernet card for? If it's for ADSL/Cable, that's not the end of it yet. You need to install the appropriate software for connectivity after you get the card working. Get the card going first then worry about that stuff :)
[ 27 February 2001: Message edited by: Tyr-7BE ]
655321
02-27-2001, 06:43 AM
you were right, the tulip.o file was in /lib/modules/2.2.17-21mdk/net, but when i go there and type "insmod tulip.o"
it says
"tulip.o: unresolved symbol pci_drv_uneregister
tulip.o: unresolved symbol pci_drv_register"
like i said, i'm new to linux, so i have no idea what all this means. i am directly connected to a LAN...what all do i have to do once i get this installed(sigh)? do i have to run linuxconf, and if so, what all do i have to change, or what...
Thanks,
Matt
bdg1983
02-27-2001, 11:13 AM
Since the distro I use always detects and configures every nic I give it, I have not experience doing it manually. So I would suggest you read the NHF here on Linksys.
http://www.linuxnewbie.org/nhf/intel/hardware/linksys_LNE100TX.html
Tells how to compile the driver.
krs0123
02-27-2001, 11:39 AM
Originally posted by jmchamp:
you were right, the tulip.o file was in /lib/modules/2.2.17-21mdk/net, but when i go there and type "insmod tulip.o"
it says
"tulip.o: unresolved symbol pci_drv_uneregister
tulip.o: unresolved symbol pci_drv_register"
like i said, i'm new to linux, so i have no idea what all this means. i am directly connected to a LAN...what all do i have to do once i get this installed(sigh)? do i have to run linuxconf, and if so, what all do i have to change, or what...
Thanks,
Matt
you say all a lot.