neocytrix Posted December 31, 2003 Report Share Posted December 31, 2003 Hello everyone, I have some drivers I would like to install, however I need the kernal source and its not where they say its supposed to be (/usr/src/linux or /usr/src/linux-2.4) now I have mandrake 9.2 and I need someone to tell me what to do to get the kernal. thanks -Neocytrix Quote Link to comment Share on other sites More sharing options...
mdg Posted December 31, 2003 Report Share Posted December 31, 2003 To see what kernel you are running, type "uname -r" in terminal. Then go to MCC-Software Management-Install Software. Put "kernel-source" in the search window and choose the kernel corresponding to the result of "uname -r" Quote Link to comment Share on other sites More sharing options...
Glitz Posted January 1, 2004 Report Share Posted January 1, 2004 Kernel sources are not included on the download edition of LM9.2. You will have to visit their website and download and install the kernel source RPM. Glitz. Quote Link to comment Share on other sites More sharing options...
neocytrix Posted January 2, 2004 Author Report Share Posted January 2, 2004 I am getting really confused with this kernal thing. I go to the package installer thing in the Mandrake Control Center and I search for 2.4.22 (because thats the kernal version as far as I know) so then it returns a bunch of packages, ive installed two but everyone I install can no longer be found in the package installer search and I searched the root directory for both "2.4.22" and "Kernal" and it cant find either of the ones I installed. Any ideas? Quote Link to comment Share on other sites More sharing options...
bvc Posted January 2, 2004 Report Share Posted January 2, 2004 open a terminal>su to root> and do rpm -qa | grep kernel gentoo / # rpm -qa | grep kernel kernel-2.4.22.19mdk-1-1mdk kernel-2.6.0.0.3mdk-1-1mdk gentoo / # Quote Link to comment Share on other sites More sharing options...
Steve Scrimpshire Posted January 2, 2004 Report Share Posted January 2, 2004 (edited) You need kernel-source-2.4.blahblah Of course you already have kernel-2.4.blahblah installed or you wouldn't be in Linux. :) While searching, make sure it exactly matches the number in the output of uname -r including the 'mdk' but not 'smp' or 'i686-up', etc if you have one of those installed. Edited January 2, 2004 by Steve Scrimpshire Quote Link to comment Share on other sites More sharing options...
neocytrix Posted January 2, 2004 Author Report Share Posted January 2, 2004 I am a complete Newbie can you guys please try to put things into "idiot terms" and explain so I actually learn somthing. I am basicly trying to install my ethernet card drivers and I was told that I would have to "patch the kernel" or somthing on those lines. Can someone tell me what they would do if they were just starting off and had a fresh install of linux? -Neocytrix Quote Link to comment Share on other sites More sharing options...
scoopy Posted January 2, 2004 Report Share Posted January 2, 2004 We need to find out what you have installed first. Follow bvc's instructions above and then post back with the info you get. Then we will know better what you need to do. :D Quote Link to comment Share on other sites More sharing options...
bvc Posted January 2, 2004 Report Share Posted January 2, 2004 thx scoopy. that's exactly why I posted that ;) Quote Link to comment Share on other sites More sharing options...
neocytrix Posted January 2, 2004 Author Report Share Posted January 2, 2004 I don't get what to do with BVC's code, I tried just typing it in in the konsol but it said something like Gentoo is not a bash command or somthing like that. -Neocytrix Quote Link to comment Share on other sites More sharing options...
bvc Posted January 2, 2004 Report Share Posted January 2, 2004 open a terminal>su to root> and dorpm -qa | grep kernel the gentoo / # is my prompt Quote Link to comment Share on other sites More sharing options...
Glitz Posted January 2, 2004 Report Share Posted January 2, 2004 (edited) Okay, let's start again ;) Basically, the files you installed are the various different kernel binaries (the executable programs) that come with Mandrake. There are a few different types and it appears that you installed them all. That's okay, it shouldn't matter. What you really wanted to do was install the kernel source RPM for the kernel you are actually using. A source RPM contains the source code that was originally compiled to produce the executable that you are running. It's my guess that you need to make some changes to the source code (by patching it) and then re-compile it to produce a kernel that works with your driver. Please ask if there is something you would like us to clarify. Go to the following web site: ftp://klobouk.fsv.cvut.cz/pub/linux-mandr...6/Mandrake/RPMS and download the following file: kernel-source-2.4.22-10mdk.i586.rpm This is the file that contains the actual source code for the kernel. Install this file. Note that any other Mandrake mirror will have this file available for download. I generally use the eastern European sites because when it's evening here (North America) it is early morning there and I tend to get great download speeds. Now, you should be able to find the kernel sources you are looking for. Once you've done this please let us know what the instructions for installing your driver says and we'll try to help you with that as well. Good Luck, Glitz. Edited January 2, 2004 by Glitz Quote Link to comment Share on other sites More sharing options...
neocytrix Posted January 2, 2004 Author Report Share Posted January 2, 2004 THANK YOU SOOOOOOOOOOO MUCH GLITZ, the kernel is finally installed where it has to be :D. Now I printed out a readme that came with my drivers for my NIC card so I followed the instructions (copy the file to my hard drive>go to konsole and change directory to the directory where the driver is>type "tar zxvf 3c2000.tag.gz"> type "cd 3c200">type "make load" ) then it does a bunch of stuff im guessing its loading it in, however it then comes up with an error saying "make:***[load] Error 127. Quote Link to comment Share on other sites More sharing options...
bvc Posted January 2, 2004 Report Share Posted January 2, 2004 we need more. post about 15 or 20 lines up down to the error or end. Quote Link to comment Share on other sites More sharing options...
neocytrix Posted January 2, 2004 Author Report Share Posted January 2, 2004 These are the last lines that I get In file included from /usr/src/linux/include/asm/semaphore.h:39, from /usr/src/linux/include/linux/fs.h:204, from /usr/src/linux/include/linux/capability.h:17, from /usr/src/linux/include/linux/binfmts.h:5, from /usr/src/linux/include/linux/sched.h:9, from /usr/src/linux/include/linux/mm.h:4, from /usr/src/linux/include/linux/slab.h:14, from /usr/src/linux/include/linux/proc_fs.h:5, from skproc.c:73: /usr/src/linux/include/asm/system.h: In function `__set_64bit_var': /usr/src/linux/include/asm/system.h:194: warning: dereferencing type-punned pointer will break strict-aliasing rules /usr/src/linux/include/asm/system.h:194: warning: dereferencing type-punned pointer will break strict-aliasing rules gcc -D__KERNEL__ -Wall -Wstrict-prototypes -O2 -DMODULE -I. -DSK_USE_CSUM -I /usr/src/linux/include -include /usr/src/linux/include/linux/modversions.h -DMODVERSIONS -D__SMP__ -c -o skcsum.o skcsum.c In file included from /usr/src/linux/include/asm/semaphore.h:39, from /usr/src/linux/include/linux/fs.h:204, from /usr/src/linux/include/linux/capability.h:17, from /usr/src/linux/include/linux/binfmts.h:5, from /usr/src/linux/include/linux/sched.h:9, from /usr/src/linux/include/linux/mm.h:4, from /usr/src/linux/include/linux/slab.h:14, from h/skdrv1st.h:160, from skcsum.c:116: /usr/src/linux/include/asm/system.h: In function `__set_64bit_var': /usr/src/linux/include/asm/system.h:194: warning: dereferencing type-punned pointer will break strict-aliasing rules /usr/src/linux/include/asm/system.h:194: warning: dereferencing type-punned pointer will break strict-aliasing rules ld -r -o 3c2000.o skge.o skaddr.o skgehwt.o skgeinit.o skgepnmi.o skgesirq.o ski2c.o sklm80.o skqueue.o skrlmt.o sktimer.o skvpd.o skxmac2.o skproc.o skcsum.o insmod 3c2000.o make: insmod: Command not found make: *** [load] Error 127 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.