LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 05-02-2010, 05:59 AM   #1
jjdekroon
LQ Newbie
 
Registered: Mar 2006
Posts: 5

Rep: Reputation: 0
Problem booting system with Kernel 2.6.33.3


Hello everybody,
I just completed all the steps the book told me.
Only I'm using a different Kernel than the one used in the book.
I compiled the Kernel by using the config file of the Kernel on my host system.
My host system is Ubuntu 10.04.
Now is the problem that after the kernel was installed and grub was set-up, the system had a problem with booting.
When I select the kernel to boot, the screen show's some output, with some information which say done. So I assume that grub can find the kernel, and it can be booted, but at some point the screen turns black and it doesn't seem to respond to anything.
The disk lay-out in my LFS system is that /, /boot, and /home each have their own partition. In my host system everything was on one partition.
Does somebody have any idea on what this problem could be? I think it is some problem with the kernel, but I'm not sure.

Kind regards,
Jasper
 
Old 05-02-2010, 06:21 AM   #2
ophirg
Member
 
Registered: Jan 2008
Location: Israel
Distribution: Kubuntu 13.10
Posts: 134

Rep: Reputation: 34
many distros, like ubuntu, are built using a modified kernel. as a result, most of them will have problems with new kernels that a user compiles.
if you just want the latest kernel, i know that ubuntu repositories have some packages for that.
if you want to do kernel development, i suggest switching to gentoo or slackware.
also, i use qemu and kvm to run my development version kernel on a virtual machine - less likely to harm the computer.

copying the config file when you make a transition to a new major version of the kernel is not a good idea. try reconfiguring.

last tip: always keep the original distro kernel in the grub menu.

hope that helps
 
Old 05-02-2010, 06:42 AM   #3
jjdekroon
LQ Newbie
 
Registered: Mar 2006
Posts: 5

Original Poster
Rep: Reputation: 0
Yes this has helped me a little bit, but I saw some other people also used the approach I used to compile the kernel.
To be clear I didn't just copy the .config from the existing kernel, but I also loaded it in the menuconfig, and reviewed the configuration.
The only things I changed was the processor type which in ubuntu is for a wide variation of processors to "Core 2 Duo", and I switched of kernel debugging.
Also I just checked the grub.cfg to see if it was pointing to a wrong root disk, because many kernel features have been installed as modules. But this seems to point to the right disk, so this also doesn't seem to be the problem.
 
Old 05-02-2010, 11:48 AM   #4
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Quote:
Originally Posted by jjdekroon View Post
Only I'm using a different Kernel than the one used in the book.
I compiled the Kernel by using the config file of the Kernel on my host system.
Hi,

this is a bit confusing. First you say, that you used a different kernel. But in the next sentence you say that you only used the config file from your host. So which kernel version did you actually compile? Is correct that you did use the kernel version from the LFS book and only the config from your host? Or did you also compile the same kernel version as on your host system?

Also please post some output of the error.
 
Old 05-02-2010, 12:30 PM   #5
jjdekroon
LQ Newbie
 
Registered: Mar 2006
Posts: 5

Original Poster
Rep: Reputation: 0
Sorry for the confusion. I'm using Kernel version 2.6.33.3 for the LFS System. My Ubuntu version has a kernel based on 2.6.32 I believe. I only used the config file from the /boot folder of my host system (Ubuntu 10.04), and loaded this one in the makeconfig of the kernel 2.6.33.3. Further I can't give you any error codes or something like that, because the system just show's some things that it is loading, and then all of a sudden the screen turns black and stays that way. It's not rebooting or something else, it just hangs at the black screen. Also it's no Kernel panic, because there are no lights flashing.
 
Old 05-03-2010, 05:23 AM   #6
ophirg
Member
 
Registered: Jan 2008
Location: Israel
Distribution: Kubuntu 13.10
Posts: 134

Rep: Reputation: 34
there is one thing that i can think of that will solve the problem. you are probably missing some patches and modifications that the ubuntu developers use.

try following this guide:
https://help.ubuntu.com/community/Kernel/Compile
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
System does not booting after installing new kernel mapsiddiqui Linux - Newbie 3 06-24-2008 08:50 PM
Kernel panic after compilation---System not booting skie_knite007 Programming 1 08-21-2006 01:58 PM
Linux System not booting from new kernel pal Linux - Newbie 2 12-15-2004 07:41 PM
booting the kernel leads to a system hang? DeathCrush19 Mandriva 1 09-29-2004 01:03 PM
Problem booting my new kernel in an embedded system Fernando Linux - General 1 07-02-2002 10:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 04:19 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration