Compiling module on OpenWRT: make can't find build directory
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
My setup:
- OpenWRT 18.06.1
- Raspberry Pi 2 B
- Kernel 4.9.120
Attempting to build a very simple hello world kernel module results in the following error:
# make
make -C /lib/modules/4.9.120/build M=/c_programming/hellomodule modules
make[1]: *** /lib/modules/4.9.120/build: No such file or directory. Stop.
make: *** [Makefile:6: all] Error 2
Makefile isn't a problem, since it works on Ubuntu just fine. What I've done so far:
- I've checked and the directory indeed is missing.
- Checked with
opkg find '*headers*'
however there's no packageslinux-headers-<release>
like on Ubuntu.
How should I proceed to actually build this thing ?
kernel-modules c openwrt
add a comment |Â
up vote
0
down vote
favorite
My setup:
- OpenWRT 18.06.1
- Raspberry Pi 2 B
- Kernel 4.9.120
Attempting to build a very simple hello world kernel module results in the following error:
# make
make -C /lib/modules/4.9.120/build M=/c_programming/hellomodule modules
make[1]: *** /lib/modules/4.9.120/build: No such file or directory. Stop.
make: *** [Makefile:6: all] Error 2
Makefile isn't a problem, since it works on Ubuntu just fine. What I've done so far:
- I've checked and the directory indeed is missing.
- Checked with
opkg find '*headers*'
however there's no packageslinux-headers-<release>
like on Ubuntu.
How should I proceed to actually build this thing ?
kernel-modules c openwrt
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
My setup:
- OpenWRT 18.06.1
- Raspberry Pi 2 B
- Kernel 4.9.120
Attempting to build a very simple hello world kernel module results in the following error:
# make
make -C /lib/modules/4.9.120/build M=/c_programming/hellomodule modules
make[1]: *** /lib/modules/4.9.120/build: No such file or directory. Stop.
make: *** [Makefile:6: all] Error 2
Makefile isn't a problem, since it works on Ubuntu just fine. What I've done so far:
- I've checked and the directory indeed is missing.
- Checked with
opkg find '*headers*'
however there's no packageslinux-headers-<release>
like on Ubuntu.
How should I proceed to actually build this thing ?
kernel-modules c openwrt
My setup:
- OpenWRT 18.06.1
- Raspberry Pi 2 B
- Kernel 4.9.120
Attempting to build a very simple hello world kernel module results in the following error:
# make
make -C /lib/modules/4.9.120/build M=/c_programming/hellomodule modules
make[1]: *** /lib/modules/4.9.120/build: No such file or directory. Stop.
make: *** [Makefile:6: all] Error 2
Makefile isn't a problem, since it works on Ubuntu just fine. What I've done so far:
- I've checked and the directory indeed is missing.
- Checked with
opkg find '*headers*'
however there's no packageslinux-headers-<release>
like on Ubuntu.
How should I proceed to actually build this thing ?
kernel-modules c openwrt
kernel-modules c openwrt
asked 6 mins ago
Sergiy Kolodyazhnyy
7,97511849
7,97511849
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f475183%2fcompiling-module-on-openwrt-make-cant-find-build-directory%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password