1 |
On Wednesday 29 March 2006 21:58, Lord Sauron wrote: |
2 |
> Okay, here's where I've isolated the problem to. This might be a |
3 |
> rather lengthy explanation, so make sure you have about 15 minutes on |
4 |
> your hands before diving in. However, the explanation shouldn't take |
5 |
> long - I've never actually compiled/installed/used a kernel before. |
6 |
> Okay, enough apologising in advance: down to business. |
7 |
> |
8 |
> I know that it correctly compiles the kernel. I put a new name for |
9 |
> the new kernel (test1) to try and ID it as it floats about all the |
10 |
> other kernels I'm too scared to delete. |
11 |
> |
12 |
> # make install |
13 |
> |
14 |
> Sticks it into /boot. /boot now reads |
15 |
> |
16 |
> System.map config.old |
17 |
> System.map-2.6.15-gentoo-r1 grub |
18 |
> System.map-2.6.15-gentoo-r1.old |
19 |
> initramfs-genkernel-x86-2.6.15-gentoo-r5 System.map-2.6.15-gentoo-r1test1 |
20 |
> kernel-genkernel-x86-2.6.15-gentoo-r5 |
21 |
> System.map-2.6.15-gentoo-r1test1.old lost+found |
22 |
> System.map.old vmlinuz |
23 |
> boot vmlinuz-2.6.15-gentoo-r1 |
24 |
> config vmlinuz-2.6.15-gentoo-r1.old |
25 |
> config-2.6.15-gentoo-r1 vmlinuz-2.6.15-gentoo-r1test1 |
26 |
> config-2.6.15-gentoo-r1.old vmlinuz-2.6.15-gentoo-r1test1.old |
27 |
> config-2.6.15-gentoo-r1test1 vmlinuz.old |
28 |
> config-2.6.15-gentoo-r1test1.old |
29 |
> |
30 |
> Not terribly exciting. However, I went to /boot/grub/menu.lst and it |
31 |
> reads as such: |
32 |
> |
33 |
> localhost boot # cat ./grub/menu.lst |
34 |
> default 0 |
35 |
> timeout 7 |
36 |
> splashimage=(hd0,0)/grub/splash.xpm.gz |
37 |
> title=Gentoo Linux |
38 |
> root (hd0,0) |
39 |
> kernel /kernel-genkernel-x86-2.6.15-gentoo-r5 root=/dev/ram0 |
40 |
> init=/linuxrc ramdisk=8192 real_root=/dev/hda3 |
41 |
> initrd /initramfs-genkernel-x86-2.6.15-gentoo-r5 |
42 |
> |
43 |
> The most concerning part is the last three lines. For any kernel, it |
44 |
> appears to demand the kernel itself. If you'll refer back to # ls |
45 |
> /boot then you'll notice that kernel-2.6.15-gentoo-r1test1 isn't |
46 |
> there. |
47 |
|
48 |
Sure it is. It's vmlinuz-2.6.15-gentoo-r1test1 and make install even made a |
49 |
symlink to it: vmlinuz. |
50 |
|
51 |
If you type ls -l /boot/vmlinuz it should give something that end on: |
52 |
/boot/vmlinuz -> vmlinuz-2.6.15-gentoo-r1test1 |
53 |
|
54 |
> Nor is the initrd. |
55 |
|
56 |
If you don't use genkernel you don't actually need an initrd. If you want one |
57 |
you have to enable it. I can't tell you how since I don't use it myself. |
58 |
|
59 |
> I don't know where they might be, or if |
60 |
> they're not there then how to generate them. |
61 |
|
62 |
Try adding the following to /boot/grub/menu.lst: |
63 |
|
64 |
title Gentoo Linux test1 |
65 |
root (hd0,0) |
66 |
kernel /vmlinuz root=/dev/hda3 |
67 |
|
68 |
This will create a new menu item in Grub during start up. If you want this |
69 |
kernel to be selected by default you either add above the genkernel menu item |
70 |
shown above or change the default to 1. After default you can add a fallback |
71 |
line and set it to another kernel than the default. |
72 |
|
73 |
This is a part of my menu.lst: |
74 |
================================================================ |
75 |
# Boot automatically after 30 secs. |
76 |
timeout 5 |
77 |
|
78 |
# By default, boot the first entry. |
79 |
default 0 |
80 |
|
81 |
# Fallback to the second entry. |
82 |
fallback 1 |
83 |
|
84 |
# Reboot 5 seconds after a kernel panic |
85 |
panic=5 |
86 |
|
87 |
# Nice splash image for grub :) |
88 |
splashimage=(hd0,1)/grub/splash.xpm.gz |
89 |
|
90 |
title Gentoo Linux |
91 |
root (hd0,1) |
92 |
kernel /vmlinuz root=/dev/hda6 video=vesafb-tng:1400x1050-32@60,mtrr,ywrap |
93 |
splash=silent,theme:livecd-2006.0 quiet CONSOLE=/dev/tty1 |
94 |
initrd /fbsplash-livecd-2006.0-1400x1050 |
95 |
|
96 |
title Gentoo Linux (Old) |
97 |
root (hd0,1) |
98 |
kernel /vmlinuz.old root=/dev/hda6 video=vesafb-tng:1400x1050-32@60,mtrr,ywrap |
99 |
splash=verbose,theme:livecd-2006.0 quiet CONSOLE=/dev/tty1 |
100 |
initrd /boot/fbsplash-livecd-2006.0-1024x768 |
101 |
================================================================ |
102 |
|
103 |
The indented lines are on the end of the kernel line above them. My initrd's |
104 |
are create by splashutils and have nothing to do with compiling the kernel. |
105 |
If they are removed it boots just as well just without the livecd-2006 theme. |
106 |
|
107 |
> If I can find out those two things then I should be able to test my |
108 |
> new kernel and see if it actually worked. |
109 |
> |
110 |
> On 3/28/06, Neil Bothwick <neil@××××××××××.uk> wrote: |
111 |
> > On Tue, 28 Mar 2006 11:51:11 +0200, Bo Andresen wrote: |
112 |
> > > > Sorry, what does YMMV mean? |
113 |
> > > |
114 |
> > > Those are the resources that I use for that kind of questions: |
115 |
> > > |
116 |
> > > http://en.wikipedia.org/wiki/YMMV |
117 |
> > > http://www.urbandictionary.com/define.php?term=ymmv |
118 |
> > |
119 |
> > You can also emerge wtf. |
120 |
> |
121 |
> I assume wtf will tell me what wtf stands for... is the last letter |
122 |
> representative of a forbidden word, by any chance? |
123 |
|
124 |
Of course ;) : |
125 |
|
126 |
$ wtf wtf |
127 |
WTF: {what,when,where,who,why} the fuck |
128 |
|
129 |
> > $ wtf ymmv |
130 |
> > YMMV: your mileage may vary |
131 |
> > |
132 |
|
133 |
Yeah, it's just that the wiki and sometimes the urban dictionary are often |
134 |
more detailed. :) |
135 |
|
136 |
-- |
137 |
Bo Andresen |
138 |
-- |
139 |
gentoo-user@g.o mailing list |