location of modules with make install
Apart from the problem I am having with the as99127f, make install isn't putting the drivers where the docs say they go.
buss drivers end up in ../../kernel/drivers/i2c (which I then have to mv to ../i2c/busses, and chip drivers end up in ../../kernel/drivers/sensors (which I mv to ../i2c/chips, thenm do a depmod -ae.
I may not be compiling correctly. The inline comments in Makefile confuse me as to whether I want the kernel modules or not.
Signature · 10 lines
Ed Harrison, broadcasting on _ | | | | | | | |___ || ||\\ || || || \\// |_____||| || \\|| ||_|| //\\ by SuSE(8.1), Kernel 2.4.19, X 4.2 or Windows98 (running in vmware 3.2)
Quoted 1 line · Mark Studebaker
what docs are wrong?
Bad choice of terminology. I meant the comments in Makefile:
# Determine whether we need to compile the kernel modules, or only the
# user-space utilities. By default, the kernel modules are compiled. #COMPILE_KERNEL := 0 COMPILE_KERNEL := 1
I assumed that this choice would put them where the kernel would--busses in /lib/modules/2.4.19-4GB/kernel/drivers/i2c/busses. Make install puts them one level higher, in drivers/i2c. Chips .o files are put in i2c/chips by kernel; in drivers/sensors by make install.
Quoted 4 lines
I couldn't find any.
doc/modules in particular looks correct to me.
Don't know why you would have to move them for depmod to work. I assume "../../" below means "/lib/modules/uname -r/" ?
If I don't move them, then modprobe prefers the ones where the kernel's make modules_install puts them. depmod -ae is not the problem, but I have 2 of each and modprobe prefers and loads the wrong ones. This is a SuSE kernel and they make everything into modules, I guess for compatibility across as many systems as possible.
By moving the 2.7.0 modules to the preferred locations, they get loaded with modprobe.
Quoted 7 lines
Quoted 6 lines · Ed Harrison
Apart from the problem I am having with the as99127f, make install isn't putting the drivers where the docs say they go.
buss drivers end up in ../../kernel/drivers/i2c (which I then have to mv to ../i2c/busses, and chip drivers end up in ../../kernel/drivers/sensors (which I mv to ../i2c/chips, thenm do a depmod -ae.
I may not be compiling correctly. The inline comments in
Makefileconfuse me as to whether I want the kernel modules or not.
Signature · 10 lines
Ed Harrison, broadcasting on _ | | | | | | | |___ || ||\\ || || || \\// |_____||| || \\|| ||_|| //\\ by SuSE(8.1), Kernel 2.4.19, X 4.2 or Windows98 (running in vmware 3.2)
what docs are wrong? I couldn't find any. doc/modules in particular looks correct to me.
Don't know why you would have to move them for depmod to work. I assume "../../" below means "/lib/modules/uname -r/" ?
Quoted 6 lines · Ed Harrison
Apart from the problem I am having with the as99127f, make install isn't putting the drivers where the docs say they go.
buss drivers end up in ../../kernel/drivers/i2c (which I then have to mv to ../i2c/busses, and chip drivers end up in ../../kernel/drivers/sensors (which I mv to ../i2c/chips, thenm do a depmod -ae.
I may not be compiling correctly. The inline comments in
Makefileconfuse me as to whether I want the kernel modules or not.
I see.
We unfortunately have 3 places that modules could be. Very old versions of sensors put modules in misc. Newer versions install in kernel/drivers/[i2c,sensors] (and remove old versions in misc).
This is also where things go in a mkpatched kernel.
In the kernel patches generated by Albert Cranford, modules go into kernel/drivers/i2c/[busses,chips].
I guess the Suse kernel you have is based on Albert's patches.
I agree we should decide where things go,
be consistent, and remove older versions in other places.
Any comments, folks, on which directories should be used?
Quoted 45 lines · Ed Harrison
Quoted 1 line · Mark Studebaker
what docs are wrong?
Bad choice of terminology. I meant the comments in
Makefile:# Determine whether we need to compile the kernel modules, or only the
# user-space utilities. By default, the kernel modules are compiled. #COMPILE_KERNEL := 0 COMPILE_KERNEL := 1I assumed that this choice would put them where the kernel would--busses in
/lib/modules/2.4.19-4GB/kernel/drivers/i2c/busses. Make install puts them one level higher, indrivers/i2c. Chips .o files are put in i2c/chips by kernel; indrivers/sensorsby make install.Quoted 4 lines
I couldn't find any.
doc/modules in particular looks correct to me.
Don't know why you would have to move them for depmod to work. I assume "../../" below means "/lib/modules/uname -r/" ?If I don't move them, then modprobe prefers the ones where the kernel's make
modules_installputs them. depmod -ae is not the problem, but I have 2 of each and modprobe prefers and loads the wrong ones. This is a SuSE kernel and they make everything into modules, I guess for compatibility across as many systems as possible.By moving the 2.7.0 modules to the preferred locations, they get loaded with modprobe.
Quoted 8 lines
Quoted 6 lines · Ed Harrison
Apart from the problem I am having with the as99127f, make install isn't putting the drivers where the docs say they go.
buss drivers end up in ../../kernel/drivers/i2c (which I then have to mv to ../i2c/busses, and chip drivers end up in ../../kernel/drivers/sensors (which I mv to ../i2c/chips, thenm do a depmod -ae.
I may not be compiling correctly. The inline comments in
Makefileconfuse me as to whether I want the kernel modules or not.