LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
LinkBack Search this Thread
Old 11-07-2006, 08:34 AM   #1
lazyboy001
LQ Newbie
 
Registered: Oct 2006
Posts: 5

Rep: Reputation: 0
x server failure after kernel compilation


I downloaded debian 2.6.15 testing. In this kernel, it's not possible to contorl cpu throttling, because it's not in the kernel (neither as module nor integrated). So I downloaded the kernel source 2.6.17 and compiled it according to the "Readme" in /usr/share/doc/kernel. The compilation went fine, but when I reboot, an x-server failure occurs with the message:

Failed to start the X server (your graphical interface). It is likely that it is not set up correctly.

The x environment works well with the 2.6.15 version.

Somebody might have had a similar problem and can drop a hint....

Thanks for your support!
Urs, Switzerland
 
Old 11-08-2006, 03:41 AM   #2
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: FC11 2.6.29.4-167.fc11.i686.PAE
Posts: 1,370

Rep: Reputation: 69
Quote:
Originally Posted by lazyboy001
I downloaded debian 2.6.15 testing. In this kernel, it's not possible to contorl cpu throttling, because it's not in the kernel (neither as module nor integrated). So I downloaded the kernel source 2.6.17 and compiled it according to the "Readme" in /usr/share/doc/kernel. The compilation went fine, but when I reboot, an x-server failure occurs with the message:

Failed to start the X server (your graphical interface). It is likely that it is not set up correctly.

The x environment works well with the 2.6.15 version.

Somebody might have had a similar problem and can drop a hint....

Thanks for your support!
Urs, Switzerland
Hi

Hmm - as far as I know this is exactly what is supposed to happen. This is because the kernel module you need is compiled for the -old- version of your kernel, not the new one you just booted...

I ran into exactly this same problem when I upgraded by 2.6.9 kernel to 2.6.14.3 - everything went fine, but when I booted into the new kernel, Xwindows wouldn't start.

The first thing to do to solve this is to get the correct graphics driver source you need. If you have a Nvidia based GFX card this is absurdly easy - simply go to the Nvidia site and download the latest Linux driver.

Then switch your installation over to runlevel 3 (by editing /etc/inittab) so that it starts up in text mode.

What you then need to do is take the new graphics driver you just got and compile it under the new kernel. I used the following commandline to get the Nvidia driver to compile under my new 2.6.14.3 kernel so I could get into Xwindows under the new kernel:

NVIDIA-Linux-x86-1.0-8756-pkg1.run --with-kernel-source=/usr/src/linux/linux-version.version

This of course requires that the kernel source you just used to build your kernel is still present in the specified location, and is still configured just like it was when you compiled that current, running kernel.

Once the Nvidia driver has been compiled and installed for you (just follow the prompts) you can try starting up Xwindows by going

startx

in a text terminal. If it works, reset your runlevel to 5 and all should be fine.

Let us know how you get on.

Regards,
 
Old 11-10-2006, 05:18 AM   #3
lazyboy001
LQ Newbie
 
Registered: Oct 2006
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by rylan76
Hi

Hmm - as far as I know this is exactly what is supposed to happen. This is because the kernel module you need is compiled for the -old- version of your kernel, not the new one you just booted...

I ran into exactly this same problem when I upgraded by 2.6.9 kernel to 2.6.14.3 - everything went fine, but when I booted into the new kernel, Xwindows wouldn't start.

The first thing to do to solve this is to get the correct graphics driver source you need. If you have a Nvidia based GFX card this is absurdly easy - simply go to the Nvidia site and download the latest Linux driver.

Then switch your installation over to runlevel 3 (by editing /etc/inittab) so that it starts up in text mode.

What you then need to do is take the new graphics driver you just got and compile it under the new kernel. I used the following commandline to get the Nvidia driver to compile under my new 2.6.14.3 kernel so I could get into Xwindows under the new kernel:

NVIDIA-Linux-x86-1.0-8756-pkg1.run --with-kernel-source=/usr/src/linux/linux-version.version

This of course requires that the kernel source you just used to build your kernel is still present in the specified location, and is still configured just like it was when you compiled that current, running kernel.

Once the Nvidia driver has been compiled and installed for you (just follow the prompts) you can try starting up Xwindows by going

startx

in a text terminal. If it works, reset your runlevel to 5 and all should be fine.

Let us know how you get on.

Regards,

Thanks very much for your help!

I finally managed to get it to work. Here's how I did it:

My graphic card's an Intel 82852, so I had to download this driver. However, after installing it, I still couldn't start X, because of mouse and touch pad detecting difficulties. So I performed an update and upgrade (in the new kernel). This didn't help either. I then recompiled the kernel with the features I wanted "integrated" into the kernel (cpu throttling as well as graphic driver were only compiled as modules before). This solved the problem. I'm now running on 2.6.17 and didn't even have to additionally install the graphic card driver when starting with the newly compiled kernel.
Again, thanks for your support. I really appreciate comments like yours when I post a problem online!!!

Urs, Switzerland
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Kiozen Compilation Failure DaBlade Linux - Software 4 12-18-2005 05:49 AM
kernel compilation -- quiet failure rhoyerboat Linux - Software 1 09-13-2005 03:03 AM
mplayerplugin: compilation failure kaon Slackware 18 09-02-2005 05:50 AM
mono compilation failure tamtam Programming 1 04-16-2005 07:33 AM
kernel compilation and X font server steve Linux - General 4 09-07-2001 10:21 AM


All times are GMT -5. The time now is 12:51 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration