Avalon4 mini: Difference between revisions
Jump to navigation
Jump to search
(2 intermediate revisions by the same user not shown) | |||
Line 12: | Line 12: | ||
=== Compile === | === Compile === | ||
cd cgminer | cd cgminer | ||
git checkout origin/ | git checkout origin/avalon4 -b avalon4 | ||
./autogen.sh --enable-avalon-miner | ./autogen.sh --enable-avalon-miner | ||
make -j 4 | make -j 4 | ||
Line 39: | Line 39: | ||
! OFF | ! OFF | ||
! ON | ! ON | ||
! BLINKING | |||
! MEMO | ! MEMO | ||
|- valign="top" | |- valign="top" | ||
Line 45: | Line 46: | ||
| USB Power good | | USB Power good | ||
| | | | ||
| | |||
|- valign="top" | |- valign="top" | ||
| R | | R | ||
| | | Post succeed | ||
| | | Post failed | ||
| | | | ||
| | |||
|- valign="top" | |- valign="top" | ||
| G | | G | ||
| PMU power off | | PMU power off | ||
| PMU power on | | PMU power on | ||
| Hot alert | |||
| | | | ||
|- valign="top" | |- valign="top" | ||
| B | | B | ||
| Hashing | | Hashing | ||
| | |||
| IDLE | | IDLE | ||
| | | | ||
|} | |} | ||
Line 67: | Line 72: | ||
== Firmware == | == Firmware == | ||
===[http://build.canaan-creative.com:8080/~mikeqin/avalon4mini/ Daily Building] === | |||
===[http://downloads.canaan-creative.com/software/avalon4_mini/firmware/2015-05-15/ 20150515] === | ===[http://downloads.canaan-creative.com/software/avalon4_mini/firmware/2015-05-15/ 20150515] === | ||
* First version of Avalon4 mini firmware | * First version of Avalon4 mini firmware |
Latest revision as of 08:08, 16 November 2015
Booting flow
- Plug the 12V power
- Plug the USB
- Note: Please wait the device idle(LED B on) when you run CGMiner.
CGMiner Under Ubuntu 14.04
Download
Inside your home directory, download CGMiner git clone https://github.com/Canaan-Creative/cgminer
Compile
cd cgminer git checkout origin/avalon4 -b avalon4 ./autogen.sh --enable-avalon-miner make -j 4
Run
sudo ./cgminer --avalonm-freq 100 --avalonm-voltage 6250 -o http://stratum.pool:3333 -u work -p pass or sudo ./cgminer --avalonm-freq 275:250:200 --avalonm-voltage 6250 -o http://stratum.pool:3333 -u work -p pass or sudo ./cgminer --avalonm-freq 100 --avalonm-voltage 6250 -o http://stratum.pool:3333 -u work -p pass --api-allow W:127.0.0.1 --api-listen $@ 2>./log
Tweak
- Voltage
Format: ascset|ASCN,voltage,value eg: cgminer-api "ascset|0,voltage,7000"
- Frequency
Format: ascset|ASCN,frequency,chip id-value eg: cgminer-api "ascset|0,frequency,0-450:390:370" /* set all chips work at 450:390:370, about 414 Mhz = (450 * 4 + 390 * 4 + 370) / 9 */ cgminer-api "ascset|0,frequency,1-200" /* set chip 1 works at 200 Mhz */
LED
LED | OFF | ON | BLINKING | MEMO |
---|---|---|---|---|
PWR | Check USB cable | USB Power good | ||
R | Post succeed | Post failed | ||
G | PMU power off | PMU power on | Hot alert | |
B | Hashing | IDLE |
Chrome APP
20150515
- First version of Avalon miner Chrome APP
Firmware
Daily Building
20150515
- First version of Avalon4 mini firmware
Firmware Upgrade
ISP method (Under windows)
- Short two pins like below.
- Power on the device only with usb cable (without 12v), The led RGB and power will all turn on.
- You can use Flash Magic through UART1(Baud:19200) to download the firmware (hex file)
Issues
- libusb_claim_interface fails when run CGMiner under Mac OS X
Avalon4 mini is a HID device. We cann't use libusb to access HID devices under Mac OS X, you can find the answer here: http://www.libusb.org/ticket/89#comment:3 and http://www.libusb.org/ticket/89#comment:11
- lpc21isp is not work on Max OS X and Ubuntu
There is a err when upload the firmware.
Sector 1: ..Wrong answer on Write-Command ADDR_NOT_MAPPED: Address is not mapped in the memory map. Count value is taken in to consideration where applicable.