Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion flatcar/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM nvcr.io/nvidia/cuda:12.8.1-base-ubuntu22.04
FROM nvcr.io/nvidia/cuda:12.6.2-base-ubuntu24.04

ENV NVIDIA_VISIBLE_DEVICES=void

Expand Down Expand Up @@ -63,6 +63,7 @@ RUN cd /tmp && \
rm -rf /tmp/*

COPY nvidia-driver /usr/local/bin
COPY kernel.config /usr/src/

WORKDIR /usr/src/nvidia-$DRIVER_VERSION

Expand Down
18 changes: 18 additions & 0 deletions flatcar/kernel.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
CONFIG_DEBUG_INFO=y
CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y
CONFIG_DEBUG_INFO_REDUCED=n
CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
CONFIG_DEBUG_INFO_SPLIT=n
CONFIG_DEBUG_INFO_BTF=y
CONFIG_DEBUG_INFO_BTF_MODULES=y
CONFIG_MODULE_ALLOW_BTF_MISMATCH=n
CONFIG_GDB_SCRIPTS=n
CONFIG_FRAME_WARN=2048
CONFIG_STRIP_ASM_SYMS=y
CONFIG_READABLE_ASM=n
CONFIG_HEADERS_INSTALL=n
CONFIG_DEBUG_SECTION_MISMATCH=n
CONFIG_SECTION_MISMATCH_WARN_ONLY=y
CONFIG_DEBUG_FORCE_FUNCTION_ALIGN_64B=n
CONFIG_VMLINUX_MAP=n
CONFIG_DEBUG_FORCE_WEAK_PER_CPU=n
3 changes: 3 additions & 0 deletions flatcar/nvidia-driver
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ emerge -gKq coreos-sources \
rm -f /usr/src/linux
ln -s /usr/src/linux-${KERNEL_STRING}-coreos /usr/src/linux
cp /lib/modules/${KERNEL_VERSION}/build/.config /usr/src/linux
# Apply kernel configuration
cp /usr/src/kernel.config /usr/src/linux/.config
make -C /usr/src/linux olddefconfig
make -C /usr/src/linux modules_prepare > /dev/null
cp /lib/modules/${KERNEL_VERSION}/build/Module.symvers /usr/src/linux/
depmod ${KERNEL_VERSION}
Expand Down