Kernel 2.6.0 - Writing modules.dep to the wrong place
From: Mark Hobley (markhobley_at_hotpop.deletethisbit.com)
Date: 01/17/04
- Next message: Gaétan Martineau: "Re: Setting up exabyte drive on linux"
- Previous message: M_at_rinu$: "ftp configuration by xinitd (yast network services)"
- Next in thread: Michael W. Cocke: "Re: Kernel 2.6.0 - Writing modules.dep to the wrong place"
- Reply: Michael W. Cocke: "Re: Kernel 2.6.0 - Writing modules.dep to the wrong place"
- Reply: Mark Hobley: "Re: Kernel 2.6.0 - Writing modules.dep to the wrong place"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 17 Jan 2004 12:18:35 GMT
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.
- Next message: Gaétan Martineau: "Re: Setting up exabyte drive on linux"
- Previous message: M_at_rinu$: "ftp configuration by xinitd (yast network services)"
- Next in thread: Michael W. Cocke: "Re: Kernel 2.6.0 - Writing modules.dep to the wrong place"
- Reply: Michael W. Cocke: "Re: Kernel 2.6.0 - Writing modules.dep to the wrong place"
- Reply: Mark Hobley: "Re: Kernel 2.6.0 - Writing modules.dep to the wrong place"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|