Hi,
the DediProg firmware version 5.1.5 of the SF-100 works just fine. Also
I've added error handling for the initial USB command to catch -EPERM
errors.
Signed-off-by: Mathias Krause <[email protected]>
Regards,
Mathias
Index: dediprog.c
===================================================================
--- dediprog.c (Revision 1216)
+++ dediprog.c (Arbeitskopie)
@@ -217,7 +217,8 @@
}
/* Only these versions were tested. */
if (memcmp(buf, "SF100 V:2.1.1 ", 0x10) &&
- memcmp(buf, "SF100 V:3.1.8 ", 0x10)) {
+ memcmp(buf, "SF100 V:3.1.8 ", 0x10) &&
+ memcmp(buf, "SF100 V:5.1.5 ", 0x10)) {
msg_perr("Unexpected firmware version!\n");
return 1;
}
@@ -235,6 +236,10 @@
memset(buf, 0, sizeof(buf));
ret = usb_control_msg(dediprog_handle, 0xc3, 0xb, 0x0, 0x0, buf, 0x1, DEFAULT_TIMEOUT);
+ if (ret < 0) {
+ msg_perr("Command A failed (%s)!\n", usb_strerror());
+ return 1;
+ }
if ((ret != 0x1) || (buf[0] != 0x6f)) {
msg_perr("Unexpected response to Command A!\n");
return 1;
_______________________________________________
flashrom mailing list
[email protected]
http://www.flashrom.org/mailman/listinfo/flashrom