Results 1 to 6 of 6

Thread: Problem booting compiled kernel

  1. #1
    Join Date
    Jun 2008
    Location
    Belgrade, Serbia
    Posts
    719

    Unhappy Problem booting compiled kernel

    I have on my asus laptop newly installed 11.0, but this problem occured also on my workplace machine running ubuntu.
    Similarity is: Core duo processor

    On both machines, I have set and recompiled kernel.
    compile parameters was -O2 -pipe
    aditionally, on ubuntu (gcc 4.1) I have added -march=prescott
    here, I added -mtune=core2

    What happens on both:
    Same entries in GRUB, absolutely the same, except one kernel has suffix -default and my compiled has -beli

    On both machines, default kernel loads with no problem and my own compiled writes:
    error 23: error while parsing number

    I suspect there is some problem with compiling on core duo processors, since distros are different and facing same problem.

    Anyone knows how to handle this?
    ---

    Comment:
    I use 10.3 on my home desktop, with Athlon and I havent had ANY problems with compiling and booting kernel

    Thanks!

  2. #2

    Default Re: Problem booting compiled kernel

    Post the contents of your /boot/grub/menu.lst please. Seems that parsing that file gives errors

  3. #3
    Join Date
    Jun 2008
    Location
    Belgrade, Serbia
    Posts
    719

    Default Re: Problem booting compiled kernel

    I cant due to technical and political problems.

    however, as I said, booting lines are absolutely the same for my compiled and working default kernel, only difference is vmlinuz-2.6.....-default (working one) and vmlinuz-2.6.....-beli

    so, only difference is a vmlinuz filename (initrd and sysmap...)

    Also, as I mentioned, same problems occurs at my work, with ubuntu. I am suspecting on a compiler and/or compilation flags.
    If you or anyone knows what flags should I use for core-duo or where problem lies, I would be very much obliged.

    ah yes...
    I did

    make
    make modules_install
    make install

  4. #4
    Join Date
    Jun 2008
    Location
    /dev/belgium
    Posts
    1,946

    Default Re: Problem booting compiled kernel

    don't mess with -march and -mtune when compiling a kernel! if you choose the right CPU in the kernel configuration, it will pick the right options for your CPU during compilation

  5. #5

    Default Re: Problem booting compiled kernel

    Quote Originally Posted by beli0135 View Post
    I cant due to technical and political problems.
    Political reasons prevent you from posting your grub configuration? Are you keeping state secrets in it?
    however, as I said, booting lines are absolutely the same for my compiled and working default kernel, only difference is vmlinuz-2.6.....-default (working one) and vmlinuz-2.6.....-beli

    so, only difference is a vmlinuz filename (initrd and sysmap...)

    Also, as I mentioned, same problems occurs at my work, with ubuntu. I am suspecting on a compiler and/or compilation flags.
    If you or anyone knows what flags should I use for core-duo or where problem lies, I would be very much obliged.
    The "error 23: error while parsing number" does suggest that the problem is with grub, which can't find the correct bootdisk though. I guess your GCC flags have nothing to do with that. Although you could just compile the kernel again without any of the extra compiler flags if you think that is the problem.

  6. #6
    Join Date
    Jun 2008
    Location
    Belgrade, Serbia
    Posts
    719

    Default Re: Problem booting compiled kernel

    been there, done that...

    OK, I will try messing with the flags and kernel processor setup... this thing happened only on core duo... ****..

    thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •