forked from tinygrad/open-gpu-kernel-modules
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* need to replace this file as well (tinygrad#11) * 550.67 * 550.76 * 550.78 * 550.90.07 * feat: build workflow * feat: path * feat: upload * fix: -R * feat: deterministic name * feat: create release * fix: token * fix: permissions * fix: need to copy this file over as well * install.sh compiler choice * signing for secure-boot with preexisting keys * readme * minor --------- Co-authored-by: wozeparrot <wozeparrot@gmail.com> Co-authored-by: Bernhard Stoeckner <bstoeckner@nvidia.com>
- Loading branch information
1 parent
38f547f
commit 870026c
Showing
3 changed files
with
12 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
*.o.cmd | ||
*.o.d | ||
_out/ | ||
MOK.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
#!/bin/bash | ||
sudo make clean | ||
sudo rmmod nvidia_drm nvidia_modeset nvidia_uvm nvidia | ||
set -e | ||
make modules -j$(nproc) | ||
sudo make modules_install -j$(nproc) | ||
CC=gcc-12 CXX=g++ sudo make modules -j$(nproc) | ||
CC=gcc-12 CXX=g++ sudo make modules_install -j$(nproc) | ||
sudo depmod | ||
nvidia-smi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# assumes MOK.priv and MOK.der in the same folder, enrolled to secure-boot | ||
|
||
for module in /lib/modules/$(uname -r)/kernel/drivers/video/nvidia*.ko | ||
do | ||
echo "Signing ${module}..." | ||
sudo kmodsign sha512 MOK.priv MOK.der "$module" >> sign_results.out | ||
done | ||
|