Re: question about compiling the kernel

From: Brian Gerst (bgerst@didntduck.org)
Date: Wed Jan 24 2001 - 16:59:44 EST


Jie Zhou wrote:
> > > 3. After I run the /sbin/lilo, it says the new kernel is added to the
> > > system. HOwever when I restart the system and go into the labeled kernel
> > > I choose, the system gets stucked after these two lines:
> > > Loading kernel.......................
> > > Uncompressing Linux...OK, booting the kernel.
> > >
> > > Can you give me some advice on this. Thanks a lot for your kind reply..
> >
> > Make certain you compiled the kernel for the proper CPU type (ie. don't
> > try to run a Pentium II kernel on a 486)
>
> Thank you very much. My computer is a Pentium machine, should be able to
> run any kernel. :-(

Not true. If you compile the kernel for a Pentium Pro or higher cpu,
GCC will include some instructions (cmovxx in particular) that do not
exist on earlier processors. Since the fault handlers are not set up
yet when booting the kernel, this results in a silent crash.

--

Brian Gerst - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Jan 31 2001 - 21:00:20 EST