OpenBSD and hw.sensors on a Jetway J7F2WE1G-OC rev.02
OpenBSD does not support the hardware sensors on the Jetway J7F2WE1G-OC rev.02 as of version 4.3, July 09 2008. The platform is a VIA C7 Esther i386 CPU. When running
# sysctl hw.sensorsI receive no output, indicating that the sensors have not been detected and supported. Here is the non-abridged output of
-bash-3.2# sysctl hw
hw.machine=i386
hw.model=VIA Esther processor 1000MHz ("CentaurHauls" 686-class)
hw.ncpu=1
hw.byteorder=1234
hw.pagesize=4096
hw.disknames=wd0,cd0
hw.diskcount=2
hw.cpuspeed=1001
hw.setperf=100
hw.product=CN700-8237
hw.uuid=Not Set
hw.physmem=468152320
hw.usermem=468148224
About the Sensors
This Jetway board uses the FINTEK F71805F LPC I/O sensor chipset, which does not seem to have support in OpenBSD as of version 4.3. You can download the datasheet for this chipset here.Detailed Instructions
# Required packages to complete these instructions: wget, cc # First, download and extract your kernel. cd /usr/src wget ftp://ftp.openbsd.org/pub/OpenBSD/4.3/sys.tar.gz tar xvzf sys.tar.gz rm sys.tar.gz # Next, get and apply the patch file. # The original page for the patch is http://www.oat.com/ot/fintek/ # Thanks to Geoff Steckel for providing it. I am mirroring his patch here. # Current as of July 09, 2008, verified working for OBSD4.3 wget http://deconfused.org/etc/fins.diff patch -p0 < fins.diff # After the patch gets applied, back up your current kernel cp /bsd /bsd.old # Configure the new kernel cd /usr/src/sys/arch/i386/conf/ config GENERIC # Compile and install. May take a while on slower VIA machines. cd ../compile/GENERIC make clean && make depend && make && make install # Upon reboot, you should be using the new kernel. If the machine fails to boot, # enter "bsd.old" at the boot> prompt.
Once you reboot, running "sysctl hw.sensors" should no longer have no output. You should see something similar or identical to the following:
-bash-3.2# sysctl hw.sensors hw.sensors.fins0.temp0=38.00 degC (Temp1) hw.sensors.fins0.temp1=28.00 degC (Temp2) hw.sensors.fins0.temp2=114.00 degC (Temp3) hw.sensors.fins0.fan1=1103 RPM (Fan2) hw.sensors.fins0.volt0=3.31 VDC (+3.3V) hw.sensors.fins0.volt1=1.00 VDC (Vtt) hw.sensors.fins0.volt2=1.52 VDC (Vram) hw.sensors.fins0.volt3=1.61 VDC (Vchips) hw.sensors.fins0.volt4=5.00 VDC (+5V) hw.sensors.fins0.volt5=12.23 VDC (+12V) hw.sensors.fins0.volt6=1.10 VDC (Vcc 1.5V) hw.sensors.fins0.volt7=1.09 VDC (VCore) hw.sensors.fins0.volt8=5.00 VDC (Vsb)And you're done! I have included the output of my "dmesg" below for reference:
-bash-3.2# dmesg
OpenBSD 4.3 (GENERIC) #0: Wed Jul 9 14:04:33 EDT 2008
root@skil.deconfused.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: VIA Esther processor 1000MHz ("CentaurHauls" 686-class) 1.01 GHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,APIC,SEP,MTRR,PGE,CMOV,PAT,CFLUSH, \
ACPI,MMX,FXSR,SSE,SSE2,TM,SBF,SSE3,EST,TM2
cpu0: RNG AES AES-CTR SHA1 SHA256 RSA
real mem = 468152320 (446MB)
avail mem = 444493824 (423MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 04/27/06, BIOS32 rev. 0 @ 0xfb570, \
SMBIOS rev. 2.3 @ 0xf0000 (34 entries)
bios0: vendor Phoenix Technologies, LTD version "6.00 PG" date 04/27/2006
apm0 at bios0: Power Management spec V1.2 (slowidle)
apm0: AC on, battery charge unknown
acpi at bios0 function 0x0 not configured
pcibios0 at bios0: rev 2.1 @ 0xf0000/0xdc74
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdbb0/192 (10 entries)
pcibios0: bad IRQ table checksum
pcibios0: PCI BIOS has 10 Interrupt Routing table entries
pcibios0: PCI Exclusive IRQs: 5 7 10 11
pcibios0: PCI Interrupt Router at 000:17:0 ("VIA VT8237 ISA" rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc0000/0xfe00
cpu0 at mainbus0
cpu0: unknown Enhanced SpeedStep CPU, msr 0x08100a1308000a13
cpu0: using only highest and lowest power states
cpu0: Enhanced SpeedStep 1000 MHz (1004 mV): speeds: 1000, 800 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "VIA CN700 Host" rev 0x00
agp0 at pchb0: v3, aperture at 0xe8000000, size 0x10000000
pchb1 at pci0 dev 0 function 1 "VIA CN700 Host" rev 0x00
pchb2 at pci0 dev 0 function 2 "VIA CN700 Host" rev 0x00
pchb3 at pci0 dev 0 function 3 "VIA PT890 Host" rev 0x00
pchb4 at pci0 dev 0 function 4 "VIA CN700 Host" rev 0x00
pchb5 at pci0 dev 0 function 7 "VIA CN700 Host" rev 0x00
ppb0 at pci0 dev 1 function 0 "VIA VT8377 AGP" rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "VIA S3 Unichrome PRO IGP" rev 0x01
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
"VIA VT6306 FireWire" rev 0x80 at pci0 dev 10 function 0 not configured
pciide0 at pci0 dev 15 function 0 "VIA VT82C571 IDE" rev 0x06: ATA133, \
channel 0 configured to compatibility, channel 1 configured to compatibility
wd0 at pciide0 channel 0 drive 0:
wd0: 16-sector PIO, LBA, 13042MB, 26712000 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: SCSI0 5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, DMA mode 2
viapm0 at pci0 dev 17 function 0 "VIA VT8237 ISA" rev 0x00
iic0 at viapm0
spdmem0 at iic0 addr 0x50: 512MB DDR2 SDRAM non-parity PC2-4200CL3
vr0 at pci0 dev 18 function 0 "VIA RhineII-2" rev 0x78: irq 11, address 00:30:18:a2:ce:0e
ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface, rev. 10: OUI 0x004063, model 0x0032
isa0 at mainbus0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
midi0 at pcppi0:
spkr0 at pcppi0
: Fintek F71805F
fins0 at isa0 port 0x4e/2npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
biomask f7fd netmask fffd ttymask ffff
softraid0 at root
wd0c: aborted command, interface CRC error reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), retrying
wd0: transfer error, downgrading to Ultra-DMA mode 3
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 3
wd0c: aborted command, interface CRC error reading fsbn 0 (wd0 bn 0; cn 0 tn 0 sn 0), retrying
wd0: soft error (corrected)
root on wd0a swap on wd0b dump on wd0b