"Can't access procfs/sysfs file", but all seems ok ??
LM Sensors Group:
I compiled and installed the the latest lm_sensors, enabled i2c in my kernel an compiled it but it doesn't work. I have i2c 2.8.8 and sysfs and procfs support compiled in my kernel. The only thing i see wrong i when i boot intro linux (Mandrake 9.1) the first thing i see are i2c error messages.
Here's the code:
[szakats@nitro lm_sensors-2.8.8]$ sensors
Can't access procfs/sysfs file
Unable to find i2c bus information;
For 2.6 kernels, make sure you have mounted sysfs and done 'modprobe i2c_sensor'!
For older kernels, make sure you have done 'modprobe i2c-proc'!
[root@nitro lm_sensors-2.8.8]# ls /proc/sys
debug/ dev/ fs/ kernel/ net/ proc/ sunrpc/ vm/ [root@nitro lm_sensors-2.8.8]# grep 'SYSFS' /usr/src/linux/.config CONFIG_SYSFS=y
[root@nitro lm_sensors-2.8.8]# ls /sys
ls: /sys: No such file or directory (in the faq it says this
directory should exist ???)
[root@nitro lm_sensors-2.8.8]# i2cdetect -V
i2cdetect version 2.8.8
[root@nitro lm_sensors-2.8.8]# i2cdetect -l (no output) [root@nitro lm_sensors-2.8.8]# modprobe i2c_sensor
FATAL: Module i2c_sensor not found. (it's compiled into the kernel)
[root@nitro lm_sensors-2.8.8]# grep 'I2C' /usr/src/linux/.config # I2C supportCONFIG_I2C=yCONFIG_I2C_CHARDEV=y
# I2C AlgorithmsCONFIG_I2C_ALGOBIT=yCONFIG_I2C_ALGOPCF=mCONFIG_I2C_ALGOPCA=y
# I2C Hardware Bus supportCONFIG_I2C_ALI1535=mCONFIG_I2C_ALI1563=mCONFIG_I2C_ALI15X3=mCONFIG_I2C_AMD756=mCONFIG_I2C_AMD8111=mCONFIG_I2C_ELEKTOR=mCONFIG_I2C_I801=yCONFIG_I2C_I810=yCONFIG_I2C_ISA=yCONFIG_I2C_NFORCE2=yCONFIG_I2C_PARPORT=yCONFIG_I2C_PARPORT_LIGHT=yCONFIG_I2C_PIIX4=mCONFIG_I2C_PROSAVAGE=yCONFIG_I2C_SAVAGE4=yCONFIG_I2C_SIS5595=mCONFIG_I2C_SIS630=mCONFIG_I2C_SIS96X=mCONFIG_I2C_VIA=yCONFIG_I2C_VIAPRO=yCONFIG_I2C_VOODOO3=mCONFIG_I2C_PCA_ISA=yCONFIG_I2C_SENSOR=y
# Other I2C Chip support
# CONFIG_I2C_DEBUG_CORE is not set
# CONFIG_I2C_DEBUG_ALGO is not set
# CONFIG_I2C_DEBUG_BUS is not set
# CONFIG_I2C_DEBUG_CHIP is not set
# CONFIG_FB_RIVA_I2C is not setCONFIG_FB_RADEON_I2C=y
[root@nitro lm_sensors-2.8.8]# grep 'SENSOR' /usr/src/linux/.config CONFIG_I2C_SENSOR=yCONFIG_SENSORS_ADM1021=yCONFIG_SENSORS_ADM1025=yCONFIG_SENSORS_ADM1031=yCONFIG_SENSORS_ASB100=yCONFIG_SENSORS_DS1621=yCONFIG_SENSORS_FSCHER=yCONFIG_SENSORS_GL518SM=yCONFIG_SENSORS_IT87=yCONFIG_SENSORS_LM75=yCONFIG_SENSORS_LM77=yCONFIG_SENSORS_LM78=yCONFIG_SENSORS_LM80=yCONFIG_SENSORS_LM83=yCONFIG_SENSORS_LM85=yCONFIG_SENSORS_LM90=yCONFIG_SENSORS_MAX1619=yCONFIG_SENSORS_SMSC47M1=yCONFIG_SENSORS_VIA686A=yCONFIG_SENSORS_W83781D=yCONFIG_SENSORS_W83L785TS=yCONFIG_SENSORS_W83627HF=yCONFIG_SENSORS_EEPROM=yCONFIG_SENSORS_PCF8574=yCONFIG_SENSORS_PCF8591=yCONFIG_SENSORS_RTC8564=y
[root@nitro lm_sensors-2.8.8]# vi /boot/log/messages "Dec 26 13:43:46 nitro kernel: i2c /dev entries driver
Dec 26 13:43:46 nitro kernel: i2c-parport: using default base 0x378 Dec 26 13:43:46 nitro kernel: i2c-pca-isa: i/o base 0x000330. irq 10 Dec 26 13:43:46 nitro kernel: i2c-algo-pca: bus is not idle. status is 0xff Dec 26 13:43:46 nitro last message repeated 11 times" (this is the
first thing i see when booting)
[root@nitro lm_sensors-2.8.8]# cat /proc/version
Linux version 2.6.9-nitro4 (root@nitro) (gcc version 3.4.2) #1 Sat Dec 25 16:25:24 EET 2004
[root@nitro lm_sensors-2.8.8]# lspcidrake
unknown : VIA Technologies Inc|VT8377 CPU to PCI Bridge
unknown : VIA Technologies Inc|PCI-to-PCI Bridge (AGP 2.0/3.0)
saa7134 : Philips Semiconductors|SAA7134
unknown : VIA Technologies Inc|VT8233A PCI to ISA Bridge
unknown : VIA Technologies|VT82C586 IDE [Apollo]
snd-via82xx : VIA Technologies|VT8233 [AC97 Audio Controller]
via-rhine : VIA Technologies|VT6102 [Rhine II 10/100]
Card:NVIDIA GeForce4 (generic): NVidia|0x326
I hope i included everything relevant.
Best wishes
Steven
mount none -t sysfs /sys
Quoted 125 lines · Szakats Istvan
LM Sensors Group:
I compiled and installed the the latest
lm_sensors, enabled i2c in my kernel an compiled it but it doesn't work. I have i2c 2.8.8 and sysfs and procfs support compiled in my kernel. The only thing i see wrong i when i boot intro linux (Mandrake 9.1) the first thing i see are i2c error messages.
Here's the code:[szakats@nitro lm_sensors-2.8.8]$ sensors
Can't access procfs/sysfs file
Unable to find i2c bus information;
For 2.6 kernels, make sure you have mounted sysfs and done 'modprobei2c_sensor'!
For older kernels, make sure you have done 'modprobe i2c-proc'![root@nitro lm_sensors-2.8.8]# ls
/proc/sys
debug/ dev/fs/kernel/net/proc/ sunrpc/ vm/ [root@nitro lm_sensors-2.8.8]# grep 'SYSFS'/usr/src/linux/.configCONFIG_SYSFS=y
[root@nitro lm_sensors-2.8.8]# ls /sys
ls: /sys: No such file or directory (in the faq it says this
directory should exist ???)[root@nitro lm_sensors-2.8.8]# i2cdetect -V
i2cdetect version 2.8.8
[root@nitro lm_sensors-2.8.8]# i2cdetect -l (no output) [root@nitro lm_sensors-2.8.8]# modprobei2c_sensor
FATAL: Modulei2c_sensornot found. (it's compiled into the kernel)
[root@nitro lm_sensors-2.8.8]# grep 'I2C'/usr/src/linux/.config# I2C supportCONFIG_I2C=yCONFIG_I2C_CHARDEV=y
# I2C AlgorithmsCONFIG_I2C_ALGOBIT=yCONFIG_I2C_ALGOPCF=mCONFIG_I2C_ALGOPCA=y
# I2C Hardware Bus supportCONFIG_I2C_ALI1535=mCONFIG_I2C_ALI1563=mCONFIG_I2C_ALI15X3=mCONFIG_I2C_AMD756=mCONFIG_I2C_AMD8111=mCONFIG_I2C_ELEKTOR=mCONFIG_I2C_I801=yCONFIG_I2C_I810=yCONFIG_I2C_ISA=yCONFIG_I2C_NFORCE2=yCONFIG_I2C_PARPORT=yCONFIG_I2C_PARPORT_LIGHT=yCONFIG_I2C_PIIX4=mCONFIG_I2C_PROSAVAGE=yCONFIG_I2C_SAVAGE4=yCONFIG_I2C_SIS5595=mCONFIG_I2C_SIS630=mCONFIG_I2C_SIS96X=mCONFIG_I2C_VIA=yCONFIG_I2C_VIAPRO=yCONFIG_I2C_VOODOO3=mCONFIG_I2C_PCA_ISA=yCONFIG_I2C_SENSOR=y
# Other I2C Chip support
#CONFIG_I2C_DEBUG_COREis not set
#CONFIG_I2C_DEBUG_ALGOis not set
#CONFIG_I2C_DEBUG_BUSis not set
#CONFIG_I2C_DEBUG_CHIPis not set
#CONFIG_FB_RIVA_I2Cis not setCONFIG_FB_RADEON_I2C=y
[root@nitro lm_sensors-2.8.8]# grep 'SENSOR'/usr/src/linux/.configCONFIG_I2C_SENSOR=yCONFIG_SENSORS_ADM1021=yCONFIG_SENSORS_ADM1025=yCONFIG_SENSORS_ADM1031=yCONFIG_SENSORS_ASB100=yCONFIG_SENSORS_DS1621=yCONFIG_SENSORS_FSCHER=yCONFIG_SENSORS_GL518SM=yCONFIG_SENSORS_IT87=yCONFIG_SENSORS_LM75=yCONFIG_SENSORS_LM77=yCONFIG_SENSORS_LM78=yCONFIG_SENSORS_LM80=yCONFIG_SENSORS_LM83=yCONFIG_SENSORS_LM85=yCONFIG_SENSORS_LM90=yCONFIG_SENSORS_MAX1619=yCONFIG_SENSORS_SMSC47M1=yCONFIG_SENSORS_VIA686A=yCONFIG_SENSORS_W83781D=yCONFIG_SENSORS_W83L785TS=yCONFIG_SENSORS_W83627HF=yCONFIG_SENSORS_EEPROM=yCONFIG_SENSORS_PCF8574=yCONFIG_SENSORS_PCF8591=yCONFIG_SENSORS_RTC8564=y
[root@nitro lm_sensors-2.8.8]# vi/boot/log/messages"Dec 26 13:43:46 nitro kernel: i2c /dev entries driverDec 26 13:43:46 nitro kernel: i2c-parport: using default base 0x378 Dec 26 13:43:46 nitro kernel: i2c-pca-isa: i/o base 0x000330. irq 10 Dec 26 13:43:46 nitro kernel: i2c-algo-pca: bus is not idle. status is 0xff Dec 26 13:43:46 nitro last message repeated 11 times" (this is thefirst thing i see when booting)
[root@nitro lm_sensors-2.8.8]# cat
/proc/version
Linux version 2.6.9-nitro4 (root@nitro) (gcc version 3.4.2) #1 Sat Dec 25 16:25:24 EET 2004
[root@nitro lm_sensors-2.8.8]# lspcidrake
unknown : VIA Technologies Inc|VT8377 CPU to PCI Bridge
unknown : VIA Technologies Inc|PCI-to-PCI Bridge (AGP 2.0/3.0)
saa7134 : Philips Semiconductors|SAA7134
unknown : VIA Technologies Inc|VT8233A PCI to ISA Bridge
unknown : VIA Technologies|VT82C586 IDE [Apollo]
snd-via82xx : VIA Technologies|VT8233 [AC97 Audio Controller]
via-rhine : VIA Technologies|VT6102 [Rhine II 10/100]
Card:NVIDIA GeForce4 (generic): NVidia|0x326I hope i included everything relevant.
Best wishes
Steven
We'll consider it but frankly the error message sensors prints out
"For 2.6 kernels, make sure you have mounted sysfs"
seems to work for most people :)
Quoted 13 lines · Szakats Istvan
Quoted 1 line · Mark Studebaker
mount none -t sysfs /sys
Wow! thanks a lot for the quick reply and it solved the whole thing too. 10X!!! ;)
Just one thing though: I failed to find this in the faq. Could you put this mount command where it deals with the error i've had?Happy holidays!
Steven
Side notes:
Quoted 5 lines
I compiled and installed the the latest
lm_sensors, enabled i2c in my kernel an compiled it but it doesn't work. I have i2c 2.8.8 and sysfs and procfs support compiled in my kernel. The only thing i see wrong i when i boot intro linux (Mandrake 9.1) the first thing i see are i2c error messages.
You hopefully don't have i2c 2.8.8, since you are running a 2.6 kernel and i2c 2.8.x is meant for 2.4 kernels.
Quoted 4 lines
CONFIG_I2C_PARPORT=yCONFIG_I2C_PARPORT_LIGHT=y
(...)CONFIG_I2C_PCA_ISA=y
Don't do that. I guess you do not need these drivers, and since the devices they were written for can only hardly be detected, you are asking for trouble by embedding them in the kernel.
Quoted 19 lines
[root@nitro lm_sensors-2.8.8]# grep 'SENSOR'
/usr/src/linux/.configCONFIG_I2C_SENSOR=yCONFIG_SENSORS_ADM1021=yCONFIG_SENSORS_ADM1025=yCONFIG_SENSORS_ADM1031=yCONFIG_SENSORS_ASB100=yCONFIG_SENSORS_DS1621=yCONFIG_SENSORS_FSCHER=yCONFIG_SENSORS_GL518SM=yCONFIG_SENSORS_IT87=yCONFIG_SENSORS_LM75=yCONFIG_SENSORS_LM77=yCONFIG_SENSORS_LM78=yCONFIG_SENSORS_LM80=yCONFIG_SENSORS_LM83=yCONFIG_SENSORS_LM85=yCONFIG_SENSORS_LM90=yCONFIG_SENSORS_MAX1619=yCONFIG_SENSORS_SMSC47M1=y
Quoted 8 lines
CONFIG_SENSORS_VIA686A=yCONFIG_SENSORS_W83781D=yCONFIG_SENSORS_W83L785TS=yCONFIG_SENSORS_W83627HF=yCONFIG_SENSORS_EEPROM=yCONFIG_SENSORS_PCF8574=yCONFIG_SENSORS_PCF8591=yCONFIG_SENSORS_RTC8564=y
Same here. You certainly don't have all these, but the probings for i2c devices are slow and not always reliable. Make these modules, don't include them in the kernel. Removing all these drivers from the kernel will significantly speed up boot.
Quoted 7 lines
[root@nitro lm_sensors-2.8.8]# vi
/boot/log/messages"Dec 26 13:43:46 nitro kernel: i2c /dev entries driverDec 26 13:43:46 nitro kernel: i2c-parport: using default base 0x378 Dec 26 13:43:46 nitro kernel: i2c-pca-isa: i/o base 0x000330. irq 10 Dec 26 13:43:46 nitro kernel: i2c-algo-pca: bus is not idle. status is
0xffDec 26 13:43:46 nitro last message repeated 11 times" (this is the first thing i see when booting)
These errors are because of CONFIG_I2C_PARPORT=y and CONFIG_I2C_PCA_ISA=y above. Make them n or m and the errors will go away.
Signature · 2 lines
Jean Delvare http://khali.linux-fr.org/