LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   problems booting compiled 2.6.11 kernel (https://www.linuxquestions.org/questions/debian-26/problems-booting-compiled-2-6-11-kernel-322105/)

monkeyman2000 05-10-2005 04:03 PM

problems booting compiled 2.6.11 kernel
 
Hi,

I need to compile a new kernel, slightly patched to make my wifi card work right. I currently have a 2.4.26 kernel running. My system is debian unstable, installed originally as knoppix.

I apt-get'ed the latest kernel source and kernel-image, to use that config file
Code:

  apt-get install kernel-source-2.6.11
  apt-get install kernel-image-2.6.11-1-686
  cd /usr/src/
  tar -jxf kernel-source-2.6.11.tar.bz2
  cp /boot/config-2.6.11-1-686 .config

I applied my patch:
Code:

  patch -p1 < /home/joek/orinoco-2.6.11-rfmon-dragorn-1.diff
[it says it applies OK]

I edited the Makefile to set the extraversion, then compiled:
Code:

  make oldconfig
  make xconfig
  make-kpkg clean
  time make-kpkg --initrd --revision=2:laptop.1 kernel_image
    [this took about 2 hours, and successfully created a .deb package]

I installed the newly created .deb:
Code:

  dpkg -i /usr/src/kernel-image-2.6.11200505071_laptop.1_i386.deb
I changed lilo to add the new kernel to the menu, then rebooted. So far everything seems to have worked fine.

HOWEVER, when I try to boot the new kernel, it says (approximately)
Code:

"loading linux kernel...........................................
 ............... checking bios"

This is basically the same thing it says when booting the 2.4 kernel that works. At this point, the screen is supposed to clear, then (normally, with the working kernel) I see a picture of a linux penguin(I think it is in frame buffer mode?) then more text in color indicating the continuing boot process.

But for the newly compiled kernel, the screen just goes blank and nothing more occurs. I need to reboot (using the old kernel from the lilo menu for it too work).

Can anyone help me? Is there something I need to modify in the .config file before compiling? Is there something else I am missing?

Thank you for any help. I have the output of the compilation process saved if that would help, but it is very long.

fricike 05-11-2005 07:25 AM

In your lilo.conf everything (image, initrd) mathces the files in the /boot/ directory?
I had a similar problem once a long time ago, when i accidentally installed a ....-i386 kernel on the AMD K6/III based notebook instead of ....-k6 kernel.

sadun 05-11-2005 09:15 AM

AMD cpu's are recognising as 586 not 686...

lingeek 05-11-2005 09:48 AM

check whether you have initrd-2.6.11 file in your /boot directory.

mrcheeks 05-11-2005 11:04 AM

also check if you didn't forget some options scsi , ide, file systems.

makuyl 05-11-2005 11:42 AM

Also check if you have module-init-tools installed and the following line in fstab:
none /sys sysfs defaults 0 0

m_yates 05-11-2005 12:01 PM

The framebuffer has a lot of problems with the 2.6 kernels. Very often, the screen will go blank, but the kernel is still booting. You just can't see the boot messages. Try editing /boot/grub/menu.lst Look for "vga=" in the entry for the 2.6.11 kernel. Delete it, or try setting "vga=normal", then see if it will boot properly.

pasqualeiv 05-28-2005 07:16 PM

Quote:

Originally posted by m_yates
Look for "vga=" in the entry for the 2.6.11 kernel. Delete it, or try setting "vga=normal", then see if it will boot properly.
This worked for me: in /etc/lilo.conf
vga = normal
/sbin/lilo


All times are GMT -5. The time now is 10:37 AM.