Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linux-headers-generic: Required for Nvidia GPU. #6256

Merged
merged 1 commit into from
Mar 20, 2023
Merged

Conversation

Fourdee
Copy link
Collaborator

@Fourdee Fourdee commented Mar 18, 2023

Hello :)

Headers are required for building DKMS modules.
Tested on 1660ti. Desktop fails to load without headers pre-installed during Nvidia driver install.

Not had time to test with dietpi-software install 16 (build-essential). However, both methods should end in same result?

With headers installed:

Building for 5.10.0-21-amd64
Building initial module for 5.10.0-21-amd64
Done.

nvidia-current.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.10.0-21-amd64/updates/dkms/

nvidia-current-modeset.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.10.0-21-amd64/updates/dkms/

nvidia-current-drm.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.10.0-21-amd64/updates/dkms/

nvidia-current-uvm.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.10.0-21-amd64/updates/dkms/

nvidia-current-peermem.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.10.0-21-amd64/updates/dkms/

depmod....

DKMS: install completed.
Setting up nvidia-driver (470.161.03-1) ...

@MichaIng MichaIng added this to the v8.16 milestone Mar 18, 2023
@MichaIng
Copy link
Owner

MichaIng commented Mar 18, 2023

Hi Dan, nice to see you active on GitHub 🤩. Thanks for heads up, indeed this driver tries to build a kernel module via DKMS. Since this option is only offered on x86_64 PC, I think we can pick the linux-headers-amd64 instead of the virtual generic package.

dietpi-software install 16

I removed that install option in the meantime. dietpi-software internally, build dependencies are now installed individually, e.g. g++ is not installed anymore (as part of build-essential) if only gcc is needed etc, so a little slimmed down. And users who manually compile software will know which compiler and headers they need 😉.

Ah, and build-essential did and does not include kernel headers, only C/C++ compilers, standard libraries, make and dpkg-dev.

dietpi/dietpi-config Outdated Show resolved Hide resolved
@Fourdee
Copy link
Collaborator Author

Fourdee commented Mar 19, 2023

Hi Dan, nice to see you active on GitHub 🤩. Thanks for heads up, indeed this driver tries to build a kernel module via DKMS. Since this option is only offered on x86_64 PC, I think we can pick the linux-headers-amd64 instead of the virtual generic package.

dietpi-software install 16

I removed that install option in the meantime. dietpi-software internally, build dependencies are now installed individually, e.g. g++ is not installed anymore (as part of build-essential) if only gcc is needed etc, so a little slimmed down. And users who manually compile software will know which compiler and headers they need 😉.

Ah, and build-essential did and does not include kernel headers, only C/C++ compilers, standard libraries, make and dpkg-dev.

Ah legend, sounds good. Thanks Micha :1

Yep been a while. Great to see the progress you've made on your project. Trying to remember how to send a pull request was a nightmare lol.

Might have a few more fixes at some point. Steam + vulkan-mesa required for proton. But, will get round to it when I get time and do testing + pull req.

- DietPi-Config | Resolved an issue where selecting the Nvidia driver on x86_64 systems did not actually install the needed kernel module if kernel headers were not installed before. Headers matching your kernel package are now installed automatically when selecting this option, to have the driver compiled and installed.
- DietPi-Config | Purge nvidia-driver-libs when selecting to uninstall the Nvidia GPU drivers. nvidia-driver-libs-i386 is a transitional dummy package to pull this, and only available until Buster.
- DietPi-Config | Do not install legacy Intel DDX when selecting Intel VA-API in x86_64 display options
@MichaIng
Copy link
Owner

Did some more updates for this menu. And now headers matching the installed kernel package will be installed. I'm currently experimenting with the "cloud" kernel on VMs, and others may use the real-time kernel package.

@MichaIng MichaIng merged commit bca4e95 into dev Mar 20, 2023
@MichaIng MichaIng deleted the Fourdee-patch-1 branch March 20, 2023 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants