@ssolie
Quote:
ssolie wrote:
I'm wondering what it would take to calibrate the CPUTemp.docky.
I have access to a calibrated temperature probe (Fluke) that I could use to measure the exact temperature of the heat sink or similar.
Checking the temperature of the heatsink is problematic since it takes some time to heat up while CPUTemp displays the CPU core temperature which increases much faster when switching on the system.
For an usable calibration you'd need a sensor directly at the die of the CPU.
Quote:
If I take a few measurements with the probe and peek at CPUTemp.docky a few times perhaps I can come up with a meaningful difference.
Prepare your system to boot as fast as possible, no user-startup, everything but CPUTemp.docky removed from WBStartup, everything not required for the test disabled in U-Boot, etc.
Switch it off and let it cool down to room temerature.
Switch it on and as soon as CPUTemp.docky is running for about 5 seconds displaying a (nearly) constant temperature use the probe and note down the results of both the probe and what CPUTemp.docky displays until you get to the normal, idle temperature of your system and it doesn't change anymore. Then start something, or several programs, which use the CPU a lot, something which uses AltiVec if you have a 74xx CPU. For example dnetc. Note down the results of the probe and what CPUTemp.docky displays again until you reach the max. teperature of your busy system. Make sure the TEMPOFFSET and TEMPFACTOR tooltypes are not set when you do this.
Now you should have a table with at least 10 pairs of real temerature (from your probe) and what CPUTemp displays without calibration for them. Using this table and real_temperature = CPUTemp_displayed_temperature * x + y calulate x and y integers in such a way that the average error is minimal and add TEMPFACTOR = x and TEMPOFFSET = y to the CPUTemp.docky tooltypes.
Quote:
I just hope the relationship is linear.
That's unlikely.
In case someone is interested in more details and how bad the TAU is check
TAU_Calibration_10s.pdf. I didn't find anything like that from Freescale, except that officially it's not supported at all on 74xx CPUs (even if it works
).