Results 1 to 2 of 2

Thread: Add newexternal modules to custom kernel

Hybrid View

  1. #1

    Add newexternal modules to custom kernel

    Building External Modules

    I'm trying to add new external modules already compiled to the new Open Suse kernel and it seems that Im missing something. I was following the steps that can be seen below;
    1. 1. online repository enabled
      sudo zypper ref
      sudo zypper lu
      sudo zypper up
    2. 2.Command Syntax to add the externals modules
    3. 2.1.The command to build an external module

      $ make -C <path_to_kernel_src> M=$PWD ////Up to here its compiling without error
      $ make -C /lib/modules/4.1.15-8-default/kernel/* SUBDIRS=$home/user/Development/Modules
    4. 2.2.To build against the running kernel

      $ make -C /lib/modules/`user -r`/build M=$home/user/Development/Modules
    5. 2.3.Install the module(s) just built, add the target "modules" to the command:

      $ make -C /lib/modules/`user -r`/build M=$home/user/Development/Modules modules


    I think I am missing the prebuilt kernel that contains the configuration and header files used in the build, because the folder "build" inside the "4.1.15-8-default" never was created as expected. So, when I trying to add the modules I alwais got an error message;
    "/lib/modules/4.1.15-8-default/build: Not such a file or directory"

    Regards

  2. Re: Add newexternal modules to custom kernel

    On Mon 14 Mar 2016 03:44:02 PM CDT, Chaves wrote:

    Building External Modules

    I'm trying to add new external modules already compiled to the new Open
    Suse kernel and it seems that Im missing something. I was following the
    steps that can be seen below;

    - 1. online repository enabled
    sudo zypper ref
    sudo zypper lu
    sudo zypper up
    - 2.Command Syntax to add the externals modules
    - 2.1.The command to build an external module

    $ make -C <path_to_kernel_src> M=$PWD ////Up to
    here its compiling without error
    $ make -C /lib/modules/4.1.15-8-default/kernel/*
    SUBDIRS=$home/user/Development/Modules
    - 2.2.To build against the running kernel

    $ make -C /lib/modules/`user -r`/build
    M=$home/user/Development/Modules

    - 2.3.Install the module(s) just built, add the target "modules" to
    the command:

    $ make -C /lib/modules/`user -r`/build
    M=$home/user/Development/Modules modules



    I think I am missing the prebuilt kernel that contains the configuration
    and header files used in the build, because the folder "build" inside
    the "4.1.15-8-default" never was created as expected. So, when I trying
    to add the modules I alwais got an error message;
    "/lib/modules/4.1.15-8-default/build: Not such a file or directory"

    Regards


    Hi
    You in the wrong forum, these forum are for SUSE Linux Enterprise, not
    openSUSE, you need to be over at https://forums.opensuse.org same
    username/login

    --
    Cheers Malcolm °¿° LFCS, SUSE Knowledge Partner (Linux Counter #276890)
    SUSE Linux Enterprise Desktop 12 SP1|GNOME 3.10.4|3.12.53-60.30-default
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!


Bookmarks

Posting Permissions

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