Temperatur Alix per sysctl

bananenBrot

Well-Known Member
Hi,

ich versuche gerade den Temperatursensor von meinem PcEngines Alix Board auszulesen - leider komme ich mit sysctl nicht weit.

Code:
# sysctl hw           
hw.machine=i386
hw.model=Geode(TM) Integrated Processor by AMD PCS ("AuthenticAMD" 586-class)
hw.ncpu=1
hw.byteorder=1234
hw.pagesize=4096
hw.disknames=wd0
hw.diskcount=1
hw.cpuspeed=499
hw.physmem=268009472
hw.usermem=268001280

Weiß jemand zufällig, wie ich an den Wert komme?

Danke + gruß
 
Da die Alix ja nur billiger nachgebaute Soekrisse sind, was meint denn env4801?

Meine Gigabit-Soekris:
Code:
# env4801
VREF = 1.235  V245 = 2.450
Temp 2 (status=0x81)   65 C
Volt  1 VCORE 105  1.241 V scale  1.0   1.241 V +/- 0.0118 V
Volt  2 VCC   214  2.529 V scale  2.0   5.059 V +/- 0.0236 V
Volt  3 VPWR   51  0.603 V scale 20.1  12.116 V +/- 0.2376 V
Volt  4 +12V  211  2.494 V scale  4.8  12.045 V +/- 0.0571 V
Volt  5 -12V  212  2.506 V scale 19.2 -12.491 V +/- 0.2268 V
Volt  6 GND   220  2.600 V scale  1.0   2.600 V +/- 0.0118 V
Volt  7 Vsb   140  1.655 V scale  2.0   3.309 V +/- 0.0236 V
Volt  8 Vdd   141  1.667 V scale  2.0   3.333 V +/- 0.0236 V
Volt  9 Vbat  255  3.014 V scale  1.0   3.014 V +/- 0.0118 V
Volt 10 AVdd    0  0.000 V scale  2.0   0.000 V +/- 0.0236 V
 
Wenn Du bei
Code:
sysctl -a | grep temp
keine MIB-Namen bekommst, die Temperatur anzeigen, dann gibt es da nichts. Aber wie heiß kann das Ding schon werden?
 
Code:
# env4801                                                               
ksh: env4801: not found

und # sysctl -a | grep temp gibt keine Temperatur an.
Code:
# sysctl -a | grep temp
kern.malloc.kmemnames=free,mbuf,devbuf,debug,pcb,routetbl,,fragtbl,,ifaddr,soopts,sysctl,,,ioctlops,,,,,iov,mount,,NFS_req,NFS_mount,NFS_node,vnodes,namecache,UFS_quota,UFS_mount,shm,VM_map,sem,dirhash,ACPI,VM_pmap,,,,file,file_desc,,proc,subproc,VFS_cluster,,,MFS_node,,,Export_Host,NFS_srvsock,NFS_uid,NFS_daemon,ip_moptions,in_multi,ether_multi,mrt,ISOFS_mount,ISOFS_node,MSDOSFS_mount,MSDOSFS_fat,MSDOSFS_node,ttys,exec,miscfs_mount,,,,,,,,,,pfkey_data,tdb,xform_data,,pagedep,inodedep,newblk,,,indirdep,,,,,,,,,VM_swap,,,,,RAIDframe_data,UVM_amap,UVM_aobj,,USB,USB_device,USB_HC,,memdesc,,,crypto_data,,IPsec_creds,packet_tags,1394ctl,1394data,emuldata,,,,,,,,,ip6_options,NDP,ip6rr,rp_addr,temp,NTFS_mount,NTFS_node,NTFS_fnode,NTFS_dir,NTFS_hash_tables,NTFS_file_attr,NTFS_resident_data_,NTFS_decomp,NTFS_vrun,kqueue,bluetooth,bwmeter,UDF_mount,UDF_file_entry,UDF_file_id,Bluetooth_HID,AGP_Memory,Direct_Rendering_Manager
kern.malloc.kmemstat.temp=(inuse = 35, calls = 51702, memuse = 1K, limblocks = 0, mapblocks = 0, maxused = 10K, limit = 39260K, spare = 0, sizes = (16,32,64,128,256,512,1024,4096,8192))


:grumble:
 
Dann werden die Temperatursensoren wohl nicht unterstützt. Poste mal die Ausgabe von dmesg.
 
By the way: Ist ein Alix 6B2 Board - von dem 2C2 weiß ich sicher, dass es einen Temperatursensor (lm90) hat aber die beiden Boards sind fast baugleich.

Code:
# dmesg                                                                 
OpenBSD 4.4-beta (GENERIC) #964: Tue Jul  1 20:51:26 MDT 2008
    deraadt@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Geode(TM) Integrated Processor by AMD PCS ("AuthenticAMD" 586-class) 499 MHz
cpu0: FPU,DE,PSE,TSC,MSR,CX8,SEP,PGE,CMOV,CFLUSH,MMX
real mem  = 268009472 (255MB)
avail mem = 250949632 (239MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 12/10/07, BIOS32 rev. 0 @ 0xfceb2
pcibios0 at bios0: rev 2.1 @ 0xf0000/0x10000
pcibios0: pcibios_get_intr_routing - function not supported
pcibios0: PCI IRQ Routing information unavailable.
pcibios0: PCI bus #0 is the last bus
bios0: ROM list: 0xe0000/0xa800
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 1 function 0 "AMD Geode LX" rev 0x33
glxsb0 at pci0 dev 1 function 2 "AMD Geode LX Crypto" rev 0x00: RNG AES
vr0 at pci0 dev 9 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 10, address 00:0d:b9:15:7a:d0
ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI 0x004063, model 0x0034
vr1 at pci0 dev 10 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 11, address 00:0d:b9:15:7a:d1
ukphy1 at vr1 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI 0x004063, model 0x0034
glxpcib0 at pci0 dev 15 function 0 "AMD CS5536 ISA" rev 0x03: rev 0, 32-bit 3579545Hz timer, watchdog, gpio
gpio0 at glxpcib0: 32 pins
pciide0 at pci0 dev 15 function 2 "AMD CS5536 IDE" rev 0x01: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <SanDisk SDCFX3-2048>
wd0: 4-sector PIO, LBA, 1953MB, 4001760 sectors
wd0(pciide0:0:0): using PIO mode 4, DMA mode 2
pciide0: channel 1 ignored (disabled)
ohci0 at pci0 dev 15 function 4 "AMD CS5536 USB" rev 0x02: irq 15, version 1.0, legacy support
ehci0 at pci0 dev 15 function 5 "AMD CS5536 USB" rev 0x02: irq 15
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "AMD EHCI root hub" rev 2.00/1.00 addr 1
isa0 at glxpcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com0: console
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
usb1 at ohci0: USB revision 1.0
uhub1 at usb1 "AMD OHCI root hub" rev 1.00/1.00 addr 1
biomask f3ef netmask ffef ttymask ffff
mtrr: K6-family MTRR support (2 registers)
nvram: invalid checksum
softraid0 at root
root on wd0a swap on wd0b dump on wd0b
clock: unknown CMOS layout
 
Naja, ich habe hier ein 2c3 und das gibt auch nix raus:

Code:
sysctl -a|grep temp
kern.malloc.kmemnames=free,mbuf,devbuf,debug,pcb,routetbl,,fragtbl,,ifaddr,soopts,sysctl,,,ioctlops,,,,,iov,mount,,NFS_req,NFS_mount,NFS_node,vnodes,namecache,UFS_quota,UFS_mount,shm,VM_map,sem,dirhash,,VM_pmap,,,,file,file_desc,,proc,subproc,VFS_cluster,,,MFS_node,,,Export_Host,NFS_srvsock,NFS_uid,NFS_daemon,ip_moptions,in_multi,ether_multi,mrt,ISOFS_mount,ISOFS_node,MSDOSFS_mount,MSDOSFS_fat,MSDOSFS_node,ttys,exec,miscfs_mount,,,,,,,,,,pfkey_data,tdb,xform_data,,pagedep,inodedep,newblk,,,indirdep,,,,,,,,,VM_swap,,,,,RAIDframe_data,UVM_amap,UVM_aobj,,USB,USB_device,USB_HC,,memdesc,,,crypto_data,,IPsec_creds,packet_tags,1394ctl,1394data,emuldata,,,,,,,,,ip6_options,NDP,ip6rr,rp_addr,temp,NTFS_mount,NTFS_node,NTFS_fnode,NTFS_dir,NTFS_hash_tables,NTFS_file_attr,NTFS_resident_data_,NTFS_decomp,NTFS_vrun,kqueue,bluetooth,bwmeter,UDF_mount,UDF_file_entry,UDF_file_id,Bluetooth_HID,AGP_Memory,Direct_Rendering_Manager
kern.malloc.kmemstat.temp=(inuse = 67, calls = 179170, memuse = 9K, limblocks = 0, mapblocks = 0, maxused = 26K, limit = 39260K, spare = 0, sizes = (16,32,64,256,512,1024,2048,4096,16384))
 
Nach der dmesg würd ich sagen: keine chance.

Eventuell mal ein snapshot ausprobieren.
 
Hm - dann liegts wohl an OpenBSD - weil unter Voyage Linux bekommt man auch beim 2c3 Temp-Daten.

http://cvs.voyage.hk/cgi-bin/viewcvs.cgi/voyage-custom/src/stage1/overlay_fs/README?rev=1.10

ALIX.1 board uses w83627hf driver while ALIX.2/3 uss lm90. You can get the
temperature reading from sensors program, or get the values from sysfs:
...
(for ALIX.2/3)
cat /sys/bus/i2c/drivers/lm90/0-004c/temp1_input
cat /sys/bus/i2c/drivers/lm90/0-004c/temp2_input
 
Ohne Sensoren wird das wohl nix....

Unter hw.sensors findet man ja 0 also wird da auch nix da sein...
 
Oder mit dem maxtmp Treiber stimmt was nicht - sofern das mit dem LM90 stimmt, was es sollte, denn über den bekommt man ja unter voyage Linux Daten
 
Zurück
Oben