All of lore.kernel.org
 help / color / mirror / Atom feed
* [lm-sensors] abituguru3 does not work with Abit IX38
@ 2007-12-29  2:02 David Bender
  2007-12-29  7:05 ` Hans de Goede
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: David Bender @ 2007-12-29  2:02 UTC (permalink / raw)
  To: lm-sensors

Hi all,
  I am attempting to use abituguru3 with my Abit IX38 motherboard. Error message is

abituguru3: error unknown motherboard ID: 001C. Please report this to the
abituguru3 maintainer (see MAINTAINERS)

Kernel version is 2.6.23-r5, gentoo sources.

I understand later versions of abit boards may not be supported, but my CPU fan
is spinning way faster than it should and drives me crazy. Any pointers or test
programs would be appreciated.

Thanks

Dave


_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [lm-sensors] abituguru3 does not work with Abit IX38
  2007-12-29  2:02 [lm-sensors] abituguru3 does not work with Abit IX38 David Bender
@ 2007-12-29  7:05 ` Hans de Goede
  2007-12-29 19:48 ` David Bender
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Hans de Goede @ 2007-12-29  7:05 UTC (permalink / raw)
  To: lm-sensors

[-- Attachment #1: Type: text/plain, Size: 924 bytes --]

David Bender wrote:
> Hi all,
>   I am attempting to use abituguru3 with my Abit IX38 motherboard. Error message is
> 
> abituguru3: error unknown motherboard ID: 001C. Please report this to the
> abituguru3 maintainer (see MAINTAINERS)
> 
> Kernel version is 2.6.23-r5, gentoo sources.
>

This is already fixed in 2.6.24, patch attached for your pleasure.


> I understand later versions of abit boards may not be supported, but my CPU fan
> is spinning way faster than it should and drives me crazy. Any pointers or test
> programs would be appreciated.
> 

I'm afraid that the abituguru3 driver only supports reading sensors and 
sensors settings, the pwm part is completely unsupported, not even 
reading the settings is supported.

However one can usually fully tune the fan settings in Abit's BIOS, and 
if you can hear the fan I guess you're close enough to the machine to 
get into its BIOS setup :)

Regards,

Hans

[-- Attachment #2: hwmon-abituguru3-new-motherboards-v2.patch --]
[-- Type: text/x-patch, Size: 2575 bytes --]

This patch adds support for 2 new motherboards to the abituguru3 driver. This
time with list terminators and closing brackets, sorry about the bad previous
patch.

Signed-of-by: Hans de Goede <j.w.r.degoede@hhs.nl>
diff -up linux-2.6.23.x86_64/drivers/hwmon/abituguru3.c~ linux-2.6.23.x86_64/drivers/hwmon/abituguru3.c
--- linux-2.6.23.x86_64/drivers/hwmon/abituguru3.c~	2007-10-21 00:47:36.000000000 +0200
+++ linux-2.6.23.x86_64/drivers/hwmon/abituguru3.c	2007-10-21 00:47:36.000000000 +0200
@@ -530,6 +530,60 @@ static const struct abituguru3_motherboa
 		{ "AUX3 Fan",		36, 2, 60, 1, 0 },
 		{ NULL, 0, 0, 0, 0, 0 } }
 	},
+	{ 0x001B, "unknown", {
+		{ "CPU Core",		 0, 0, 10, 1, 0 },
+		{ "DDR3",		 1, 0, 20, 1, 0 },
+		{ "DDR3 VTT",		 2, 0, 10, 1, 0 },
+		{ "CPU VTT",		 3, 0, 10, 1, 0 },
+		{ "MCH 1.25V",		 4, 0, 10, 1, 0 },
+		{ "ICHIO 1.5V",		 5, 0, 10, 1, 0 },
+		{ "ICH 1.05V",		 6, 0, 10, 1, 0 },
+		{ "ATX +12V (24-Pin)",	 7, 0, 60, 1, 0 },
+		{ "ATX +12V (8-pin)",	 8, 0, 60, 1, 0 },
+		{ "ATX +5V",		 9, 0, 30, 1, 0 },
+		{ "+3.3V",		10, 0, 20, 1, 0 },
+		{ "5VSB",		11, 0, 30, 1, 0 },
+		{ "CPU",		24, 1, 1, 1, 0 },
+		{ "System",		25, 1, 1, 1, 0 },
+		{ "PWM Phase1",		26, 1, 1, 1, 0 },
+		{ "PWM Phase2",		27, 1, 1, 1, 0 },
+		{ "PWM Phase3",		28, 1, 1, 1, 0 },
+		{ "PWM Phase4",		29, 1, 1, 1, 0 },
+		{ "PWM Phase5",		30, 1, 1, 1, 0 },
+		{ "CPU Fan",		32, 2, 60, 1, 0 },
+		{ "SYS Fan",		34, 2, 60, 1, 0 },
+		{ "AUX1 Fan",		33, 2, 60, 1, 0 },
+		{ "AUX2 Fan",		35, 2, 60, 1, 0 },
+		{ "AUX3 Fan",		36, 2, 60, 1, 0 },
+		{ NULL, 0, 0, 0, 0, 0 } }
+	},
+	{ 0x001C, "unknown", {
+		{ "CPU Core",		 0, 0, 10, 1, 0 },
+		{ "DDR2",		 1, 0, 20, 1, 0 },
+		{ "DDR2 VTT",		 2, 0, 10, 1, 0 },
+		{ "CPU VTT",		 3, 0, 10, 1, 0 },
+		{ "MCH 1.25V",		 4, 0, 10, 1, 0 },
+		{ "ICHIO 1.5V",		 5, 0, 10, 1, 0 },
+		{ "ICH 1.05V",		 6, 0, 10, 1, 0 },
+		{ "ATX +12V (24-Pin)",	 7, 0, 60, 1, 0 },
+		{ "ATX +12V (8-pin)",	 8, 0, 60, 1, 0 },
+		{ "ATX +5V",		 9, 0, 30, 1, 0 },
+		{ "+3.3V",		10, 0, 20, 1, 0 },
+		{ "5VSB",		11, 0, 30, 1, 0 },
+		{ "CPU",		24, 1, 1, 1, 0 },
+		{ "System",		25, 1, 1, 1, 0 },
+		{ "PWM Phase1",		26, 1, 1, 1, 0 },
+		{ "PWM Phase2",		27, 1, 1, 1, 0 },
+		{ "PWM Phase3",		28, 1, 1, 1, 0 },
+		{ "PWM Phase4",		29, 1, 1, 1, 0 },
+		{ "PWM Phase5",		30, 1, 1, 1, 0 },
+		{ "CPU Fan",		32, 2, 60, 1, 0 },
+		{ "SYS Fan",		34, 2, 60, 1, 0 },
+		{ "AUX1 Fan",		33, 2, 60, 1, 0 },
+		{ "AUX2 Fan",		35, 2, 60, 1, 0 },
+		{ "AUX3 Fan",		36, 2, 60, 1, 0 },
+		{ NULL, 0, 0, 0, 0, 0 } }
+	},
 	{ 0x0000, NULL, { { NULL, 0, 0, 0, 0, 0 } } }
 };
 

[-- Attachment #3: Type: text/plain, Size: 153 bytes --]

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [lm-sensors] abituguru3 does not work with Abit IX38
  2007-12-29  2:02 [lm-sensors] abituguru3 does not work with Abit IX38 David Bender
  2007-12-29  7:05 ` Hans de Goede
@ 2007-12-29 19:48 ` David Bender
  2007-12-29 20:46 ` Rudolf Marek
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: David Bender @ 2007-12-29 19:48 UTC (permalink / raw)
  To: lm-sensors

Hans de Goede <j.w.r.degoede <at> hhs.nl> writes:

> I'm afraid that the abituguru3 driver only supports reading sensors and 
> sensors settings, the pwm part is completely unsupported, not even 
> reading the settings is supported.

I am willing to spend a few hours staring at assembly before I break down and
buy their guru control panel.

Is there anyway to read the microcode on the uguru uC?

Perhaps looking at the BIOS code may help? I am sure there must be some routine
for communicating with their uC in that code.

I noticed a W83320G PWM control chip on my mobo. Could this possibly control
 the fans?


_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [lm-sensors] abituguru3 does not work with Abit IX38
  2007-12-29  2:02 [lm-sensors] abituguru3 does not work with Abit IX38 David Bender
  2007-12-29  7:05 ` Hans de Goede
  2007-12-29 19:48 ` David Bender
@ 2007-12-29 20:46 ` Rudolf Marek
  2007-12-29 22:01 ` Rudolf Marek
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Rudolf Marek @ 2007-12-29 20:46 UTC (permalink / raw)
  To: lm-sensors

Hi

The datasheet is here http://www.datasheetarchive.com/preview/3656055.html

if it is still this chip.

It is 51 compatible core, so perhaps interactive disassembler should work.

> Is there anyway to read the microcode on the uguru uC?

Perhaps it comes somewhere in the BIOS image. It should be 40K firmware.
> I noticed a W83320G PWM control chip on my mobo. Could this possibly control
>  the fans?

Yes maybe.

R.

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [lm-sensors] abituguru3 does not work with Abit IX38
  2007-12-29  2:02 [lm-sensors] abituguru3 does not work with Abit IX38 David Bender
                   ` (2 preceding siblings ...)
  2007-12-29 20:46 ` Rudolf Marek
@ 2007-12-29 22:01 ` Rudolf Marek
  2007-12-30  9:29 ` Hans de Goede
  2007-12-30 22:16 ` Dave Bender
  5 siblings, 0 replies; 7+ messages in thread
From: Rudolf Marek @ 2007-12-29 22:01 UTC (permalink / raw)
  To: lm-sensors

Hi again,

I have taken the IX38 BIOS, decompressed and got this bunch of file
(using old dos awardeco.arj, awardeco from debian does not work)


http://www.os2site.com/sw/util/veit/index.html

(use dosbox to run it)

marekr2@kiur:~/dilna/uguru$ ls -1 *BIN
ACPITBL.BIN
AHCI_ROM.BIN
BEXTDDR2.BIN
DDR2.BIN
_EN_CODE.BIN
_ITEM.BIN
JMB363_6.BIN
M704B_11.BIN
RAID_OR.BIN
SMI32COD.BIN


BEXTDDR2.BIN is PE program relocated to the top of the ROM, dont know what it 
should do.

DDR2.BIN despite the name is some kind of uGuru ROM utillity. Perhaps the board 
has some kind of hotkey to invoke it?

It is standard rom file, so it can be invoked as option-rom by qemu :)

qemu -option-rom DDR2.BIN  -hda /dev/null

Unfortunately it will hang around
(gdb) stepi
0x000005d0 in ?? ()
(gdb) stepi
0x000005d3 in ?? ()
(gdb) stepi
0x000005a6 in ?? ()
(gdb) stepi
0x000005ab in ?? ()
(gdb) stepi
0x000005ad in ?? ()
(gdb) stepi
0x00000868 in ?? ()
(gdb) stepi
0x0000086b in ?? ()
(gdb) stepi
0x00000870 in ?? ()
(gdb) stepi
0x0000087c in ?? ()
(gdb) stepi
0x000005b0 in ?? ()
(gdb) stepi
0x000005b3 in ?? ()
(gdb) stepi
0x000005b5 in ?? ()
(gdb) stepi

(I checked in qemu monitor the addr is d05b3 etc only gdb has it wrong)


Because for some reason some structs are not initialized properly. Maybe this 
could be workarounded. (I attached to qemu with gdb to check this)

Good news is that this option rom talks directly to uGuru, so there is no SMM 
layer. It uses ports 0xe0 0xe4 and 0xeb

This option ROM uses VGA bios int 0x10 services and 0x16 keyboard services, so 
perhaps it can be fixed and even run in qemu :)

What I have in mind is to use qemu and program virtual dummy uGuru device 
(filled with dump values ;), which acts as that routines want, then if you 
change the voltage in this util, you can take a look what it changes in the 
virtual device - or simply log all IO traffic.

Or of course, the size of binary is only 32K so it should not be much difficult 
to reverse engineer it completely.

If some values are still missing, and we cannot succeed with qemu. I would 
suggest to patch this util to display the IO on screen directly ;) It would need 
to repack the BIOS but it can be done.

One final note on offset +3 is standard entrypoint. Maybe some non-standard 
entrypoint must be executed first right after the ROM header (there are some 
jumps) Second possibility would be to steal this ROM from already running 
computer, maybe if you do

dd if=/dev/mem of=memory.bin bs=1M count=1

you will find it somewhere around 700KB with already filled values ;)

Well thats all for ideas, good luck. I will be back next year ;)

Rudolf

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [lm-sensors] abituguru3 does not work with Abit IX38
  2007-12-29  2:02 [lm-sensors] abituguru3 does not work with Abit IX38 David Bender
                   ` (3 preceding siblings ...)
  2007-12-29 22:01 ` Rudolf Marek
@ 2007-12-30  9:29 ` Hans de Goede
  2007-12-30 22:16 ` Dave Bender
  5 siblings, 0 replies; 7+ messages in thread
From: Hans de Goede @ 2007-12-30  9:29 UTC (permalink / raw)
  To: lm-sensors

David Bender wrote:
> Hans de Goede <j.w.r.degoede <at> hhs.nl> writes:
> 
>> I'm afraid that the abituguru3 driver only supports reading sensors and 
>> sensors settings, the pwm part is completely unsupported, not even 
>> reading the settings is supported.
> 
> I am willing to spend a few hours staring at assembly before I break down and
> buy their guru control panel.
> 
> Is there anyway to read the microcode on the uguru uC?
> 
> Perhaps looking at the BIOS code may help? I am sure there must be some routine
> for communicating with their uC in that code.
> 

David,

The current abituguru and abituguru3 drivers both have been written by me after 
other people ran the windows software under a debugger and stepped through the 
relevant code. So I guess thats one possible way to proceed, don't ask me for 
help there though, as said others (Louis Kruger in the case of the uguru3) were 
so kind todo the grunt work, I merely turned there results into a usable driver.

I will of course be happy to extend said driver with your results, although you 
might want to consider doing that yourself as I don't own an uguru3 motherboard.

Thanks & Regards,

Hans

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [lm-sensors] abituguru3 does not work with Abit IX38
  2007-12-29  2:02 [lm-sensors] abituguru3 does not work with Abit IX38 David Bender
                   ` (4 preceding siblings ...)
  2007-12-30  9:29 ` Hans de Goede
@ 2007-12-30 22:16 ` Dave Bender
  5 siblings, 0 replies; 7+ messages in thread
From: Dave Bender @ 2007-12-30 22:16 UTC (permalink / raw)
  To: lm-sensors


[-- Attachment #1.1: Type: text/plain, Size: 1517 bytes --]

Thanks Hans,
  I have followed up on Rudolf's work and and am compiling QEMU now. There's
a of territory to cover but at least it revolves around outb statements. I
will post my results when I find somthing

Dave

On Dec 30, 2007 4:29 AM, Hans de Goede <j.w.r.degoede@hhs.nl> wrote:

> David Bender wrote:
> > Hans de Goede <j.w.r.degoede <at> hhs.nl> writes:
> >
> >> I'm afraid that the abituguru3 driver only supports reading sensors and
> >> sensors settings, the pwm part is completely unsupported, not even
> >> reading the settings is supported.
> >
> > I am willing to spend a few hours staring at assembly before I break
> down and
> > buy their guru control panel.
> >
> > Is there anyway to read the microcode on the uguru uC?
> >
> > Perhaps looking at the BIOS code may help? I am sure there must be some
> routine
> > for communicating with their uC in that code.
> >
>
> David,
>
> The current abituguru and abituguru3 drivers both have been written by me
> after
> other people ran the windows software under a debugger and stepped through
> the
> relevant code. So I guess thats one possible way to proceed, don't ask me
> for
> help there though, as said others (Louis Kruger in the case of the uguru3)
> were
> so kind todo the grunt work, I merely turned there results into a usable
> driver.
>
> I will of course be happy to extend said driver with your results,
> although you
> might want to consider doing that yourself as I don't own an uguru3
> motherboard.
>
> Thanks & Regards,
>
> Hans
>

[-- Attachment #1.2: Type: text/html, Size: 1973 bytes --]

[-- Attachment #2: Type: text/plain, Size: 153 bytes --]

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-12-30 22:16 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-29  2:02 [lm-sensors] abituguru3 does not work with Abit IX38 David Bender
2007-12-29  7:05 ` Hans de Goede
2007-12-29 19:48 ` David Bender
2007-12-29 20:46 ` Rudolf Marek
2007-12-29 22:01 ` Rudolf Marek
2007-12-30  9:29 ` Hans de Goede
2007-12-30 22:16 ` Dave Bender

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.