On Sun, Feb 19, 2012 at 00:06 +0100, Mike Belopuhov wrote: > On Sat, Feb 18, 2012 at 03:09 +1100, Jonathan Gray wrote: > > On Fri, Feb 17, 2012 at 04:20:25PM +0100, Michal Mazurek wrote: > > > I have an alix2d2 running OpenBSD 5.0. There are no hw.sensors. > > > The producer says there is an LM86 on board, which is supported by the > > > maxtmp driver. It appears the driver is present in generic. I tried > > > starting > > > sensorsd but got: > > > daemon:Feb 17 13:12:04 T1 sensorsd[10445]: startup, system has 0 sensors > > > > > > How can I read the temperature of my alix2d2 running OpenBSD 5.0? > > > > There is no driver for the CS5535/CS5536 I2C controller the chip is > > connected to, > > it won't work till that is written. > > > > [un]surprisingly it's actually the same as gscsio(4). here's a port > of that code to glxpcib(4). i don't have the hardware at hand, but > i encourage you to test (: > > cheers > > Index: dev/pci/files.pci > =================================================================== > RCS file: /cvs/src/sys/dev/pci/files.pci,v > retrieving revision 1.281 > diff -u -p -r1.281 files.pci > --- dev/pci/files.pci 15 Nov 2011 22:27:53 -0000 1.281 > +++ dev/pci/files.pci 18 Feb 2012 23:03:52 -0000 > @@ -807,6 +807,6 @@ attach itherm at pci > file dev/pci/itherm.c itherm > > # AMD Geode CS5536 PCI-ISA bridge > -device glxpcib: isabus, gpiobus > +device glxpcib: isabus, gpiobus, i2cbus > attach glxpcib at pci > file dev/pci/glxpcib.c glxpcib
and i forgot to mention that kernel config has to be patched too. thanks to shadchin@ for reminding. Index: arch/i386/conf/GENERIC =================================================================== RCS file: /cvs/src/sys/arch/i386/conf/GENERIC,v retrieving revision 1.730 diff -u -p -r1.730 GENERIC --- arch/i386/conf/GENERIC 28 Jan 2012 00:39:15 -0000 1.730 +++ arch/i386/conf/GENERIC 19 Feb 2012 12:10:56 -0000 @@ -91,6 +91,7 @@ gscpcib* at pci? # NS Geode SC1100 PCI- gpio* at gscpcib? glxpcib* at pci? # AMD CS5536 PCI-ISA bridge gpio* at glxpcib? +iic* at glxpcib? kate* at pci? # AMD K8 temperature sensor km* at pci? # AMD K10 temperature sensor amas* at pci? disable # AMD memory configuration Index: arch/loongson/conf/GENERIC =================================================================== RCS file: /cvs/src/sys/arch/loongson/conf/GENERIC,v retrieving revision 1.36 diff -u -p -r1.36 GENERIC --- arch/loongson/conf/GENERIC 7 Jul 2011 23:41:09 -0000 1.36 +++ arch/loongson/conf/GENERIC 19 Feb 2012 12:10:56 -0000 @@ -39,6 +39,7 @@ pci* at bonito? # Lemote Lynloong, Lemote Fuloong 2F and Lemote Yeeloong devices glxpcib* at pci? gpio* at glxpcib? +iic* at glxpcib? isa0 at glxpcib? mcclock0 at isa? port 0x70 pckbc0 at isa? # Yeeloong only