LINUX.ORG.RU

патч для нвидиевских дров 6111 под 2.6.11.


0

0

Сосбно видел такие патчи только под 6629 и выше, но на версиях выше 6629 включительно у меня глюки, описывать не буду, не в этом вопрос, но на 6111 у мя всё нормально, но они не собираются на 2.6.11.

In file included from include/linux/list.h:7,
from include/linux/wait.h:23,
from include/asm/semaphore.h:41,
from include/linux/sched.h:19,
from include/linux/module.h:10,
from /var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/u sr/src/nv/nv-linux.h:52,
from /var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/u sr/src/nv/os-agp.c:24:
include/linux/prefetch.h: In function `prefetch_range':
include/linux/prefetch.h:62: warning: pointer of type `void *' used in arithmetic
In file included from include/linux/dmapool.h:14,
from include/linux/pci.h:863,
from /var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/u sr/src/nv/nv-linux.h:75,
from /var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/u sr/src/nv/os-agp.c:24:
include/asm/io.h: In function `check_signature':
include/asm/io.h:242: warning: wrong type argument to increment
/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/u sr/src/nv/os-agp.c: At top level:
/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/u sr/src/nv/os-agp.c:48: error: parse error before '*' token
/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/u sr/src/nv/os-agp.c:48: warning: type defaults to `int' in declaration of `drm_agp_p'
/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/u sr/src/nv/os-agp.c:48: warning: data definition has no type or storage class
/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/u sr/src/nv/os-agp.c: In function `KernInitAGP':
/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/u sr/src/nv/os-agp.c:76: warning: assignment discards qualifiers from pointer target type
/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/u sr/src/nv/os-agp.c:85: error: request for member `acquire' in something not a structure or union
/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/u sr/src/nv/os-agp.c:88: warning: `inter_module_put' is deprecated (declared at include/linux/module.h:578)
/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/u sr/src/nv/os-agp.c:113: error: request for member `copy_info' in something not a structure or union
/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/u sr/src/nv/os-agp.c:173: error: request for member `enable' in something not a structure or union
/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/u sr/src/nv/os-agp.c:185: error: request for member `release' in something not a structure or union
/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/u sr/src/nv/os-agp.c:186: warning: `inter_module_put' is deprecated (declared at include/linux/module.h:578)
/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/u sr/src/nv/os-agp.c: In function `KernTeardownAGP':
/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/u sr/src/nv/os-agp.c:216: error: request for member `release' in something not a structure or union
/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/u sr/src/nv/os-agp.c:218: warning: `inter_module_put' is deprecated (declared at include/linux/module.h:578)
/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/u sr/src/nv/os-agp.c: In function `KernAllocAGPPages':
/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/u sr/src/nv/os-agp.c:265: error: request for member `allocate_memory' in something not a structure or union
/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/u sr/src/nv/os-agp.c:273: error: request for member `bind_memory' in something not a structure or union
/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/u sr/src/nv/os-agp.c:290: error: request for member `unbind_memory' in something not a structure or union
/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/u sr/src/nv/os-agp.c:305: error: request for member `free_memory' in something not a structure or union
/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/u sr/src/nv/os-agp.c: In function `KernMapAGPPages':
/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/u sr/src/nv/os-agp.c:345: error: request for member `unbind_memory' in something not a structure or union
/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/u sr/src/nv/os-agp.c: In function `KernFreeAGPPages':
/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/u sr/src/nv/os-agp.c:444: error: request for member `unbind_memory' in something not a structure or union
/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/u sr/src/nv/os-agp.c:445: error: request for member `free_memory' in something not a structure or union
make[4]: *** [/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-6111-pkg1/ usr/src/nv/os-agp.o] Error 1
make[3]: *** [_module_/var/tmp/portage/nvidia-kernel-1.0.6111-r3/work/NVIDIA-Linux-x86-1.0-61 11-pkg1/usr/src/nv] Error 2
make[2]: *** [modules] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [module] Error 2


Вот и вопрос, есть ли патчи, что бы можно было собрать эту версию дров.

Заранее спасибо!!!

★★★★★

Нашёл какой то патч тут http://www.nvnews.net/vbulletin/showthread.php?t=46639

Но они не накладываются

===============================================

PATCH COMMAND: patch -p4 -g0 < /usr/portage/media-video/nvidia-kernel/files/1.0.6111/nvidia_display_driver-1.0- 6111.diff

===============================================
patching file nv.c
Hunk #1 succeeded at 1845 (offset 13 lines).
Hunk #2 succeeded at 3342 (offset 13 lines).
Hunk #3 succeeded at 3401 (offset 13 lines).
Hunk #4 FAILED at 3715.
1 out of 4 hunks FAILED -- saving rejects to file nv.c.rej
patching file nv-linux.h
Hunk #2 FAILED at 563.
1 out of 2 hunks FAILED -- saving rejects to file nv-linux.h.rej
patching file os-agp.c

Юзается джента.

cyclon ★★★★★
() автор топика
Ответ на: комментарий от anonymous

Уже разобрался, вернее знаю что мешает патчиться, а именно два джентушных патча, закоментил их в ебилде и стало хорошо.

Вот как это ща выглядит

einfo "Applying 2.6 kernel patches"
# Fix up the removal of PM_SAVE_STATE in kernels > 2.6.8
# epatch ${FILESDIR}/${PV}/power-suspend-2.6.9-changes.patch
# Update pci stuff to work with irqroutes being changed in kernels
epatch ${FILESDIR}/${PV}/nv_enable_pci.patch
# Fix VMALLOC_RESERVE issues with the new 2.6.9 release candidates
epatch ${FILESDIR}/${PV}/vmalloc-reserve.patch
# Port pci_find_class() -> pci_get_class() for >= 2.6.9-rc2
epatch ${FILESDIR}/${PV}/nv-pci_find_class.patch
# Fix remap_page_range() -> remap_pfn_range() for >= 2.6.9-rc2
# epatch ${FILESDIR}/${PV}/nv-remap-range.patch
# Fix the /usr/src/linux/include/asm not existing on koutput issue #58294
epatch ${FILESDIR}/${PV}/conftest_koutput_includes.patch

epatch ${FILESDIR}/${PV}/nvidia_display_driver-1.0-6111.diff

cyclon ★★★★★
() автор топика
Ответ на: комментарий от gizmo

Да, ставятся без проблем, но работают с проблемами, а именно иксы время от времени нахрен вешаются. По ssh с другой машины нормально цеплялся, все вроде работает, а вот локально все - кирдык.

fb
()
Ответ на: комментарий от gizmo

> Проще-скачай самые свежие дрова! Без проблем становятся-проверял!

Может у кого то и работает без проблемм но у меня нет, невозможно перейти в консоль из Х-ов _ДАЖЕ_ когда fb отключён ваабще, при включённом телеке. При это _НА_ТОМ_ЖЕ_ xorg.conf'иге и на 6111 всё замечаетльно работает.

cyclon ★★★★★
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.