View previous topic :: View next topic |
Author |
Message |
fangwen Tux's lil' helper

Joined: 23 Oct 2011 Posts: 128 Location: Shanghai, China
|
Posted: Sun Oct 30, 2011 8:04 am Post subject: Where to get more sources of kernel configration |
|
|
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 |
|
 |
avx Advocate


Joined: 21 Jun 2004 Posts: 2152
|
Posted: Sun Oct 30, 2011 11:49 am Post subject: |
|
|
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 |
|
 |
aCOSwt Bodhisattva

Joined: 19 Oct 2007 Posts: 2537 Location: Hilbert space
|
Posted: Sun Oct 30, 2011 2:06 pm Post subject: |
|
|
I have frequently relied on what I could find under the /usr/src/linux/Documentation directory. _________________
|
|
Back to top |
|
 |
fangwen Tux's lil' helper

Joined: 23 Oct 2011 Posts: 128 Location: Shanghai, China
|
Posted: Mon Oct 31, 2011 7:06 am Post subject: |
|
|
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 |
|
 |
m.s.w Apprentice

Joined: 19 Sep 2004 Posts: 193 Location: Kraków, Poland
|
Posted: Mon Oct 31, 2011 1:47 pm Post subject: |
|
|
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 |
|
 |
avx Advocate


Joined: 21 Jun 2004 Posts: 2152
|
Posted: Mon Oct 31, 2011 2:26 pm Post subject: |
|
|
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 |
|
 |
Mepho Arch/Herd Tester


Joined: 31 Jul 2011 Posts: 14
|
Posted: Mon Oct 31, 2011 6:38 pm Post subject: |
|
|
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 |
|
 |
gerard27 Advocate

Joined: 04 Jan 2004 Posts: 2377 Location: Netherlands
|
Posted: Mon Oct 31, 2011 7:11 pm Post subject: |
|
|
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 |
|
 |
avx Advocate


Joined: 21 Jun 2004 Posts: 2152
|
Posted: Mon Oct 31, 2011 7:41 pm Post subject: |
|
|
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)  _________________ ++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>. |
|
Back to top |
|
 |
gerard27 Advocate

Joined: 04 Jan 2004 Posts: 2377 Location: Netherlands
|
Posted: Mon Oct 31, 2011 7:52 pm Post subject: |
|
|
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 |
|
 |
avx Advocate


Joined: 21 Jun 2004 Posts: 2152
|
Posted: Mon Oct 31, 2011 8:13 pm Post subject: |
|
|
No problem, can't be mentioned enough  _________________ ++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+++.------.--------.>+.>. |
|
Back to top |
|
 |
ultraslinky Tux's lil' helper

Joined: 09 Jun 2011 Posts: 80 Location: Milan, Italy
|
Posted: Tue Nov 01, 2011 2:28 am Post subject: |
|
|
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 |
|
 |
fangwen Tux's lil' helper

Joined: 23 Oct 2011 Posts: 128 Location: Shanghai, China
|
Posted: Tue Nov 01, 2011 3:44 am Post subject: |
|
|
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 |
|
 |
ultraslinky Tux's lil' helper

Joined: 09 Jun 2011 Posts: 80 Location: Milan, Italy
|
Posted: Tue Nov 01, 2011 2:47 pm Post subject: |
|
|
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 |
|
 |
|