LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 09-13-2007, 10:40 PM   #1
nkd
Member
 
Registered: Oct 2006
Location: india
Distribution: fedora 8, ubuntu 10.10
Posts: 318

Rep: Reputation: 34
help with compiling new kernel


Hi every1,

I have RHEL 4 installed which is based on kernel 2.6.9-15
I have recently downloaded the kernel : linux-2.6.20.6.tar.bz2 from
the kernel.org site.
I get the error : Cannot open file.....File doesnot exist.
when it is untarring. I am using the command
tar -jxvf linux-2.6.20.6.tar.bz2
Do not know what's going wrong?
Can any1 help me out..... It uncompresses for some time and the Documentation etc directories are all created ... only the problem starts when it comes to untarring the drivers directory !

This was the case even with 2.6.22.6 kernel in gz format.

Plz help me out
thanks
nishith
 
Old 09-14-2007, 01:02 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Are you in the same directory as the file?
 
Old 09-14-2007, 01:31 AM   #3
Scroggs79
LQ Newbie
 
Registered: Feb 2006
Location: California
Distribution: Mandriva
Posts: 15

Rep: Reputation: 0
Your tar command looks fine.

If you are prefixed to the directory where the file was downloaded and the file was successfully downloaded what you are doing should work so I'm guessing that the download is ending prematurely or the ftp site is busy and you are getting an error response save as the output instead of the actual kernel source.

Look at the size of the file using: ls -l
and see if the file size is in the expected size range (47MB)

You can also try this: file <name of file>
which should yield this - bzip2 compressed data

I have had similar problems while downloading from kernel.org.

This is what I do:
right click on the link and select "copy link location"
open a bash shell and execute the following command:
wget -c <middle click - which should paste the url>
so the command looks like:
wget -c http://kernel.org/pub/linux/kernel/v...6.22.6.tar.bz2

This command should show you the download progress while it's downloading the file.
If the command dies just press up arrow (which should recall the last command) and execute the same command again.
The -c tells wget to continue so you won't have to start over.

Good luck.
 
Old 09-14-2007, 04:26 AM   #4
nkd
Member
 
Registered: Oct 2006
Location: india
Distribution: fedora 8, ubuntu 10.10
Posts: 318

Original Poster
Rep: Reputation: 34
Thanks for the response...
No I am not in the same directory.
The pwd : /usr/src
I use the command tar -jxvf /absolute/path/to/the/directory/of/the/zipfile/lin......tar.bz2
That shouldnot be the problem......!
Anyway I shall give wget -c a try today....
thanks again
nishith
 
Old 09-21-2007, 06:19 AM   #5
nkd
Member
 
Registered: Oct 2006
Location: india
Distribution: fedora 8, ubuntu 10.10
Posts: 318

Original Poster
Rep: Reputation: 34
Thanks

Hi Scroggs79,
Thanks a ton.
You are right it was a problem of incomplete downloads in windoz.
I know have been able to download the kernel source tarball and also have compiled it and have a shining new kernel.
Thanks once again
nishith
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
/lib/modules/2.4.33.3/kernel/sound folder is missing after compiling kernel Paulo Góes Slackware - Installation 2 04-15-2007 09:42 PM
compiling kernel problem --- Kernel panic: unable to mount root fs ........ anthonymts123 Linux - General 5 07-31-2006 03:29 AM
Where Is Kernel Directory In Rh9(kernel 2.4.20-8), For Compiling HSP56 MR(pctel) Mode rudy3107 Linux - Software 1 07-25-2004 05:17 AM
Kernel compiling and module compiling tarballed Linux - General 1 12-22-2002 06:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:37 PM.

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