Driver Nvidia non funzionano dopo cambio scheda video

Tutto ciò che è pertinente a Sabayon Linux, indipendentemente dall'architettura e dall'ambiente grafico

Moderator: Moderators

Re: Driver Nvidia non funzionano dopo cambio scheda video

Postby sabayonino » Fri Feb 21, 2014 22:09

dovresti compilare prima il kernel (i sabayon-sources)

con genkernel , chiamare il kernel con un nome diverso per evitare che un aggiornamento ti sovrascriva quello compialto da te e passare alcuni parametri a genkernel

se non fai uso di elementi "marziani£ tipo partizioni criptate lvm , raid etc (ma puoi anche includerli come di default)

Code: Select all
# equo i genkernel

Code: Select all
# mkdir -p /etc/kernels

Salva la configurazione del kernel in memoria
Code: Select all
# zcat /proc/config.gz > /etc/kernels/config


Code: Select all
# equo i sabayon-sources

Code: Select all
# eselect kernel list

Code: Select all
# eselect kernel set <quello di sabayon>


Code: Select all
# genkernel --install --dmraid --disklabel --lvm --luks --mountboot --splash=sabayon --kernname=test --kernel-config=/etc/kernels/config  --save-config all

(attendi che la compilazione vada a buon fine)
(un kernel linux-sabayon-bla-bla-test verrà salvato in /boot)

Applica la/le patch suggerite nel forum gentoo

Code: Select all
# emerge =nvidia-drivers-331.18


Aggiorna grub
Code: Select all
# grub2-mkconfig -o /boot/grub/grub.cfg


al reboot seleziona il kernel con sufisso "test" in quelli elencati)

se non occorre passare altri parametri....

PS : spero di non aver dimenticato qualche pezzo :mrgreen:
PPS : https://wiki.gentoo.org/wiki/Genkernel (se ti serve qualche delucidazione su genkernel)
User avatar
sabayonino
Sagely Hen
 
Posts: 2537
Joined: Sun Sep 21, 2008 1:12
Location: Italy

Re: Driver Nvidia non funzionano dopo cambio scheda video

Postby anonimo » Sat Feb 22, 2014 19:35

Ti ringrazio per la guida, ieri ho provato a fare da solo, ma ho fatto un casino, oggi per sicurezza ho riformattato... :bom:
Comunque nei comandi ho problemi al momento della compilazione con genkernel, mi restituisce errore (e non riconosce --disklabel):
Code: Select all
localhostess anonimo # genkernel --install --dmraid --lvm --luks --mountboot --splash=sabayon --kernname=test --kernel-config=/etc/kernels/config  --save-config all
* Gentoo Linux Genkernel; Version 52
* Running with options: --install --dmraid --lvm --luks --mountboot --splash=sabayon --kernname=test --kernel-config=/etc/kernels/config --save-config all

* Using genkernel.conf from /etc/genkernel.conf
* Sourcing arch-specific config.sh from /usr/share/genkernel/arch/x86_64/config.sh ..
* Sourcing arch-specific modules_load from /usr/share/genkernel/arch/x86_64/modules_load ..

* Linux Kernel 3.13.0-sabayon for x86_64...
* .. with config file /etc/kernels/config
* kernel: Using config from /etc/kernels/config
*         Previous config backed up to .config--2014-02-22--20-17-55.bak
* kernel: >> Running mrproper...
*         >> Running oldconfig...
* ERROR: Failed to compile the "oldconfig" target...
*
* -- Grepping log... --
*
* Running with options: --install --dmraid --lvm --luks --mountboot --splash=sabayon --kernname=test --kernel-config=/etc/kernels/config --save-config all
* Using genkernel.conf from /etc/genkernel.conf
* Sourcing arch-specific config.sh from /usr/share/genkernel/arch/x86_64/config.sh ..
* Sourcing arch-specific modules_load from /usr/share/genkernel/arch/x86_64/modules_load ..
*
* ERROR: Failed to compile the "oldconfig" target...
*
* -- End log... --
*
* Please consult /var/log/genkernel.log for more information and any
* errors that were reported above.
*
* Report any genkernel bugs to bugs.gentoo.org and
* assign your bug to [email protected] Please include
* as much information as you can in your bug report; attaching
* /var/log/genkernel.log so that your issue can be dealt with effectively.
*
* Please do *not* report compilation failures as genkernel bugs!
*
* kernel: >> Cleaning...
* ERROR: Failed to compile the "prepare" target...
*
* -- Grepping log... --
*
* Running with options: --install --dmraid --lvm --luks --mountboot --splash=sabayon --kernname=test --kernel-config=/etc/kernels/config --save-config all
* Using genkernel.conf from /etc/genkernel.conf
* Sourcing arch-specific config.sh from /usr/share/genkernel/arch/x86_64/config.sh ..
* Sourcing arch-specific modules_load from /usr/share/genkernel/arch/x86_64/modules_load ..
*
* ERROR: Failed to compile the "oldconfig" target...
*--
* Report any genkernel bugs to bugs.gentoo.org and
* assign your bug to [email protected] Please include
* as much information as you can in your bug report; attaching
* /var/log/genkernel.log so that your issue can be dealt with effectively.
*
* Please do *not* report compilation failures as genkernel bugs!
*--
* Running with options: --install --dmraid --lvm --luks --mountboot --splash=sabayon --kernname=test --kernel-config=/etc/kernels/config --save-config all
* Using genkernel.conf from /etc/genkernel.conf
* Sourcing arch-specific config.sh from /usr/share/genkernel/arch/x86_64/config.sh ..
* Sourcing arch-specific modules_load from /usr/share/genkernel/arch/x86_64/modules_load ..
*
* ERROR: Failed to compile the "prepare" target...
*
* -- End log... --
*
* Please consult /var/log/genkernel.log for more information and any
* errors that were reported above.
*
* Report any genkernel bugs to bugs.gentoo.org and
* assign your bug to [email protected] Please include
* as much information as you can in your bug report; attaching
* /var/log/genkernel.log so that your issue can be dealt with effectively.
*
* Please do *not* report compilation failures as genkernel bugs!
*


Ti allego il mio /var/log/gerkernel.log come indicato
Code: Select all
* Gentoo Linux Genkernel; Version 52
* Running with options: --install --dmraid --lvm --luks --mountboot --splash=sabayon --kernname=test --kernel-config=/etc/kernels/config --save-config all
* Using genkernel.conf from /etc/genkernel.conf
* Sourcing arch-specific config.sh from /usr/share/genkernel/arch/x86_64/config.sh ..
* Sourcing arch-specific modules_load from /usr/share/genkernel/arch/x86_64/modules_load ..

* Linux Kernel 3.13.0-sabayon for x86_64...
* .. with config file /etc/kernels/config
* kernel: Using config from /etc/kernels/config
*         Previous config backed up to .config--2014-02-22--20-17-55.bak
* kernel: >> Running mrproper...
COMMAND: make -j2 CC="gcc" LD="ld" AS="as" ARCH="x86" 
make: gcc: comando non trovato
  CLEAN   .
  CLEAN   arch/x86/tools
  CLEAN   scripts/basic
  CLEAN   scripts/genksyms
  CLEAN   scripts/kconfig
  CLEAN   scripts/mod
  CLEAN   scripts
  CLEAN   .tmp_versions
  CLEAN   include/config include/generated arch/x86/include/generated
  CLEAN   .config include/generated/uapi/linux/version.h Module.symvers
*         >> Running oldconfig...
COMMAND: make -j2 CC="gcc" LD="ld" AS="as" ARCH="x86" 
  HOSTCC  scripts/basic/fixdep
/bin/sh: gcc: command not found
make[1]: *** [scripts/basic/fixdep] Errore 127
make: *** [scripts_basic] Errore 2
* Gentoo Linux Genkernel; Version 52
* Running with options: --install --dmraid --lvm --luks --mountboot --splash=sabayon --kernname=test --kernel-config=/etc/kernels/config --save-config all
* Using genkernel.conf from /etc/genkernel.conf
* Sourcing arch-specific config.sh from /usr/share/genkernel/arch/x86_64/config.sh ..
* Sourcing arch-specific modules_load from /usr/share/genkernel/arch/x86_64/modules_load ..

* ERROR: Failed to compile the "oldconfig" target...
*
* -- Grepping log... --
*
*
* -- End log... --
*
* Please consult /var/log/genkernel.log for more information and any
* errors that were reported above.
*
* Report any genkernel bugs to bugs.gentoo.org and
* assign your bug to [email protected] Please include
* as much information as you can in your bug report; attaching
* /var/log/genkernel.log so that your issue can be dealt with effectively.
*
* Please do *not* report compilation failures as genkernel bugs!
*
* kernel: >> Cleaning...
COMMAND: make -j2 CC="gcc" LD="ld" AS="as" ARCH="x86" 
make: gcc: comando non trovato
COMMAND: make -j2 CC="gcc" LD="ld" AS="as" ARCH="x86" 
make: gcc: comando non trovato
  HOSTCC  scripts/basic/fixdep
/bin/sh: gcc: command not found
make[2]: *** [scripts/basic/fixdep] Errore 127
make[1]: *** [scripts_basic] Errore 2
make: *** Nessuna regola per generare l'obiettivo «include/config/auto.conf», necessario per «include/config/kernel.release».  Stop.
make: *** Attesa dei processi non terminati....
  HOSTCC  scripts/basic/fixdep
/bin/sh: gcc: command not found
make[1]: *** [scripts/basic/fixdep] Errore 127
make: *** [scripts_basic] Errore 2
  SYSHDR  arch/x86/syscalls/../include/generated/uapi/asm/unistd_32.h
  SYSHDR  arch/x86/syscalls/../include/generated/uapi/asm/unistd_64.h
  SYSHDR  arch/x86/syscalls/../include/generated/uapi/asm/unistd_x32.h
  SYSTBL  arch/x86/syscalls/../include/generated/asm/syscalls_32.h
* Gentoo Linux Genkernel; Version 52
* Running with options: --install --dmraid --lvm --luks --mountboot --splash=sabayon --kernname=test --kernel-config=/etc/kernels/config --save-config all
* Using genkernel.conf from /etc/genkernel.conf
* Sourcing arch-specific config.sh from /usr/share/genkernel/arch/x86_64/config.sh ..
* Sourcing arch-specific modules_load from /usr/share/genkernel/arch/x86_64/modules_load ..

* ERROR: Failed to compile the "prepare" target...
*
* -- Grepping log... --
*
*
* -- End log... --
*
* Please consult /var/log/genkernel.log for more information and any
* errors that were reported above.
*
* Report any genkernel bugs to bugs.gentoo.org and
* assign your bug to [email protected] Please include
* as much information as you can in your bug report; attaching
* /var/log/genkernel.log so that your issue can be dealt with effectively.
*
* Please do *not* report compilation failures as genkernel bugs!
*

ciao
User avatar
anonimo
Growing Hen
 
Posts: 108
Joined: Tue Feb 01, 2011 14:00

Previous

Return to Sabayon Linux Discussioni Generali

Who is online

Users browsing this forum: No registered users and 1 guest