2.7.0 testings
(starting a new thread, the previous one's too old)
I just tested the CVS version of i2c and lm_sensors2, works perfectly on my laptop (kernel 2.4.20-rc1 + ACPI).
Just don't forget to change the version and date in lm_senors2/version.h (same for i2c/kernel/i2c.h).
I'll test with a 2.2 series kernel on another machine early tomorrow.
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
Quoted 2 lines
I'll test with a 2.2 series kernel on another machine early tomorrow.
We have a problem. 2.2 kernels may not have a /lib/modules/$VERSION/build symlink. I don't know what's responsible for creating it. Curiously, when I tried on my laptop with a 2.2.22 kernel, the symlink was created. But on my old desktop system, kernels 2.2.14, 2.2.16 and 2.2.20 don't have one.
So we can't keep the things as they are. I suggest to use the following:
LINUX := $(shell if [ -L /lib/modules/$(KERNELVERSION)/build ] ; then echo "/lib/modules/$(KERNELVERSION)/build" ; else echo "/usr/src/linux" ; fi)
Someone's got a better idea?
Another problem:
/usr/src/i2c> make
gcc -I/usr/src/linux/include -O2 -DLM_SENSORS -D__KERNEL__ -DMODULE -fomit-frame-pointer -DEXPORT_SYMTAB -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h -c kernel/i2c-pport.c -o kernel/i2c-pport.okernel/i2c-pport.c: In function `bit_pport_init':kernel/i2c-pport.c:115: wrong type argument to unary exclamation mark
make: *** [kernel/i2c-pport.o] Error 1/usr/src/i2c>
This is a 2.2.20 kernel. The code is:
112
113 static int bit_pport_init(void)
114 {
115 if (!request_region((base+2),1, "i2c (PPORT adapter)")) {
116 return -ENODEV;
117 } else {
118 From /usr/src/linux-2.2.20:
kernel/resource.c:void request_region(unsigned long from, unsigned long num, const char *name)
So actually you are not supposed to check a returned value. Who can fix this?
I also get this warning for many files:/usr/src/linux-2.2.20/include/linux/module.h:13: warning: `_set_ver' redefined/usr/src/linux-2.2.20/include/linux/modsetver.h:9: warning: this is the location of the previous definition
But I guess this is a kernel-side problem, right? Gonna try on a 2.2.22 to see if it has been fixed.
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
Quoted 6 lines
We have a problem. 2.2 kernels may not have a
/lib/modules/$VERSION/buildsymlink. I don't know what's responsible for creating it. Curiously, when I tried on my laptop with a 2.2.22 kernel, the symlink was created. But on my old desktop system, kernels 2.2.14, 2.2.16 and 2.2.20 don't have one.
I tried 2.2.22 on the same system, and no symlink was created. So I guess that it does depend on some tool (modutils?) and not on the kernel versions.
Quoted 7 lines
I also get this warning for many files:
/usr/src/linux-2.2.20/include/linux/module.h:13: warning: `_set_ver' redefined/usr/src/linux-2.2.20/include/linux/modsetver.h:9: warning: this is the location of the previous definition
But I guess this is a kernel-side problem, right? Gonna try on a 2.2.22 to see if it has been fixed.
No warning with kernel 2.2.22, I guess we can safely ignore this warning.
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
Quoted 3 lines
The build symlink comes from the top level kernel
Makefile, from 'makemodules_install'.
Then I just can't say why it isn't created on my other (old) system. But it doesn't really matter anyway.
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
Quoted 4 lines
Khali, you fixed the makefiles and I fixed the
request_regions. I think we're only awaiting your compile test for 2.2 and then we're ready for release??
Sorry, I've been away for some days for a M:TG tournament. I'm back now, and tested CVS on a 2.2(.22) kernel again. While i2c is OK, lm_sensors2 isn't.
make: *** No rule to make target linux/bootmem.h', needed by kernel/busses/dmi_scan.d'. Stop.
Actually, 2.2 kernels don't have the include/linux/bootmem.h file. As 2.4.0 does have it, the file must have been added in a 2.3 kernel.
Have to go out to buy something to eat, to be continued later ;)
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
Quoted 3 lines
Actually, 2.2 kernels don't have the
include/linux/bootmem.hfile. As 2.4.0 does have it, the file must have been added in a 2.3 kernel.
The file was added in Linux 2.3.23. I don't know what it implies (if it implies something). Mark, can you find a fix?
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
I follow the steps in lm_sensors2/doc/developers/checklist. If you need me to do anything special or different, just edit that file.
Phil
Quoted 11 lines · Jean Delvare
(starting a new thread, the previous one's too old)
I just tested the CVS version of i2c and
lm_sensors2, works perfectly on my laptop (kernel 2.4.20-rc1 + ACPI).
Just don't forget to change the version and date inlm_senors2/version.h(same fori2c/kernel/i2c.h).I'll test with a 2.2 series kernel on another machine early tomorrow.
I like your suggestion for fixing LINUX :If you fix that I'll fix pport.
The build symlink comes from the top level kernel Makefile, from 'make modules_install'.
Quoted 56 lines · Jean Delvare
Quoted 2 lines
I'll test with a 2.2 series kernel on another machine early tomorrow.
We have a problem. 2.2 kernels may not have a
/lib/modules/$VERSION/buildsymlink. I don't know what's responsible for creating it. Curiously, when I tried on my laptop with a 2.2.22 kernel, the symlink was created. But on my old desktop system, kernels 2.2.14, 2.2.16 and 2.2.20 don't have one.So we can't keep the things as they are. I suggest to use the following:
LINUX := $(shell if [ -L /lib/modules/$(KERNELVERSION)/build ] ; then echo "/lib/modules/$(KERNELVERSION)/build" ; else echo "
/usr/src/linux" ; fi)Someone's got a better idea?
Another problem:
/usr/src/i2c> make
gcc -I/usr/src/linux/include -O2 -DLM_SENSORS -D__KERNEL__ -DMODULE -fomit-frame-pointer -DEXPORT_SYMTAB -DMODVERSIONS -include/usr/src/linux/include/linux/modversions.h-ckernel/i2c-pport.c-okernel/i2c-pport.okernel/i2c-pport.c: In function `bit_pport_init':kernel/i2c-pport.c:115: wrong type argument to unary exclamation mark
make: *** [kernel/i2c-pport.o] Error 1/usr/src/i2c>This is a 2.2.20 kernel. The code is:
112 113 static int bit_pport_init(void) 114 { 115 if (!request_region((base+2),1, "i2c (PPORT adapter)")) { 116 return -ENODEV; 117 } else { 118Quoted 1 line
From
/usr/src/linux-2.2.20:kernel/resource.c:void
request_region(unsigned long from, unsigned long num, const char *name)
So actually you are not supposed to check a returned value. Who can fix this?I also get this warning for many files:
/usr/src/linux-2.2.20/include/linux/module.h:13: warning: `_set_ver' redefined/usr/src/linux-2.2.20/include/linux/modsetver.h:9: warning: this is the location of the previous definition
But I guess this is a kernel-side problem, right? Gonna try on a 2.2.22 to see if it has been fixed.--
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
Khali, you fixed the makefiles and I fixed the request_regions. I think we're only awaiting your compile test for 2.2 and then we're ready for release??
Quoted 63 lines · Mark D. Studebaker
I like your suggestion for fixing LINUX :> If you fix that I'll fix pport.
The build symlink comes from the top level kernel
Makefile, from 'makemodules_install'.Quoted 56 lines · Jean Delvare
Quoted 2 lines
I'll test with a 2.2 series kernel on another machine early tomorrow.
We have a problem. 2.2 kernels may not have a
/lib/modules/$VERSION/buildsymlink. I don't know what's responsible for creating it. Curiously, when I tried on my laptop with a 2.2.22 kernel, the symlink was created. But on my old desktop system, kernels 2.2.14, 2.2.16 and 2.2.20 don't have one.So we can't keep the things as they are. I suggest to use the following:
LINUX := $(shell if [ -L /lib/modules/$(KERNELVERSION)/build ] ; then echo "/lib/modules/$(KERNELVERSION)/build" ; else echo "
/usr/src/linux" ; fi)Someone's got a better idea?
Another problem:
/usr/src/i2c> make
gcc -I/usr/src/linux/include -O2 -DLM_SENSORS -D__KERNEL__ -DMODULE -fomit-frame-pointer -DEXPORT_SYMTAB -DMODVERSIONS -include/usr/src/linux/include/linux/modversions.h-ckernel/i2c-pport.c-okernel/i2c-pport.okernel/i2c-pport.c: In function `bit_pport_init':kernel/i2c-pport.c:115: wrong type argument to unary exclamation mark
make: *** [kernel/i2c-pport.o] Error 1/usr/src/i2c>This is a 2.2.20 kernel. The code is:
112 113 static int bit_pport_init(void) 114 { 115 if (!request_region((base+2),1, "i2c (PPORT adapter)")) { 116 return -ENODEV; 117 } else { 118Quoted 1 line
From
/usr/src/linux-2.2.20:kernel/resource.c:void
request_region(unsigned long from, unsigned long num, const char *name)
So actually you are not supposed to check a returned value. Who can fix this?I also get this warning for many files:
/usr/src/linux-2.2.20/include/linux/module.h:13: warning: `_set_ver' redefined/usr/src/linux-2.2.20/include/linux/modsetver.h:9: warning: this is the location of the previous definition
But I guess this is a kernel-side problem, right? Gonna try on a 2.2.22 to see if it has been fixed.--
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
I'll look at tonight.
Quoted 10 lines · Jean Delvare
Quoted 3 lines
Actually, 2.2 kernels don't have the
include/linux/bootmem.hfile. As 2.4.0 does have it, the file must have been added in a 2.3 kernel.The file was added in Linux 2.3.23. I don't know what it implies (if it implies something). Mark, can you find a fix?
--
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
Quoted 10 lines · Jean Delvare
Quoted 3 lines
Actually, 2.2 kernels don't have the
include/linux/bootmem.hfile. As 2.4.0 does have it, the file must have been added in a 2.3 kernel.The file was added in Linux 2.3.23. I don't know what it implies (if it implies something). Mark, can you find a fix?
--
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
fixed. hopefully that's the last problem... let us know. thanks
mds
Quoted 2 lines
Khali, awaiting your OK...
Well, we still have problems with 2.2 kernels:
depmod: *** Unresolved symbols in /lib/modules/2.2.22/misc/i2c-amd8111.o
depmod: pci_resource_start
depmod: pci_get_drvdata
depmod: pci_set_drvdata
depmod: pci_resource_flags
depmod: i2c_amd8111_init
depmod: *** Unresolved symbols in /lib/modules/2.2.22/misc/dmi_scan.o
depmod: isa_memcpy_fromio
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
Quoted 6 lines
Wow, I got a fix in 15 minutes from Vojtech!
Try it now...
I'm not actually doing a depmod against 2.2,
but I'm compiling against 2.2 and using nm -u to check for missing symbols, it looks ok...
It's OK for 2.2.20, 2.2.22 and 2.2.23. As I won't do any test on 2.4.20 for now (no acpi nor cpufreq patch being available yet), a release is OK for me.
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
Quoted 3 lines
why did you back out MODPREF in the makefiles? I liked it the way it was... is there any way to keep $KERNELVERSION???
The new way doesn't work anymore since I modified the LINUX := lines. If the build symlink was not found, it would use /usr/src/linux as the base source tree but would install the modules in /lib/modules/$KERNELVERSION, which may not match the version present in /usr/src/linux.
An alternative is to use the same "if [ -L ... ]" thing for MODPREF as I used for LINUX. I can do it if you really want me to do so, but frankly, I don't see the idea. The way things are right now work, so?
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
Quoted 6 lines
I see. Well, MODPREF controls where the modules get installed. That should be the same as the kernel that we compiled against, which is the one defined in LINUX:= .
So don't you think MODPREF should do the "-L" thing? But I don't know what happens if we default to/usr/src/linux...
If we default to /usr/src/linux, it means that we don't use the release of the currently running version of Linux. So, KERNELVERSION is useless. The only way we have to know where the modules should be installed is to look in /usr/src/linux and see where this kernel has installed its modules. This is exactly what is done right now.
If we didn't default to /usr/src/linux, it means that we know where to install the modules, and we could use KERNELVERSION. But, on the other hand, we built LINUX from KERNELVERSION (through the build symlink), so the method above will also work.
I don't see the point in creating a complex expression that does different things for these two cases when the first one will work for both (and has obviously proven to work well for years).
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
Khali, awaiting your OK...
Quoted 32 lines · Philip Edelbrock
Lots of great work in the last few weeks. Good job! Particularly Jean, Mark, and Kyosti!
Mark- I'll wait for a green light from you to make the 2.7.0 release.
Phil
Quoted 22 lines · Mark D. Studebaker
Quoted 4 lines · Jean Delvare
Quoted 4 lines
Actually, 2.2 kernels don't have the
include/linux/bootmem.hfile. As 2.4.0 does have it, the file must have been added in a 2.3 kernel.Quoted 8 lines
The file was added in Linux 2.3.23. I don't know what it implies (if it implies something). Mark, can you find a fix?
--
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/fixed. hopefully that's the last problem... let us know. thanks
mds
Lots of great work in the last few weeks. Good job! Particularly Jean, Mark, and Kyosti!
Mark- I'll wait for a green light from you to make the 2.7.0 release.
Phil
Quoted 22 lines · Mark D. Studebaker
Quoted 4 lines · Jean Delvare
Quoted 4 lines
Actually, 2.2 kernels don't have the
include/linux/bootmem.hfile. As 2.4.0 does have it, the file must have been added in a 2.3 kernel.Quoted 8 lines
The file was added in Linux 2.3.23. I don't know what it implies (if it implies something). Mark, can you find a fix?
--
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/fixed. hopefully that's the last problem... let us know. thanks
mds
will look at at tonight.
Can you also try against 2.2.23 (which worked for me and for Vojtech)
Quoted 17 lines · Jean Delvare
Quoted 2 lines
Khali, awaiting your OK...
Well, we still have problems with 2.2 kernels:
depmod: *** Unresolved symbols in /lib/modules/2.2.22/misc/i2c-amd8111.o depmod: pci_resource_start depmod: pci_get_drvdata depmod: pci_set_drvdata depmod: pci_resource_flags depmod: i2c_amd8111_init depmod: *** Unresolved symbols in /lib/modules/2.2.22/misc/dmi_scan.o depmod: isa_memcpy_fromio--
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
I fixed (hopefully) dmi_scan; I asked Vojtech if he can fix amd8111 quickly;
if not I can put back the 2.4-only fix for it into the makefile. Will let you know.
Quoted 17 lines · Jean Delvare
Quoted 2 lines
Khali, awaiting your OK...
Well, we still have problems with 2.2 kernels:
depmod: *** Unresolved symbols in /lib/modules/2.2.22/misc/i2c-amd8111.o depmod: pci_resource_start depmod: pci_get_drvdata depmod: pci_set_drvdata depmod: pci_resource_flags depmod: i2c_amd8111_init depmod: *** Unresolved symbols in /lib/modules/2.2.22/misc/dmi_scan.o depmod: isa_memcpy_fromio--
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
Wow, I got a fix in 15 minutes from Vojtech!
Try it now...
I'm not actually doing a depmod against 2.2,
but I'm compiling against 2.2 and using nm -u to check for missing symbols, it looks ok...
Quoted 24 lines · Mark D. Studebaker
I fixed (hopefully)
dmi_scan; I asked Vojtech if he can fix amd8111 quickly;
if not I can put back the 2.4-only fix for it into the makefile. Will let you know.Quoted 17 lines · Jean Delvare
Quoted 2 lines
Khali, awaiting your OK...
Well, we still have problems with 2.2 kernels:
depmod: *** Unresolved symbols in /lib/modules/2.2.22/misc/i2c-amd8111.o depmod: pci_resource_start depmod: pci_get_drvdata depmod: pci_set_drvdata depmod: pci_resource_flags depmod: i2c_amd8111_init depmod: *** Unresolved symbols in /lib/modules/2.2.22/misc/dmi_scan.o depmod: isa_memcpy_fromio--
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
why did you back out MODPREF in the makefiles?
I liked it the way it was... is there any way to keep $KERNELVERSION???
Quoted 14 lines · Jean Delvare
Quoted 6 lines
Wow, I got a fix in 15 minutes from Vojtech!
Try it now...
I'm not actually doing a depmod against 2.2,
but I'm compiling against 2.2 and using nm -u to check for missing symbols, it looks ok...It's OK for 2.2.20, 2.2.22 and 2.2.23. As I won't do any test on 2.4.20 for now (no acpi nor cpufreq patch being available yet), a release is OK for me.
--
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
I see. Well, MODPREF controls where the modules get installed. That should be the same as the kernel that we compiled against, which is the one defined in LINUX:= .
So don't you think MODPREF should do the "-L" thing? But I don't know what happens if we default to /usr/src/linux...
Quoted 18 lines · Jean Delvare
Quoted 4 lines
why did you back out MODPREF in the makefiles? I liked it the way it was... is there any way to keep $KERNELVERSION???
The new way doesn't work anymore since I modified the LINUX := lines. If the build symlink was not found, it would use
/usr/src/linuxas the base source tree but would install the modules in/lib/modules/$KERNELVERSION, which may not match the version present in/usr/src/linux.An alternative is to use the same "if [ -L ... ]" thing for MODPREF as I used for LINUX. I can do it if you really want me to do so, but frankly, I don't see the idea. The way things are right now work, so?
--
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
I'm a little confused about the reference to the running kernel? In any case, just a quick comment which may or may not conflict with what is being discussed:
The kernel which the system happens to be running at the time we are building lm-sensors is completely unrelated to what we are building /against/ (or where we should install the resulting modules), right?
Phil
Quoted 25 lines · Jean Delvare
Quoted 7 lines
I see. Well, MODPREF controls where the modules get installed. That should be the same as the kernel that we compiled against, which is the one defined in LINUX:= .
So don't you think MODPREF should do the "-L" thing? But I don't know what happens if we default to/usr/src/linux...If we default to
/usr/src/linux, it means that we don't use the release of the currently running version of Linux. So, KERNELVERSION is useless. The only way we have to know where the modules should be installed is to look in/usr/src/linuxand see where this kernel has installed its modules. This is exactly what is done right now.If we didn't default to
/usr/src/linux, it means that we know where to install the modules, and we could use KERNELVERSION. But, on the other hand, we built LINUX from KERNELVERSION (through the build symlink), so the method above will also work.I don't see the point in creating a complex expression that does different things for these two cases when the first one will work for both (and has obviously proven to work well for years).
I didn't really mean "default to /usr/src/linux", I meant "when you had a kernel 2.2, so you were using /usr/src/linux".
I understand what you are doing now. I was a little confused, sorry.
Phil, the scheme is that if LINUX= is not specified on the make command line, we build against the sources for the running kernel
(as linked to in /lib/modules/uname -r) if that link is present. If not, we build against /usr/src/linux.
So the running kernel is not 'completely unrelated'.
We made this change a few weeks ago. We think it's better than /usr/src/linux because it is much more likely to have the current kernel source in it (which is indeed what most people want to build against).
It also matches current practice in other packages I've seen. Redhat, for example, doesn't seem to have the current source in /usr/src/linux.
Khali's ready for release and so am I. Phil, if you are happy, go ahead. p.s. I already upped the libsensors library version in preparation for the release.
mds
Quoted 25 lines · Jean Delvare
Quoted 6 lines
I see. Well, MODPREF controls where the modules get installed. That should be the same as the kernel that we compiled against, which is the one defined in LINUX:= .
So don't you think MODPREF should do the "-L" thing? But I don't know what happens if we default to/usr/src/linux...If we default to
/usr/src/linux, it means that we don't use the release of the currently running version of Linux. So, KERNELVERSION is useless. The only way we have to know where the modules should be installed is to look in/usr/src/linuxand see where this kernel has installed its modules. This is exactly what is done right now.If we didn't default to
/usr/src/linux, it means that we know where to install the modules, and we could use KERNELVERSION. But, on the other hand, we built LINUX from KERNELVERSION (through the build symlink), so the method above will also work.I don't see the point in creating a complex expression that does different things for these two cases when the first one will work for both (and has obviously proven to work well for years).
--
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
Ah OK, it sounds fine then. As a fallback to the explicit method not being present, it sounds reasonable.
It sounds like we are ready for release! I'll plan on doing it either tonight or in the next day or so. If I don't hear any issues crop up, I'll assume I can go ahead with it. In the mean time, feel free to review documentation or read-me's if you have a minute to make sure they still make sense.
Again, great work guys!
Phil
Quoted 56 lines · Mark Studebaker
I didn't really mean "default to
/usr/src/linux", I meant "when you had a kernel 2.2, so you were using/usr/src/linux".I understand what you are doing now. I was a little confused, sorry.
Phil, the scheme is that if LINUX= is not specified on the make command line, we build against the sources for the running kernel
(as linked to in/lib/modules/uname -r) if that link is present. If not, we build against/usr/src/linux.So the running kernel is not 'completely unrelated'.
We made this change a few weeks ago. We think it's better than
/usr/src/linuxbecause it is much more likely to have the current kernel source in it (which is indeed what most people want to build against).
It also matches current practice in other packages I've seen. Redhat, for example, doesn't seem to have the current source in/usr/src/linux.Khali's ready for release and so am I. Phil, if you are happy, go ahead. p.s. I already upped the libsensors library version in preparation for the release.
mds
Quoted 27 lines · Jean Delvare
Quoted 7 lines
I see. Well, MODPREF controls where the modules get installed. That should be the same as the kernel that we compiled against, which is the one defined in LINUX:= .
So don't you think MODPREF should do the "-L" thing? But I don't know what happens if we default to/usr/src/linux...If we default to
/usr/src/linux, it means that we don't use the release of the currently running version of Linux. So, KERNELVERSION is useless. The only way we have to know where the modules should be installed is to look in/usr/src/linuxand see where this kernel has installed its modules. This is exactly what is done right now.If we didn't default to
/usr/src/linux, it means that we know where to install the modules, and we could use KERNELVERSION. But, on the other hand, we built LINUX from KERNELVERSION (through the build symlink), so the method above will also work.I don't see the point in creating a complex expression that does different things for these two cases when the first one will work for both (and has obviously proven to work well for years).
--
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/