Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Where to get more sources of kernel configration
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
fangwen
Tux's lil' helper
Tux's lil' helper


Joined: 23 Oct 2011
Posts: 128
Location: Shanghai, China

PostPosted: Sun Oct 30, 2011 8:04 am    Post subject: Where to get more sources of kernel configration Reply with quote

I've been reading the Gentoo Linux Handbook recently. I find that the kernel configuration part is
short for me.

So do you have some more kernel configuration related sources or any advice for me?

I want to get a full list of kernel configuration options, but where can I get it?
Back to top
View user's profile Send private message
avx
Advocate
Advocate


Joined: 21 Jun 2004
Posts: 2152

PostPosted: Sun Oct 30, 2011 11:49 am    Post subject: Reply with quote

Well, there's documentation inside the kernel-src itself, you can select help for any item in `make menuconfig`, you could start with a kernel seed and go from there and of course, there's always Google.

What exactly is your problem? Do you have fear of the kernel not being able to boot your system? Do you want to keep it small? Do you need special features usually not used on a desktop/notebook?
_________________
++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.
Back to top
View user's profile Send private message
aCOSwt
Bodhisattva
Bodhisattva


Joined: 19 Oct 2007
Posts: 2537
Location: Hilbert space

PostPosted: Sun Oct 30, 2011 2:06 pm    Post subject: Reply with quote

I have frequently relied on what I could find under the /usr/src/linux/Documentation directory.
_________________
Back to top
View user's profile Send private message
fangwen
Tux's lil' helper
Tux's lil' helper


Joined: 23 Oct 2011
Posts: 128
Location: Shanghai, China

PostPosted: Mon Oct 31, 2011 7:06 am    Post subject: Reply with quote

I do have fear of the kernel not being able to boot up. Actually I have been preparing for Gentoo installation
for about 2 weeks and I am still a little confused.

Will the default configuration work?
Back to top
View user's profile Send private message
m.s.w
Apprentice
Apprentice


Joined: 19 Sep 2004
Posts: 193
Location: Kraków, Poland

PostPosted: Mon Oct 31, 2011 1:47 pm    Post subject: Reply with quote

Don't be scared. Just find out how to configure your boot manager (LILO or GRUB, whichever you use) to have an selection at boot. Then you keep your working configuratin at one position, and the second one will be your testing one where you will test your new, "hand-made" kernel.

Mine /etc/lilo.conf
Code:

# $Header: /var/cvsroot/gentoo-x86/sys-boot/lilo/files/lilo.conf,v 1.2 2004/07/18 04:42:04 dragonheart Exp $
# Author: Ultanium

#
# Start LILO global section
#

lba32
# If lba32 do not work, use linear:
#linear

# MBR to install LILO to:
boot = /dev/sda
map = /boot/.map

install = /boot/boot-menu.b   

menu-scheme=Wb
prompt
timeout=20
delay = 20

#
# End LILO global section
#

#
# Linux bootable partition config begins
#

image = /boot/gentoo-2.6.39
        root = /dev/sda3
        label = Gentoo
        read-only # read-only for checking
        vga=0x31B

image = /boot/previous.kernel
        root = /dev/sda3
        label = Gentoo-old
        read-only # read-only for checking
        append="vt.default_utf8=0 video=uvesafb:1280x1024-32,mtrr:2,ywrap"
# Linux bootable partition config ends
#

#
# DOS bootable partition config begins
#
#other = /dev/sdb1
        #label = Windows
        #table = /dev/sdb
#
# DOS bootable partition config ends 
#


Thanks to above configuration, durig boot lilo shows a menu so I can choose between:
1. Gentoo
2. Gentoo-old

If one configuration is OK (Gentoo-old), then even If I fail to build correct kernel I can alway boot into old configuration to correct the new one.
I don't know how to do it in GRUB.

You need to know how to configure LILO and GRUB before you proceed.

Best Regards,
m.s.w
_________________
Mark Twain said it best:
"If you have to swallow a frog, don't stare at it too long!"
Back to top
View user's profile Send private message
avx
Advocate
Advocate


Joined: 21 Jun 2004
Posts: 2152

PostPosted: Mon Oct 31, 2011 2:26 pm    Post subject: Reply with quote

fangwen wrote:
Will the default configuration work?
If you have fairly generic hardware, the default set might boot, but it surely isn't perfect for your system.

If you never built a kernel yourself, just use genkernel (in portage) to generate one and then have a look at it and see if you're sattisfied or if you'd like to change something.

As long as it boots and supports your hardware, you've done a lot and there aren't many things to do - ie, there's no magic "50% faster" switch. You can tweak for your needs and wishes, but maybe you should run the system first to see what's really needed.
_________________
++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.
Back to top
View user's profile Send private message
Mepho
Arch/Herd Tester
Arch/Herd Tester


Joined: 31 Jul 2011
Posts: 14

PostPosted: Mon Oct 31, 2011 6:38 pm    Post subject: Reply with quote

All I ever had to use was 'h' button for help, '/' for search in menuconfig. When I wasnt sure about anything, I either used google or experimented.
Also this page may be helpfull:
http://kmuto.jp/debian/hcl/index.rhtmlx
Just drop in output from 'lspci -n' and it will search for compat. hw and needed kernel modules (keep in mind that it only works for pci components of mobo and such, but it helps a lot though it's lil outdated and tailored towards debianees).
_________________
I WANT YOU
FOR GENTOO.
Back to top
View user's profile Send private message
gerard27
Advocate
Advocate


Joined: 04 Jan 2004
Posts: 2377
Location: Netherlands

PostPosted: Mon Oct 31, 2011 7:11 pm    Post subject: Reply with quote

I am surprised no one mentioned Pappy's kernel seeds.
http://kernel-seeds.org/
Here you can find the info you need I think.
Gerard.
_________________
To install Gentoo I use sysrescuecd.Based on Gentoo,has firefox to browse Gentoo docs and mc to browse (and edit) files.
The same disk can be used for 32 and 64 bit installs.
You can follow the Handbook verbatim.
http://www.sysresccd.org/Download
Back to top
View user's profile Send private message
avx
Advocate
Advocate


Joined: 21 Jun 2004
Posts: 2152

PostPosted: Mon Oct 31, 2011 7:41 pm    Post subject: Reply with quote

gerard82 wrote:
I am surprised no one mentioned Pappy's kernel seeds.
http://kernel-seeds.org/
Here you can find the info you need I think.
Gerard.
I'm surprised you think no one mentioned it, look at my first post(first reply) :twisted:
_________________
++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.
Back to top
View user's profile Send private message
gerard27
Advocate
Advocate


Joined: 04 Jan 2004
Posts: 2377
Location: Netherlands

PostPosted: Mon Oct 31, 2011 7:52 pm    Post subject: Reply with quote

Sorry avx.
Must have overlooked it.
Gerard.
_________________
To install Gentoo I use sysrescuecd.Based on Gentoo,has firefox to browse Gentoo docs and mc to browse (and edit) files.
The same disk can be used for 32 and 64 bit installs.
You can follow the Handbook verbatim.
http://www.sysresccd.org/Download
Back to top
View user's profile Send private message
avx
Advocate
Advocate


Joined: 21 Jun 2004
Posts: 2152

PostPosted: Mon Oct 31, 2011 8:13 pm    Post subject: Reply with quote

No problem, can't be mentioned enough :)
_________________
++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>.
Back to top
View user's profile Send private message
ultraslinky
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jun 2011
Posts: 80
Location: Milan, Italy

PostPosted: Tue Nov 01, 2011 2:28 am    Post subject: Reply with quote

Keep in mind... those kernel seeds say they are "tweaked for performance". A laptop / netbook won't like those settings very much, all the power saving options are turned off.

But hey fangwen, i recommend you don't use genkernel. Use the default kernel menuconfig, it's a learning experience. And the only kernel option that is really, really crucial to booting is the hard disk section: make sure you have that compiled into the kernel and not as a module (my first kernel failed booting because of that). And read the kernel helps, they are usually very informative.

Or then you could use genkernel for the first kernel and then do as m.s.w said.
Back to top
View user's profile Send private message
fangwen
Tux's lil' helper
Tux's lil' helper


Joined: 23 Oct 2011
Posts: 128
Location: Shanghai, China

PostPosted: Tue Nov 01, 2011 3:44 am    Post subject: Reply with quote

Thank you so much for all your help and advice.

Now I am quite confident of kernel configuration. I am not going to use genkernel because the spirit of Gentoo is choice and DIY.

First make it run, then make it run faster, right?
Back to top
View user's profile Send private message
ultraslinky
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jun 2011
Posts: 80
Location: Milan, Italy

PostPosted: Tue Nov 01, 2011 2:47 pm    Post subject: Reply with quote

Well yeah, that's the spirit. Of course, as avx said, there's no "magic 50% speed increase" option, most of the options in the kernel are about device support, and if they are not used they will just make your kernel larger. Maybe the biggest speed increase i have seen by modifying the kernel options is to disable kernel debugging, but of course you only do that when your system is up and running fine :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum