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

How to Get Kernel Headers after CONFIG_IKHEADERS=y? #79

Open
Shiroiame-Kusu opened this issue Nov 18, 2024 · 4 comments
Open

How to Get Kernel Headers after CONFIG_IKHEADERS=y? #79

Shiroiame-Kusu opened this issue Nov 18, 2024 · 4 comments

Comments

@Shiroiame-Kusu
Copy link

Sorry to bother you guys but I still met some problems to get headers after #74
I was trying to run Nvidia Driver Installer on my WSL (dont ask me why, Microsoft said it should work), but the installer cannot recognized the headers which is embedded in the kernel,
And I tried many ways to extract kernel headers from the bzimage, but failed.
So I'm here to ask for help about this.

@4-FLOSS-Free-Libre-Open-Source-Software
Copy link
Contributor

Sorry to bother you guys but I still met some problems to get headers after #74

Did you try?

sudo mkdir -p /lib/modules/$(uname -r)
sudo tar -xvf /sys/kernel/kheaders.tar.xz -C /lib/modules/$(uname -r)

@Shiroiame-Kusu
Copy link
Author

Sorry to bother you guys but I still met some problems to get headers after #74

Did you try?

sudo tar -xvf /sys/kernel/kheaders.tar.xz -C ~/kernel-headers
export KERNEL_HEADERS=~/kernel-headers
make KERNEL_HEADERS=$KERNEL_HEADERS

nop, will try this later

@Shiroiame-Kusu
Copy link
Author

Still not working haha, might be my fault, considering rebuilding the whole kernel myself.
Left this issue open for those who have the same question about where the kernel header is.

@4-FLOSS-Free-Libre-Open-Source-Software
Copy link
Contributor

I was trying to run Nvidia Driver Installer on my WSL

CUDA Support for WSL 2

Once a Windows NVIDIA GPU driver is installed on the system, CUDA becomes available within WSL 2. The CUDA driver installed on Windows host will be stubbed inside the WSL 2 as libcuda.so, therefore users must not install any NVIDIA GPU Linux driver within WSL 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants