LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   problem in Linux kernel compile (http://www.linuxquestions.org/questions/linux-newbie-8/problem-in-linux-kernel-compile-573073/)

Ishtiaque 07-28-2007 11:26 PM

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 ??

jeremy 07-29-2007 12:15 PM

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

Road_map 07-29-2007 12:46 PM

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

adilbhilai 07-29-2007 01:14 PM

will you tell in brief what error are you getting during bootup of new linux.

Ishtiaque 07-30-2007 12:52 AM

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.

Ishtiaque 07-30-2007 01:24 AM

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]#

Ishtiaque 07-30-2007 08:36 AM

:scratch: well ...

the msg was somewhat ..like ...

switchroot: unmount failed ..

lots of unmounting failed there ...:confused:

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

plz help me .... i am in a fix what to do !!:cry:

adilbhilai 07-31-2007 02:57 AM

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.


All times are GMT -5. The time now is 08:09 AM.