Gentoo Archives: gentoo-user

From: James <wireless@×××××××××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: Anyone can afford information about build kernel?
Date: Mon, 10 Oct 2011 14:56:23
Message-Id: loom.20111010T164848-398@post.gmane.org
In Reply to: [gentoo-user] Anyone can afford information about build kernel? by Lavender <448463782@qq.com>
1 Lavender <448463782 <at> qq.com> writes:
2
3
4 > It seems that no matter I build gentoo manually or with genkernel I can't have
5 a fine-working kernel finally. Obviously I must solve it by myself , so I
6 determined to build entire kernel all manually , it requests a lot of linux
7 knowlege . All for that, I hope someone could tell me where to get this
8 information , I haven't found them on gentoo.org , so please lead me to the
9 correct direction, thank you for you all !
10
11
12 Lots of good information has been provided by other. Here is
13 another approach., I do not have the link handy, but you can
14 look at the docs and there is a place that tells you (steps)
15 how to copy the kernel that is provided on the installation
16 cd/dvd to use an your initial boot kernel. It should work,
17 but maybe with lots of extra stuff you do not need.
18
19 Then you can use grub to have several bootable kernels, the
20 one you actually boot off us is selected a few seconds after
21 you power up. This way you can get your system working (bootable)
22 and then take you time pruning the options and learning about
23 building kernels.
24
25 It's easy, here one of my /boot/grub/grub.conf files:
26 (this one even will boot a doz, if that is installed too:
27
28
29 default 2
30 fallback 1
31 timeout 15
32 #splashimage=(hd0,1)/grub/splash.xpm.gz
33
34 #0
35 title=kernel-2.6.36-gentoo-r8
36 root(hd0,1)
37 kernel /boot/kernel-2.6.36-gentoo-r8 root=/dev/sda3 video=1024x768
38 #1
39 title=kernel-2.6.38-gentoo-r6
40 root(hd0,1)
41 kernel /boot/kernel-2.6.38-gentoo-r6 root=/dev/sda3 video=1024x768
42 #2
43 title=kernel-2.6.39-gentoo-r3
44 root(hd0,1)
45 kernel /boot/kernel-2.6.39-gentoo-r3 root=/dev/sda3 video=1024x768
46
47
48 title= XP PRO
49 rootnoverify (hd0,0)
50 makeactive
51 chainloader +1
52
53
54 Let me know if you have trouble finding that link for copying the
55 kernel off of the install media to you hard drive.
56
57 hth,
58 James