LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 05-08-2007, 02:57 PM   #1
uthra
LQ Newbie
 
Registered: May 2007
Posts: 14

Rep: Reputation: 0
Probelm in building kernel


Hello

I installed Fedora Core 1 yesterday and am trying to build Kernel 2.4.34.4. I downloaded it from http://www.kernel.org/
and executed

# tar xvfj linux-2.4.34.4.tar.bz2

This is what I get

bzip2: Compressed file ends unexpectedly;
perhaps it is corrupted? *Possible* reason follows.
bzip2: Inappropriate ioctl for device
Input file = (stdin), output file = (stdout)

It is possible that the compressed file(s) have been corrupted.
You can use the -tvv option to test the integrity of such files.

You can use the 'bzip2recover' program to attemot to recover date from undamaged sections of corrupted files.

linux-2.4.34.4/driver/usb/emi26_fw.h
tar: unexpected EOF in archive
tar: unexpected EOF in archive
tar: Error is not recoverable: exiting now


What should I do ? Is the file really corrupted or is something wrong with my system and I need to change settings ???
Please help. Thank you !!!
 
Old 05-08-2007, 04:51 PM   #2
Berto
Member
 
Registered: Sep 2003
Location: Stevenson, WA, USA
Distribution: Slackware
Posts: 232

Rep: Reputation: 30
I think the "f" part should only go at the end of the tar command (tar xvjf). That might cause some problems. Other than that, you could try re-downloading the kernel.
 
Old 05-08-2007, 05:05 PM   #3
uthra
LQ Newbie
 
Registered: May 2007
Posts: 14

Original Poster
Rep: Reputation: 0
Berto,
Thanks. But it didnt work.
I tried "tar xvjf".. gives the same error.
I have tried downloading the kernel from 2 different locations. Will try other locations too. In the meantime if anyone knows how to trouble shoot this. Please let me know.

Thank you.
 
Old 05-08-2007, 05:13 PM   #4
dxqcanada
Member
 
Registered: Sep 2006
Location: Canada
Distribution: Gentoo
Posts: 702

Rep: Reputation: 43
Try bunzip first ...
then tar without the j.
 
Old 05-08-2007, 05:20 PM   #5
uthra
LQ Newbie
 
Registered: May 2007
Posts: 14

Original Poster
Rep: Reputation: 0
dxqcanada ... I tried "bunzip file.tar.bz2"
Gives out bunzip: command not found.

Please advice .. thank you for your time
 
Old 05-08-2007, 05:33 PM   #6
dxqcanada
Member
 
Registered: Sep 2006
Location: Canada
Distribution: Gentoo
Posts: 702

Rep: Reputation: 43
Maybe you should install bunzip
 
Old 05-08-2007, 06:58 PM   #7
samstar
Member
 
Registered: Apr 2007
Distribution: suse 10.2
Posts: 324

Rep: Reputation: 31
Hi

Quote:
I tried "bunzip file.tar.bz2"
The command is "bunzip2"

Well I just downloaded it and extracted it fine with the command: "tar -jzvf linux-. . ."

It could be traffic on your internet connection that is corrupting it. Try again after stopping any other downloads/programs etc.

Sam
 
Old 05-09-2007, 10:52 AM   #8
uthra
LQ Newbie
 
Registered: May 2007
Posts: 14

Original Poster
Rep: Reputation: 0
Thank you. I downloaded from another link and was able to extract it successfully.

Here are the steps that I followed. Am getting an error in "make xconfig". Can someone please explain ????

# tar xvfj linux-2.4.32.tar.bz2
# ln -s linux-2.4.32 linux
# cd /boot
# ls config*
config-2.4.22-1.2115.nptl
# cp config-2.4.22-1.2115.nptl /usr/src/linux/.config
# cd /usr/src/linux
# make xconfig
rm -f include/asm
(cd include ; ln -sf asm-i386 asm)
make -C scripts kconfig.tk
make[1]: Entering directory '/usr/src/linux-2.4.32/scripts'
scc -Wall -Wstrict-prototypes -02 -fomit-frame-pointer -c -o tkparse.o tkparse.c
make[1]: scc:Command not found
make[1]: *** [tkparse.o] Error 127
make[1]: Leaving directory 'usr/src/linux-2.4.32/scripts'
make: *** [xconfig] Error 2
 
Old 05-09-2007, 01:58 PM   #9
uthra
LQ Newbie
 
Registered: May 2007
Posts: 14

Original Poster
Rep: Reputation: 0
Can someone please help me with this problem ???
Where am I going wrong ???
 
Old 05-09-2007, 02:20 PM   #10
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Quote:
scc -Wall -Wstrict-prototypes -02 -fomit-frame-pointer -c -o tkparse.o tkparse.c
make[1]: scc:Command not found
What on the earth is scc? I assume it should be gcc, in that case you do not have a compiler installed. Use the package manager to install it. Can't tell you how to do it in RH, sorry.
 
Old 05-09-2007, 02:32 PM   #11
uthra
LQ Newbie
 
Registered: May 2007
Posts: 14

Original Poster
Rep: Reputation: 0
Am sorry. Yes it is "gcc" and not scc.

I am using Fedora Core 1. Do you think it would help if I reinstall FC ??
 
Old 05-09-2007, 06:55 PM   #12
samstar
Member
 
Registered: Apr 2007
Distribution: suse 10.2
Posts: 324

Rep: Reputation: 31
Quote:
Am sorry. Yes it is "gcc" and not scc
Ahh, that's what got me confused. I thought I was out of my league for a moment

You just seem to be missing some development files. Just install gcc, and if you are using "make xconfig", make sure your qt-devel package is installed. If it gives you another error, asking for another program, it's very simple to google the program name and find out what you have to install. When in doubt, also install the "<program name>-devel" package.

Sam
 
Old 05-10-2007, 11:43 AM   #13
uthra
LQ Newbie
 
Registered: May 2007
Posts: 14

Original Poster
Rep: Reputation: 0
Thank you Samstar.

I got it working. Had to install the packages and then it worked.
 
  


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
CentOS install probelm - kernel panic cmarnell Linux - Newbie 9 04-25-2006 11:08 AM
Building kernel module from multiple source file in 2.6 kernel yogeshwar_s Programming 1 12-20-2004 09:31 AM
Problems building a simple kernel module for kernel 2.6.7 atticman Linux - Software 2 12-13-2004 03:35 PM
Kernel 2.6 & IDE-SCSI Probelm startail Linux - Hardware 1 05-19-2004 08:56 AM
Building kernel mods for an existing kernel ugenn Linux - Software 2 10-06-2003 01:25 PM

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

All times are GMT -5. The time now is 01: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