Gentoo Archives: gentoo-user

From: Holly Bostick <motub@××××××.nl>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] New To Gentoo and Emerge, No ACPI in Kernel
Date: Wed, 29 Mar 2006 21:20:38
Message-Id: 442AF84A.1020603@planet.nl
In Reply to: Re: [gentoo-user] New To Gentoo and Emerge, No ACPI in Kernel by Lord Sauron
1 Lord Sauron schreef:
2 > Okay, here's where I've isolated the problem to.
3 <snip>
4 .>
5 > I know that it correctly compiles the kernel. I put a new name for
6 > the new kernel (test1) to try and ID it
7 <snip>
8 > # make install
9 >
10 > Sticks it into /boot. /boot now reads
11 >
12 > System.map config.old
13 > System.map-2.6.15-gentoo-r1 grub
14 > System.map-2.6.15-gentoo-r1.old initramfs-genkernel-x86-2.6.15-gentoo-r5
15 > System.map-2.6.15-gentoo-r1test1 kernel-genkernel-x86-2.6.15-gentoo-r5
16 > System.map-2.6.15-gentoo-r1test1.old lost+found
17 > System.map.old vmlinuz
18 > boot vmlinuz-2.6.15-gentoo-r1
19 > config vmlinuz-2.6.15-gentoo-r1.old
20 > config-2.6.15-gentoo-r1 v mlinuz-2.6.15-gentoo-r1test1
21 > config-2.6.15-gentoo-r1.old vmlinuz-2.6.15-gentoo-r1test1.old
22 > config-2.6.15-gentoo-r1test1 vmlinuz.old
23 > config-2.6.15-gentoo-r1test1.old
24 >
25 > Not terribly exciting. However, I went to /boot/grub/menu.lst and it
26 > reads as such:
27 >
28 > localhost boot # cat ./grub/menu.lst
29 > default 0
30 > timeout 7
31 > splashimage=(hd0,0)/grub/splash.xpm.gz
32 > title=Gentoo Linux
33 > root (hd0,0)
34 > kernel /kernel-genkernel-x86-2.6.15-gentoo-r5 root=/dev/ram0
35 > init=/linuxrc ramdisk=8192 real_root=/dev/hda3
36 > initrd /initramfs-genkernel-x86-2.6.15-gentoo-r5
37 >
38 > The most concerning part is the last three lines. For any kernel, it
39 > appears to demand the kernel itself. If you'll refer back to # ls
40 > /boot then you'll notice that kernel-2.6.15-gentoo-r1test1 isn't
41 > there.
42
43
44 ???? Yes it is:
45
46 vmlinuz-2.6.15-gentoo-r1test1
47
48 >Nor is the initrd. I don't know where they might be, or if
49 > they're not there then how to generate them.
50
51 No, the initrd isn't there; you apparently made your previous kernel
52 with genkernel, which creates an initrd, and you further do not have
53 splashutils installed (which would/can also make an initrd to contain
54 the bootsplash images).
55
56 Manual kernel installation using 'make install' copies the bzImage (the
57 kernel itself) to /boot/, and names it
58 vmlinuz-kernel.version-extra_version_if_used.
59
60 Make install also copies the "helpful but not strictly necessary"
61 .config and system.map files to /boot/ adding the version to the end to
62 distinguish it from other supplemental files for other kernels, and
63 creates two symlinks to the current and newly-installed kernel:
64
65 vmlinuz -- links to the newly installed kernel
66
67 vmlinuz.old -- links to the current kernel that the newly-installed
68 kernel is replacing.
69
70 Similar symlinks are also created for the .config and system.map files
71 for the respective kernels.
72
73 What this means is that you can just tell grub that the first item on
74 the list should load 'vmlinuz' (which is going to be a link to the most
75 recently installed kernel), and the second entry should load vmlinuz.old
76 (which is a link to the previous kernel to the most newly installed, in
77 case of problems). If you have even more old kernels, they can always be
78 listed by the full kernel version.
79
80 In any case, it seems to me that you basically need to create a new
81 entry for the test kernel; just copy the current entry, paste it above
82 the other one, then delete the following relevant portions:
83
84 1. Change 'kernel /kernel-genkernel-x86-2.6.15-gentoo-r5 root=/dev/ram0'
85
86 to read kernel /vmlinuz root=/dev/ram0 (not sure about the 'root= part;
87 /dev/ram0 seems a bit weird to me but perhaps this is in some way
88 functional for your particular setup. I have no experience with
89 genkernel, which this setting looks like to me, but maybe somebody can
90 confirm that. If it is from genkernel, root= should be the partition of
91 the root filesystem, on my system, this setting is root=/dev/hda5)
92
93 2. delete.... everything else, apparently. I can see that most of the
94 entry is generated by/related to genkernel.
95
96 Here, for reference is my grub entry for my manually compiled kernels
97 (never used genkernel, as I said):
98
99 # grub.conf generated by anaconda
100 #
101 # Note that you do not have to rerun grub after making changes to this file
102 # NOTICE: You have a /boot partition. This means that
103 # all kernel and initrd paths are relative to /boot/, eg.
104 # root (hd0,1)
105 # kernel /vmlinuz-version ro root=/dev/hda5
106 # initrd /initrd-version.img
107 #boot=/dev/hda
108 default=0
109 timeout=10
110 splashimage=(hd0,1)/grub/grub-livecd2.xpm.gz
111
112 title Gentoo_current (2.6.15-gentoo-r7mga)
113 root (hd0,1)
114 kernel /vmlinuz ro quiet root=/dev/hda5
115 video=matroxfb:vesa:0x11B,depth:32 splash=silent,theme:livecd-2005.1
116 CONSOLE=/dev/tty1
117
118 title Gentoo_prev (2.6.15-gentoo-r7)
119 root (hd0,1)
120 kernel /vmlinuz.old ro root=/dev/hda5
121 video=matroxfb:vesa:0x11B:ywrap,pmipal,mtrr:3,1280x1024-32@60
122 splash=verbose,theme:emergence quiet CONSOLE=/dev/tty1
123
124 title Failsafe_current
125 root (hd0,1)
126 kernel /vmlinuz ro root=/dev/hda5
127 video=vesafb:ywrap,pmipal,mtrr:3,1280x1024-32@60 emergency
128
129 If you ignore all the video= settings, as you should, since they are to
130 provide the bootsplash, which is irrelevant here, the relevant entry
131 that allows me to boot is only
132
133
134 title Gentoo_current (2.6.15-gentoo-r7mga)
135 root (hd0,1)
136 kernel /vmlinuz ro quiet root=/dev/hda5
137
138 title Gentoo_prev (2.6.15-gentoo-r7)
139 root (hd0,1)
140 kernel /vmlinuz.old ro root=/dev/hda5
141
142 >>
143 >>>> Sorry, what does YMMV mean?
144 >>> Those are the resources that I use for that kind of questions:
145 >>>
146 >>> http://en.wikipedia.org/wiki/YMMV
147 >>> http://www.urbandictionary.com/define.php?term=ymmv
148 >> You can also emerge wtf.
149 >
150 > I assume wtf will tell me what wtf stands for... is the last letter
151 > representative of a forbidden word, by any chance?
152
153 Yes, it will, and yes it is.
154
155 On the web, you can also try acronymfinder.com, which has most everything.
156
157 HTH (look it up; wtf hth :-) )
158
159 Holly
160 --
161 gentoo-user@g.o mailing list