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

linux-headers missing? #190

Open
uXeBoy opened this issue May 9, 2022 · 1 comment
Open

linux-headers missing? #190

uXeBoy opened this issue May 9, 2022 · 1 comment

Comments

@uXeBoy
Copy link

uXeBoy commented May 9, 2022

Stuck in a catch-22 loop where I cannot run any makefiles to build wifi drivers for a network connection, because linux-headers seem to not be included in the builds? And cannot just try to 'apt-get' the linux-headers because there is no network connection yet... but cannot run any makefiles to build wifi drivers for a network connection, because linux-headers seem to not be included in the builds? And cannot just try to 'apt-get' the linux-headers because there is no network connection yet...

@RobertCNelson
Copy link
Owner

modprobe kheaders
rm -rf $HOME/headers
mkdir -p $HOME/headers
tar -xvf /sys/kernel/kheaders.tar.xz -C $HOME/headers >/dev/null
cd my-kernel-module
make -C $HOME/headers M=$(pwd) modules

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