mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-09-04 00:05:10 +00:00
(Phil) Fixed checksum calculation.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@277 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
#
|
#
|
||||||
# Copyright 1998, 1999 Philip Edelbrock <phil@netroedge.com>
|
# Copyright 1998, 1999 Philip Edelbrock <phil@netroedge.com>
|
||||||
#
|
#
|
||||||
# Version 0.3
|
# Version 0.4
|
||||||
#
|
#
|
||||||
# EEPROM data decoding for SDRAM DIMM modules.
|
# EEPROM data decoding for SDRAM DIMM modules.
|
||||||
#
|
#
|
||||||
@@ -306,7 +306,7 @@ for $i ( 0 .. $#dimm_list ) {
|
|||||||
|
|
||||||
print "\tSPD Revision code:\t\t\t\t$bytes[14]\n";
|
print "\tSPD Revision code:\t\t\t\t$bytes[14]\n";
|
||||||
print "\tEEPROM Checksum of bytes 0-62:\t\t\t";
|
print "\tEEPROM Checksum of bytes 0-62:\t\t\t";
|
||||||
printf("0x%.4X (verses calculated: 0x%.4X)\n",$bytes[15],$dimm_checksum);
|
printf("0x%.2X (verses calculated: 0x%.2X)\n",$bytes[15],$dimm_checksum & 255);
|
||||||
|
|
||||||
# Decode next 16 bytes (64-79)
|
# Decode next 16 bytes (64-79)
|
||||||
$_=`cat /proc/sys/dev/sensors/$dimm_list[$i]/data64-79`;
|
$_=`cat /proc/sys/dev/sensors/$dimm_list[$i]/data64-79`;
|
||||||
|
Reference in New Issue
Block a user