* [gentoo-user] Compiling for an unbooted kernel @ 2008-10-09 17:48 meino.cramer 2008-10-09 18:15 ` Dirk Heinrichs 2008-10-09 18:25 ` Paul Hartman 0 siblings, 2 replies; 14+ messages in thread From: meino.cramer @ 2008-10-09 17:48 UTC (permalink / raw To: Gentoo Hi, I am using a nvidia card for linux. Therefore I have to compile the nvidia driver interface for each new vanilla kernel I want to use. After compiling/installing the new kernel, the "old" kernel is still running. Is it possible -- and how -- to compile/install this interface for the new kernel while the old one is still running? Would save me one reboot... Thanks a lot for any help in advance! Keep gentooing! ;) mcc -- Please don't send me any Word- or Powerpoint-Attachments unless it's absolutely neccessary. - Send simply Text. See http://www.gnu.org/philosophy/no-word-attachments.html In a world without fences and walls nobody needs gates and windows. ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Compiling for an unbooted kernel 2008-10-09 17:48 [gentoo-user] Compiling for an unbooted kernel meino.cramer @ 2008-10-09 18:15 ` Dirk Heinrichs 2008-10-09 18:25 ` meino.cramer 2008-10-09 23:32 ` David Wei 2008-10-09 18:25 ` Paul Hartman 1 sibling, 2 replies; 14+ messages in thread From: Dirk Heinrichs @ 2008-10-09 18:15 UTC (permalink / raw To: gentoo-user Am Donnerstag, 9. Oktober 2008 19:48:37 schrieb meino.cramer@gmx.de: > Is it possible -- and how -- to compile/install this interface for > the new kernel while the old one is still running? KERNEL_DIR=/lib/modules/<kernel-version>/source emerge nvidia-driver > Would save me one reboot... Why? 1) Build new kernel 2) reboot 3) emerge nvidia-driver 4) modprobe nvidia 5) /etc/init.d/xdm start One reboot. Bye... Dirk ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Compiling for an unbooted kernel 2008-10-09 18:15 ` Dirk Heinrichs @ 2008-10-09 18:25 ` meino.cramer 2008-10-09 18:37 ` Daniel Pielmeier ` (2 more replies) 2008-10-09 23:32 ` David Wei 1 sibling, 3 replies; 14+ messages in thread From: meino.cramer @ 2008-10-09 18:25 UTC (permalink / raw To: gentoo-user Dirk Heinrichs <dirk.heinrichs@online.de> [08-10-09 20:23]: > Am Donnerstag, 9. Oktober 2008 19:48:37 schrieb meino.cramer@gmx.de: > > Is it possible -- and how -- to compile/install this interface for > > the new kernel while the old one is still running? > > KERNEL_DIR=/lib/modules/<kernel-version>/source emerge nvidia-driver > > > Would save me one reboot... > > Why? > > 1) Build new kernel > 2) reboot > 3) emerge nvidia-driver > 4) modprobe nvidia > 5) /etc/init.d/xdm start > > One reboot. > > Bye... > > Dirk > Hi Dirk, thanks for help. But let me come back to my initial question: Is it possible to compile the source of the nvidia driver interface for a currently compiled but unbooted kernel ? Kind regards, mcc -- Please don't send me any Word- or Powerpoint-Attachments unless it's absolutely neccessary. - Send simply Text. See http://www.gnu.org/philosophy/no-word-attachments.html In a world without fences and walls nobody needs gates and windows. ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Compiling for an unbooted kernel 2008-10-09 18:25 ` meino.cramer @ 2008-10-09 18:37 ` Daniel Pielmeier 2008-10-09 18:52 ` Alan McKinnon 2008-10-09 19:03 ` [gentoo-user] " 7v5w7go9ub0o 2008-10-09 20:26 ` [gentoo-user] " Dirk Heinrichs 2 siblings, 1 reply; 14+ messages in thread From: Daniel Pielmeier @ 2008-10-09 18:37 UTC (permalink / raw To: gentoo-user meino.cramer@gmx.de schrieb am 09.10.2008 20:25: > thanks for help. But let me come back to my initial question: > > Is it possible to compile the source of the nvidia driver interface > for a currently compiled but unbooted kernel ? Does the nvidia-driver really need the kernel for which it will be compiled running? I always compile the new kernel, let module-rebuild do it's job and reboot. Never had problems with this. I think it just needs the kernel sources ready for which it will be compiled. This means emerging kernel sources and have the symlink properly set. To use a new driver when there is no kernel change without a reboot you just need to stop the X-Server unload and load the nvidia driver and start the X-Server again. Regards, Daniel ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Compiling for an unbooted kernel 2008-10-09 18:37 ` Daniel Pielmeier @ 2008-10-09 18:52 ` Alan McKinnon 2008-10-09 19:15 ` Daniel Pielmeier 0 siblings, 1 reply; 14+ messages in thread From: Alan McKinnon @ 2008-10-09 18:52 UTC (permalink / raw To: gentoo-user On Thursday 09 October 2008 20:37:37 Daniel Pielmeier wrote: > meino.cramer@gmx.de schrieb am 09.10.2008 20:25: > > thanks for help. But let me come back to my initial question: > > > > Is it possible to compile the source of the nvidia driver interface > > for a currently compiled but unbooted kernel ? > > Does the nvidia-driver really need the kernel for which it will be > compiled running? No. Drivers are compiled for the current *configured* kernel. The running kernel is utterly and completely irrelevant. The compiler wants linux-headers, a configured set of kernel sources and other bits. Running kernel does not feature in this. The *configured* kernel is defined by whatever /usr/src/linux is pointing to. -- alan dot mckinnon at gmail dot com ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Compiling for an unbooted kernel 2008-10-09 18:52 ` Alan McKinnon @ 2008-10-09 19:15 ` Daniel Pielmeier 0 siblings, 0 replies; 14+ messages in thread From: Daniel Pielmeier @ 2008-10-09 19:15 UTC (permalink / raw To: gentoo-user Alan McKinnon schrieb am 09.10.2008 20:52: >> Does the nvidia-driver really need the kernel for which it will be >> compiled running? > > No. This wasn't really intended as a question. I should have made that clearer. :-) I think I have explained why it is not needed later. ^ permalink raw reply [flat|nested] 14+ messages in thread
* [gentoo-user] Re: Compiling for an unbooted kernel 2008-10-09 18:25 ` meino.cramer 2008-10-09 18:37 ` Daniel Pielmeier @ 2008-10-09 19:03 ` 7v5w7go9ub0o 2008-10-09 20:26 ` [gentoo-user] " Dirk Heinrichs 2 siblings, 0 replies; 14+ messages in thread From: 7v5w7go9ub0o @ 2008-10-09 19:03 UTC (permalink / raw To: gentoo-user meino.cramer@gmx.de wrote: > Dirk Heinrichs <dirk.heinrichs@online.de> [08-10-09 20:23]: >> Am Donnerstag, 9. Oktober 2008 19:48:37 schrieb meino.cramer@gmx.de: >>> Is it possible -- and how -- to compile/install this interface for >>> the new kernel while the old one is still running? >> KERNEL_DIR=/lib/modules/<kernel-version>/source emerge nvidia-driver >> >>> Would save me one reboot... >> Why? >> >> 1) Build new kernel >> 2) reboot >> 3) emerge nvidia-driver >> 4) modprobe nvidia >> 5) /etc/init.d/xdm start >> >> One reboot. >> >> Bye... >> >> Dirk >> > > Hi Dirk, > > thanks for help. But let me come back to my initial question: > > Is it possible to compile the source of the nvidia driver interface > for a currently compiled but unbooted kernel ? > > Kind regards, > mcc > almost certainly yes. point /usr/src/linux to the subdirectory that contains the unbooted source code. the compiler should look for the source code via /usr/src/linux. HTH ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Compiling for an unbooted kernel 2008-10-09 18:25 ` meino.cramer 2008-10-09 18:37 ` Daniel Pielmeier 2008-10-09 19:03 ` [gentoo-user] " 7v5w7go9ub0o @ 2008-10-09 20:26 ` Dirk Heinrichs 2 siblings, 0 replies; 14+ messages in thread From: Dirk Heinrichs @ 2008-10-09 20:26 UTC (permalink / raw To: gentoo-user Am Donnerstag, 9. Oktober 2008 20:25:20 schrieb meino.cramer@gmx.de: > Is it possible to compile the source of the nvidia driver interface > for a currently compiled but unbooted kernel ? Hmm, thought I gave the exact command you need. Bye... Dirk ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Compiling for an unbooted kernel 2008-10-09 18:15 ` Dirk Heinrichs 2008-10-09 18:25 ` meino.cramer @ 2008-10-09 23:32 ` David Wei 1 sibling, 0 replies; 14+ messages in thread From: David Wei @ 2008-10-09 23:32 UTC (permalink / raw To: gentoo-user Acturally,I did what Dirk said,only one reboot is needed. but take a look at this,http://code.google.com/p/atv-bootloader/wiki/Understandingkexec I think this can even save the first reboot. On Thu, 9 Oct 2008 20:15:19 +0200 Dirk Heinrichs <dirk.heinrichs@online.de> wrote: > Am Donnerstag, 9. Oktober 2008 19:48:37 schrieb meino.cramer@gmx.de: > > Is it possible -- and how -- to compile/install this interface for > > the new kernel while the old one is still running? > > KERNEL_DIR=/lib/modules/<kernel-version>/source emerge nvidia-driver > > > Would save me one reboot... > > Why? > > 1) Build new kernel > 2) reboot > 3) emerge nvidia-driver > 4) modprobe nvidia > 5) /etc/init.d/xdm start > > One reboot. > > Bye... > > Dirk > ------------------------------- 魏亮 David Wei 您可以通过下面的方式和我联系: MSN: inadavid@hotmail.com Gtalk: inadavid@gmail.com Email: davidwei@newbread.tj.cn ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Compiling for an unbooted kernel 2008-10-09 17:48 [gentoo-user] Compiling for an unbooted kernel meino.cramer 2008-10-09 18:15 ` Dirk Heinrichs @ 2008-10-09 18:25 ` Paul Hartman 2008-10-09 18:32 ` meino.cramer 1 sibling, 1 reply; 14+ messages in thread From: Paul Hartman @ 2008-10-09 18:25 UTC (permalink / raw To: gentoo-user On Thu, Oct 9, 2008 at 12:48 PM, <meino.cramer@gmx.de> wrote: > Hi, > > I am using a nvidia card for linux. Therefore I have to compile the > nvidia driver interface for each new vanilla kernel I want to > use. > After compiling/installing the new kernel, the "old" kernel is > still running. > Is it possible -- and how -- to compile/install this interface for > the new kernel while the old one is still running? > > Would save me one reboot... I always do that and never had a problem. eselect to set new kernel version, make & install the new kernel, emerge packages containing modules, reboot. Works for me. Paul ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Compiling for an unbooted kernel 2008-10-09 18:25 ` Paul Hartman @ 2008-10-09 18:32 ` meino.cramer 2008-10-09 18:38 ` Sascha Hlusiak ` (2 more replies) 0 siblings, 3 replies; 14+ messages in thread From: meino.cramer @ 2008-10-09 18:32 UTC (permalink / raw To: gentoo-user Paul Hartman <paul.hartman+gentoo@gmail.com> [08-10-09 20:31]: > On Thu, Oct 9, 2008 at 12:48 PM, <meino.cramer@gmx.de> wrote: > > Hi, > > > > I am using a nvidia card for linux. Therefore I have to compile the > > nvidia driver interface for each new vanilla kernel I want to > > use. > > After compiling/installing the new kernel, the "old" kernel is > > still running. > > Is it possible -- and how -- to compile/install this interface for > > the new kernel while the old one is still running? > > > > Would save me one reboot... > > I always do that and never had a problem. eselect to set new kernel > version, make & install the new kernel, emerge packages containing > modules, reboot. Works for me. > > Paul > Hi Paul, sorry, I missed to say, that I am using the vanilla kernel from ftp.kernel.org. I am not using the gentoo kernel sources... keep hacking! mcc -- Please don't send me any Word- or Powerpoint-Attachments unless it's absolutely neccessary. - Send simply Text. See http://www.gnu.org/philosophy/no-word-attachments.html In a world without fences and walls nobody needs gates and windows. ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Compiling for an unbooted kernel 2008-10-09 18:32 ` meino.cramer @ 2008-10-09 18:38 ` Sascha Hlusiak 2008-10-09 18:39 ` Paul Hartman 2008-10-10 6:19 ` Stroller 2 siblings, 0 replies; 14+ messages in thread From: Sascha Hlusiak @ 2008-10-09 18:38 UTC (permalink / raw To: gentoo-user; +Cc: meino.cramer [-- Attachment #1: Type: text/plain, Size: 1154 bytes --] meino.cramer@gmx.de schrieb: > Paul Hartman <paul.hartman+gentoo@gmail.com> [08-10-09 20:31]: > >> On Thu, Oct 9, 2008 at 12:48 PM, <meino.cramer@gmx.de> wrote: >> >>> Hi, >>> >>> I am using a nvidia card for linux. Therefore I have to compile the >>> nvidia driver interface for each new vanilla kernel I want to >>> use. >>> After compiling/installing the new kernel, the "old" kernel is >>> still running. >>> Is it possible -- and how -- to compile/install this interface for >>> the new kernel while the old one is still running? >>> >>> Would save me one reboot... >>> >> I always do that and never had a problem. eselect to set new kernel >> version, make & install the new kernel, emerge packages containing >> modules, reboot. Works for me. >> >> Paul >> >> > > Hi Paul, > > sorry, I missed to say, that I am using the vanilla kernel from > ftp.kernel.org. I am not using the gentoo kernel sources... > Just keep your /usr/src/linux link pointing to the kernel you want to use and then emerge nvidia-drivers. It will pick up the link and compile the module for that kernel. - Sascha [-- Attachment #2: OpenPGP digital signature --] [-- Type: application/pgp-signature, Size: 260 bytes --] ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Compiling for an unbooted kernel 2008-10-09 18:32 ` meino.cramer 2008-10-09 18:38 ` Sascha Hlusiak @ 2008-10-09 18:39 ` Paul Hartman 2008-10-10 6:19 ` Stroller 2 siblings, 0 replies; 14+ messages in thread From: Paul Hartman @ 2008-10-09 18:39 UTC (permalink / raw To: gentoo-user On Thu, Oct 9, 2008 at 1:32 PM, <meino.cramer@gmx.de> wrote: > sorry, I missed to say, that I am using the vanilla kernel from > ftp.kernel.org. I am not using the gentoo kernel sources... Hi Meino, I think it should be the same. I don't use genkernel or anything, but I do use gentoo-sources. I manually make menuconfig, make install, make modules_install. I believe that as long as /usr/src/linux symlinnk is pointing at your new kernel, emerging modules should use that one. Like I showed in my example, I do everything before reboot, and when I reboot it all works with the new kernel, including nvidia-drivers. Thanks, Paul ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-user] Compiling for an unbooted kernel 2008-10-09 18:32 ` meino.cramer 2008-10-09 18:38 ` Sascha Hlusiak 2008-10-09 18:39 ` Paul Hartman @ 2008-10-10 6:19 ` Stroller 2 siblings, 0 replies; 14+ messages in thread From: Stroller @ 2008-10-10 6:19 UTC (permalink / raw To: gentoo-user On 9 Oct 2008, at 19:32, meino.cramer@gmx.de wrote: > Paul Hartman <paul.hartman+gentoo@gmail.com> [08-10-09 20:31]: >> On Thu, Oct 9, 2008 at 12:48 PM, <meino.cramer@gmx.de> wrote: >>> Hi, >>> >>> I am using a nvidia card for linux. Therefore I have to compile the >>> nvidia driver interface for each new vanilla kernel I want to >>> use. >>> After compiling/installing the new kernel, the "old" kernel is >>> still running. >>> Is it possible -- and how -- to compile/install this interface for >>> the new kernel while the old one is still running? >>> >>> Would save me one reboot... >> >> I always do that and never had a problem. eselect to set new kernel >> version, make & install the new kernel, emerge packages containing >> modules, reboot. Works for me. > > sorry, I missed to say, that I am using the vanilla kernel from > ftp.kernel.org. I am not using the gentoo kernel sources... The only difference I can see that this makes is that the `eselect` might not work if you've installed the sources manually. I doubt it, but to be on the safe side use the vanilla kernel from ftp.kernel.org by using the `emerge sys-kernel/vanilla-sources` command. Stroller. ^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2008-10-10 6:19 UTC | newest] Thread overview: 14+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2008-10-09 17:48 [gentoo-user] Compiling for an unbooted kernel meino.cramer 2008-10-09 18:15 ` Dirk Heinrichs 2008-10-09 18:25 ` meino.cramer 2008-10-09 18:37 ` Daniel Pielmeier 2008-10-09 18:52 ` Alan McKinnon 2008-10-09 19:15 ` Daniel Pielmeier 2008-10-09 19:03 ` [gentoo-user] " 7v5w7go9ub0o 2008-10-09 20:26 ` [gentoo-user] " Dirk Heinrichs 2008-10-09 23:32 ` David Wei 2008-10-09 18:25 ` Paul Hartman 2008-10-09 18:32 ` meino.cramer 2008-10-09 18:38 ` Sascha Hlusiak 2008-10-09 18:39 ` Paul Hartman 2008-10-10 6:19 ` Stroller
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox