LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 12-29-2010, 08:43 PM   #1
computerfreak97
Member
 
Registered: Dec 2010
Posts: 45

Rep: Reputation: 0
Chapter 8 Kernel Config


Can someone walk me through configuring the kernel in chapter 8.3, or does it need to be specially configured at all? This is my first time doing this and I got this far, and really don't want to screw up in the last chapter.

Last edited by computerfreak97; 12-29-2010 at 08:44 PM.
 
Old 12-29-2010, 09:02 PM   #2
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Nope, this is not possible. Since we do not know your hardware configuration this is the one chapter in LFS where you are basically on your own. But here is a useful hint:
http://www.linuxfromscratch.org/hint...figuration.txt

I compiled my first kernel for LFS by simply using a config-file from another Linux distro that was installed on the same computer. So I just copied it over to the build directory and used 'make ... oldconfig' instead of menuconfig.

Later I switched to 'make defconfig' which was also fine in a VM.
BTW, what host are you using? Real computer or VM? If real, is there any other distro installed on it?
 
Old 12-29-2010, 09:04 PM   #3
computerfreak97
Member
 
Registered: Dec 2010
Posts: 45

Original Poster
Rep: Reputation: 0
Im using a VM on my macbook. So can I use defconfig? And no, there is no other linux distro on it, but there can be in a short while.

Last edited by computerfreak97; 12-29-2010 at 09:07 PM.
 
Old 12-29-2010, 09:29 PM   #4
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Well, then defconfig is a good choice. I do recall that one time support was compiled for ext3 filesystem but not ext2. But I do not remember if this happened when I used defconfig or if I simply misconfigured. On my VM (VirtualBox) I also needed to compile the module 'pcnet32' to get the network card working. Not sure if this will also be an issue on your VM.
I suggest you just go with defconfig and see what happens when you try to boot.
 
Old 12-29-2010, 09:31 PM   #5
computerfreak97
Member
 
Registered: Dec 2010
Posts: 45

Original Poster
Rep: Reputation: 0
Thanks. I'm also running VirtualBox so thats really encouraging. Also, do I still need to pass the LANG parameter?
 
Old 12-29-2010, 09:41 PM   #6
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
I think I passed it back then; do not remember exactly, though. Just change menuconfig to defconfig.
 
Old 12-30-2010, 02:07 AM   #7
crosstalk
Member
 
Registered: Jul 2010
Distribution: Gentoo, Debian, Mint, Xubuntu
Posts: 150

Rep: Reputation: 35
As mentioned, run "make defconfig".

However, as a Gentoo user (in Gentoo, manual configuration during install can also be done), I must warn you that the filesystem will not be compiled in by default. You'll have to make sure to compile it in (not as a module, unless LFS uses a ramdisk (if it doesn't mention one, then it doesn't use one)).

I also have a computer where it will still fail to mount the root filesystem, as a necessary chipset driver (Nvidia chipset) is not included in "make defconfig" (but this does not appear to be the norm).

Just a note: an issue with the filesystem will report an error message along the lines of "VFS: not syncing".

I hope this helps.
 
Old 12-30-2010, 03:21 AM   #8
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,
Quote:
Originally Posted by computerfreak97 View Post
Also, do I still need to pass the LANG parameter?
No, that is not necessary. Worst thing that can happen is that the menu's will look weird, but all the text will be readable and accessible (I never use the LANG option myself).

A few general pointers:

- Although it would be nice to have a working/bootable kernel the first time around, this is not needed. You can always re-enter the chrooted environment and rebuild the kernel again (redo the steps in chapter 8.3.1, except the installation of the Docs).

- You mention working on a macbook: Do include the apple specific option that are present in the kernel (and not the macintosh options). From the top of my head (but there could be more) they can be found here:
-- Device -> USB
-- Device -> Graphics -> Backlight

Hope this helps.
 
  


Reply



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
Config 2.6.36.1 kernel (from kernel.org) using CentOS 5.4 x86_64 kernel .config whitewolf573 Linux - Kernel 2 12-11-2010 08:33 AM
LFS 6.3, messed up somewhere prior to chapter 6.12 (gcc), how to restart chapter 6? Funkster Linux From Scratch 2 12-24-2008 06:30 AM
kernel problem in chapter 8.3 Soltar Linux From Scratch 1 07-24-2005 03:35 PM
compiling kernel chapter 8.3 ..urgent sharmashikha Linux From Scratch 1 06-21-2005 03:11 AM
Chapter 6: Kernel Headers Problem Obi Perrin Linux From Scratch 8 01-08-2003 02:44 AM

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

All times are GMT -5. The time now is 06:04 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