LinuxQuestions.org
Visit Jeremy's Blog.
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 07-28-2007, 10:26 PM   #1
Ishtiaque
LQ Newbie
 
Registered: Jul 2007
Posts: 4

Rep: Reputation: 0
Question problem in Linux kernel compile


Hello ..

this is my first post here in this forum . I was trying to copile a new kernel in my PC. I am using Fedora core 6. I tried to compile linux-2.6.22.1 downloading from internet.
what I did were:

make configure
make
make modules_install
make install
install
initrd ....

then I reboot my PC and found a new option to chose OS while starting the PC. But if i choose my new kernel I is not booting. It is not getting the files required. I dont know why is this happening. Is there anyone to help me ??
 
Old 07-29-2007, 11:15 AM   #2
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 10,319

Rep: Reputation: 2612Reputation: 2612Reputation: 2612Reputation: 2612Reputation: 2612Reputation: 2612Reputation: 2612Reputation: 2612Reputation: 2612Reputation: 2612Reputation: 2612
Moved: This thread is more suitable in Linux - Newbie and has been moved accordingly to help your thread/question get the exposure it deserves.

--jeremy
 
Old 07-29-2007, 11:46 AM   #3
Road_map
Member
 
Registered: Jan 2007
Distribution: Slackware
Posts: 341

Rep: Reputation: 31
This commands worked for me:
Code:
tar -xzvf linux-2.6.22.1.tar.gz
mv ~/linux-2.6.22.1 /usr/src/linux-2.6.22.1
cd /usr/src
rm /usr/src/linux
ln -s /usr/src/linux-2.6.22.1 linux
cp /boot/config /usr/src/linux/.config
cd /usr/src/linux
make oldconfig
make bzImage
make modules
make modules_install
cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.22.1-smp
cp System.map /boot/System.map-2.6.22.1-smp
cp .config /boot/config-2.6.22.1-smp
Then edit /etc/lilo.conf and add something like that:
Code:
image = /boot/vmlinuz-2.6.22.1-smp
  initrd = /boot/initrd.gz
  root = /dev/hda3
  label = Slackware
  read-only  # Partitions should be mounted read-only for checking
and run lilo command
 
Old 07-29-2007, 12:14 PM   #4
adilbhilai
LQ Newbie
 
Registered: May 2007
Distribution: RHEL 5.1 & Fedora 16
Posts: 29

Rep: Reputation: 15
will you tell in brief what error are you getting during bootup of new linux.

Last edited by adilbhilai; 07-29-2007 at 12:18 PM.
 
Old 07-29-2007, 11:52 PM   #5
Ishtiaque
LQ Newbie
 
Registered: Jul 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Thank you Road Map for your help. But I dont think there is a lilo.conf in fedora core 6 . Instead there is grub.conf in /boot/GRUB . Anyway I made my change there

>>Adilbhilai :

when I boot my computer I get the options of the newly compiled compiled kernel as well as the old one.If I chose the option of my new kernel . It starts to load. And for fe seconds I see a lot of words written of that black window and they pass so quickly that I could not read them . But after few seconds the booting suspends as it fails to find some path , i found there some words like ... unable to shift "root" , unable to unmout , etc. Finally it hauls with showing a system panic that all tasks might be killed of . After that nothing happens and system haults for ever until I reboot.

Thanks for understanding.
 
Old 07-30-2007, 12:24 AM   #6
Ishtiaque
LQ Newbie
 
Registered: Jul 2007
Posts: 4

Original Poster
Rep: Reputation: 0
during compiel when I ran the command : make

i got these errors:

HOSTCC usr/gen_init_cpio
/usr/src/linux-2.6.21.6/scripts/gen_initramfs_list.sh: Cannot open 'y'
make[1]: *** [usr/initramfs_data.cpio.gz] Error 1
make: *** [usr] Error 2
[root@localhost linux-2.6.21.6]#
 
Old 07-30-2007, 07:36 AM   #7
Ishtiaque
LQ Newbie
 
Registered: Jul 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Unhappy

well ...

the msg was somewhat ..like ...

switchroot: unmount failed ..

lots of unmounting failed there ...

and the system was not getting /dev/volgroup00/....

plz help me .... i am in a fix what to do !!
 
Old 07-31-2007, 01:57 AM   #8
adilbhilai
LQ Newbie
 
Registered: May 2007
Distribution: RHEL 5.1 & Fedora 16
Posts: 29

Rep: Reputation: 15
Quote:
Originally Posted by Ishtiaque
during compiel when I ran the command : make

i got these errors:

HOSTCC usr/gen_init_cpio
/usr/src/linux-2.6.21.6/scripts/gen_initramfs_list.sh: Cannot open 'y'
make[1]: *** [usr/initramfs_data.cpio.gz] Error 1
make: *** [usr] Error 2
[root@localhost linux-2.6.21.6]#
try to re-download new kernel archive and again do the compilation.
you should not get any compilation error or new kernel will not boot.
 
  


Reply

Tags
compiling, fedora, from, kernel, linux


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 of Linux kernel version mismatch while running the compile program Nishant Desai Linux - Kernel 8 03-12-2007 08:22 AM
upgrade and compile linux kernel problem anthonymts123 Linux - General 8 07-27-2006 10:20 AM
Problem with Kernel 2.6.2 Compile sirphoenix Linux - Newbie 2 02-17-2004 01:51 PM
kernel compile problem Syncrm Linux - Software 3 01-23-2002 03:10 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration