Feature #1106

Add checksum checks/validation function

Added by tin over 5 years ago. Updated about 5 years ago.

Status:ClosedStart date:19/05/2014
Priority:NormalDue date:19/05/2014
Assignee:tin% Done:

100%

Category:-
Target version:SPD Programmer - DDR4s

Description

Added small tool for dump checksum checks.

tin@tin-lap:/repo/ddr4s/fw/Pi$ ./check.sh
-i- http://dev.xdevs.com/projects/ddr4s
Compiling checksum.c
All done.

DDR3 dump example:

tin@tin-lap:/repo/ddr4s/fw/Pi$ ./checksum -f ddr3.bin 
/********************** xDevs.com DDR4s Project ************************/
 DDR3/DDR4 dump checksum check tool | calculates CRC16 for input binary  
 Usage: checksum -f [dump_filename] 
/***********************************************************************/
File DDR3 CRC16 = 600E | byte 126 = E | byte 127 = 60 
Calculated DDR3 CRC16 = 600E | byte 126 = E | byte 127 = 60 
CRC in dump is correct 

DDR4 Dump example

tin@tin-lap:/repo/ddr4s/fw/Pi$ ./checksum -f ddr4.bin 
/********************** xDevs.com DDR4s Project ************************/
 DDR3/DDR4 dump checksum check tool | calculates CRC16 for input binary  
 Usage: checksum -f [dump_filename] 
/***********************************************************************/
-i- DDR4 mode enabled, 512 bytes parsed 
File DDR4 CRC16 = E752 | byte 126 = 52 | byte 127 = E7 
File vendor section DDR4 CRC16 = 0 | byte 382 = 0 | byte 383 = 0 
Calculated DDR4 CRC16 = E752 | byte 126 = 52 | byte 127 = E7 
CRC in dump is correct 
tin@tin-lap:/repo/ddr4s/fw/Pi$ 

Need some code cleanup and integration to main programm.

Associated revisions

Revision 6:ff4331a9c88e
Added by Ilya Tsemenko over 5 years ago

Added checksum calculator test programm ID #1106 @1h

Revision 7:65e2206e9d5d
Added by tin over 5 years ago

Checksum test programm works for DDR3 binary dump ID #1106 @1h

Revision 8:402a0ff329ad
Added by tin over 5 years ago

Checksum test programm now detects dump type DDR3/DDR4 automatically, outputs checksum for 382-383 ID #1106 @0.2h

History

#1 Updated by tin over 5 years ago

  • Description updated (diff)
  • % Done changed from 0 to 50

#2 Updated by Izerg over 5 years ago

а шо такое "tin@tin-lap"?

#3 Updated by tin over 5 years ago

  • Category set to 135

#4 Updated by tin about 5 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 50 to 100

Done.

Also available in: Atom PDF