Re: kernel recompile problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



kiran kumar wrote:

hi all, i am installing kernel 2.6.15.5. i have 2.4.20-8 as the original kernel. the steps i followed for compiling the kernel is : 1. downloaded the required packages module-init-tools-3.2 & modutils-2.4.27-1.src.rpm
2.  Install module-init-tools.
cd module-init-tools-3.2
        ./configure --prefix=/
        make
        make install
        ./generate-modprobe.conf /etc/modprobe.conf

### this packages i have installed in /home/src directory.

3. Install modutils-2.4.21-23.src.rpm.
        rpm -i modutils-2.4.21-23.src.rpm
        rpmbuild -bb /usr/src/redhat/SPECS/modutils.spec
        rpm -Fi /usr/src/redhat/RPMS/i386/modutils-2.4.21-23.i386.rpm
4. Install and configure the kernel.
      i have installed in /home/src directory.;
copied the existing config file of 2.4 kernel i.e kernel-2.4.20-8-i386.config into /home/src/linux-2.6.15.5;
      then i did make oldconfig;
#### i ensured loop back device support set as module & ram disk support as built-in.
      then, make bzImage;
      make modules;
      make modules_install;
      make install;
then i rebooted successfully 2.6 kernel for the first time.

did you edit your /etc/lilo.conf or /boot/grub/grub.conf for the new kernel? (im assuming so)


for successive recompilations of 2.6 there is error at the last stage i.e after make install
all of your loop back devices are in use;
mkinitrd failed

you suppose to mkinitrd before you reboot into your new kernel...(well thats the way i do it anyway)

#mkinitrd 2.6.15 /boot/initrd-2.6.15.img (goes something like that)


what might be the problem? i have set #### loop back device support set as module & ram disk support as built-in.
pls help me in this regard?

have you installed the modules? Does the kernel autoload them at boot at boot? modprobe loop ( i think) /*insmod loop - if you want to live on the edge*/

Also remember the 2.4 series uses different /dev management to the 2.6 series (or gentoo does anyway),Hence a few system freezes.

If this doesnt help at all... oh well



p.s. sorry if a double post occures

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux