Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
nvidia driver 340.102
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
drudox
l33t
l33t


Joined: 28 Jan 2016
Posts: 603

PostPosted: Wed Jun 07, 2017 11:50 pm    Post subject: nvidia driver 340.102 Reply with quote

Salve a tutti ho di recente installato gentoo su un altro pc fisso , sempre un core 2 quad. Scheda video nvidea GT210 (vecchiotta..) e ho installato il kernel 4.9.16
dopo aver compilato i driver piu` recenti portage mi avvisava che ci sarebbero potuti essere dei problemi e che la mia scheda video richiedeva i 340.102 ... (che e` confermato dal sito nvidia) ora pero` X non parte ! mi da` un errore se provo a caricare nvidia con modprobe mi da un errore che non riesco a catturare in nessun modo ! ho provato con con
Code:
command > file 2>&1
ma mi scrive solo la riga di ERROR ... :oops:

in ogni caso e` molto molto simile a quello di questo thread
Code:

[  229.406898] NVRM: failed to register procfs!
[  229.407445] NVRM: request_mem_region failed for 16M @ 0xf6000000. This can
[  229.407445] NVRM: occur when a driver such as rivatv is loaded and claims
[  229.407445] NVRM: ownership of the device's registers.
[  229.407905] general protection fault: 0000 [#2] SMP
[  229.407905] Modules linked in: nvidia(PO+) ccp
[  229.407907] CPU: 4 PID: 4474 Comm: nvidia-smi Tainted: P      D W  O    4.10.6-gentoo #11
[  229.407908] Hardware name: Micro-Star International Co., Ltd MS-7A31/X370 XPOWER GAMING TITANIUM (MS-7A31), BIOS 1.30 03/16/2017
[  229.407909] task: ffff880fd7906a00 task.stack: ffffc9000c780000
[  229.407912] RIP: 0010:queued_spin_lock_slowpath+0xe4/0x180
[  229.407913] RSP: 0018:ffffc9000c783c08 EFLAGS: 00010082
[  229.407914] RAX: 0000000000002042 RBX: 0000000000000246 RCX: 0000000000140000
[  229.407914] RDX: ff98b32300018949 RSI: 00000000810cc247 RDI: ffffc9000c613d90
[  229.407915] RBP: ffffc9000c783c08 R08: ffff88101ed18580 R09: 0000000000000000
[  229.407915] R10: ffff880fd4b83178 R11: 0000000000000000 R12: ffffc9000c783ca8
[  229.407915] R13: 00000000348b50bc R14: ffff880fd4b83200 R15: ffff880fd4b831f0
[  229.407916] FS:  00007f08556ec700(0000) GS:ffff88101ed00000(0000) knlGS:0000000000000000
[  229.407917] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  229.407917] CR2: 00007f0854d9ce90 CR3: 0000000fd2fc1000 CR4: 00000000003406e0
[  229.407917] Call Trace:
[  229.407920]  _raw_spin_lock_irqsave+0x24/0x30
[  229.407922]  add_wait_queue+0x15/0x50
[  229.407924]  d_alloc_parallel+0x373/0x4a0
[  229.407925]  ? legitimize_path.isra.38+0x29/0x60
[  229.407926]  ? wake_up_q+0x70/0x70
[  229.407927]  path_openat+0xe37/0x1460
[  229.407928]  ? destroy_inode+0x30/0x60
[  229.407929]  ? evict+0x124/0x180
[  229.407930]  do_filp_open+0x79/0xd0
[  229.407931]  ? mntput+0x1f/0x30
[  229.407932]  ? kmem_cache_alloc+0x2f/0x150
[  229.407933]  ? getname_flags+0x51/0x1f0
[  229.407934]  do_sys_open+0x111/0x1f0
[  229.407935]  ? exit_to_usermode_loop+0x6d/0x90
[  229.407936]  SyS_open+0x19/0x20
[  229.407937]  entry_SYSCALL_64_fastpath+0x13/0x94
[  229.407938] RIP: 0033:0x7f0854e199d0
[  229.407938] RSP: 002b:00007ffd7cce9048 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
[  229.407939] RAX: ffffffffffffffda RBX: 0000000000747630 RCX: 00007f0854e199d0
[  229.407939] RDX: 00000000000001b6 RSI: 0000000000000000 RDI: 00007ffd7cce9230
[  229.407940] RBP: 0000000000000000 R08: 0000000000000008 R09: 0000000000000001
[  229.407940] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
[  229.407940] R13: 0000000000000000 R14: 00007f0854d402b0 R15: 0000000000000000
[  229.407941] Code: c1 e0 10 45 31 c9 85 c0 74 46 48 89 c2 c1 e8 12 48 c1 ea 0c 83 e8 01 83 e2 30 48 98 48 81 c2 80 85 01 00 48 03 14 c5 40 c8 c8 81 <4c> 89 02 41 8b 40 08 85 c0 75 0a f3 90 41 8b 40 08 85 c0 74 f6
[  229.407953] ---[ end trace d37fc3d50d9b2541 ]---
[  229.433009] nvidia: probe of 0000:25:00.0 failed with error -1
[  229.434155] NVRM: DRM init failed



anzi e` quasi uguale ..

il thread e` questo https://forums.gentoo.org/viewtopic-t-1061708.html
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21352
Location: here

PostPosted: Thu Jun 08, 2017 5:39 am    Post subject: Reply with quote

Prova ad applicare questa patch (riferimento qui).
Se non funziona fossi in te proverei con i driver open source nouveau (guida), questo anche perche' ad ogni aggiornamento maggiore del kernel non sai se verra' creata una patch per quella versione di driver
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
drudox
l33t
l33t


Joined: 28 Jan 2016
Posts: 603

PostPosted: Fri Jun 09, 2017 10:19 am    Post subject: Reply with quote

nn esiste un modo per applicarla come mostrato in questo link ??


https://forums.gentoo.org/viewtopic-t-1062996.html?sid=e1d00019aa35cfd005c42cb312174616

insomma per farlo con emerge
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21352
Location: here

PostPosted: Fri Jun 09, 2017 11:25 am    Post subject: Reply with quote

Si, nello stesso modo ma cambiando versione alla directory nvidia-drivers
Code:
# mkdir -p /etc/portage/patches/x11-drivers/nvidia-drivers-340.102
# cd /etc/portage/patches/x11-drivers/nvidia-drivers-340.102
# wget http://pastebin.com/raw/0XE0e8Wx -O nvidia-drivers-340.102-kernel-4.9.x.patch
# emerge =x11-drivers/nvidia-drivers-340.102

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
drudox
l33t
l33t


Joined: 28 Jan 2016
Posts: 603

PostPosted: Fri Jun 09, 2017 3:07 pm    Post subject: Reply with quote

No mi da un errore ! (mentre i driver senza patch compilano bene )
Code:

* ERROR: x11-drivers/nvidia-drivers-340.102 : gentoo failed (prepare phase)
*patch -p1 failed with /etc/portage/patches/x11-drivers/nvidia-drivers-340.102/nvidia-drivers-340.102-kernel-4.9.16.patch


in effetti vedo dal link che mi hai postato che quella patch e` per i driver 340.98 ,

invece qui parlano di una patch per i driver 340.102 (o meglio per 2 patch ) https://forums.gentoo.org/viewtopic-t-1061708.html
cosa ne pensi??

come le applico 2 patch ? se possibile con il metodo citato prima ??

Grazie ancora !!
Back to top
View user's profile Send private message
drudox
l33t
l33t


Joined: 28 Jan 2016
Posts: 603

PostPosted: Sat Jun 10, 2017 8:32 am    Post subject: Reply with quote

un piccolo up !
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21352
Location: here

PostPosted: Sat Jun 10, 2017 10:11 am    Post subject: Reply with quote

Ho modificato la patch per far si che si applica con emerge e la trovi qui.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
drudox
l33t
l33t


Joined: 28 Jan 2016
Posts: 603

PostPosted: Sat Jun 10, 2017 10:27 am    Post subject: Reply with quote

Funziona anche con kernel 4.11 ?
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21352
Location: here

PostPosted: Sat Jun 10, 2017 10:42 am    Post subject: Reply with quote

drudox wrote:
Funziona anche con kernel 4.11 ?

Per il kernel 4.11 trovi qui la patch (l'ultima proposta da xaviermiller)
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
drudox
l33t
l33t


Joined: 28 Jan 2016
Posts: 603

PostPosted: Sat Jun 10, 2017 11:20 am    Post subject: Reply with quote

e come la modifico per emerge ??

grazie infinite
Back to top
View user's profile Send private message
drudox
l33t
l33t


Joined: 28 Jan 2016
Posts: 603

PostPosted: Sat Jun 10, 2017 11:28 am    Post subject: Reply with quote

anche con la patch che mi hai modificato per il kernel 4.9.16 ottengo errore in compilazione :https://paste.pound-python.org/show/vRmpsBegPQzT1Ze4a0Cj/

da cosa dipende ??
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21352
Location: here

PostPosted: Sat Jun 10, 2017 2:21 pm    Post subject: Reply with quote

drudox wrote:
anche con la patch che mi hai modificato per il kernel 4.9.16 ottengo errore in compilazione :https://paste.pound-python.org/show/vRmpsBegPQzT1Ze4a0Cj/

Non so se quella patch sia quella che risolva il tuo problema. Prova a usare quella per kernel 4.9 proposta nel post che ti ho gia' linkato di xaviermiller
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
drudox
l33t
l33t


Joined: 28 Jan 2016
Posts: 603

PostPosted: Sat Jun 10, 2017 2:32 pm    Post subject: Reply with quote

perdo molto se uso nouveau ??
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21352
Location: here

PostPosted: Sat Jun 10, 2017 3:03 pm    Post subject: Reply with quote

drudox wrote:
perdo molto se uso nouveau ??

Su grafica 3d probabilmente si, ma se non ci giochi o fai grafica 3d spinta magari non ti accorgi (comunque leggi qui).
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21352
Location: here

PostPosted: Sun Jun 11, 2017 12:26 pm    Post subject: Reply with quote

Ma funziona con la patch (non quella proposta da me)?
Secondo questo bug dovrebbe
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
drudox
l33t
l33t


Joined: 28 Jan 2016
Posts: 603

PostPosted: Tue Jun 13, 2017 4:15 pm    Post subject: Reply with quote

intendi questa ??
http://pastebin.com/raw/0XE0e8Wx

che mi hai indicato come compilare con emerge ?? se intendi quella io la ho compilata con la procedura che si usa con emerge e no nn compila !

non ho provato altre patch o altri metodi !!

tu quale intendevi ??
Back to top
View user's profile Send private message
drudox
l33t
l33t


Joined: 28 Jan 2016
Posts: 603

PostPosted: Tue Jun 13, 2017 4:32 pm    Post subject: Reply with quote

come scarico un kernel della versione precedente ?? ora ho solo il 4.11.3 ... per scaricare un kernel 4.9.* come posso fare? vorrei evitare di usare package mask per le versioni ">=..."
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21352
Location: here

PostPosted: Tue Jun 13, 2017 6:10 pm    Post subject: Reply with quote

drudox wrote:
come scarico un kernel della versione precedente ?? ora ho solo il 4.11.3 ... per scaricare un kernel 4.9.* come posso fare? vorrei evitare di usare package mask per le versioni ">=..."

Se hai il 4.11.x vuol dire che hai aggiunto l'entry nel package.accept_keywords, rimouvila se non vuoi questa versione, se invece vuoi tenere anche questa lancia:
Code:
# emerge =sys-kernel/gentoo-sources-4.9.16

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
drudox
l33t
l33t


Joined: 28 Jan 2016
Posts: 603

PostPosted: Tue Jun 13, 2017 6:44 pm    Post subject: Reply with quote

ok ! e approposito delle patch ?? quale e` la giusta ?? io ora ho il 4.9.6-r1 e il 4.11.3 ,,, volendo installare i driver nvidia sul 4.9.6-r1 quale patch devo usare ? quella che e` riportata qui (http://pastebin.com/raw/0XE0e8Wx ) ??
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21352
Location: here

PostPosted: Tue Jun 13, 2017 7:08 pm    Post subject: Reply with quote

Prova questa
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
drudox
l33t
l33t


Joined: 28 Jan 2016
Posts: 603

PostPosted: Tue Jun 13, 2017 8:33 pm    Post subject: Reply with quote

ok ora la provo !!!
sempre con emerge !
Back to top
View user's profile Send private message
drudox
l33t
l33t


Joined: 28 Jan 2016
Posts: 603

PostPosted: Tue Jun 13, 2017 9:24 pm    Post subject: Reply with quote

nulla ... ottengo questo errore :

Code:
>>> Verifying ebuild manifests
>>> Running pre-merge checks for x11-drivers/nvidia-drivers-340.102
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/4.9.6-gentoo-r1/build
 * Found sources for kernel version:
 *     4.9.6-gentoo-r1
 * Checking for suitable kernel configuration options...                                                [ ok ]

>>> Emerging (1 of 1) x11-drivers/nvidia-drivers-340.102::gentoo
 * NVIDIA-Linux-x86_64-340.102.run SHA256 SHA512 WHIRLPOOL size ;-) ...                                 [ ok ]
 * nvidia-settings-340.102.tar.bz2 SHA256 SHA512 WHIRLPOOL size ;-) ...                                 [ ok ]
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/4.9.6-gentoo-r1/build
 * Found sources for kernel version:
 *     4.9.6-gentoo-r1
 * Checking for suitable kernel configuration options...                                                [ ok ]
 * Checking for suitable kernel configuration options...                                                [ ok ]
>>> Unpacking source...
>>> Unpacking NVIDIA-Linux-x86_64-340.102.run to /var/tmp/portage/x11-drivers/nvidia-drivers-340.102/work
>>> Unpacking nvidia-settings-340.102.tar.bz2 to /var/tmp/portage/x11-drivers/nvidia-drivers-340.102/work
>>> Source unpacked in /var/tmp/portage/x11-drivers/nvidia-drivers-340.102/work
>>> Preparing source in /var/tmp/portage/x11-drivers/nvidia-drivers-340.102/work ...
 * Applying patches from /etc/portage/patches/x11-drivers/nvidia-drivers-340.102 ...
 *   nvidia-drivers-kernel-4.9.6-gentoo-r1.patch ...
The text leading up to this was:
--------------------------
|--- kernel/nv-drm.c   2016-12-15 12:41:26.000000000 +0100
|+++ kernel/nv-drm.c   2016-12-15 12:58:48.000000000 +0100
--------------------------
No file to patch.  Skipping patch.
patch unexpectedly ends in middle of line
1 out of 1 hunk ignored                                                                                 [ !! ]
 * ERROR: x11-drivers/nvidia-drivers-340.102::gentoo failed (prepare phase):
 *   patch -p1  failed with /etc/portage/patches/x11-drivers/nvidia-drivers-340.102/nvidia-drivers-kernel-4.9.6-gentoo-r1.patch
 *
 * Call stack:
 *               ebuild.sh, line  115:  Called src_prepare
 *             environment, line 4964:  Called eapply_user
 *             environment, line 1254:  Called eapply '/etc/portage/patches/x11-drivers/nvidia-drivers-340.102'
 *             environment, line 1231:  Called _eapply_patch '/etc/portage/patches/x11-drivers/nvidia-drivers-340.102/nvidia-drivers-kernel-4.9.6-gentoo-r1.patch' '  '
 *             environment, line 1173:  Called __helpers_die 'patch -p1  failed with /etc/portage/patches/x11-drivers/nvidia-drivers-340.102/nvidia-drivers-kernel-4.9.6-gentoo-r1.patch'
 *   isolated-functions.sh, line  117:  Called die
 * The specific snippet of code:
 *         die "$@"
 *
 * If you need support, post the output of `emerge --info '=x11-drivers/nvidia-drivers-340.102::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=x11-drivers/nvidia-drivers-340.102::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-340.102/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-340.102/temp/environment'.
 * Working directory: '/var/tmp/portage/x11-drivers/nvidia-drivers-340.102/work'
 * S: '/var/tmp/portage/x11-drivers/nvidia-drivers-340.102/work/'

>>> Failed to emerge x11-drivers/nvidia-drivers-340.102, Log file:

>>>  '/var/tmp/portage/x11-drivers/nvidia-drivers-340.102/temp/build.log'

 * Messages for package x11-drivers/nvidia-drivers-340.102:

 * ERROR: x11-drivers/nvidia-drivers-340.102::gentoo failed (prepare phase):
 *   patch -p1  failed with /etc/portage/patches/x11-drivers/nvidia-drivers-340.102/nvidia-drivers-kernel-4.9.6-gentoo-r1.patch
 *
 * Call stack:
 *               ebuild.sh, line  115:  Called src_prepare
 *             environment, line 4964:  Called eapply_user
 *             environment, line 1254:  Called eapply '/etc/portage/patches/x11-drivers/nvidia-drivers-340.102'
 *             environment, line 1231:  Called _eapply_patch '/etc/portage/patches/x11-drivers/nvidia-drivers-340.102/nvidia-drivers-kernel-4.9.6-gentoo-r1.patch' '  '
 *             environment, line 1173:  Called __helpers_die 'patch -p1  failed with /etc/portage/patches/x11-drivers/nvidia-drivers-340.102/nvidia-drivers-kernel-4.9.6-gentoo-r1.patch'
 *   isolated-functions.sh, line  117:  Called die
 * The specific snippet of code:
 *         die "$@"
 *
 * If you need support, post the output of `emerge --info '=x11-drivers/nvidia-drivers-340.102::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=x11-drivers/nvidia-drivers-340.102::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-340.102/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-340.102/temp/environment'.
 * Working directory: '/var/tmp/portage/x11-drivers/nvidia-drivers-340.102/work'
 * S: '/var/tmp/portage/x11-drivers/nvidia-drivers-340.102/work/'


la patch e` qui :
Code:
 /etc/portage/patches/x11-drivers/nvidia-drivers-340.102/nvidia-drivers-kernel-4.9.6-gentoo-r1.patch


ma nn va...
Back to top
View user's profile Send private message
drudox
l33t
l33t


Joined: 28 Jan 2016
Posts: 603

PostPosted: Tue Jun 13, 2017 9:51 pm    Post subject: Reply with quote

provando a seguire gli step descritti nel sito nvidia contenente la patch .. ottengo :

Code:
File to patch:
quale file devo patchare ? istintivamente mi verrebbe da mettere nvidia-installer.sh

con
Code:
patch -p1 < ....
ho risolto il patching !

Last edited by drudox on Tue Jun 13, 2017 10:27 pm; edited 1 time in total
Back to top
View user's profile Send private message
drudox
l33t
l33t


Joined: 28 Jan 2016
Posts: 603

PostPosted: Tue Jun 13, 2017 10:27 pm    Post subject: Reply with quote

no scusate con patch -p1 < .... ho risolto il patching !

ora pero` ottengo questo errore (usando l'installer dopo aver fatto mettere dalla prima esecuzione nouveau il blacklist .. etc) installer :

Code:
ERROR: Unable to load the kernel module 'nvidia.ko'.  This happens most frequently when this kernel module was built against the wrong or improperly configured kernel sources, with a version of gcc that differs from the one used to build the target kernel, or if a driver such as rivafb, nvidiafb, or nouveau is present and prevents the NVIDIA kernel module from obtaining ownership of the NVIDIA graphics device(s), or no NVIDIA GPU installed in this system is supported by this NVIDIA Linux graphics driver release.
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21352
Location: here

PostPosted: Wed Jun 14, 2017 5:44 am    Post subject: Reply with quote

Ma per applicare la patch ti bastava fare quello che ho detto in questo post (ovviamente al posto del wget metti la patch che ti serve nella directory).
Se hai messo in blacklist il driver nouveau in black list (e sei sicuro), l'altra possibile causa, come dice il messaggio, e' che hai compilato il kernel con una version di gcc e i driver nvidia con un'altra.
Posta l'output dei comandi:
Code:
$ emerge --info
$ grep nouveau /etc/modprobe.d/*
$ zgrep -i nouveau /proc/config.gz
$ uname -a

_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum