Kernel 6.7.7 + Pilotes Nvidia fonctionnel

This commit is contained in:
Olivier 2024-03-02 15:45:39 +01:00
parent 9ae1445690
commit a13b68f641
2 changed files with 35 additions and 20 deletions

View File

@ -44,8 +44,7 @@ sudo bash kernel.sh 6.x 6.6.10
- Modularisation des options par variable de conditionnement - Modularisation des options par variable de conditionnement
- Ajout du 'Fast Kernel Headers' (désactivé pour le moment) - Ajout du 'Fast Kernel Headers' (désactivé pour le moment)
- Ajustements des options (tests en cours) - Ajustment des options permettant l'instalaltion de pilote Nvidia
- Objectif: permettre l'installation de pilote Nvidia
### 2024-02-23 ### 2024-02-23

View File

@ -6,7 +6,8 @@ ENABLE=1 # enable some options
MITIGATIONS=0 # enable/disable all mitigations MITIGATIONS=0 # enable/disable all mitigations
UARCH=1 # apply more uarch patch UARCH=1 # apply more uarch patch
FKH=0 # apply fast kernel headers patch FKH=0 # apply fast kernel headers patch
TESTING=1 # add testing options TESTING=0 # add testing options
UNCOMPRESS=1 # perform uncompress if already exist
CLEANUP=1 # perform folder cleanup CLEANUP=1 # perform folder cleanup
CLANG=0 # use Clang compiler (if not, use GCC) CLANG=0 # use Clang compiler (if not, use GCC)
ARCH="x86-64-v4" # target architecture (uarch patch) ARCH="x86-64-v4" # target architecture (uarch patch)
@ -46,6 +47,11 @@ CONFIGMOD=0 # enable all mod config
# In case of usage of uninstall.sh, you must reinstall 'linux-libc-dev' with the version of used kernel # In case of usage of uninstall.sh, you must reinstall 'linux-libc-dev' with the version of used kernel
# #
#
# To make a diff of different .config file:
# diff --side-by-side --suppress-common-lines --ignore-tab-expansion --ignore-trailing-space --ignore-space-change --ignore-blank-lines --text CONFIG1 CONFIG2
#
doBuildSystem() { doBuildSystem() {
echo "v$UPDATED" echo "v$UPDATED"
} }
@ -154,9 +160,8 @@ doDownload() {
} }
# Uncompress # Uncompress
doUncompress() { doPerformUncompress() {
cd $WORKDIR cd $WORKDIR
doEchoStep "Uncompress" doEchoStep "Uncompress"
rm -rf linux-$VERSION rm -rf linux-$VERSION
tar -xaf linux-$VERSION.tar.xz tar -xaf linux-$VERSION.tar.xz
@ -165,6 +170,17 @@ doUncompress() {
echo ">>> Error in uncompress !" echo ">>> Error in uncompress !"
exit 1 exit 1
fi fi
}
doUncompress() {
if [ -d $WORKDIR ]; then
if [ $UNCOMPRESS == 1 ]; then
doPerformUncompress
else
doEchoStep "$BRANCH/$VERSION already present (don't uncompress)"
fi
else
doPerformUncompress
fi
doSync doSync
} }
@ -1046,6 +1062,21 @@ doDefaultsEnable() {
./scripts/config --enable CONFIG_ZSWAP_COMPRESSOR_DEFAULT_ZSTD ./scripts/config --enable CONFIG_ZSWAP_COMPRESSOR_DEFAULT_ZSTD
./scripts/config --enable ZRAM_MEMORY_TRACKING ./scripts/config --enable ZRAM_MEMORY_TRACKING
./scripts/config --enable CONFIG_ZRAM_MULTI_COMP ./scripts/config --enable CONFIG_ZRAM_MULTI_COMP
./scripts/config --enable CONFIG_KEXEC
./scripts/config --enable CONFIG_CRASH_CORE
./scripts/config --enable CONFIG_CRASH_DUMP
./scripts/config --enable CONFIG_KEXEC_CORE
./scripts/config --enable CONFIG_HAVE_IMA_KEXEC
./scripts/config --enable CONFIG_KEXEC_FILE
./scripts/config --enable CONFIG_X86_5LEVEL
./scripts/config --enable CONFIG_ARCH_SELECTS_KEXEC_FILE
./scripts/config --enable CONFIG_CALL_PADDING
./scripts/config --enable CONFIG_HAVE_ARCH_NODE_DEV_GROUP
./scripts/config --enable CONFIG_WATCHDOG_CORE
./scripts/config --enable CONFIG_DEVMEM
./scripts/config --enable CONFIG_STRICT_DEVMEM
./scripts/config --enable CONFIG_IO_STRICT_DEVMEM
./scripts/config --enable CONFIG_COMPILE_TEST
case ${ARCH} in case ${ARCH} in
"x86-64-v2") "x86-64-v2")
@ -1090,21 +1121,6 @@ doDefaultsTesting() {
cp .config .config.testing.before cp .config .config.testing.before
fi fi
./scripts/config --enable CONFIG_KEXEC
./scripts/config --enable CONFIG_CRASH_CORE
./scripts/config --enable CONFIG_CRASH_DUMP
./scripts/config --enable CONFIG_KEXEC_CORE
./scripts/config --enable CONFIG_HAVE_IMA_KEXEC
./scripts/config --enable CONFIG_KEXEC_FILE
./scripts/config --enable CONFIG_X86_5LEVEL
./scripts/config --enable CONFIG_ARCH_SELECTS_KEXEC_FILE
./scripts/config --enable CONFIG_CALL_PADDING
./scripts/config --enable CONFIG_HAVE_ARCH_NODE_DEV_GROUP
./scripts/config --enable CONFIG_WATCHDOG_CORE
./scripts/config --enable CONFIG_DEVMEM
./scripts/config --enable CONFIG_STRICT_DEVMEM
./scripts/config --enable CONFIG_IO_STRICT_DEVMEM
./scripts/config --set-str CONFIG_LOCALVERSION '-zogg-test' ./scripts/config --set-str CONFIG_LOCALVERSION '-zogg-test'
cp .config .config.testing.after cp .config .config.testing.after
fi fi