Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
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.
|
 |
02-18-2002, 05:52 PM
|
#1
|
Member
Registered: Jan 2002
Location: Stevens Point, WI
Distribution: Mandrake 10.0 (P4 2.8 w/ HT, Radeon 9700 Pro, 80 GB/120GB HDDs)
Posts: 242
Rep:
|
How do I install the kernel sources??
I am runniung slackware 8.0 (zipslack), and I downloaded the kernel source files to compile my modem drivers into, but I don't know how to install the source...the file name is
linux-2.2.19.tar.bz2
Installpkg won't install it, it says it's corrupt, what do i do? Re-download or use another tool??
|
|
|
02-18-2002, 06:00 PM
|
#2
|
Member
Registered: Dec 2001
Location: Sicily (Italy)
Distribution: DEBIAN! - (also used: Red Hat, Mandrake, Slackware, SuSE, BestLinux, EasyLinux, muLinux...)
Posts: 92
Rep:
|
assuming linux-2.2.19.tar.bz2 is in /tmp:
1) cd /usr/src
2) tar xjf /tmp/linux-2.2.19.tar.bz2
3) mv linux linux-2.2.19
4) ln -s linux-2.2.19 linux
That's it. To compile the kernel:
1) cd /usr/src/linux
2) make mrproper
3) make xconfig
Are you sure you don't want the latest kernel available? www.kernel.org
el_felipe
|
|
|
02-18-2002, 06:05 PM
|
#3
|
Member
Registered: Jan 2002
Location: Stevens Point, WI
Distribution: Mandrake 10.0 (P4 2.8 w/ HT, Radeon 9700 Pro, 80 GB/120GB HDDs)
Posts: 242
Original Poster
Rep:
|
I would, but that's the kernel that i have installed currently, I don't want to monkey around with new stuff right now... Thanks for the help though!
|
|
|
02-18-2002, 09:34 PM
|
#4
|
Member
Registered: Jan 2002
Location: Stevens Point, WI
Distribution: Mandrake 10.0 (P4 2.8 w/ HT, Radeon 9700 Pro, 80 GB/120GB HDDs)
Posts: 242
Original Poster
Rep:
|
there's a problem. It's not working. Here's what i get when I try to unpack it:
tar: hmm, doesn't look like a tar archive
tar: skipping to next file header
tar: only read 7032 bytes from archive
tar: error is not recoverable: exiting now
What's up?
|
|
|
02-19-2002, 05:52 AM
|
#5
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
try doing it separately
bunzip2 linux.tar.bz2
tar xvf linux.tar
|
|
|
02-19-2002, 07:38 AM
|
#6
|
Member
Registered: Jan 2002
Location: Stevens Point, WI
Distribution: Mandrake 10.0 (P4 2.8 w/ HT, Radeon 9700 Pro, 80 GB/120GB HDDs)
Posts: 242
Original Poster
Rep:
|
thanks
|
|
|
03-07-2002, 01:40 AM
|
#7
|
Member
Registered: Feb 2002
Location: Erie, CO
Distribution: Red Hat 7.1
Posts: 94
Rep:
|
Could you explain what make mrproper does?
I've had some problems with compiling kernel and I've often seen this "make mrproper"
Could give me the concept of what this does and why is it it's done before running xconfig/menuconfig?
|
|
|
03-07-2002, 09:08 PM
|
#8
|
Member
Registered: Jan 2002
Location: Stevens Point, WI
Distribution: Mandrake 10.0 (P4 2.8 w/ HT, Radeon 9700 Pro, 80 GB/120GB HDDs)
Posts: 242
Original Poster
Rep:
|
Ya know, I've been wondering the same thing... what does make mrproper do??
|
|
|
03-07-2002, 09:19 PM
|
#9
|
LQ Addict
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704
Rep:
|
You should browse Makefile, locate mrproper rule and see what it does, it wipes the slate clean and allows you to compile the kernel from scratch without any config files loaded.
|
|
|
03-07-2002, 09:45 PM
|
#10
|
Member
Registered: Jan 2002
Location: Stevens Point, WI
Distribution: Mandrake 10.0 (P4 2.8 w/ HT, Radeon 9700 Pro, 80 GB/120GB HDDs)
Posts: 242
Original Poster
Rep:
|
Cool...thanks
|
|
|
03-08-2002, 01:49 AM
|
#11
|
LQ Newbie
Registered: Mar 2002
Posts: 2
Rep:
|
after wiping the slate clean, you may want to run the command
make oldconfig
which creates a .config file of your current configuration. Then when you run
make xconfig
you can just add your modem drivers to your current configuration rather than trying to configure 100 things that you don't know what they mean.
|
|
|
03-08-2002, 01:52 PM
|
#12
|
Member
Registered: Feb 2002
Location: Erie, CO
Distribution: Red Hat 7.1
Posts: 94
Rep:
|
OK..this is what I've found!
Ok you guys...hear this:
After you install RH 7.1 for the first time...there's NO .config to be found anywhere (not even the /usr/src/linux directory).
Everybody probably knew that.
SO... You say (and everyone has too) to run "make oldconfig" to create a .config file of your current system configuration.
(this is where I think things don't match up...)
When I do this on my system (RH 7.1)...all it does is ask me questions about my system (more than half of which I have NO clue about...and I'm sure most newbies don't either)...so I answered the questions (y or n) as best I could....BUT of course...that's not good enough. After compiliing that config, I got a bunch of things failing at boot up. Then I just re-install RH and try again.
SO...when you guys are saying...."run the make oldconfig" to create a .config file of your current system configuration...is this what you guys had in mind??
When I first heard someone say this, this is what I imagined it would do: Linux would magically look at my current system and spit out a .config file that matches my systems current (working) condifguration without having to ask me any questions at all.
NOW, if what I just said IS the way its suppose to work...would someone please tell me. Because so far...that has not been the way it works for me.
NOW HEAR THIS, in my quest to find out what my current configuration is, I looked and looked...and found a directory in /usr/src/linux called "configs" (/usr/src/linux/configs). In here, theres a bunch of xxx.config files...and one of them named:
kernel-2.4.2-i686.config
There are others for i386, etc....but my system is i686.
SO, I looked into this config file and found this has settings that seem to match what I deemed my system to be set as. I have loaded this config file in my xconfig and have saved it (so now I have a .config file in my .usr/src/linux directory). I have yet to compile it to see if this time, my system will boot up without any problems. As soon as I do...I'll post....
Any feedback is greatly appreciated!
Last edited by desbyleo; 03-08-2002 at 01:56 PM.
|
|
|
03-11-2002, 12:36 PM
|
#13
|
Member
Registered: Feb 2002
Location: Erie, CO
Distribution: Red Hat 7.1
Posts: 94
Rep:
|
IT WORKS!
Yeah, those kernel*.config files found in /usr/src/linux-x.x/configs does work when you compile using them.
Be warned: These config files will practically turn on everything in your system, so compile time increases tremendously.
The upside: For those of you who don't have a working copy of a .config file for your system, can use this a basis. Then, later on turn off those options you're not using. And those you aren't sure of, use trial and error to figure it out - if something goes wrong, just turn it back on.
Anyhow, how this helped me:
My situation was: I'm trying to configure IP MASQ, but the process includes patching my kernel. That, of course, meant also compiling. My problem was: At compile time, since I didn't have a .config file, compiling would create one for me by asking me all this questions about my system (half of which I knew nothing about). OR, if I did go into xconfig or menuconfig before I compiled, it creates a .config file that doesn't reflect my current system. Therefore, after compilation, I was left with a bad kernel.
Using these kernel*.config files (although generic) gave me a working configuration. So when I patched my kernel, I used these .config files when I compiled the kernel.
Any feedback would be greatly appreciated...as always.
|
|
|
All times are GMT -5. The time now is 05:56 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
|
|