Commit 7751e7a404e55411aea9b61d467808a1afb0c98e

Xiangfu 2013-11-10T19:14:31

update with new fpga firmware 2013-11-08 for Avalon 55nm prototype FPGA controller URL: http://downloads.canaan-creative.com/hardware/A3255/prototype/FIRMWARE/2013-11-08/FPGA/

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/driver-avalon.c b/driver-avalon.c
index 791cf86..c72d5f5 100644
--- a/driver-avalon.c
+++ b/driver-avalon.c
@@ -307,6 +307,8 @@ static bool avalon_decode_nonce(struct thr_info *thr, struct cgpu_info *avalon,
 	info = avalon->device_data;
 	info->matching_work[work->subid]++;
 	nonce = htole32(ar->nonce);
+	if (info->asic == 55)
+		nonce -= 0xc0;
 	applog(LOG_DEBUG, "Avalon: nonce = %0x08x", nonce);
 	return submit_nonce(thr, work, nonce);
 }