On the off-chance that there may still be a handful of people out there running legacy nVidia hardware that requires the 304.xxx drivers, I figured I'd post here to make it known that I've posted updates that may keep these antiquated GPUs out of the landfill for a while longer. ;-)
While these build scripts have been tailored for Slackware Linux, I figure users of other distros may find them of interest, too--particularly, the patches that bring these drivers up to date.
nVidia provided their final updates to the 304-series in 2017. I found a series of patches on github that kept nvidia-304 working up to kernel 5.6. Yet, I was still encountering build failures on Slackware -current. Next, I went about adapting some patches designed for the "newer" nvidia-340--this got me up to kernel 5.9. Finally, I developed patches to bring the 304 kernel module in line with kernels up to 5.11.
Success! As of August, I had the 304 driver and kernel module compiling and running on Slackware -current w/ kernel 5.13.x. Since then, two more patches have been added to address issues arising with kernels 5.14 and 5.16.
If anyone's interested, you can find them
here. Download links for the nVidia source code can be found in the *.info files. (Sorry about the *.txt extensions.)
Note: Due to a binary incompatibility, these drivers do not work with xorg-server 1.20.x. Thus, I've also included a build script for the 1.19.7 version of xorg-server. Security patches are included to address CVEs issued in December 2021.
Testing/feedback appreciated. Thanks in advance.