Results 1 to 3 of 3

Thread: No /lib/modules/$(uname -r)/build

  1. #1

    Default No /lib/modules/$(uname -r)/build

    I want write a hello.ko by using opensuse
    but I can't find the path of /lib/modules/$(uname -r)/build (no build directory in it)
    However , centos 7 has it
    what can I do to make modules?

  2. #2
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,446
    Blog Entries
    2

    Default Re: No /lib/modules/$(uname -r)/build

    Quote Originally Posted by chrislu30604 View Post
    I want write a hello.ko by using opensuse
    but I can't find the path of /lib/modules/$(uname -r)/build (no build directory in it)
    However , centos 7 has it
    what can I do to make modules?
    For a question like this,
    You'd probably do better asking in a Development Forum,

    eg
    https://forums.opensuse.org/forumdis...ming-Scripting

    For starters,
    For building a kernel module I suppose you need to install the source for your kernel.
    You'll probably also want to install the C development pattern (zypper or YaST Software Manager)

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  3. #3

    Default Re: No /lib/modules/$(uname -r)/build

    Quote Originally Posted by tsu2 View Post
    For building a kernel module I suppose you need to install the source for your kernel.
    Not the kernel source, but kernel-xxx-devel.
    Code:
    $ rpm -qf /lib/modules/$(uname -r)/build
    kernel-default-devel-4.4.104-39.1.x86_64

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •