summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2012-09-18 09:48:08 +0000
committerHans de Goede <hdegoede@redhat.com>2012-09-18 09:48:08 +0000
commitba42e0394b6ee232ea3e8414a219437ecc377948 (patch)
treeae2cd3f0081a209c90975d62cb472cc63efbd955
parentfb9f83e81456659e4c423d5ef705dd0b93fc7bd4 (diff)
downloadlibgphoto2-ba42e0394b6ee232ea3e8414a219437ecc377948.tar.gz
Document ax206 checksum command
git-svn-id: https://svn.code.sf.net/p/gphoto/code/branches/libgphoto2-2_4/libgphoto2@14104 67ed7778-7388-44ab-90cf-0a291f65f57c
-rw-r--r--camlibs/ax203/README.ax20320
1 files changed, 19 insertions, 1 deletions
diff --git a/camlibs/ax203/README.ax203 b/camlibs/ax203/README.ax203
index 75ab86538..05a50a872 100644
--- a/camlibs/ax203/README.ax203
+++ b/camlibs/ax203/README.ax203
@@ -113,6 +113,24 @@ because it contains a ton of JPEG metadata from photoshop, if this were
to be removed, a lot more of the memory could be used to actually store
pictures.
+ax206 checksum command
+----------------------
+
+While working on support for the ax206's not quite raw flash access mode
+for eeproms with AAI, like the SST25VF080, I found out that at least the
+ax206 also has a command to read part of the eeprom and generate a 16 bit
+checksum for it. The layout of the scsi cmd buffer for this is as follows:
+byte 0: 0xcd (read from dev)
+byte 1 - 4: 0
+byte 5: 5
+byte 6: 5
+byte 7 - 8: size of area to checksum, byte 7 == MSB, 0 means 65536
+byte 9 - 10: 0
+byte 11 - 13: address to start checksum, byte 7 == MSB
+
+And then readback 64 bytes of scsi data, where the first 2 are the 16 bit
+checksum of all the bytes in the area with byte 0 being the MSB.
+
Hans de Goede <hdegoede@redhat.com>
-3 May 2010
+16 Sep 2012