Skip to content

Commit

Permalink
install tweaks, signing
Browse files Browse the repository at this point in the history
  • Loading branch information
nightflight-dk committed Jul 18, 2024
1 parent cc5890d commit cba8257
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
*.o.cmd
*.o.d
_out/
MOK.*
5 changes: 3 additions & 2 deletions install.sh
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
8 changes: 8 additions & 0 deletions sign_modules.sh
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

0 comments on commit cba8257

Please sign in to comment.