nforce2 i2c module compilation
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Just wondering how to resolve this error I always get when trying to compile the lm sensors package (both from CVS pre- and post- 2.8.0 release and the final released 2.8.0) on Redhat 9 or Severn (RH9.0.93). I am using an ASUS A7N8X rev2 and was wanting to use the nforce2 sensor to try and get hardware monitoring much like Motherbaord monitor in windows, but for linux, going. Any help would be appreciated.
Jason Longland
*********************************************************************
All messages originating from me are digitally signed to ensure authenticity.
If any message is not signed it could be due to one of the following to reasons:
1. my email client isn't working and I've had to use the web browser
2. it isn't from me and could be a virus
All content contained herein is copyright (or copyleft...) of the sender.
All messages are scanned using the latest virus definitions for Norton Antivirus 2003 prior to sending.
*********************************************************************
-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0
iQA/AwUBPy+zc09XUfpwf1ScEQJjmQCgrK4kvecUL7HmtHASRysxOR36P/kAoLfa Jjt/nprz4Yf8WjQNa6kekFxo
=5IkO
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lmsensors_build.log
Type: application/octet-stream
Size: 64670 bytes
Desc: not available
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20030805/ee270889/lmsensors_build.obj
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
cool... ok...
Quoted 3 lines
1* Did you compile and install i2c-2.8.0 before trying to compile
lm_sensors? Did it produce any error or warning?
yes i certainly did in all cases, in one case where i had been using 2.4.21-ck3 i patched the kernel and set it up as modules that way just to try when running sensors-detect although i know that it doesn't patch the nforce2 i2c module in that way although i did find that alan cox included it in his 2.6.0-test1-ac3 patch, shame no one else does for 2.4 or any other kernel
Quoted 4 lines
2* Is
/lib/modules/2.4.20-19.9/buildpointing to a real directory, with sources that match your running kernel? Does this dir have a .config file that also match your current config?
by default with recent rh kernels it seems /lib/modules/<insert version here...>/build is actually a real directory, no symlinks involved, containing all the necessary headers and configuration bits and pieces to compile the 3rd party modules (or whatever the case may be)
at the moment though my kernel version is 2.4.21-something-or-ther... as i'm using severn, or trying to...
Quoted 2 lines
3* Is
/usr/include/asma real directory or a symlink? To what?
yes /usr/include/asm IS a real directory, again no symlinks containing i assume are the include headers for building asm related programs
Quoted 3 lines
4* What if you disable the i2c-nforce2 module (edit
kernel/busses/Module.mk)? Does the compilation fail on next module, or goes on?
no idea at the moment as i'm in windblows but will let you know when i give it a shot shortly
*********************************************************************
All messages originating from me are digitally signed to ensure authenticity.
If any message is not signed it could be due to one of the following to reasons:
1. my email client isn't working and I've had to use the web browser
2. it isn't from me and could be a virus
All content contained herein is copyright (or copyleft...) of the sender.
All messages are scanned using the latest virus definitions for Norton Antivirus 2003 prior to sending.
*********************************************************************
-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0
iQA/AwUBPzDBWk9XUfpwf1ScEQKwvQCfckdTWILz8mcssDW1NgTg5sa1bogAnjOJ 97Wog3ory/3gFY64tF1pmYfi
=9vtA
-----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
the /lib/modules thingo wasn't a symlink anymore after 8 to my notice... i checked it when i installed 9 and thought it very odd when it wasn't... i know that all my other kernels except arjan's 2.6 test ones use the symlink method
as to gcc3.3 it is the standard compiler with severn, although gcc3.2 is provided as a fallback in a gcc32-3.2.3-something-or-other.rpm (i think it is but it could still be 3.2.2 but i'm not sure...)
i'll give your steps a check through and let you know although i will admit i did try patching the kernel with the nvidia nforce agpgart driver in rh9, severn comes with it already included thankfully so a "vanilla" redhat kernel config should be easy...
Jason
*********************************************************************
All messages originating from me are digitally signed to ensure authenticity.
If any message is not signed it could be due to one of the following to reasons:
1. my email client isn't working and I've had to use the web browser
2. it isn't from me and could be a virus
All content contained herein is copyright (or copyleft...) of the sender.
All messages are scanned using the latest virus definitions for Norton Antivirus 2003 prior to sending.
*********************************************************************
- ----- Original Message -----
From: "Mark M. Hoffman" <[email protected]>
To: "Jason Longland" <[email protected]>
Cc: "Sensors" <[email protected]>
Sent: Wednesday, August 06, 2003 10:18 PM
Subject: Re: nforce2 i2c module compilation
Quoted 3 lines · Jason Longland
Quoted 2 lines
Quoted 2 lines
2* Is
/lib/modules/2.4.20-19.9/buildpointing to a real directory,
with
Quoted 7 lines
Quoted 7 lines
Quoted 3 lines
sources that match your running kernel? Does this dir have a .config file that also match your current config?
by default with recent rh kernels it seems /lib/modules/<insert version here...>/build is actually a real directory, no symlinks involved, containing all the necessary headers and configuration bits and pieces
to
Quoted 10 lines
Quoted 1 line
compile the 3rd party modules (or whatever the case may be)
No. It's a symlink, or it *should* be...
mark@jupiter:9[1]$ cat /etc/issue Red Hat Linux release 9 (Shrike) Kernel \r on an \mmark@jupiter:9[2]$ uname -a Linux jupiter.solarsys.private 2.4.20-19.9 #1 Tue Jul 15 17:18:13 EDT 2003
i686 i686 i386 GNU/Linux
Quoted 3 lines
mark@jupiter:9[3]$ cd /lib/modules/2.4.20-19.9 mark@jupiter:9[4]$ ls -lad build lrwxrwxrwx 1 root root 34 Aug 3 17:20 build ->
./../../usr/src/linux-2.4.20-19.9
Quoted 3 lines
mark@jupiter:9[5]$
Quoted 1 line
at the moment though my kernel version is 2.4.21-something-or-ther... as
i'm
Quoted 34 lines
Quoted 1 line
using severn, or trying to...
Maybe they changed this symlink in severn but I very much doubt it.
The only other thing I notice is that you have gcc 3.3, right? Did you build this yourself? RedHat doesn't provide it yet.
* * * * * * * * * *
Step by step i2c &
lm_sensors2.8.0 on RH9 (derived from my earlier
message: http://archives.andrew.net.au/lm-sensors/msg02553.html):1) Install the appropriate kernel-source RPM. Copy the config file that matches your kernel into its proper place, something like this:
$ cp /usr/src/linux-2.4.20-9/configs/kernel-2.4.20-i686.config \ /usr/src/linux-2.4.20-9/.config2) Do *not* do anything else in that tree. Don't "make clean", don't "make dep", nothing. That screws it all up. Uninstall & reinstall the RPM if you must.
NOTE: from here on, I assume you're already running the kernel that matches the config above. That does make it easier.
3) There is no step 3 anymore ;)
4) Now build & install I2C.
NOTE: If you're using the same tree which failed to build earlier, please do a "make clean" first.
5) Now build & install
lm_sensors2; same note as above.
Quoted 13 lines
6) Run sensors-detect, etc.
That's it! At i2c/sensors 2.8.0 things got much easier for RH users. The only difference from plain vanilla is that you have to remember to put that config file in place if you use RH kernels.
Regards,
Signature · 2 lines
Mark M. Hoffman [email protected]
-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0
iQA/AwUBPzD8uU9XUfpwf1ScEQIYcgCdFIyG0wv9gPNDhys+YgUhEcpH8TkAn0j3 Myh3N14meao50HghRqNBvR/k
=g3zE
-----END PGP SIGNATURE-----
Quoted 8 lines
Just wondering how to resolve this error I always get when trying to compile the lm sensors package (both from CVS pre- and post- 2.8.0 release and the final released 2.8.0) on Redhat 9 or Severn (RH9.0.93). I am using an ASUS A7N8X rev2 and was wanting to use the nforce2 sensor to try and get hardware monitoring much like Motherbaord monitor in windows, but for linux, going. Any help would be appreciated.
Strange error, never seen such, but I know Red Hat always add dozens of patches to their lm_sensors packages so maybe there is a reason. Anyway, let's see if we can help you.
1* Did you compile and install i2c-2.8.0 before trying to compile lm_sensors? Did it produce any error or warning?
2* Is /lib/modules/2.4.20-19.9/build pointing to a real directory, with sources that match your running kernel? Does this dir have a .config file that also match your current config?
3* Is /usr/include/asm a real directory or a symlink? To what?
4* What if you disable the i2c-nforce2 module (edit kernel/busses/Module.mk)? Does the compilation fail on next module, or goes on?
With this information, I hope we'll be able to help.
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
Quoted 10 lines · Jason Longland
Quoted 5 lines
2* Is
/lib/modules/2.4.20-19.9/buildpointing to a real directory, with sources that match your running kernel? Does this dir have a .config file that also match your current config?by default with recent rh kernels it seems /lib/modules/<insert version here...>/build is actually a real directory, no symlinks involved, containing all the necessary headers and configuration bits and pieces to compile the 3rd party modules (or whatever the case may be)
No. It's a symlink, or it *should* be...
mark@jupiter:9[1]$ cat /etc/issue Red Hat Linux release 9 (Shrike) Kernel \r on an \m
mark@jupiter:9[2]$ uname -a Linux jupiter.solarsys.private 2.4.20-19.9 #1 Tue Jul 15 17:18:13 EDT 2003 i686 i686 i386 GNU/Linux mark@jupiter:9[3]$ cd /lib/modules/2.4.20-19.9 mark@jupiter:9[4]$ ls -lad build lrwxrwxrwx 1 root root 34 Aug 3 17:20 build -> ../../../usr/src/linux-2.4.20-19.9 mark@jupiter:9[5]$
Quoted 2 lines
at the moment though my kernel version is 2.4.21-something-or-ther... as i'm using severn, or trying to...
Maybe they changed this symlink in severn but I very much doubt it.
The only other thing I notice is that you have gcc 3.3, right? Did you build this yourself? RedHat doesn't provide it yet.
* * * * * * * * * *
Step by step i2c & lm_sensors 2.8.0 on RH9 (derived from my earlier
message: http://archives.andrew.net.au/lm-sensors/msg02553.html):
1) Install the appropriate kernel-source RPM. Copy the config file that matches your kernel into its proper place, something like this:
$ cp /usr/src/linux-2.4.20-9/configs/kernel-2.4.20-i686.config \
/usr/src/linux-2.4.20-9/.config2) Do *not* do anything else in that tree. Don't "make clean", don't "make dep", nothing. That screws it all up. Uninstall & reinstall the RPM if you must.
NOTE: from here on, I assume you're already running the kernel that matches the config above. That does make it easier.
3) There is no step 3 anymore ;)
4) Now build & install I2C.
NOTE: If you're using the same tree which failed to build earlier, please do a "make clean" first.
5) Now build & install lm_sensors2; same note as above.
6) Run sensors-detect, etc.
That's it! At i2c/sensors 2.8.0 things got much easier for RH users. The only difference from plain vanilla is that you have to remember to put that config file in place if you use RH kernels.
Regards,
Signature · 2 lines
Mark M. Hoffman [email protected]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
got a new build log for you, again i don't have shrike installed but severn...
I commented out the line for the nforce2 in the lm_sensors-2.8.0/kernel/busses/Modules.mk file and this build file is the result. I also followed your steps you sent last time to produce that. I have to admit I don't like the default kernel Redhat provided as it shutsdown my USB ports for whatever reason which makes connecting to the internet via my 56k modem impossible along with the mouse so all my emails come from Windows until I can build things for the 2.4.21-20.1.2024.2.1.nptlcustom kernel. S'pose that's what I get for jumping on and using a beta.
Jason
*********************************************************************
All messages originating from me are digitally signed to ensure authenticity.
If any message is not signed it could be due to one of the following to reasons:
1. my email client isn't working and I've had to use the web browser
2. it isn't from me and could be a virus
All content contained herein is copyright (or copyleft...) of the sender.
All messages are scanned using the latest virus definitions for Norton Antivirus 2003 prior to sending.
*********************************************************************
- ----- Original Message -----
From: "Mark M. Hoffman" <[email protected]>
To: "Jason Longland" <[email protected]>
Cc: "Sensors" <[email protected]>
Sent: Wednesday, August 06, 2003 10:18 PM
Subject: Re: nforce2 i2c module compilation
Quoted 3 lines · Jason Longland
Quoted 2 lines
Quoted 2 lines
2* Is
/lib/modules/2.4.20-19.9/buildpointing to a real directory,
with
Quoted 7 lines
Quoted 7 lines
Quoted 3 lines
sources that match your running kernel? Does this dir have a .config file that also match your current config?
by default with recent rh kernels it seems /lib/modules/<insert version here...>/build is actually a real directory, no symlinks involved, containing all the necessary headers and configuration bits and pieces
to
Quoted 10 lines
Quoted 1 line
compile the 3rd party modules (or whatever the case may be)
No. It's a symlink, or it *should* be...
mark@jupiter:9[1]$ cat /etc/issue Red Hat Linux release 9 (Shrike) Kernel \r on an \mmark@jupiter:9[2]$ uname -a Linux jupiter.solarsys.private 2.4.20-19.9 #1 Tue Jul 15 17:18:13 EDT 2003
i686 i686 i386 GNU/Linux
Quoted 3 lines
mark@jupiter:9[3]$ cd /lib/modules/2.4.20-19.9 mark@jupiter:9[4]$ ls -lad build lrwxrwxrwx 1 root root 34 Aug 3 17:20 build ->
./../../usr/src/linux-2.4.20-19.9
Quoted 3 lines
mark@jupiter:9[5]$
Quoted 1 line
at the moment though my kernel version is 2.4.21-something-or-ther... as
i'm
Quoted 34 lines
Quoted 1 line
using severn, or trying to...
Maybe they changed this symlink in severn but I very much doubt it.
The only other thing I notice is that you have gcc 3.3, right? Did you build this yourself? RedHat doesn't provide it yet.
* * * * * * * * * *
Step by step i2c &
lm_sensors2.8.0 on RH9 (derived from my earlier
message: http://archives.andrew.net.au/lm-sensors/msg02553.html):1) Install the appropriate kernel-source RPM. Copy the config file that matches your kernel into its proper place, something like this:
$ cp /usr/src/linux-2.4.20-9/configs/kernel-2.4.20-i686.config \ /usr/src/linux-2.4.20-9/.config2) Do *not* do anything else in that tree. Don't "make clean", don't "make dep", nothing. That screws it all up. Uninstall & reinstall the RPM if you must.
NOTE: from here on, I assume you're already running the kernel that matches the config above. That does make it easier.
3) There is no step 3 anymore ;)
4) Now build & install I2C.
NOTE: If you're using the same tree which failed to build earlier, please do a "make clean" first.
5) Now build & install
lm_sensors2; same note as above.
Quoted 13 lines
6) Run sensors-detect, etc.
That's it! At i2c/sensors 2.8.0 things got much easier for RH users. The only difference from plain vanilla is that you have to remember to put that config file in place if you use RH kernels.
Regards,
Signature · 2 lines
Mark M. Hoffman [email protected]
-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0
iQA/AwUBPzLf0k9XUfpwf1ScEQLq8wCeNtdcyhJLAemz9V1FkAxmWJYP7ooAn1Ua 72xPAP4ic6sHJI3CJPRh6nvR
=AtF7
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lmsensors-build2.log
Type: application/octet-stream
Size: 52216 bytes
Desc: not available
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20030808/5a707f20/lmsensors-build2.obj