root/lm-sensors/trunk/prog/hotplug/README.p4b @ 2973

Revision 2973, 2.6 KB (checked in by mds, 8 years ago)

add advice for 2.6 kernels, from Rudolf's mail

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1What is it?
2-----------
3
4NOTE:
5This module is for 2.4 kernels only. For 2.6 kernels,
6activation is handled by the code in drivers/pci/quirks.c
7in the kernel source. If you have the latest 2.6 kernel and
8the quirks code does not activate your SMBus, try adding support
9in quirks.c, recompile and test your new kernel, and then
10submit a patch to us. Contact us if you need assistance.
11
12This is just a quick and dirty hack to get the hardware monitoring working
13on the ASUS P4B board under Linux.
14It works by turning on the SMBus PCI device.
15It is implemented as a module, p4b_smbus.o.
16It only works with the ICH2 (82801BA) and ICH4 (82801DB).
17
18ASUS switches off the SMBus PCI Device
19in the i801 ICH2/4 chip. I spoke two times
20with the German support and learned that: "We do not want the users to be
21irritated by just another PCI Device in the Win98 device manager."
22Really funny :-).
23
24NOTE: We have a report that as of kernel 2.4.23, the kernel activates
25the SMBus PCI device, so that this module is not required.
26
27
28What does the module do?
29------------------------
30(Note: the following instructions assume the ICH2. For the ICH4,
31the PCI IDs are 24C0 and 24C3)
32
33It turnes off (!) the bits number 8 and 3 in the LPC register of the ICH2.
34This you can also try as root with setpci and pcitweak.
35First do a:
36
37setpci -d 8086:2440 f2.w
38
39You will get an hex number VAL - in my case 148 (Hex)-, where you have to
40erase the two bits - in my case you get 40 (Hex).
41Then do a:
42
43setpci -d 8086:2440 f2.w=VAL
44
45Running "lspci -n" you will not see any new device, but with "pcitweak -l" you
46should get a line similar to this in the output:
47
48PCI: 00:1f:3: chip 8086,2443 card 1043,8028 rev 12 class 0c,05,00 hdr 00
49
50The important thing is the "8086,2443" here.
51The device is activated, but not included in /proc/pci and
52/proc/bus/pci/devices. This is the reason for running the module.
53
54What are the system requirements?
55---------------------------------
56
57- Obviously a board with Intel i801BA/DB ICH2/4 with broken bios.
58- A linux working with a 2.4 kernel AND hotplug support in it!
59- A installed kernel tree and gcc.
60- i2c and sensor modules installed.
61
62How to install?
63---------------
64
65Simply do a:
66
67make -f Makefile.p4b
68insmod p4b_smbus.o
69modprobe  i2c-core
70modprobe  i2c-i801
71modprobe  i2c-dev
72modprobe  i2c-proc
73
74Then run your sensor:
75
76modprobe  w83781d
77
78What should i never do?
79-----------------------
80
81Do not try to do a "rmmod p4b_smbus" before a "rmmod i2c-i801".
82The other way around should be okay. Otherwise you remove the PCI device
83without notifying the i2c driver.
84
85
86-------------------------------
87Ilja Rauhut <IljaRauhut@web.de>
88 
Note: See TracBrowser for help on using the browser.