mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-08 16:11:26 +00:00
Delete mkdev.sh. i2c device nodes are created by devfs or udev on most
2.6 kernel-based systems, for others they should have been created at system installation time. If they are missing, sensors-detect will run MAKEDEV to create them. git-svn-id: http://lm-sensors.org/svn/lm-sensors/branches/lm-sensors-3.0.0@4593 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
982afbce24
commit
a83ef92c9a
6 files changed
+8
-44
No files matched your search
@@ -22,6 +22,7 @@ SVN HEAD
|
||||
Program isadump: Detect when address bit 7 is a busy flag
|
||||
Fix Super-I/O exit sequence for Winbond/Fintek chips
|
||||
Program matorb/displayit: Delete, obsolete
|
||||
Program mkdev.sh: Delete, obsolete
|
||||
Program mkpatch: Delete
|
||||
Program fancontrol: Use let for arithmetic evaluation
|
||||
No longer need awk and grep
|
||||
|
||||
@@ -157,11 +157,6 @@ on which it depends.
|
||||
You can not use demand-loading; you will have to issue explicit modprobe
|
||||
instructions.
|
||||
|
||||
If you have an older installation, you will probably have to create the
|
||||
i2c device files in the /dev directory. They are called /dev/i2c-%d,
|
||||
and are character devices with major device number 89 and minor device
|
||||
number %d. The script prog/mkdev/mkdev.sh will create the files for you.
|
||||
|
||||
There is a scanning program installed called sensors-detect. It
|
||||
will scan all available I2C and SMBus adapters for all known devices,
|
||||
and will also look for ISA, PCI and Super-I/O chips with sensors,
|
||||
|
||||
@@ -691,7 +691,7 @@ settings for the Processor Core voltage (often in0_min and in0_max) in
|
||||
that file so that they don't depend on vid.
|
||||
|
||||
The CPU nominal voltage is computed from VID lines according to a
|
||||
formula that depends on the CPU type. Since Linux 2.6.14, the right
|
||||
formula that depends on the CPU type. Since Linux 2.6.9, the right
|
||||
formula is selected automatically. See `doc/vid' for more information.
|
||||
|
||||
4.8 I read sensor values several times a second, but they are only updated only each second or so. Why?
|
||||
@@ -1063,9 +1063,9 @@ not loaded and you did not run sensors-detect as root.
|
||||
-----------------------------------------------------
|
||||
|
||||
Your `/dev/i2c-0,' `/dev/i2c0', or `/dev/i2c/0' files do not exist or
|
||||
you did not run `sensors-detect' as root. Run the script
|
||||
`prog/mkdev/mkdev.sh' to create the `/dev/i2c-x' files. Run `devfs' in
|
||||
the kernel to get the `/dev/i2c/x' files.
|
||||
you did not run `sensors-detect' as root. Use `MAKEDEV' or `mknod' to
|
||||
create the `/dev/i2c-x' files. Run `devfs' in the kernel to get the
|
||||
`/dev/i2c/x' files.
|
||||
|
||||
4.24.3 Sensors-detect doesn't find any sensors!
|
||||
-----------------------------------------------
|
||||
|
||||
@@ -1106,7 +1106,7 @@ and change the min and max settings for the Processor Core voltage
|
||||
(often in0_min and in0_max) in that file so that they don't depend on vid.
|
||||
|
||||
<p>The CPU nominal voltage is computed from VID lines according to a formula
|
||||
that depends on the CPU type. Since Linux 2.6.14, the right formula is
|
||||
that depends on the CPU type. Since Linux 2.6.9, the right formula is
|
||||
selected automatically.
|
||||
See <samp><span class="file">doc/vid</span></samp> for more information.
|
||||
|
||||
@@ -1625,7 +1625,7 @@ was not loaded and you did not run sensors-detect as root.
|
||||
|
||||
<p>Your <samp><span class="file">/dev/i2c-0,</span></samp> <samp><span class="file">/dev/i2c0</span></samp>, or <samp><span class="file">/dev/i2c/0</span></samp> files do not exist
|
||||
or you did not run <samp><span class="command">sensors-detect</span></samp> as root.
|
||||
Run the script <samp><span class="command">prog/mkdev/mkdev.sh</span></samp> to create the <samp><span class="file">/dev/i2c-x</span></samp> files.
|
||||
Use <samp><span class="command">MAKEDEV</span></samp> or <samp><span class="command">mknod</span></samp> to create the <samp><span class="file">/dev/i2c-x</span></samp> files.
|
||||
Run <samp><span class="command">devfs</span></samp> in the kernel to get the <samp><span class="file">/dev/i2c/x</span></samp> files.
|
||||
|
||||
<p><a name="Sensors_002ddetect-doesnt-find-any-sensors"></a>
|
||||
|
||||
@@ -1104,7 +1104,7 @@ was not loaded and you did not run sensors-detect as root.
|
||||
|
||||
Your @file{/dev/i2c-0,} @file{/dev/i2c0}, or @file{/dev/i2c/0} files do not exist
|
||||
or you did not run @command{sensors-detect} as root.
|
||||
Run the script @command{prog/mkdev/mkdev.sh} to create the @file{/dev/i2c-x} files.
|
||||
Use @command{MAKEDEV} or @command{mknod} to create the @file{/dev/i2c-x} files.
|
||||
Run @command{devfs} in the kernel to get the @file{/dev/i2c/x} files.
|
||||
|
||||
|
||||
|
||||
@@ -1,32 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Here you can set several defaults.
|
||||
|
||||
# The number of devices to create (max: 256)
|
||||
# If not provided on the command line, default to 32
|
||||
NUMBER=${1:-32}
|
||||
|
||||
# The owner and group of the devices
|
||||
OUSER=root
|
||||
OGROUP=root
|
||||
# The mode of the devices
|
||||
MODE=600
|
||||
|
||||
# This script doesn't need to be run if devfs is used
|
||||
if [ -r /proc/mounts ] ; then
|
||||
if grep -q "/dev devfs" /proc/mounts ; then
|
||||
echo "You do not need to run this script as your system uses devfs."
|
||||
exit;
|
||||
fi
|
||||
fi
|
||||
|
||||
i=0;
|
||||
|
||||
while [ $i -lt $NUMBER ] ; do
|
||||
if [ ! -c /dev/i2c-$i ] ; then
|
||||
echo /dev/i2c-$i
|
||||
mknod -m $MODE /dev/i2c-$i c 89 $i || exit
|
||||
chown "$OUSER:$OGROUP" /dev/i2c-$i || exit
|
||||
fi
|
||||
i=$[$i + 1]
|
||||
done
|
||||
Reference in new issue
Block a user