Gentoo Archives: gentoo-user

From: Nilesh Govindarajan <contact@××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Anyone can afford information about build kernel?
Date: Sun, 09 Oct 2011 01:40:31
Message-Id: 4E90FB4B.3010309@nileshgr.com
In Reply to: [gentoo-user] Anyone can afford information about build kernel? by Lavender <448463782@qq.com>
1 On 10/09/2011 06:25 AM, Lavender wrote:
2 > It seems that no matter I build gentoo manually or with genkernel I
3 > can't have a fine-working kernel finally. Obviously I must solve it by
4 > myself , so I determined to build entire kernel all manually , it
5 > requests a lot of linux knowlege . All for that, I hope someone could
6 > tell me where to get this information , I haven't found them on
7 > gentoo.org , so please lead me to the correct direction, thank you for
8 > you all !
9
10 If you're new to building kernel, it will take some time to learn what
11 modules you need what options you should enable, etc.
12 You're building gentoo on some host Linux os, so you can use that os's
13 lsmod utility to know what modules you require.
14
15 Also, if some modules may be compiled right into the kernel you may not
16 be able to see them in the lsmod produces, instead use lspci -v for that.
17
18 One important thing I learnt the hard way while building gentoo for a
19 server- Always compile the critical modules like disk controllers, RAID,
20 also don't forget to use RAID autodetection if you're not going to use
21 an initramfs and filesystems (involved at boot) statically.
22
23 While citing my experience about building gentoo on a server, you have
24 to do the things invisibly, so you can't see what the kernel emits befor
25 panic.
26
27 It turned out that I'd disabled RAID autodetection and wasn't using an
28 initramfs either (which will load the arrays using mdadm).
29
30 --
31 Nilesh Govindarajan
32 http://nileshgr.com