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?
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.
cool thanks Jan!
i have waited a long, long time for somebody to answer this, Thank you! :D