Find the answer to your Linux question:
Results 1 to 3 of 3
i compliled a custom 2.6.15 kernel, but the system spits out the error "kernel panic- atempt to kill init!" message when i boot it. what i wish to do is ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Enthusiast Weedman's Avatar
    Join Date
    May 2005
    Location
    Tasmania, Australia
    Posts
    640

    logging kernel output


    i compliled a custom 2.6.15 kernel, but the system spits out the error "kernel panic- atempt to kill init!" message when i boot it.

    what i wish to do is log the kernel output so i can compile the kernel again without the certain thing that is causing the problem.

    the error seams to occur before the partitions are mounted, so dmesg and syslog are no use to me.

    how do i go about this?

    thanks
    /weed
    "Time has more than one meaning, and is more than one dimension" - /.unknown
    --Registered Linux user #396583--

  2. #2
    Just Joined! tb10alj's Avatar
    Join Date
    Feb 2006
    Location
    Germany
    Posts
    31
    Hmmm,

    does it say something like "unable to mount root FS"?
    I think, something's wrong with your kernel config:
    Did you compile in the drivers for your harddisk controller?
    Did you compile in the filesystem of your root partition?

    To answer your question:
    You can put a console on the serial line. So you can connect another PC with a NULL-MODEM cable and watch the bootlog with a terminal program like minicom.

    You have to enable

    Device Drivers --->
    Character devices --->
    Serial drivers --->
    <*> 8250/16550 and compatible serial support [*] Console on 8250/16550 and compatible serial port

    When booting this kernel add console=ttyS0,9600 console=tty0 to the kernel boot options.
    Have a look at: Documentation/serial-console.txt in your kernel source tree.


    regards,
    JAN

  3. #3
    Linux Enthusiast Weedman's Avatar
    Join Date
    May 2005
    Location
    Tasmania, Australia
    Posts
    640
    cool thanks Jan!

    i have waited a long, long time for somebody to answer this, Thank you!

    thanks again
    /weed
    "Time has more than one meaning, and is more than one dimension" - /.unknown
    --Registered Linux user #396583--

  4. $spacer_open
    $spacer_close

Posting Permissions

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