Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 94957 - nvidia guide needs info about rebuilding after every kernel rebuild
Summary: nvidia guide needs info about rebuilding after every kernel rebuild
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: nVIDIA Trouble Shooting Guide (show other bugs)
Hardware: All Other
: High normal (vote)
Assignee: Xavier Neys (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-03 14:44 UTC by Daniel Drake (RETIRED)
Modified: 2005-06-04 09:57 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for nvidia-guide.xml (nvidia-guide.diff,1.96 KB, patch)
2005-06-03 16:55 UTC, Curtis Napier (RETIRED)
Details | Diff
nvidia guide patch (nvidia.patch,6.78 KB, patch)
2005-06-04 06:20 UTC, Daniel Drake (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Drake (RETIRED) gentoo-dev 2005-06-03 14:44:35 UTC
The nvidia guide does not mention that specifically the nvidia-kernel package needs rebuilding after every kernel change.

http://forums.gentoo.org/viewtopic-t-344261.html

I think I figured out the problem. When I re-emerged nvidia I just ran:
# emerge nvidia-glx
which didn't re-emerge nvidia-kernel because it was seen as already installed. Explicitely emerging it as you suggested created my module and now it's working great. I'd like to suggest some mention of this in the nvidia HOWTO.

Thanks for all the help.
Comment 1 Curtis Napier (RETIRED) gentoo-dev 2005-06-03 16:55:28 UTC
Created attachment 60545 [details, diff]
Patch for nvidia-guide.xml

Attached is a diff for nvidia-guide.xml. Besides the warning that was reported
in this bug I also added paragraphs and codenotes explaining the need for the
/usr/src/linux symlink and how to create it if necessary.
Comment 2 Daniel Drake (RETIRED) gentoo-dev 2005-06-03 17:18:30 UTC
Looks good, thanks for doing this. A few comments:

1.

+<p>
+If you are using gentoo-sources-2.6.11-r6 then your symlink should look like 
+this:
+</p>
+
+<pre caption="/usr/src/linux symlink">
+lrwxrwxrwx   1 root root   22 Apr 23 18:33 linux -> linux-2.6.11-gentoo-r6
+drwxr-xr-x  19 root root 4096 Mar 16 22:00 linux-2.6.11-gentoo-r6
+</pre>

You haven't just shown the symlink, you've shown other stuff too. So it would
make more sense to refer to it as the output of ls -l /usr/src

2. Use "ln -snf" so that an older link will get overwritten if it already exists

3. To make it clearer to the user, I think you should explain the difference and
relationship between nvidia-kernel and nvidia-glx. Then it will make more sense
to them why the -kernel part needs to be rebuilt, and they won't be generally
confused :)

4.

+Each time you change kernel versions you will have to re-emerge nvidia-driver. 
+nvidia-glx is unaffected by a kernel change.

How about rewording it as "Every time you compile a new kernel, you will need to
re-emerge nvidia-kernel". It would also be a good point to link to the kernel
upgrade guide, which also has a few notes on this topic.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2005-06-04 03:06:49 UTC
(In reply to comment #2)
> Looks good, thanks for doing this. A few comments:

> 2. Use "ln -snf" so that an older link will get overwritten if it already exists

We have symlink use flag for this, so emerging new kernel version can do the job
automatically for you. Would be also worth mentioning in section 4 of kernel
upgrade guide. ;-)
Comment 4 Xavier Neys (RETIRED) gentoo-dev 2005-06-04 04:03:40 UTC
Edited and committed.
symlink USE flag added to kernel-upgrade.xml

Thanks a lot.
Comment 5 Shyam Mani (RETIRED) gentoo-dev 2005-06-04 05:19:51 UTC
Minor error :

<comment>(Check that linux point to the right directory)</comment>

Should be "points to the right directory"
Comment 6 Daniel Drake (RETIRED) gentoo-dev 2005-06-04 06:20:43 UTC
Created attachment 60580 [details, diff]
nvidia guide patch

Add an introduction and an advanced configuration section, plus a few content
tweaks.
Comment 7 Daniel Drake (RETIRED) gentoo-dev 2005-06-04 06:20:58 UTC
reopening
Comment 8 Xavier Neys (RETIRED) gentoo-dev 2005-06-04 09:57:47 UTC
Bumped version and applied as-is. Thanks a lot.