QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1034|回复: 8

2.6.1内核的sensors问题

[复制链接]
发表于 2004-1-17 20:27:50 | 显示全部楼层 |阅读模式
fedora core 1
kernel 2.6.1-mm4
Lm_sensors 2.8.3

卸载了老版本的Lm_sensors。
make user;make user_install安装了2.8.3。
[root@localhost lm_sensors-2.8.3]# sensors
Can't access procfs/sysfs file
Unable to find i2c bus information;
For 2.6 kernels, make sure you have mounted sysfs!
For older kernels, make sure you have done 'modprobe i2c-proc'!

config文件
#
# I2C support
#
CONFIG_I2C=y
CONFIG_I2C_CHARDEV=y

#
# I2C Algorithms
#
# CONFIG_I2C_ALGOBIT is not set
# CONFIG_I2C_ALGOPCF is not set

#
# I2C Hardware Bus support
#
# CONFIG_I2C_ALI1535 is not set
# CONFIG_I2C_ALI15X3 is not set
# CONFIG_I2C_AMD756 is not set
# CONFIG_I2C_AMD8111 is not set
CONFIG_I2C_I801=y
CONFIG_I2C_ISA=y
# CONFIG_I2C_NFORCE2 is not set
# CONFIG_I2C_PIIX4 is not set
# CONFIG_SCx200_ACB is not set
# CONFIG_I2C_SIS5595 is not set
# CONFIG_I2C_SIS630 is not set
# CONFIG_I2C_SIS96X is not set
# CONFIG_I2C_VIAPRO is not set

#
# I2C Hardware Sensors Chip support
#
CONFIG_I2C_SENSOR=y
# CONFIG_SENSORS_ADM1021 is not set
CONFIG_SENSORS_EEPROM=m
# CONFIG_SENSORS_IT87 is not set
# CONFIG_SENSORS_LM75 is not set
# CONFIG_SENSORS_LM78 is not set
# CONFIG_SENSORS_LM83 is not set
# CONFIG_SENSORS_LM85 is not set
# CONFIG_SENSORS_VIA686A is not set
CONFIG_SENSORS_W83781D=y


呵呵,不好意思。2.6的sensors在也解决不了了
发表于 2004-1-17 23:54:09 | 显示全部楼层
呵呵,回来了啊
看看文件系统里是否有关于sysfs的支持选项,如果有,选上试试
回复

使用道具 举报

 楼主| 发表于 2004-1-18 00:41:58 | 显示全部楼层
[quote:ca48a4b039="llc"]呵呵,回来了啊
看看文件系统里是否有关于sysfs的支持选项,如果有,选上试试[/quote]
呵呵,说来真是惭愧阿

#
# Pseudo filesystems
#
CONFIG_PROC_FS=y
CONFIG_PROC_KCORE=y
CONFIG_SYSFS=y
# CONFIG_DEVFS_FS is not set
CONFIG_DEVPTS_FS=y
CONFIG_DEVPTS_FS_XATTR=y
CONFIG_DEVPTS_FS_SECURITY=y
CONFIG_TMPFS=y
# CONFIG_HUGETLBFS is not set
# CONFIG_HUGETLB_PAGE is not set
CONFIG_RAMFS=y
回复

使用道具 举报

发表于 2004-1-19 10:39:39 | 显示全部楼层
还不行吗?
看提示信息似乎sysfs需要mount上,但以前的版本好像都没这样做过,不知道如何mount呢
回复

使用道具 举报

 楼主| 发表于 2004-1-19 13:38:34 | 显示全部楼层
不知道。sysfs已经编译进内核了
回复

使用道具 举报

发表于 2004-1-19 19:37:17 | 显示全部楼层
LABEL=/                 /                       ext3    defaults        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
none                    /dev/pts                devpts  gid=5,mode=620  0 0
LABEL=/home             /home                   ext3    defaults        1 2
none                    /proc                   proc    defaults        0 0
none                    /dev/shm                tmpfs   defaults        0 0
/dev/hdd5               swap                    swap    defaults        0 0
none                   /sys                         sysfs     defaults        0 0
/dev/cdrom              /mnt/cdrom              udf,iso9660 noauto,user,kudzu,ro 0 0
/dev/sda1                /mnt/usb               vfat      noauto,user,exec,iocharset=gb2312 0 0
/dev/fd0                /mnt/floppy             auto    noauto,user,kudzu 0 0
这是我的fstab的内容,sysfs就写进这里边就行了
回复

使用道具 举报

 楼主| 发表于 2004-1-20 00:14:31 | 显示全部楼层
多谢,解决了

不过,
none /sys sysfs defaults 0 0

提示
mount: mount point /sys does not exist
none                    /proc/sys                      sysfs   defaults        0 0

就能使sensors正常使用了。
不过现在又有问题了,gkrellm 2.1.21,还是无法认出sensors
回复

使用道具 举报

发表于 2004-1-21 01:15:00 | 显示全部楼层
mkdir /sys
mount -t sysfs /sys sys
回复

使用道具 举报

 楼主| 发表于 2004-1-21 15:27:54 | 显示全部楼层
多谢各位,成功了。

mkdir /sys
none /sys sysfs defaults 0 0写入fstab
gkrellm 2.1.24

sensors和gkrellm都可以了
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-10-6 12:25 , Processed in 0.070804 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表