Linux From ScratchThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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?
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.