problema ao atualizar para o kernel 3.7.6 de 3.7.5

2

O kernel 3.7.6 é compatível com o driver nvidia 313.18. Eu tentei instalá-lo através do guia de upubuntu, mas eu estava recebendo um erro. Eu tentei usar sua correção, mas disse que os diretórios não foram encontrados. Alguma sugestão

Isso é o que eu recebo

Unpacking replacement linux-headers-3.7.6-030706-generic ...
Preparing to replace linux-headers-3.7.6-030706 3.7.6-030706.201302040006 (using linux-headers-3.7.6-030706_3.7.6-030706.201302040006_all.deb) ...
Unpacking replacement linux-headers-3.7.6-030706 ...
Selecting previously unselected package linux-image-3.7.6-030706-generic.
Unpacking linux-image-3.7.6-030706-generic (from linux-image-3.7.6-030706-generic_3.7.6-030706.201302040006_amd64.deb) ...
Done.
Selecting previously unselected package linux-image-extra-3.7.6-030706-generic.
Unpacking linux-image-extra-3.7.6-030706-generic (from linux-image-extra-3.7.6-030706-generic_3.7.6-030706.201302040006_amd64.deb) ...
Setting up linux-headers-3.7.6-030706 (3.7.6-030706.201302040006) ...
Setting up linux-image-3.7.6-030706-generic (3.7.6-030706.201302040006) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 3.7.6-030706-generic /boot/vmlinuz-3.7.6-030706-generic
ERROR (dkms apport): kernel package linux-headers-3.7.6-030706-generic is not supported
Error! Bad return status for module build on kernel: 3.7.6-030706-generic (x86_64)
Consult /var/lib/dkms/nvidia-313/313.18/build/make.log for more information.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.7.6-030706-generic /boot/vmlinuz-3.7.6-030706-generic
update-initramfs: Generating /boot/initrd.img-3.7.6-030706-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.7.6-030706-generic /boot/vmlinuz-3.7.6-030706-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.7.6-030706-generic /boot/vmlinuz-3.7.6-030706-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.7.6-030706-generic /boot/vmlinuz-3.7.6-030706-generic
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.7.6-030706-generic
Found initrd image: /boot/initrd.img-3.7.6-030706-generic
Found linux image: /boot/vmlinuz-3.7.5-030705-generic
Found initrd image: /boot/initrd.img-3.7.5-030705-generic
Found linux image: /boot/vmlinuz-3.7.4-030704-generic
Found initrd image: /boot/initrd.img-3.7.4-030704-generic
Found linux image: /boot/vmlinuz-3.7.3-030703-generic
Found initrd image: /boot/initrd.img-3.7.3-030703-generic
Found linux image: /boot/vmlinuz-3.7.2-030702-generic
Found initrd image: /boot/initrd.img-3.7.2-030702-generic
Found linux image: /boot/vmlinuz-3.7.1-030701-generic
Found initrd image: /boot/initrd.img-3.7.1-030701-generic
Found linux image: /boot/vmlinuz-3.7.0-030700-generic
Found initrd image: /boot/initrd.img-3.7.0-030700-generic
Found linux image: /boot/vmlinuz-3.7.0-7-generic
Found initrd image: /boot/initrd.img-3.7.0-7-generic
Found linux image: /boot/vmlinuz-3.7.0-4-generic
Found initrd image: /boot/initrd.img-3.7.0-4-generic
Found linux image: /boot/vmlinuz-3.6.10-030610-generic
Found initrd image: /boot/initrd.img-3.6.10-030610-generic
Found linux image: /boot/vmlinuz-3.6.9-030609-generic
Found initrd image: /boot/initrd.img-3.6.9-030609-generic
Found linux image: /boot/vmlinuz-3.5.0-19-generic
Found initrd image: /boot/initrd.img-3.5.0-19-generic
Found linux image: /boot/vmlinuz-3.5.0-17-generic
Found initrd image: /boot/initrd.img-3.5.0-17-generic
Found memtest86+ image: /boot/memtest86+.bin
done
Setting up linux-image-extra-3.7.6-030706-generic (3.7.6-030706.201302040006) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 3.7.6-030706-generic /boot/vmlinuz-3.7.6-030706-generic
ERROR (dkms apport): kernel package linux-headers-3.7.6-030706-generic is not supported
Error! Bad return status for module build on kernel: 3.7.6-030706-generic (x86_64)
Consult /var/lib/dkms/nvidia-313/313.18/build/make.log for more information.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.7.6-030706-generic /boot/vmlinuz-3.7.6-030706-generic
update-initramfs: Generating /boot/initrd.img-3.7.6-030706-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.7.6-030706-generic /boot/vmlinuz-3.7.6-030706-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.7.6-030706-generic /boot/vmlinuz-3.7.6-030706-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.7.6-030706-generic /boot/vmlinuz-3.7.6-030706-generic
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.7.6-030706-generic
Found initrd image: /boot/initrd.img-3.7.6-030706-generic
Found linux image: /boot/vmlinuz-3.7.5-030705-generic
Found initrd image: /boot/initrd.img-3.7.5-030705-generic
Found linux image: /boot/vmlinuz-3.7.4-030704-generic
Found initrd image: /boot/initrd.img-3.7.4-030704-generic
Found linux image: /boot/vmlinuz-3.7.3-030703-generic
Found initrd image: /boot/initrd.img-3.7.3-030703-generic
Found linux image: /boot/vmlinuz-3.7.2-030702-generic
Found initrd image: /boot/initrd.img-3.7.2-030702-generic
Found linux image: /boot/vmlinuz-3.7.1-030701-generic
Found initrd image: /boot/initrd.img-3.7.1-030701-generic
Found linux image: /boot/vmlinuz-3.7.0-030700-generic
Found initrd image: /boot/initrd.img-3.7.0-030700-generic
Found linux image: /boot/vmlinuz-3.7.0-7-generic
Found initrd image: /boot/initrd.img-3.7.0-7-generic
Found linux image: /boot/vmlinuz-3.7.0-4-generic
Found initrd image: /boot/initrd.img-3.7.0-4-generic
Found linux image: /boot/vmlinuz-3.6.10-030610-generic
Found initrd image: /boot/initrd.img-3.6.10-030610-generic
Found linux image: /boot/vmlinuz-3.6.9-030609-generic
Found initrd image: /boot/initrd.img-3.6.9-030609-generic
Found linux image: /boot/vmlinuz-3.5.0-19-generic
Found initrd image: /boot/initrd.img-3.5.0-19-generic
Found linux image: /boot/vmlinuz-3.5.0-17-generic
Found initrd image: /boot/initrd.img-3.5.0-17-generic
Found memtest86+ image: /boot/memtest86+.bin
done
Setting up linux-headers-3.7.6-030706-generic (3.7.6-030706.201302040006) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 3.7.6-030706-generic /boot/vmlinuz-3.7.6-030706-generic
ERROR (dkms apport): kernel package linux-headers-3.7.6-030706-generic is not supported
Error! Bad return status for module build on kernel: 3.7.6-030706-generic (x86_64)
Consult /var/lib/dkms/nvidia-313/313.18/build/make.log for more information.
    
por user98713 04.02.2013 / 22:50

2 respostas

1

Obrigado cogitoergosum, que funcionou bem!

A edição de conftest.sh in ( /usr/src/nvidia-current-310.19 ) levou-me a instalar o kernel com a nvidia 310.19.

Comentei as linhas 1703, 1704 e 1706, com a seguinte aparência:

PATCHLEVEL=$(grep "^PATCHLEVEL =" $MAKEFILE | cut -d " " -f 3)
            SUBLEVEL=$(grep "^SUBLEVEL =" $MAKEFILE | cut -d " " -f 3)
            # if [ -n "$PATCHLEVEL" -a $PATCHLEVEL -ge 6 \
            #         -a -n "$SUBLEVEL" -a $SUBLEVEL -le 5 ]; then
                SELECTED_MAKEFILE=Makefile.kbuild
                RET=0
            # fi
        fi

Em seguida, reinstalei o driver nvidia ( sudo apt-get install --reinstall nvidia-current ) e certifiquei-me de salvar o arquivo conftest.sh depois que ele foi concluído " Unpacking replacement nvidia-current ... ".

E voila, a construção do módulo do kernel foi concluída!

    
por irvine 06.02.2013 / 13:06
0

Sugerir a verificação de conftest.sh no diretório / usr / src / nvidia-'version '. Há um pequeno problema que determina a versão do kernel quando PATCHLEVEL é 6 ou superior (3.7.6 neste caso). Comente (#) se e fi linhas e deixe as linhas SELECTED_MAKEFILE e RET sozinhas. Reinstale os cabeçalhos do kernel e os debs da imagem, e o nvidia.ko deve construir corretamente.

Atualização: Se você também estiver executando um problema de compatibilidade entre o kernel 3.7. * e o virtualbox, a solução é 1) atualizar o VirtualBox para 4.2.6 -ou- 2) patch memobj-r0drv-linux.c para substituir a macro VM_RESERVED com (VM_DONTEXPAND | VM_DONTDUMP). Boa sorte.

    
por cogitoergosum 06.02.2013 / 00:15