You are not logged in.

#1 2024-05-09 06:56:21

Daedalus24
Member
From: Bucharest, Romania
Registered: 2015-03-27
Posts: 45
Website

[SOLVED] NVIDIA Quadro K600 card not working after last kernel upgrade

Hi,

Yesterday evening I have upgraded the kernel on my Asus M7600Q laptop to 6.8.9-arch1-2 and there were no problems.  This morning, after upgrading to the 6.8.9.arch1-2 kernel on my business desktop, the graphic card refuses to work.

lspci -k | grep -A 2 -E "(VGA|3D)"

Returns

05:00.0 VGA compatible controller: NVIDIA Corporation GK107GL [Quadro K600] (rev a1)
	Subsystem: Hewlett-Packard Company Device 094b
	Kernel modules: nouveau

I must specify that I have removed kms from the HOOKS in mkinitcpio.conf.

paru -Q linux-headers 

Returns

linux-headers 6.8.9.arch1-2
paru -Qkk linux-zen linux-headers

Returns

linux-zen: 7244 total files, 0 altered files
linux-headers: 19936 total files, 0 altered files
paru -Qo /usr/lib/modules/*

Returns

/usr/lib/modules/6.8.9-arch1-2/ is owned by linux-headers 6.8.9.arch1-2
/usr/lib/modules/6.8.9-zen1-2-zen/ is owned by linux-zen 6.8.9.zen1-2
/usr/lib/modules/6.8.9-zen1-2-zen/ is owned by linux-zen-headers 6.8.9.zen1-2

I reinstalled all nvidia-470xx packages, and the error message when reinstalling the nvidia-470xx-dkms is

(2/2) Remove upgraded DKMS modules
==> dkms remove nvidia/470.239.06
:: Processing package changes...
(1/1) reinstalling nvidia-470xx-dkms               [######################] 100%
:: Running post-transaction hooks...
(1/3) Arming ConditionNeedsUpdate...
(2/3) Install DKMS modules
==> dkms install --no-depmod nvidia/470.239.06 -k 6.8.9-zen1-2-zen
Error! Bad return status for module build on kernel: 6.8.9-zen1-2-zen (x86_64)
Consult /var/lib/dkms/nvidia/470.239.06/build/make.log for more information.
==> WARNING: `dkms install --no-depmod nvidia/470.239.06 -k 6.8.9-zen1-2-zen' exited 10
==> ERROR: Missing 6.8.9-arch1-2 kernel modules tree for module nvidia/470.239.06.
(3/3) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux-zen.preset: 'default'
==> Using default configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-linux-zen -g /boot/initramfs-linux-zen.img
==> Starting build: '6.8.9-zen1-2-zen'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [microcode]
  -> Running build hook: [modconf]
  -> Running build hook: [keyboard]
==> WARNING: Possibly missing firmware for module: 'xhci_pci'
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [block]
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: '/boot/initramfs-linux-zen.img'
  -> Early uncompressed CPIO image generation successful
==> Initcpio image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux-zen.preset: 'fallback'
==> Using default configuration file: '/etc/mkinitcpio.conf'
  -> -k /boot/vmlinuz-linux-zen -g /boot/initramfs-linux-zen-fallback.img -S autodetect
==> Starting build: '6.8.9-zen1-2-zen'
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [microcode]
  -> Running build hook: [modconf]
  -> Running build hook: [keyboard]
==> WARNING: Possibly missing firmware for module: 'xhci_pci'
  -> Running build hook: [keymap]
  -> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: 'aic94xx'
==> WARNING: Possibly missing firmware for module: 'bfa'
==> WARNING: Possibly missing firmware for module: 'qed'
==> WARNING: Possibly missing firmware for module: 'qla1280'
==> WARNING: Possibly missing firmware for module: 'qla2xxx'
==> WARNING: Possibly missing firmware for module: 'wd719x'
  -> Running build hook: [filesystems]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: '/boot/initramfs-linux-zen-fallback.img'
  -> Early uncompressed CPIO image generation successful
==> Initcpio image generation successful

Thank you!

Last edited by Daedalus24 (2024-05-13 08:26:51)

Offline

#2 2024-05-09 07:45:20

seth
Member
Registered: 2012-09-03
Posts: 52,282

Re: [SOLVED] NVIDIA Quadro K600 card not working after last kernel upgrade

Offline

#3 2024-05-09 10:12:17

Daedalus24
Member
From: Bucharest, Romania
Registered: 2015-03-27
Posts: 45
Website

Re: [SOLVED] NVIDIA Quadro K600 card not working after last kernel upgrade

Thank you very much @seth, I find the conftest.sh file in 3 directories, as follows:

/usr/src/nvidia-470.239.06
/var/lib/dkms/nvidia-470.239.06
/home/bogdan/.cache/paru/clone/nvidia-470xx-utils/src/NVIDIA-Linux-x86_64-470.239.06/kernel

I created a conftest.patch file

diff --git a/kernel/conftest.sh b/kernel/conftest.sh
index 093704c..a9db899 100755
--- a/kernel/conftest.sh
+++ b/kernel/conftest.sh
@@ -153,7 +153,8 @@ test_headers() {
 build_cflags() {
     BASE_CFLAGS="-O2 -D__KERNEL__ \
 -DKBUILD_BASENAME=\"#conftest$$\" -DKBUILD_MODNAME=\"#conftest$$\" \
--nostdinc -isystem $ISYSTEM"
+-nostdinc -isystem $ISYSTEM \
+-Wno-implicit-function-declaration -Wno-strict-prototypes -Wno-incompatible-pointer-types"
 
     if [ "$OUTPUT" != "$SOURCES" ]; then
         OUTPUT_CFLAGS="-I$OUTPUT/include2 -I$OUTPUT/include"

I know my question is stupid, but after I have changed into the directory /home/bogdan/.cache/paru/clone/nvidia-470xx-utils/src/NVIDIA-Linux-x86_64-470.239.06/kernel and launched the command

git apply conftest.patch -- directory=/home/bogdan/.cache/paru/clone/nvidia-470xx-utils/src/NVIDIA-Linux-x86_64-470.239.06/kernel

and I get the error

error: corrupt patch at line 14

It is clear that I am doing it wrong, and I confess  having no previous experience with patching a file.

Thank you once more for your time, kindness and understanding smile

Last edited by Daedalus24 (2024-05-10 05:30:32)

Offline

#4 2024-05-09 12:40:34

seth
Member
Registered: 2012-09-03
Posts: 52,282

Re: [SOLVED] NVIDIA Quadro K600 card not working after last kernel upgrade

/home/bogdan/.cache/paru/clone/nvidia-470xxx-utils/src/NVIDIA-Linux-x86_64-470.239.06/kernel/conftest.patch

diff --git a/kernel/conftest.sh b/kernel/conftest.sh
index 093704c..a9db899 100755
--- a/kernel/conftest.sh
+++ b/kernel/conftest.sh
@@ -153,7 +153,8 @@ test_headers() {
 build_cflags() {
     BASE_CFLAGS="-O2 -D__KERNEL__ \
 -DKBUILD_BASENAME=\"#conftest$$\" -DKBUILD_MODNAME=\"#conftest$$\" \
--nostdinc -isystem $ISYSTEM"
+-nostdinc -isystem $ISYSTEM \
+-Wno-implicit-function-declaration -Wno-strict-prototypes -Wno-incompatible-pointer-types"
 
     if [ "$OUTPUT" != "$SOURCES" ]; then
         OUTPUT_CFLAGS="-I$OUTPUT/include2 -I$OUTPUT/include"
cd /home/bogdan/.cache/paru/clone/nvidia-470xxx-utils/src/NVIDIA-Linux-x86_64-470.239.06/kernel
patch < conftest.patch

Edit: alternatively you can just change that line in teh file manually.


git manages the AUR package, not the sources downloaded by the PKGBUILD
Make sure to rebuild w/ "makepkg -e" to not wipe the patched file w/ a re-download.

Last edited by seth (2024-05-09 12:41:04)

Offline

#5 2024-05-10 07:49:00

Daedalus24
Member
From: Bucharest, Romania
Registered: 2015-03-27
Posts: 45
Website

Re: [SOLVED] NVIDIA Quadro K600 card not working after last kernel upgrade

Hi @seth,

It seems I've caught my ears smile roll trying to rebuild the nvidia-470xx-utils (nvidia-470xx-dkms) package from my paru build directory, so I went "by the book" as follows.

From my local builds directory :

$git clone https://aur.archlinux.org/nvidia-470xx-utils.git
$cd nvidia-470xx-utils

I went to the corresponding AUR Web page (nvidia-470xx-utils)
https://aur.archlinux.org/packages/nvidia-470xx-utils

then downloaded the correct PKGBUILD file with patch
https://0x0.st/X8pn.tar.gz/nvidia-470xx … ero.tar.gz

I copied the two files, namely MAKEPKG and conftest-TechXero.patch to the /builds/nvidia-470xx-utils directory, ran

$makepkg -si

and X Window is back on my desktop! big_smile

Which were the steps to use in order to rebuild the package from my paru build directory ?

I am grateful for your help and time smile cool. Thank you wink. Have a nice WE!

Last edited by Daedalus24 (2024-05-10 08:03:40)

Offline

#6 2024-05-10 13:59:00

seth
Member
Registered: 2012-09-03
Posts: 52,282

Re: [SOLVED] NVIDIA Quadro K600 card not working after last kernel upgrade

Which were the steps to use in order to rebuild the package from my paru build directory ?

Patch/edit kernel/conftest.sh in place and run "makepakg -ise" (-e to avoid re-downloading and thus undoing the local patch)

Both approaches are obviously ok and using a patch in the PKGBUILD is actually morecorrect™ but the other approach would have spared you the re-download.

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

#7 2024-05-12 00:26:14

firekage
Member
From: Eastern Europe, Poland
Registered: 2013-06-30
Posts: 623

Re: [SOLVED] NVIDIA Quadro K600 card not working after last kernel upgrade

I have the same error. I've been trying for past 2 days with nouveau/nvidia and sound drivers and it looks that somebody other has the same issue with the newest kernel.

Dedalus, i'm not the programmer, so could you explain a little more what you did and how in order to have 470xx driver working?

You posted this link:
https://aur.archlinux.org/packages/nvidia-470xx-utils

but i don't see where the path that you posted, whare this was taken from because it is only the link:
https://0x0.st/X8pn.tar.gz/nvidia-470xx … ero.tar.gz

is located in the previous one from aur. Also, this one:

I copied the two files, namely MAKEPKG and conftest-TechXero.patch to the /builds/nvidia-470xx-utils 

i don't have this path. Did you do something more?

File

 copied the two files, namely MAKEPKG 

is taken from where?



I'd really would like to learn how to patch the kernel, but without some help, i cant do it. I'm reading the mentioned chapters and this link:
https://wiki.archlinux.org/title/Patchi … ng_patches

and this is something that i completely dont understand sad



Edit: i was able to make an instalation and it works but i still havent learned anything out of it.

I've just downloaded nvidia-470xx-utils from aur repos. I unpacked it. I had in this location also the file with PKGBUILD and patch from the "zipped-patch". And makepkg -sif worked, also, this solves my problem with sound over HDMI when used nouveau where it does not work according to tech spec. Stil would like to learn more.

Last edited by firekage (2024-05-12 01:10:57)

Offline

#8 2024-05-13 06:18:31

Daedalus24
Member
From: Bucharest, Romania
Registered: 2015-03-27
Posts: 45
Website

Re: [SOLVED] NVIDIA Quadro K600 card not working after last kernel upgrade

Hi @firekage,

It is more simple than you think. I assume you have a build directory under your home directory tree, which is used to build your packages.  In this case you want to build the package nvidia-470xx-utils from AUR. Within your home directory you perform

cd build
git clone https://aur.archlinux.org/nvidia-470xx-utils.git
cd nvidia-470xx-utils

Once you have reached this step just copy the two files, namely MAKEPKG and conftest-TechXero.patch, to the /home/username/builds/nvidia-470xx-utils directory.

Now, you can perform the final step of compiling your package

makepkg -si

I hope everything is clear now and you have understood the steps to perform, as well as the intrinsic logic.

Last edited by Daedalus24 (2024-05-13 08:23:57)

Offline

#9 2024-05-13 06:27:08

Daedalus24
Member
From: Bucharest, Romania
Registered: 2015-03-27
Posts: 45
Website

Re: [SOLVED] NVIDIA Quadro K600 card not working after last kernel upgrade

Hi @firekage,

After having a look on the nvidia-470xx-utils page at https://aur.archlinux.org/packages/nvidia-470xx-utils, I see the package has been flagged as out of date since 12.05.2024. What is more, @benjarobin has enhanced the second patch and is pointing out how to build the package correctly

git clone https://aur.archlinux.org/nvidia-470xx-utils.git
cd nvidia-470xx-utils
curl https://0x0.st/XKB6.patch -o 0001-Fix-GCC-14-build.patch
patch -p1 -i 0001-Fix-GCC-14-build.patch
makepkg

It works flawlessly.

Cheers! roll smile

Last edited by Daedalus24 (2024-05-13 06:33:44)

Offline

#10 Yesterday 00:29:48

firekage
Member
From: Eastern Europe, Poland
Registered: 2013-06-30
Posts: 623

Re: [SOLVED] NVIDIA Quadro K600 card not working after last kernel upgrade

Thank you very much for the second answer. I was able to do it earlier, but i thought that it is some "wrong way" here because as said earlier

 i've just downloaded nvidia-470xx-utils from aur repos. I unpacked it. I had in this location also the file with PKGBUILD and patch from the "zipped-patch". And makepkg -sif worked, also, this solves my problem with sound over HDMI when used nouveau where it does not work according to tech spec. Stil would like to learn more.

but the second answer is something nice one, worth remembering.

Offline

Board footer

Powered by FluxBB