Changeset 5087
- Timestamp:
- 01/04/08 17:08:03 (5 years ago)
- Location:
- i2c-tools/trunk
- Files:
-
- 2 modified
-
CHANGES (modified) (1 diff)
-
eeprom/decode-dimms.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
i2c-tools/trunk/CHANGES
r5073 r5087 5 5 decode-dimms: Fix DDR2 SDRAM module speed decoding 6 6 Update manufacturer IDs. 7 Don't print anything by default if checksum fails 7 8 decode-vaio: Private data might not be readable by non-root users 8 9 Print the asset tag -
i2c-tools/trunk/eeprom/decode-dimms.pl
r5017 r5087 1112 1112 if (($use_sysfs && /^\d+-\d+$/) 1113 1113 || (!$use_sysfs && /^eeprom-/)) { 1114 my @bytes = readspd64(0, $dimm_list[$i]); 1115 my $dimm_checksum = 0; 1116 $dimm_checksum += $bytes[$_] foreach (0 .. 62); 1117 $dimm_checksum &= 0xff; 1118 1119 next unless $bytes[63] == $dimm_checksum || $opt_igncheck; 1120 $dimm_count++; 1121 1114 1122 print "<b><u>" if $opt_html; 1115 1123 printl2 "\n\nDecoding EEPROM", ($use_sysfs ? … … 1127 1135 prints "SPD EEPROM Information"; 1128 1136 1129 my @bytes = readspd64(0, $dimm_list[$i]);1130 my $dimm_checksum = 0;1131 $dimm_checksum += $bytes[$_] foreach (0 .. 62);1132 $dimm_checksum &= 0xff;1133 1134 1137 my $l = "EEPROM Checksum of bytes 0-62"; 1135 1138 printl $l, ($bytes[63] == $dimm_checksum ? … … 1138 1141 $bytes[63], $dimm_checksum)); 1139 1142 1140 unless ($bytes[63] == $dimm_checksum or $opt_igncheck) {1141 print "</table>\n" if $opt_html;1142 next;1143 }1144 1145 $dimm_count++;1146 1143 # Simple heuristic to detect Rambus 1147 1144 my $is_rambus = $bytes[0] < 4;
