LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-15-2003, 11:14 PM   #1
nacha
Member
 
Registered: Jul 2003
Posts: 43

Rep: Reputation: 15
untaring kernel


Hi,

I upgrade my kernel 2.4.40 to 2.4.21 but now I would like to compile my own. Also I have kernel-source-2.4.21 noarch.tgz in /usr/src. In order to create linux, what command do i have to use to untar?



thanks

Last edited by nacha; 07-15-2003 at 11:16 PM.
 
Old 07-15-2003, 11:22 PM   #2
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
tar -zxvf filename
 
Old 07-15-2003, 11:23 PM   #3
Pres
Member
 
Registered: Jun 2002
Location: Australia
Distribution: Slack 9.1
Posts: 232

Rep: Reputation: 30
tar -zxvf tarball.tgz

Edit : Oh well, I was too slow.

Last edited by Pres; 07-15-2003 at 11:24 PM.
 
Old 07-15-2003, 11:53 PM   #4
nacha
Member
 
Registered: Jul 2003
Posts: 43

Original Poster
Rep: Reputation: 15
Thanks for your quicik answer, but I have this situation

after untar..

install/
and usr/
if I am in /usr/src my linux-2.4.21 will be located
/usr/src/usr/src/linux-2.4.21

This is right?
 
Old 07-16-2003, 12:35 AM   #5
nvn
Member
 
Registered: Apr 2003
Location: Sweden
Distribution: Slackware
Posts: 242

Rep: Reputation: 30
Eh? Installpkg, anyone?
 
Old 07-16-2003, 01:37 AM   #6
xodeus
Member
 
Registered: Jul 2003
Location: Jutlandia, Denmark
Distribution: Testing several
Posts: 39

Rep: Reputation: 15
I think you have got kernel sources from slackware sites not from kernel.org. Then you have to installpkg kernel-sources[TAB][Enter] in the dir where your source file is. Or if you have problems with unpacking files, then go to this page: http://debianguiden.dk/dists/stable/html/tar.html
 
Old 07-16-2003, 09:07 AM   #7
Pres
Member
 
Registered: Jun 2002
Location: Australia
Distribution: Slack 9.1
Posts: 232

Rep: Reputation: 30
Quote:
Originally posted by nvn
Eh? Installpkg, anyone?
Well, he asked a specific question. Didn't want to get all off-topic and stuff.

No, the path should be /usr/src/linux-2.4.21, just move manually should be fine.
 
Old 07-16-2003, 10:47 AM   #8
nvn
Member
 
Registered: Apr 2003
Location: Sweden
Distribution: Slackware
Posts: 242

Rep: Reputation: 30
True. But since he stated that he had Volkerding's release (i.e. a prepatched source in the Slackware package format), I figured it would be a better idea to install as intended. That would automagically take care of placing everything in the correct directories, as well as creating a symlink. Simplicity is bliss.
 
Old 07-16-2003, 11:28 AM   #9
nacha
Member
 
Registered: Jul 2003
Posts: 43

Original Poster
Rep: Reputation: 15
Hi, thanks again,

I had untared kernel-source-2.4.21-noarch-1.tgz in /usr/src. when I do
'ls' this is the print out
install
usr/
rpm
Then i do cd install and then 'ls' and i have two filies: doinst.sh and slack-desc
in doinst.sh i found the following command
(cd usr/src : rm -rf linux)
( cd usr/src : ln -sf linux-2.4.21 linux )
(cd usr/src/linux-2.4.21/include : rm -rf asm)
(cd usr/src/linux-2.4.21/include : ln -sf asm-i386 asm)

Let me tell you that i had upgrade my kernel 2.4.20 to 2.4.21. but I do not remember how i did it. (one night i found it in google a site and followed the instructions, but i forgot to take notes. Now I am taking notes), Right now my system is workingvery well but i would like to have my own kernel. At the same time, I do not want to mess up my system if something goes wrong.
Pllease share your experience and knowledge with me.

Thanks again

P.S. nvn you are right!!

Last edited by nacha; 07-16-2003 at 11:32 AM.
 
Old 07-16-2003, 12:02 PM   #10
nvn
Member
 
Registered: Apr 2003
Location: Sweden
Distribution: Slackware
Posts: 242

Rep: Reputation: 30
Well, when compiling your new kernel, you could load the config for the old one. Usually the config resides in your kernel source directory, but if you haven't got the kernel source installed I believe the config can be retrieved from /boot (the file's called simply "config", the one in the kernel source dir is hidden, so it's ".config"). If you've been using one of the standard kernels (say, bare.i), you might be able to find the config in some other place as well, perhaps the CD - I don't know. :P

Anyway, when you're about to compile (more correctly, when you're about to prepare for compilation), you can just load the old config into, say, xconfig or menuconfig, and go with that, although I recommend you to go through the various options before you go on. You could probably do a "make oldconfig" as well, and just be prompted for options that has changed or been added. However, it's never wrong to poke around a bit in xconfig/menuconfig and get a bit more aquainted with your particular configuration and the available options.

Last edited by nvn; 07-16-2003 at 12:03 PM.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem unzipping/untaring any linux kernel pianom69 Linux - Newbie 4 04-20-2004 12:53 AM
When untaring, where do they go? BaZiL Linux - General 2 09-22-2003 05:22 AM
Problem with Root and untaring/install permissions CragStar Linux From Scratch 1 12-13-2002 07:14 AM
Problem with Root and untaring/install permissions CragStar Linux From Scratch 2 11-24-2002 07:15 PM
Help with untaring files KevStA Linux - General 3 05-19-2002 12:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:15 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration