Professional Web Applications Themes

Kernel 2.6.0 - Writing modules.dep to the wrong place - Linux Setup, Configuration & Administration

I'm having problems getting my modules to install to an alternative directory. I want them in /u1/build/kmodules/kernel/modulesx. Where x is version information. I've edited the Makefile for Kernel 2.6.0: # Set the environment variable KBUILD_OUTPUT to point to the directory export KBUILD_OUTPUT=/u1/build/kernel/ #INSTALL_PATH specifies where to place the updated kernel and system export INSTALL_PATH=u1/build/boot # INSTALL_MOD_PATH specifies a prefix to MODLIB for module directory export INSTALL_MOD_PATH=/u1/build/kmodules/ #MODLIB := $(INSTALL_MOD_PATH)/lib/modules/$(KERNELRELEASE) MODLIB := $(INSTALL_MOD_PATH)/kernel/modules$(KERNELRELEASE) export MODLIB I've built the base kernel. I now try to build the modules: make O=/u1/build/kernel modules_install I get an error: if [ -r System.map ]; then /sbin/depmod ...

  1. #1

    Default Kernel 2.6.0 - Writing modules.dep to the wrong place


    I'm having problems getting my modules to install to an alternative
    directory.

    I want them in /u1/build/kmodules/kernel/modulesx.

    Where x is version information.

    I've edited the Makefile for Kernel 2.6.0:

    # Set the environment variable KBUILD_OUTPUT to point to the directory

    export KBUILD_OUTPUT=/u1/build/kernel/

    #INSTALL_PATH specifies where to place the updated kernel and system

    export INSTALL_PATH=u1/build/boot

    # INSTALL_MOD_PATH specifies a prefix to MODLIB for module directory

    export INSTALL_MOD_PATH=/u1/build/kmodules/

    #MODLIB := $(INSTALL_MOD_PATH)/lib/modules/$(KERNELRELEASE)

    MODLIB := $(INSTALL_MOD_PATH)/kernel/modules$(KERNELRELEASE)

    export MODLIB

    I've built the base kernel.

    I now try to build the modules:

    make O=/u1/build/kernel modules_install

    I get an error:

    if [ -r System.map ]; then /sbin/depmod -ae -F System.map -b
    /u1/build/kmodules
    -r 2.6.0; fi
    depmod: Can't open /u1/build/kmodules/lib/modules/2.6.0/modules.dep
    for writing
    make[1]: *** [_modinst_post] Error 255
    make: *** [modules_install] Error 2

    I check permissions as follows:

    ls -l -d /u1/build/kmodules
    drwxr-x--- 3 kmake kmake 1024 Jan 17 11:59
    /u1/build/kmodules

    whoami
    kmake

    write permission is granted for /u1/build/kmodules/

    The subdirectory lib/modules/2.6.0 has not been created

    ls /u1/build/kmodules

    kernel

    How do I change the path of modules.dep ?

    I was expecting it to be located at:

    /u1/build/kmodules/kernel/modules.dep

    or

    /u1/build/kmodules/kernel/modules2.6.0/modules.dep

    Thanks in advance to anyone who can help.


    Mark Guest

  2. #2

    Default Re: Kernel 2.6.0 - Writing modules.dep to the wrong place

    On Sat, 17 Jan 2004 12:18:35 GMT, deletethisbit.com
    (Mark Hobley) wrote:
     

    The symptoms sound similar to what happens if you use the wrong
    versions of the module utilities... Have you updated them?
    (modprobe, insmod, rmmod, etc.)

    Mike-

    Mornings: Evolution in action. Only the grumpy will survive.
    -----------------------------------------------------

    Please note - Due to the intense volume of spam, we have
    installed site-wide spam filters at catherders.com. If
    email from you bounces, try non-HTML, non-encoded,
    non-attachments.


    ----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
    http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
    ---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
    Michael Guest

  3. #3

    Default Re: Kernel 2.6.0 - Writing modules.dep to the wrong place

    On Sat, 17 Jan 2004 10:16:11 -0500, Michael W. e
    <com> wrote:
     

    I've got the latest Debian stable version 2.4.15-1.

    My install paths are customized for the kernel build.

    Is there a way of overriding the path that modules.dep is created in ?


    Mark Guest

  4. #4

    Default Re: Kernel 2.6.0 - Writing modules.dep to the wrong place

    On Sat, 17 Jan 2004 23:55:53 GMT, deletethisbit.com
    (Mark Hobley) wrote:
     
    >
    >I've got the latest Debian stable version 2.4.15-1.
    >
    >My install paths are customized for the kernel build.
    >
    >Is there a way of overriding the path that modules.dep is created in ?
    >[/ref]

    Hmmm... I've never tried it, but from looking at the man page for
    modules.conf, I would guess so - there are ways to set and modify the
    paths that modules are loaded from, and ways to maintain multiple
    modules.conf files, so there's probably a way to change the rest of it
    too. Sorry I can't be more help.

    Mike-

    Mornings: Evolution in action. Only the grumpy will survive.
    -----------------------------------------------------

    Please note - Due to the intense volume of spam, we have
    installed site-wide spam filters at catherders.com. If
    email from you bounces, try non-HTML, non-encoded,
    non-attachments.


    ----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
    http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
    ---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
    Michael Guest

  5. #5

    Default Re: Kernel 2.6.0 - Writing modules.dep to the wrong place

    it's not a matter of path, modutil package (or binary set)should be
    replaced with the new version.


    deletethisbit.com (Mark Hobley) wrote in message news:<blueyonder.co.uk>... 
    >
    > I've got the latest Debian stable version 2.4.15-1.
    >
    > My install paths are customized for the kernel build.
    >
    > Is there a way of overriding the path that modules.dep is created in ?[/ref]
    newton Guest

  6. #6

    Default Re: Kernel 2.6.0 - Writing modules.dep to the wrong place

    I have now upgraded modutils to the latest version (2.4.26)

    when trying to install the kernel modules using:

    make O=/u1/build/kernel modules_install

    The build still fails when trying to create modules.dep:

    if [ -r System.map ]; then /sbin/depmod -ae -F System.map -b
    /u1/build/kmodules
    -r 2.6.0; fi
    depmod: Can't open /u1/build/kmodules/lib/modules/2.6.0/modules.dep
    for writing
    make[1]: *** [_modinst_post] Error 255
    make: *** [modules_install] Error 2


    Mark Guest

  7. #7

    Default Re: Kernel 2.6.0 - Writing modules.dep to the wrong place

    On Sun, 18 Jan 2004 11:03:05 GMT, deletethisbit.com
    (Mark Hobley) wrote:
     

    Stupid question: does the path exist, and have you the proper
    permissions to it?

    Mike-

    Mornings: Evolution in action. Only the grumpy will survive.
    -----------------------------------------------------

    Please note - Due to the intense volume of spam, we have
    installed site-wide spam filters at catherders.com. If
    email from you bounces, try non-HTML, non-encoded,
    non-attachments.


    ----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
    http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
    ---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
    Michael Guest

  8. #8

    Default Re: Kernel 2.6.0 - Writing modules.dep to the wrong place

    It's not about upgrade moutils to the last version.
    The last kernel came with several changes in the tree directory and also
    modules. For example, now you can have access to the process through /sys
    directory, and not /proc.
    The extension of the modules will be .kmo, or something like that, and not .o
    You will need a new version of isnmod, modprobe,lsmode, etc and /etc/modules.conf will be now /etc/modprobe.conf.
    For all those things you need module-init-tools software (or libraries ?).
    First read very well the doentation about install, because is my idea you will replace the binaries and the configuratios files.

    Best regards from Chile.


    In comp.os.linux Mark Hobley <deletethisbit.com> wrote:
    : I have now upgraded modutils to the latest version (2.4.26)

    : when trying to install the kernel modules using:

    : make O=/u1/build/kernel modules_install

    : The build still fails when trying to create modules.dep:

    : if [ -r System.map ]; then /sbin/depmod -ae -F System.map -b
    : /u1/build/kmodules
    : -r 2.6.0; fi
    : depmod: Can't open /u1/build/kmodules/lib/modules/2.6.0/modules.dep
    : for writing
    : make[1]: *** [_modinst_post] Error 255
    : make: *** [modules_install] Error 2



    --
    Alfredo Diaz
    ================
    School of Engineering and Science, University of Chile
    Beaucheff 850, P.O. Box 2777, Santiago, CHILE
    mailto:uchile.cl.nospam
    Alfredo Guest

  9. #9

    Default Re: Kernel 2.6.0 - Writing modules.dep to the wrong place

    On Sun, 18 Jan 2004 09:59:52 -0500, Michael W. e
    <com> wrote:
     

    Don't forget that I am trying to use custom directories on this
    machine and on the target.

    The build machine is a 2.4 Kernel. I had no intention of upgrading,
    except for the purpose of building this Kernel for another machine.

    Anyhow, in answer to your question, the following path exists and is
    writable:

    /u1/build/kmodules/

    I am expecting the build process to create its own directories below
    this.

    The path

    /u1/build/kmodules/lib/modules/2.6.0/

    does not exist, though there is no reason why the build process cannot
    create it.

    This path however is not correct

    /u1/build/kmodules is the path on my file server, where I want the
    kernel modules to be stored.

    On the target machine (the one where the 2.6 kernel will be
    installed), I want the kernel modules to be located at

    /kernel/modules2.6.0/

    Therefore on the build machine, I was expecting modules.dep to be
    written to:

    /u1/build/kmodules/kernel/modules2.6.0/

    The build has created some stuff there. Its created subdirectories

    crypto, drivers, fs, lib, net, sound

    Maybe I have not edited the Makefile correctly.

    I suspect that there is another Makefile for modules.dep, or something
    else that I have to do, to override the path of modules.dep for the
    build.


    Mark Guest

  10. #10

    Default Re: Kernel 2.6.0 - Writing modules.dep to the wrong place

    I have now installed module-init-tools on my build machine.

    make O=/u1/build/kernel modules_install

    now results in a slightly different error

    if [ -r System.map ]; then /sbin/depmod -ae -F System.map -b
    /u1/build/kmodules
    -r 2.6.0; fi
    WARNING: Couldn't open directory /u1/build/kmodules/lib/modules/2.6.0:
    No such file or directory
    FATAL: Could not open
    /u1/build/kmodules/lib/modules/2.6.0/modules.dep.temp for
    writing: No such file or directory
    make[1]: *** [_modinst_post] Error 1
    make: *** [modules_install] Error 2

    note the .temp at the end

    Why is it still appending /lib/modules/2.6.0 to my install path ?
    Mark Guest

  11. #11

    Default Re: Kernel 2.6.0 - Writing modules.dep to the wrong place

    Kernel 2.6.1 still has the same problem.

    if [ -r System.map ]; then /sbin/depmod -ae -F System.map -b
    /u1/build/kmodules/
    -r 2.6.1; fi
    WARNING: Couldn't open directory
    /u1/build/kmodules//lib/modules/2.6.1: No such
    file or directory
    FATAL: Could not open
    /u1/build/kmodules//lib/modules/2.6.1/modules.dep.temp for
    writing: No such file or directory
    make[1]: *** [_modinst_post] Error 1
    make: *** [modules_install] Error 2
    Mark Guest

Similar Threads

  1. writing modules in 'c'
    By Narendran Kumaraguru Nathan in forum PERL Modules
    Replies: 6
    Last Post: August 27th, 08:39 PM
  2. nforce kernel modules
    By gerard in forum Debian
    Replies: 13
    Last Post: August 13th, 01:10 AM
  3. Kernel 2.6.0. Dealing with modules
    By Marino Fernandez in forum Debian
    Replies: 1
    Last Post: July 21st, 02:50 AM
  4. Kernel Modules
    By Abrasive in forum Debian
    Replies: 0
    Last Post: July 3rd, 07:10 PM

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
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139