LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-18-2002, 10:04 PM   #1
Alinuxnoob
Member
 
Registered: Feb 2002
Location: Van city
Distribution: Ubuntu
Posts: 204

Rep: Reputation: 30
Help on Compiling the Linux Kernel FOR Redhat 7.2!


Hi Im trying to compile the kernel...... After I compile the kernel. I get a boot error.
Well this is what I did tell me what im doing wrong to get an FS unable to mount FS on 3:40 something...
K I downloaded linux-2.4.17.tar.gz
then I untar it
went in the dir
and then
make mrproper
make xconfig
make dep
make bzImage
make modules
make modules_install

now all I do now is copy the bzImage to the boot folder and change the grub file

"title Red Hat Linux (2.4.17)
root (hd1,0)
kernel /vmlinuz-2.4.17 ro root=/dev/hdb2 hdc=ide-scsi
initrd /initrd-2.4.17.img"
Reboot and then I get the unable to mount FS kernel panic?
 
Old 02-18-2002, 10:28 PM   #2
BanjoBoy
LQ Newbie
 
Registered: Sep 2001
Distribution: Red Hat
Posts: 7

Rep: Reputation: 0
There are a couple of minor differences between your steps and the ones that I use. The one that is probably the killer here is after the make modules_install do a make install. This actually copies the image to the /boot dir.

After make dep I also do a make clean just because I am a paranoid developer.
Before make bzImage I add a unique label in the Makefile.

Also you do not need the initrd line in the grub.conf. It doesn't hurt but I have been leaving it out and everything works fine.
 
Old 02-19-2002, 10:45 AM   #3
Alinuxnoob
Member
 
Registered: Feb 2002
Location: Van city
Distribution: Ubuntu
Posts: 204

Original Poster
Rep: Reputation: 30
So if I just take out that one line in the grub file it might fix this?
"initrd /initrd-2.4.17.img"

or do you think I should re do it again from strach?
 
Old 02-19-2002, 11:12 AM   #4
BanjoBoy
LQ Newbie
 
Registered: Sep 2001
Distribution: Red Hat
Posts: 7

Rep: Reputation: 0
I think the problem lies in the make insttall part. You could go back and just do the make install then try it agan but it may require a full build.
 
Old 02-22-2002, 12:51 AM   #5
Alinuxnoob
Member
 
Registered: Feb 2002
Location: Van city
Distribution: Ubuntu
Posts: 204

Original Poster
Rep: Reputation: 30
Thanx for everyone's help

Just wanted to thank everyone that tried to help me. I figure it out. I got
my SOND WORKING and also go the latest and greatest Kernel. IT turns
out that for some reason that my system or AMD or some other kind of reason
that Virtual memory file system support or (former shm fs) was giving me the
kernel panic error. Does anyone know why this doesn't work?
 
  


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
problem compiling kernel 2.6 on RedHat Ninja_212 Red Hat 210 07-17-2004 02:49 AM
Problems compiling 2.6.x kernel on RedHat 8.0 africantiger Linux - Newbie 0 07-13-2004 10:42 PM
RedHat kernel compiling tarballedtux Linux - General 3 05-23-2002 07:56 AM
Redhat 7.2: Kernel Compiling wildbillm Linux - General 3 11-10-2001 02:53 PM
Compiling new kernel with Redhat 7.1 Sylhouette Linux - General 5 10-18-2001 03:31 AM


All times are GMT -5. The time now is 02:28 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration