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

This is a discussion on Kernel 2.6.0 - Writing modules.dep to the wrong place - Questions ; I'm having problems getting my modules to install to an alternative directory. I want them in /u1/build/kmodules/kernel/modulesxxxx. Where xxxx is version information. I've edited the Makefile for Kernel 2.6.0: # Set the environment variable KBUILD_OUTPUT to point to the directory ...

+ Reply to Thread
Results 1 to 7 of 7

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

  1. 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/modulesxxxx.

    Where xxxx 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.



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

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

    >
    >I'm having problems getting my modules to install to an alternative
    >directory.
    >
    >I want them in /u1/build/kmodules/kernel/modulesxxxx.
    >
    >Where xxxx 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.
    >


    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 =---

  3. 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



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

    On Sun, 18 Jan 2004 11:03:05 GMT, markhobley@hotpop.deletethisbit.com
    (Mark Hobley) 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
    >


    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 =---

  5. 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 documentation 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 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:aadiaz@dcc.uchile.cl.nospam

  6. 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 ?

  7. 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

+ Reply to Thread