Gentoo Archives: gentoo-user

From: Holly Bostick <motub@××××××.nl>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Problem with Xsetup
Date: Wed, 28 Sep 2005 13:03:51
Message-Id: 433A9200.4020400@planet.nl
In Reply to: [gentoo-user] Problem with Xsetup by Rajat Gujral
1 Rajat Gujral schreef:
2 > Sorry forgot to attach the log :((
3 >
4 >
5 > Hi holly, uwe Thanx for ur replies ... I was actually trying to
6 > install my sound driver when emerge automatically downloaded the
7 > newer version of kernel i.e 2.6.12-r10 telling me it has a better
8 > support for sound cards.. After the newer version was downloaded in
9 > /usr/src/ , i did "make menuconfig" to configure the kernel and save
10 > the .config file. Then "make && make modules_install" to compile the
11 > kernel. After that i compiled the kernel and copied it to the /boot
12 > directory. But forgot to update the grub.conf file ... When rebooted
13 > the system i tried to start the X server but it always shows the same
14 > message till now..I thought there maybe some problem with the newer
15 > version. Then i realize i havent updated the grub.conf file and this
16 > was my older version being loaded so* *i make the link "linux" point
17 > towards older version. When i do a uname -a it shows me the older
18 > version i.e 2.6.12-r6 of the kernel .
19
20 OK, this is where I'm a little confused. Would you, first of all, do an
21
22 emerge -pv gentoo-sources
23
24 This will not do anything (since you're using the --pretend switch);
25 what I want to know is whether the 'symlink' USE flag is active (+, red)
26 or inactive (-, blue), which will be revealed by the --verbose switch.
27
28 If it was active, then when you emerged the upgraded kernel, the
29 /usr/src/linux link was automatically adjusted to point to the -r10
30 kernel just installed, but if the USE flag is inactive, the link
31 remained pointing to the -r6 kernel previously existing (I assume; if
32 the USE flag was never active, and you never manually redirected the
33 links, then /usr/src/linux could still be pointing to the first kernel
34 you installed, for all I know).
35
36 However, the target for the /usr/src/linux symlink is not likely
37 relevant for this issue.
38
39 More of relevance is the directory listing of /boot.
40
41 So could you, second of all
42
43 1) mount /boot (if not mounted, and did you remember to mount /boot
44 before installing the new kernel?)
45
46 2) post the output of
47
48 la /boot (or ls -la /boot if you don't have the 'la' alias, but afaik,
49 it's a default alias for ls -la).
50
51 Oh, wait.... you install your kernels manually, and don't use 'make
52 install', right? Well, let's look at the output anyway, just to know
53 what exactly is going on.
54
55 Anyway, what you need to do in order to get grub to recognize your new
56 kernel is not to change the 'linux' link in /usr/src, but to change or
57 add an entry in grub.conf to point to the new kernel.
58
59 For instance, here's my grub.conf:
60 default=0
61 timeout=10
62 splashimage=(hd0,1)/grub/grub-livecd2.xpm.gz
63
64 title Gentoo_current (2.6.12-gentoo-r10)
65 root (hd0,1)
66 kernel /vmlinuz ro quiet root=/dev/hda5
67 video=vesafb:ywrap,mtrr,1280x1024-32@60
68 splash=silent,fadein,theme:livecd-2005.1 CONSOLE=/dev/tty1
69
70 title Gentoo_prev (2.6.12-gentoo-r9)
71 root (hd0,1)
72 kernel /vmlinuz.old ro root=/dev/hda5
73 video=vesafb:ywrap,pmipal,mtrr,1280x1024-32@60
74 splash=verbose,theme:emergence quiet CONSOLE=/dev/tty1
75
76 title Failsafe_current
77 root (hd0,1)
78 kernel /vmlinuz ro root=/dev/hda5
79 video=vesafb:ywrap,pmipal,mtrr,1280x1024-32@60 emergency
80
81 title SUSE LINUX 9.3
82 root (hd0,1)
83 kernel /vmlinuz-2.6.11.4-20a-default real_root=/dev/hda6
84 vga=0x317 selinux=0 splash=silent resume=/dev/hda6 showopts
85 initrd /initrd-2.6.11.4-20a-default
86
87 But I use 'make install' to install my kernels, so 'vmlinuz' and
88 'vmlinuz.old' are symlinks to my current and previous kernels, as you
89 can see from the directory listing:
90
91 # la /boot
92
93 drwxr-xr-x 5 root root 2048 sep 28 14:11 .
94 drwxr-xr-x 23 root root 672 sep 14 14:06 ..
95 -rw-r--r-- 1 root root 512 apr 27 14:23 backup_mbr
96 lrwxrwxrwx 1 root root 1 apr 27 18:52 boot -> .
97 lrwxrwxrwx 1 root root 24 sep 15 23:35 config ->
98 config-2.6.12-gentoo-r10
99 -rw-r--r-- 1 root root 60418 mrt 24 2005 config-2.6.11.4-20a-default
100 -rw-r--r-- 1 root root 31914 sep 15 23:35 config-2.6.12-gentoo-r10
101 -rw-r--r-- 1 root root 32555 jul 24 02:08 config-2.6.12-gentoo-r6
102 -rw-r--r-- 1 root root 32009 aug 28 19:18 config-2.6.12-gentoo-r9
103 lrwxrwxrwx 1 root root 23 sep 28 14:10 config.old ->
104 config-2.6.12-gentoo-r9
105 drwxr-xr-x 2 root root 1024 aug 23 19:57 grub
106 lrwxrwxrwx 1 root root 27 apr 27 14:23 initrd ->
107 initrd-2.6.11.4-20a-default
108 -rw-r--r-- 1 root root 1365529 apr 27 14:23 initrd-2.6.11.4-20a-default
109 -rw-r--r-- 1 root root 0 apr 29 00:47 .keep
110 drwx------ 2 root root 12288 apr 27 14:13 lost+found
111 -rw-r--r-- 1 root root 138240 apr 27 14:23 message
112 -rw-r--r-- 1 root root 121 mrt 24 2005
113 README.vmlinux-2.6.11.4-20a-default.gz
114 -rw-r--r-- 1 root root 68372 mrt 24 2005
115 symvers-2.6.11.4-20a-i386-default.gz
116 lrwxrwxrwx 1 root root 28 sep 15 23:35 System.map ->
117 System.map-2.6.12-gentoo-r10
118 -rw-r--r-- 1 root root 708925 mrt 24 2005
119 System.map-2.6.11.4-20a-default
120 -rw-r--r-- 1 root root 924836 sep 15 23:35 System.map-2.6.12-gentoo-r10
121 -rw-r--r-- 1 root root 1023832 jul 24 02:08 System.map-2.6.12-gentoo-r6
122 -rw-r--r-- 1 root root 972725 aug 28 19:18 System.map-2.6.12-gentoo-r9
123 lrwxrwxrwx 1 root root 27 sep 28 14:10 System.map.old ->
124 System.map-2.6.12-gentoo-r9
125 drwx------ 2 root root 1024 apr 29 15:52 .Trash-root
126 lrwxrwxrwx 1 root root 25 sep 15 23:35 vmlinuz ->
127 vmlinuz-2.6.12-gentoo-r10
128 -rw-r--r-- 1 root root 1424645 mrt 24 2005 vmlinuz-2.6.11.4-20a-default
129 -rw-r--r-- 1 root root 3458761 sep 15 23:35 vmlinuz-2.6.12-gentoo-r10
130 -rw-r--r-- 1 root root 2122433 jul 24 02:08 vmlinuz-2.6.12-gentoo-r6
131 -rw-r--r-- 1 root root 3540799 aug 28 19:18 vmlinuz-2.6.12-gentoo-r9
132 lrwxrwxrwx 1 root root 24 sep 28 14:11 vmlinuz.old ->
133 vmlinuz-2.6.12-gentoo-r9
134
135 Since you manually copied your kernels, I can't hazard a guess as to
136 what your setup may look like, or what you may need to add to grub.conf
137 to get the new kernel recognized.
138
139 > Before that my Xserver was working fine. Does updating to new kernel
140 > effect the configuration file of Xserver.
141
142 Not really. The configuration remains the same, but since the video
143 driver is a kernel module, in your case the i810 driver
144
145 > (II) I810: Driver for Intel Integrated Graphics Chipsets: i810,
146 > i810-dc100, i810e, i815, i830M, 845G, 852GM/855GM, 865G, 915G (II)
147 > Primary Device is: PCI 00:01:0
148
149 compiling a new kernel affects the foundation of the X server, rather
150 than its configuration.
151
152 But since you aren't using external kernel modules, as I am, it's hard
153 to say what your problem might be, unless you somehow confused the
154 system as to which kernel is supposed to be running in some way.
155
156
157 > Symbol __glXgetActiveScreen from module
158 > /usr/lib/modules/extensions/libdri.a is unresolved!
159
160 doesn't really make any sense... unless the X server is trying to run
161 the *new* module, against the old kernel. And one of the KDE annoyances
162 I've found is that it seems to go all wonky and won't start if it has
163 ever been started with 3D acceleration, and that functionality breaks
164 (which yours is, given that the error is in glXwhatever). One of the
165 things that gets on my nerves about KDE, but that's another story.
166
167 The whole thing makes me wonder just which kernel you compiled and
168 installed.
169
170 Anyway, let's get your new kernel straightened out and see if the
171 problem solves itself.
172
173 First of all, you want the /usr/src/linux link to point to -r10. That
174 way anything that needs to be compiled against the kernel will follow
175 that link and compile against the new kernel rather than the old.
176
177 It's up to you, of course, but if it was me, after adjusting the link, I
178 would check the configuration of and then recompile the new kernel. But
179 I like to be sure I know what I've done if I had confused myself this
180 way (and I have done). If you're familiar with kernel compilation--
181 which you seem to be, since you don't use genkernel-- copying the
182 .config from the old kernel and running 'make menuconfig' is not much of
183 a problem; heck, even running through a full 'make menuconfig' isn't a
184 big deal if you know the settings that your system needs to run
185 smoothly. Don't forget to install things in the same manner as the old
186 kernel, where applicable; if you previously installed the i810 module as
187 a loadable module, then do so again, if static then keep it static,
188 unless you want to be also mucking about with /etc/modules.autoload.d,
189 (which is easy enough, but let's try to keep the variables to a minimum
190 here :) ).
191
192 I would then install the kernel with 'make install' rather than manually
193 (don't forget to mount /boot first, like I do half the time), since
194 manual kernel installation just gives you more places to make mistakes,
195 imo, since you have to make up a name for the new kernel to avoid
196 overwriting the old bzImage with the new one, and I can't be bothered to
197 keep track of that for more than two iterations. 'make install' conforms
198 everything so that I don't have to keep track of it, which is fine by me.
199
200 Fix your grub.conf so that the entry to boot the new kernel goes to
201 vmlinuz (if you used make install, or the name of your new kernel if you
202 for some reason didn't), and the entry to boot the older kernel goes to
203 vmlinuz.old (if you used make install, etc.,etc.)
204
205 Save, unmount /boot, and see what happens when you try to boot the new
206 kernel. Before starting X, confirm that the new kernel is running (uname
207 -a again), and then see if KDE will start.
208
209 If it doesn't, check if it's failing with the same error or a different
210 one, and in any case, post it here so we can see what's what.
211
212 Hope this helps,
213 Holly
214 --
215 gentoo-user@g.o mailing list