URN Logo
UNIX Resources » Linux » Linux Forum » General Linux Discussions » Page.35 » depmod - I am having problems - where can I get the latest source code
announcement The content of this page is collected from Linux Forum, All copyrights and other associated rights are reserved by the original authors of the articles.
Resources
China Linux Forum(finished)
Linux Forum(finished)
FreeBSD China(finished)
linuxforum.com
  LinuxForum General Chat
  Linux Advocacy
  LinuxForum Polls
  Introductions
  Linux Kernel Support
  Patch Management
  Development Release
  Linux Programming
  Linux Security
  Linux Software
  Linux Hardware Problems
    Linux Video Problems
    Linux Sound Problems
  Linux Networking Support
  Linux Printing Support
  Linux Human Interface Devices Support
  Linux Data Storage Support
  Linux Applications Support
  Linux Installation Support
  Linux Laptops Support
  Linux Motherboard, Chipsets, CPU, Memory
  Miscellaneous
  Debian Linux Support
  Ubuntu Linux Support
  LiveCD Discussions
  Gentoo Linux Support
  Mandrake Linux Support
  Redhat / Fedora Linux Support
  Slackware Linux Support
  SuSE Linux Support
  CentOS Linux Support
  Linux Web Servers
  Linux DNS Servers
  Linux Database Servers
  Linux Email Servers
  Linux FTP Servers
  Linux Squid Proxy Server
  Linux Samba Help
  Linux cPanel Help
  Linux Ensim Help
  Linux Plesk Help
  Linux Webmin / Usermin Help
  Qmail Toaster Help
  Linux Games
  Windows Game Emulation
  Linux Discussions
  General Linux Discussions
  Red Hat Linux Discussions
  More Red Hat Linux Discussions
  Mandrake Linux Discussions
  Slackware Linux Discussions
  SuSE Linux Discussions
  Debian Discussions
  Samba Help
  Linux Security
  Linux Networking
  Gentoo Help
  Operating System Rant Forum
  Hardware Rants
   
depmod - I am having problems - where can I get the latest source code
Subject: depmod - I am having problems - where can I get the latest source code
Author: Mark Hobley    Posted: 2004-02-28 13:56:19    Length: 846 byte(s)
[Original] [Print] [Top]
I am having a problem with the depmod utility.

I am trying to build modules for the 2.6.2 kernel, using a machine
running a 2.4 kernel

I am using customized paths and I want to achieve the following:

My modules are located in:

/u1/build/kmodules/

I want depmod to create a modules.dep file at the following location:

/u1/build/kmodules/modules.dep

it is trying to write to the following location, which is not what I
want:

/u1/build/kmodules/lib/modules/2.6.0/modules.dep

It has appended a /lib/modules/2.6.0 to my customized path name.

I want to modify the behaviour not to do this and I require the latest
source code.

Where do I obtain this ?

Thanks in advance to anyone who can help.

[Original] [Print] [Top]
Subject: depmod - I am having problems - where can I get the latest source code
Author: Mark Hobley    Posted: 2004-02-29 09:13:07    Length: 806 byte(s)
[Original] [Print] [Top]
Ok, I have found the source.

It is part of the modules-init-tools project.

The problem with the depmod utility is as follows:

There does not appear to be an option to prevent depmod from appending
/lib/modules/2.x.x to the output path when using the -b option.

For example:

depmod -ae -F System.map -b /u1/build/kmodules -r 2.6.0

gives error:

depmod: Can't open /u1/build/kmodules/lib/modules/2.6.0/modules.dep
for writing.

The directory /u1/build/kmodules exists with read,write,execute
permission.

The depmod utility is trying to write to a subdirectory
lib/modules/2.6.0, which does not exist.

This is causing the kernel building process to fail.

--

[Original] [Print] [Top]
Subject: depmod - I am having problems - where can I get the latest source code
Author: hidave    Posted: 2004-03-01 06:05:58    Length: 2,071 byte(s)
[Original] [Print] [Top]
From man page:
 -b basedir --basedir basedir
                 If  your  modules are not currently in the (normal) directory
                 /lib/modules/version, but in a staging area, you can  specify
                 a  basedir  which  is  prepended to the directory name.  This
                 basedir is stripped from the resulting modules.dep  file,  so
                 it is ready to be moved into the normal location.


markhobley@hotpop.deletethisbit.com (Mark Hobley) wrote in message news:[4041df01.69292905@news.blueyonder.co.uk]...
QUOTE
Ok, I have found the source.

It is part of the modules-init-tools project.

The problem with the depmod utility is as follows:

There does not appear to be an option to prevent depmod from appending
/lib/modules/2.x.x to the output path when using the -b option.

For example:

depmod -ae -F System.map -b /u1/build/kmodules -r 2.6.0

gives error:

depmod: Can't open /u1/build/kmodules/lib/modules/2.6.0/modules.dep
for writing.

The directory /u1/build/kmodules exists with read,write,execute
permission.

The de

pmod utility is trying to write to a subdirectory
QUOTE
lib/modules/2.6.0, which does not exist.

This is causing the kernel building process to fail.

--


[Original] [Print] [Top]
Subject: depmod - I am having problems - where can I get the latest source code
Author: Gillian Hobley    Posted: 2004-03-02 03:40:52    Length: 853 byte(s)
[Original] [Print] [Top]
On 1 Mar 2004 02:05:58 -0800, dave-young@163.net (hidave) wrote:

QUOTE
From man page:
-b basedir --basedir basedir
If  your  modules are not currently in the (normal) directory
/lib/modules/version, but in a staging area, you can  specify
a  basedir  which  is  prepended to the directory name.  This
basedir is stripped from the resulting modules.dep  file,  so
it is ready to be moved into the normal location.


On my target machine, custom paths will apply.

I actually wish to override /lib/modules/version with a pathname of my
own.

[Original] [Print] [Top]
Subject: depmod - I am having problems - where can I get the latest source code
Author: Mark Hobley    Posted: 2004-03-05 19:11:36    Length: 821 byte(s)
[Original] [Print] [Top]
On my system, which is under development kernel modules are located in
/kernel/modules instead of /lib/modules.

The module-init-tools have hard coded paths to /lib/modules which has
been causing a problem with the kernel build.

There does not appear to be a method of overriding the path using an
environment variable or a command line switch.

Looking through the code, in both depmod.c and modinfo.c there appears
a line as follows:

#define MODULE_DIR "/lib/modules"

I have amended this to:

#define MODULE_DIR "/kernel/modules"

I am currently testing this to see if it solves the problem.

The facility to override paths by a command line switch or a change to
the environment would be ideal.

[Original] [Print] [Top]
« Previous thread
what is the best linux for setting up a firewall?
General Linux Discussions
Page. 35
Next thread »
is it worth compiling my own kernel
     

Copyright © 2007 UNIX Resources Network, All Rights Reserved.      About URN | Privacy & Legal | Help | Contact us
Powered by FreeBSD    webmaster: webmaster@unixresources.net
This page created on 2007-08-01 12:17:17, cost 0.026563167572021 ms.