Avalon nano: Difference between revisions

From Bitcoin Wiki
Jump to navigation Jump to search
Mikeqin (talk | contribs)
Mikeqin (talk | contribs)
 
(42 intermediate revisions by 4 users not shown)
Line 1: Line 1:
= Host Apps =
It's a usb dongle, using only one A3233.
* [http://downloads.canaan-creative.com/software/avalon_nano/software/latest/ AvalonMiner] (Windows only)
* [[BFGMiner]]: bfgminer -S ICA:/dev/ttyACM0 --set-device ICA:baud=115200 --set-device ICA:reopen=timeout --set-device ICA:work_division=1 --set-device ICA:fpga_count=1 --set-device ICA:probe_timeout=100 --set-device ICA:timing=0.22 --api-listen 2>log
* [[CGMiner]]: cgminer --icarus-options 115200:1:1 --icarus-timing 0.22 --api-listen 2>log


= Miner Support =
== Hardware version 1.0 ==
== [https://github.com/luke-jr/bfgminer BFGMiner] ==
=== Features ===
* How to run under Linux?
* VID/PID: 0x1FC9/0x0083
* Icarus protocol support
* It use USB CDC, without need driver installation under Linux
* Smart [[#LED|LED]] indicator
* Overheating protection. (>= 65℃)
* Adjust the hashrate automatically by temperature (~1.0GH/s -  ~3.6GH/s)
 
Note:  You may need install driver for windows before usage. Please down it here <ref>http://www.lpcware.com/system/files/lpcopen_examples_windows_usb_drivers_v1_10_0.zip</ref>
 
=== Software ===
It can support CGMiner, BFGMiner and AvalonMiner(Based on BFGMiner) for now.
==== CGMiner Under Ubuntu 14.04 ====
* Download / Compile / Run
'''Download'''
Inside your home directory, download CGMiner
git clone https://github.com/Canaan-Creative/cgminer
 
'''Compile'''
cd cgminer
git checkout origin/avalon-usb -b avalon-usb
./autogen.sh --enable-icarus
make -j 4
 
'''Run'''
sudo ./cgminer --icarus-options 115200:1:1 --icarus-timing 0.22 -o http://stratum.pool:3333 -u  work -p pass
or
sudo ./cgminer --icarus-options 115200:1:1 --icarus-timing 0.22 -o http://stratum.pool:3333 -u  work -p pass --api-allow W:192.168.2.1 --api-listen $@ 2>./log
 
* Patches
Patch for Canaan Creative's CGMiner: [http://downloads.canaan-creative.com/software/avalon_nano/patches/001-avalon3-nano.patch 001-avalon3-nano.patch]
For what: CGMiner patch.
From where: Based c5ec1171@https://github.com/Canaan-Creative/cgminer/tree/avalon2
Comments:
  Support avalon3 nano in cgminer.
  Support Icarus protocol.
 
==== BFGMiner ====
* Run
  '''Run under Linux'''
   ./bfgminer \
   ./bfgminer \
         -S ICA:/dev/ttyACM0 \
         -S ICA:/dev/ttyACMx \
         -o url -O workername:workerpassword \
         -o stratum+tcp://stratum.ozco.in:80 -O mikeqin.avalon:1234 \
         --set-device ICA:baud=115200 \
         --set-device ICA:baud=115200 \
         --set-device ICA:reopen=timeout \
         --set-device ICA:reopen=timeout \
Line 18: Line 53:
         --api-listen \
         --api-listen \
         2>log
         2>log
  '''Note: /dev/ttyACM0 is an Avalon nano.'''


== [https://github.com/BitSyncom/cgminer/tree/avalon-usb CGMiner] ==
  '''Run under Windows'''
* How to run under Linux?
   bfgminer.exe ^
   ./cgminer \
        -S ICA:\\.\COMn ^
         -o url -O workername:workerpassword \
         -o stratum+tcp://stratum.ozco.in:80 -O mikeqin.avalon:1234 ^
         --icarus-options 115200:1:1 \
         --set-device ICA:baud=115200 ^
         --icarus-timing 0.22 \
        --set-device ICA:reopen=timeout ^
         --api-listen \
        --set-device ICA:work_division=1 ^
        --set-device ICA:fpga_count=1 ^
        --set-device ICA:probe_timeout=100 ^
         --set-device ICA:timing=0.22 ^
         --api-listen ^
         2>log
         2>log
   '''Note: Make sure you have right to access the Avalon nano dev(eg./dev/ttyACM0)'''
 
  Note: See the details about the timing in README. It works ~4GH/s(400 * 11.8) at 400MHz.
  timing = (1 / (4 * 10 ** 9)) * 10 ** 9 (python format)
 
* MHS Cur calculation
  MHS Cur = Diff1 Work * (Difficulty Accepted / (Difficulty Accepted + Difficulty Rejected + Difficulty Stale)) * 60/ Elapsed * 71582788 / 1000000
  Note:
  1.if Difficulty Accepted + Difficulty Rejected + Difficulty Stale = 0, then Difficulty Accepted / (Difficulty Accepted + Difficulty Rejected + Difficulty Stale) = 1.
  2.Get all the infomation through ./bfgminer-rpc -o summary
 
* BFGMiner release from luck.dashjr
  http://luke.dashjr.org/programs/bitcoin/files/bfgminer/
 
==== AvalonMiner ====
It is developed under Windows with Chinese UI only, You can import the solution and crack it by yourself. It is distributed under UNLICENSE.Source code can be download here: <ref>https://github.com/Canaan-Creative/Avalon-nano/tree/master/gui_1.0</ref>
 
===== Release =====
[http://downloads.canaan-creative.com/software/avalon_nano/software/20140911/ 20140911]
* Avalon3 nano windows miner(20140911)
* Beautifull GUI
* Auto detect Avalon nano
 
[http://downloads.canaan-creative.com/software/avalon_nano/software/20140803/ 20140803]
* Avalon3 nano windows miner(20140803) first version
* Support bfgminer only
* Support icarus protocal
 
===== Run or Debug with CLI =====
# Copy BfgMiner to a safe place.
# Uninstall Avalon GUI Miner
# Modify the icadbg.cmd(under BfgMiner folder) with your correct com port.
# Double click icadbg.cmd.
Note: BFGMiner location: (C:\Program Files (x86)\Avalon Nano\BfgMiner)
 
=== Hardware ===
==== Schematics ====
* [http://downloads.canaan-creative.com/software/avalon_nano/doc/sch/Avalon_usb_sch.pdf Avalon-usb schematics]
 
==== LPC11U14 Spec ====
{| class='wikitable'
|-
| Type || Infomation
|-
| Processor || NXP's Cortex-M0 LPC11U14 microcontroller
|-
| Flash || 32 kB
|- 
| Data Memory || 6 kB
|-
| Clock Crystals || 12.000 MHz crystal for CPU
|}
 
==== Clock ====
{| class='wikitable'
|-
| Type  ||  Value
|-
| LPC11U14 (External)   ||  48.000 MHz
|-
| A3233 XCLK (From LPC11U14)  ||  24.000 MHz
|}
 
==== LED ====
{| class='wikitable'
|-
| Color || Memo
|-
| Green || Idle status
|-
| Red/Blue || Working (Frequency high -> low,led red -> blue)
|-
| Red blinking || Overheating
|}
 
==== Programmer ====
* SmartPro 5000U-Plus
 
==== SWD Debuger ====
LPC11U14 only support swd debug.
The debugger can also be used to program the LPC11U14 chip.
===== LPCXpresso =====
* Installation and Activation
  LPCXpresso download link <ref>https://www.lpcware.com/lpcxpresso/download</ref>
  Free Edition is enough. Then activate it. <ref>http://www.lpcware.com/lpcxpresso/activate</ref>
 
* LPC-Link diagnostics
  Diagnostics when connecting to LPC-Link
 
  1.  lpc-link info
  crt_emu_lpc11_13_nxp -info-emu -wire=winusb
 
  2.  target info
  crt_emu_lpc11_13_nxp -info-target -pLPC11U14/201 -wire=winusb -4
 
  3. burn and run axf file
  crt_emu_lpc11_13_nxp -pLPC11U14/201 -wire=winusb -flash-load-exec nxp_lpcxpresso_11u14_periph_blinky.axf
 
  4. info scan
  crt_emu_lpc11_13_nxp -info-scan -wire=winusb
 
  5. semi_host debug
  use newlib semihost
 
* How to debug issues with gdb (Works on OSX)
    Compile the souce with debug, then run gdb with the following commands:
    1.arm-none-eabi-gdb avalon_nano.axf
    2.target extended-remote | crt_emu_cm_redlink -g -2 -vendor=NXP -pLPC11U14/201 -flash-driver=LPC11_12_13_32K_4K.cfx
    3.load
 
* How to debug issues with gdb (Works on Ubuntu14.04)
    Compile the souce with debug, then run gdb with the following commands:
    1.arm-none-eabi-gdb avalon_nano.axf
    2.target extended-remote | crt_emu_lpc11_13_nxp -g -mi -2 -pLPC11U14/201 -vendor=NXP -e0 -wire=winUSB -flash-driver=LPC11_12_13_32K_4K.cfx
    3.load
 
    Then you can use gdb as you want
 
===== ULINK 2 =====
* Configure ULINK2 for LPCXpresso
1.Change boot mode to CMSIS-DAP
Use the [http://www.keil.com/support/man/docs/ulink2/ulink2_boot_mode.htm Boot Mode Utility] to change the mode like this: UL2_Configure B1.
2.Set jumper to 3.3V position
See [http://www.keil.com/support/man/docs/ulink2/ulink2_hw_jumpers.htm  Jumpers]
3.Connect Avalon nano to ULINK2
Check [http://support.code-red-tech.com/CodeRedWiki/HardwareDebugConnections SWD Connector Pinout], need connect SCLK,SWIO,GND only.
 
=== Firmware ===
==== Reflash ====
* Avalon3 nano firmware burner <ref>http://downloads.canaan-creative.com/software/avalon_nano/burner</ref>
 
==== Release ====
[http://downloads.canaan-creative.com/software/avalon_nano/firmware/20140523/ 20140523]
* Avalon3 nano firmware(20140523-dd84b993)
* Support nonce receive timeout check
* Support adjust freq for 100Mhz to 360Mhz,freq value after reset is 360Mhz
 
[http://downloads.canaan-creative.com/software/avalon_nano/firmware/20140519/ 20140519]
* Avalon3 nano firmware(20140519-8c38877c):first version
* Avalon3 nano test scripts found here:[https://github.com/BitSyncom/avalon-extras/tree/master/scripts a3233_avalon_usb_testbench.sh]
* Support adjust freq for 360Mhz to 400Mhz,value after reset is 400Mhz
* Include avalon3 nano module test(avalon_bsp_testben)
* bfgminer(0676fa314a9cc1491ad2e5f5c6a5e97f38fa67e3),how to run:http://wiki.0xf8.com/index.php/Bfgminer
 
[http://downloads.canaan-creative.com/software/avalon_nano/firmware/nexttesting/ NEXT-TESTING]
* NOTICE: Only for testing
* Adjust LED color according to the temperature
 
=== Review ===
* https://bitcointalk.org/index.php?topic=1022764.0
 
=== Issues ===
* OpenOCD is not support ULINK2 (See src/jtag/drivers/ulink.c)
 
== Hardware version 2.0 ==
=== Features ===
* VID/PID: 0x29F1/0x33F3
* [https://github.com/Canaan-Creative/MM/blob/avalon4/firmware/doc/protocol.md MM protocol] support
* It use HID CDC, without need driver installation.
* Smart [[#LED|LED]] indicator
* Overheating protection. (>= 65℃)
* Adjust the hashrate automatically by temperature (~1.0GH/s -  ~3.6GH/s)
* Current:0.018A ~ 0.917A
* Voltage:4.97V ~ 5.179V
 
=== Software ===
It can support Avalon miner, CGMiner for now.
==== Avalon miner ====
The easiest way to mining.
# [https://chrome.google.com/webstore/detail/avalon-miner/odlgkocclgbbahkiajhldmlbmefpcjnc?hl=en-US Install from chrome web store]
# [http://downloads.canaan-creative.com/software/avalon_nano2/app/Avalon_miner_latest.crx Install from local crx]
 
==== CGMiner Under Ubuntu 14.04 ====
* Download / Compile / Run
'''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 -o http://stratum.pool:3333 -u work -p pass
or
sudo ./cgminer -o http://stratum.pool:3333 -u work -p pass --api-allow W:192.168.2.1 --api-listen $@ 2>./log
 
=== [https://en.bitcoin.it/wiki/Avalon_nano#Hardware Hardware] ===
=== Firmware ===
==== Release ====
[http://build.canaan-creative.com:8080/~mikeqin/avalonnano2/ Daily Building]


= LED =
[http://downloads.canaan-creative.com/software/avalon_nano2/firmware/2015-08-25/ 2015-08-25]
* Color
* Avalon nano 2.0 firmware (3U1505-4481b7e0): first version
Avalon nano can display run status through LED colors.


IDLE:green
== References ==
<references />


NORMAL:from red to blue
== FAQ ==
* How to debug Avalon miner App under Chrome browser ?
# Enter the follow under the address bar.
#:chrome://extensions/
# Change to Developer mode in the right corner.
# Select Avalon miner background page, Enable console log in the Developer Tools. Filter: Status
#:utils.enableLog()
# Then open Avalon miner App, and update Pool Settings, then Enter mining.
You can check firmware version in the Miner App, and check the Status in the Developer Tools.


PROTECT:red blink
Don't forge update your device permission under Linux.


= Firmware =
Under Ubuntu 14.04 LTS, you can add a rules under /etc/udev/rules.d, Make sure the user is a part of plugdev group
* http://downloads.canaan-creative.com/software/avalon_nano/firmware/latest/


= Documents =
The content of the rules is :
* http://downloads.canaan-creative.com/software/avalon_nano/doc/
SUBSYSTEMS=="usb", ATTRS{idVendor}=="29f1", ATTRS{idProduct}=="33f3", GROUP="plugdev"


= Links =  
== Links ==
* [http://www.nxp.com/documents/data_sheet/LPC11U1X.pdf LPC11U1x Datasheet]
* [http://docs.lpcware.com/usbromlib/v1.0/ USBD ROM Stack]
* [http://www.nxp.com/documents/user_manual/UM10462.pdf LPC11U1x User Guide]
* [http://www.nxp.com/documents/user_manual/UM10462.pdf LPC11U1X User Manual]
* http://downloads.canaan-creative.com/software/avalon_nano/tools/
* [http://www.lpcware.com/content/nxpfile/lpcopen-software-development-platform-lpc11xx-packages-0 LPCOpen sourcecode]
* [http://docs.lpcware.com/lpcopen/v1.03/ LPCOpen docs]
* [http://www.lpcware.com/system/files/LPCXpressoLPC11U14revA_0.pdf LPC11U14 Rev A Schematic]
* [http://www.nxp.com/documents/errata_sheet/ES_LPC11U1X.pdf Errata sheet LPC11U1x]
* [http://support.code-red-tech.com/CodeRedWiki/UsingGDB?highlight=%28LPC\-Link%29 Using command line GDB]
* Baremetal programming
** http://eleceng.dit.ie/frank/arm/BareMetalLPC1114/index.html
** http://eewiki.net/display/microcontroller/Getting+Started+with+NXP%27s+LPC11XX+Cortex-M0+ARM+Microcontrollers
** http://tech.munts.com/MCU/Frameworks/RaspberryPi/expansion/LPC1114/
* ULINK2
** [http://www.keil.com/support/docs/3632.htm ULINK: How to downgrade the firmware of ULINK2/ME]
** [http://www.keil.com/support/man/docs/ulink2/ulink2_fw_upgrade.htm Firmware Upgrade Utility]
** [http://www.keil.com/support/man/docs/ulink2/ulink2_trblsh_hwcheck.htm Hardware Checklist]
** [http://www.keil.com/support/man/docs/uv4/uv4_cl_programflash.htm Program Flash Example]
* LPC-Link
** [http://www.support.code-red-tech.com/CodeRedWiki/BootingLPCLink?highlight=%28dfu%5C-util%29 Booting LPC-Link]
** [http://www.support.code-red-tech.com/CodeRedWiki/LPCLinkDiagnostics?highlight=%28dfu%5C-util%29 Diagnostics when connecting to LPC-Link]
* [http://www.keil.com/support/man/docs/dapdebug/dapdebug_introduction.htm About CMSIS-DAP]
* [http://www.lpcware.com/content/nxpfile/an11321-porting-cmsis-dap-debugger-cortex-m0-platform Porting the CMSIS-DAP debugger to the Cortex-M0 platform]
* [http://microcontrollershop.com/product_info.php?products_id=4838 LPC11U14 ARM Cortex-M0 Board]
* [http://www.lpcware.com/content/blog/application-programming-iap-code-example In-Application Programming (IAP) Code Example]
* Software for flashing / upgrading firmware
** [http://www.lpcware.com/lpcxpresso/download LPCXpresso] (SWD method)
* [http://www.keil.com/support/man/docs/ulink2/ulink2_hw_connectors.htm Target Connectors]
* [https://www.lpcware.com/content/faq/lpcxpresso/regaining-debug-access Regaining debug access to target MCU]

Latest revision as of 04:12, 13 July 2016

It's a usb dongle, using only one A3233.

Hardware version 1.0

Features

  • VID/PID: 0x1FC9/0x0083
  • Icarus protocol support
  • It use USB CDC, without need driver installation under Linux
  • Smart LED indicator
  • Overheating protection. (>= 65℃)
  • Adjust the hashrate automatically by temperature (~1.0GH/s - ~3.6GH/s)

Note: You may need install driver for windows before usage. Please down it here [1]

Software

It can support CGMiner, BFGMiner and AvalonMiner(Based on BFGMiner) for now.

CGMiner Under Ubuntu 14.04

  • Download / Compile / Run
Download
Inside your home directory, download CGMiner
git clone https://github.com/Canaan-Creative/cgminer
Compile
cd cgminer
git checkout origin/avalon-usb -b avalon-usb
./autogen.sh --enable-icarus
make -j 4
Run
sudo ./cgminer --icarus-options 115200:1:1 --icarus-timing 0.22 -o http://stratum.pool:3333 -u  work -p pass 
or
sudo ./cgminer --icarus-options 115200:1:1 --icarus-timing 0.22 -o http://stratum.pool:3333 -u  work -p pass --api-allow W:192.168.2.1 --api-listen $@ 2>./log
  • Patches
Patch for Canaan Creative's CGMiner: 001-avalon3-nano.patch
For what: CGMiner patch.
From where: Based c5ec1171@https://github.com/Canaan-Creative/cgminer/tree/avalon2
Comments: 
 	Support avalon3 nano in cgminer.
 	Support Icarus protocol.

BFGMiner

  • Run
 Run under Linux
 ./bfgminer \
       -S ICA:/dev/ttyACMx \
       -o stratum+tcp://stratum.ozco.in:80 -O mikeqin.avalon:1234 \
       --set-device ICA:baud=115200 \
       --set-device ICA:reopen=timeout \
       --set-device ICA:work_division=1 \
       --set-device ICA:fpga_count=1 \
       --set-device ICA:probe_timeout=100 \
       --set-device ICA:timing=0.22 \
       --api-listen \
       2>log
 Run under Windows
 bfgminer.exe ^
       -S ICA:\\.\COMn ^
       -o stratum+tcp://stratum.ozco.in:80 -O mikeqin.avalon:1234 ^
       --set-device ICA:baud=115200 ^
       --set-device ICA:reopen=timeout ^
       --set-device ICA:work_division=1 ^
       --set-device ICA:fpga_count=1 ^
       --set-device ICA:probe_timeout=100 ^
       --set-device ICA:timing=0.22 ^
       --api-listen ^
       2>log
 
 Note: See the details about the timing in README. It works ~4GH/s(400 * 11.8) at 400MHz.
 timing = (1 / (4 * 10 ** 9)) * 10 ** 9 (python format)
  • MHS Cur calculation
 MHS Cur = Diff1 Work * (Difficulty Accepted / (Difficulty Accepted + Difficulty Rejected + Difficulty Stale)) * 60/ Elapsed * 71582788 / 1000000
 Note:
 1.if Difficulty Accepted + Difficulty Rejected + Difficulty Stale = 0, then Difficulty Accepted / (Difficulty Accepted + Difficulty Rejected + Difficulty Stale) = 1.
 2.Get all the infomation through ./bfgminer-rpc -o summary
  • BFGMiner release from luck.dashjr
 http://luke.dashjr.org/programs/bitcoin/files/bfgminer/

AvalonMiner

It is developed under Windows with Chinese UI only, You can import the solution and crack it by yourself. It is distributed under UNLICENSE.Source code can be download here: [2]

Release

20140911

  • Avalon3 nano windows miner(20140911)
  • Beautifull GUI
  • Auto detect Avalon nano

20140803

  • Avalon3 nano windows miner(20140803) first version
  • Support bfgminer only
  • Support icarus protocal
Run or Debug with CLI
  1. Copy BfgMiner to a safe place.
  2. Uninstall Avalon GUI Miner
  3. Modify the icadbg.cmd(under BfgMiner folder) with your correct com port.
  4. Double click icadbg.cmd.

Note: BFGMiner location: (C:\Program Files (x86)\Avalon Nano\BfgMiner)

Hardware

Schematics

LPC11U14 Spec

Type Infomation
Processor NXP's Cortex-M0 LPC11U14 microcontroller
Flash 32 kB
Data Memory 6 kB
Clock Crystals 12.000 MHz crystal for CPU

Clock

Type Value
LPC11U14 (External) 48.000 MHz
A3233 XCLK (From LPC11U14) 24.000 MHz

LED

Color Memo
Green Idle status
Red/Blue Working (Frequency high -> low,led red -> blue)
Red blinking Overheating

Programmer

  • SmartPro 5000U-Plus

SWD Debuger

LPC11U14 only support swd debug. The debugger can also be used to program the LPC11U14 chip.

LPCXpresso
  • Installation and Activation
 LPCXpresso download link [3]
 Free Edition is enough. Then activate it. [4]
  • LPC-Link diagnostics
 Diagnostics when connecting to LPC-Link
 
 1.  lpc-link info
 crt_emu_lpc11_13_nxp -info-emu -wire=winusb
 
 2.  target info 
 crt_emu_lpc11_13_nxp -info-target -pLPC11U14/201 -wire=winusb -4
 
 3. burn and run axf file
 crt_emu_lpc11_13_nxp -pLPC11U14/201 -wire=winusb -flash-load-exec nxp_lpcxpresso_11u14_periph_blinky.axf
 
 4. info scan
 crt_emu_lpc11_13_nxp -info-scan -wire=winusb
 
 5. semi_host debug
 use newlib semihost
  • How to debug issues with gdb (Works on OSX)
   Compile the souce with debug, then run gdb with the following commands:
   1.arm-none-eabi-gdb avalon_nano.axf
   2.target extended-remote | crt_emu_cm_redlink -g -2 -vendor=NXP -pLPC11U14/201 -flash-driver=LPC11_12_13_32K_4K.cfx
   3.load
  • How to debug issues with gdb (Works on Ubuntu14.04)
   Compile the souce with debug, then run gdb with the following commands:
   1.arm-none-eabi-gdb avalon_nano.axf
   2.target extended-remote | crt_emu_lpc11_13_nxp -g -mi -2 -pLPC11U14/201 -vendor=NXP -e0 -wire=winUSB -flash-driver=LPC11_12_13_32K_4K.cfx
   3.load
   Then you can use gdb as you want
ULINK 2
  • Configure ULINK2 for LPCXpresso
1.Change boot mode to CMSIS-DAP
Use the Boot Mode Utility to change the mode like this: UL2_Configure B1.

2.Set jumper to 3.3V position
See Jumpers

3.Connect Avalon nano to ULINK2
Check SWD Connector Pinout, need connect SCLK,SWIO,GND only.

Firmware

Reflash

  • Avalon3 nano firmware burner [5]

Release

20140523

  • Avalon3 nano firmware(20140523-dd84b993)
  • Support nonce receive timeout check
  • Support adjust freq for 100Mhz to 360Mhz,freq value after reset is 360Mhz

20140519

  • Avalon3 nano firmware(20140519-8c38877c):first version
  • Avalon3 nano test scripts found here:a3233_avalon_usb_testbench.sh
  • Support adjust freq for 360Mhz to 400Mhz,value after reset is 400Mhz
  • Include avalon3 nano module test(avalon_bsp_testben)
  • bfgminer(0676fa314a9cc1491ad2e5f5c6a5e97f38fa67e3),how to run:http://wiki.0xf8.com/index.php/Bfgminer

NEXT-TESTING

  • NOTICE: Only for testing
  • Adjust LED color according to the temperature

Review

Issues

  • OpenOCD is not support ULINK2 (See src/jtag/drivers/ulink.c)

Hardware version 2.0

Features

  • VID/PID: 0x29F1/0x33F3
  • MM protocol support
  • It use HID CDC, without need driver installation.
  • Smart LED indicator
  • Overheating protection. (>= 65℃)
  • Adjust the hashrate automatically by temperature (~1.0GH/s - ~3.6GH/s)
  • Current:0.018A ~ 0.917A
  • Voltage:4.97V ~ 5.179V

Software

It can support Avalon miner, CGMiner for now.

Avalon miner

The easiest way to mining.

  1. Install from chrome web store
  2. Install from local crx

CGMiner Under Ubuntu 14.04

  • Download / Compile / Run
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 -o http://stratum.pool:3333 -u work -p pass
or
sudo ./cgminer -o http://stratum.pool:3333 -u work -p pass --api-allow W:192.168.2.1 --api-listen $@ 2>./log

Hardware

Firmware

Release

Daily Building

2015-08-25

  • Avalon nano 2.0 firmware (3U1505-4481b7e0): first version

References

FAQ

  • How to debug Avalon miner App under Chrome browser ?
  1. Enter the follow under the address bar.
    chrome://extensions/
  2. Change to Developer mode in the right corner.
  3. Select Avalon miner background page, Enable console log in the Developer Tools. Filter: Status
    utils.enableLog()
  4. Then open Avalon miner App, and update Pool Settings, then Enter mining.

You can check firmware version in the Miner App, and check the Status in the Developer Tools.

Don't forge update your device permission under Linux.

Under Ubuntu 14.04 LTS, you can add a rules under /etc/udev/rules.d, Make sure the user is a part of plugdev group

The content of the rules is : SUBSYSTEMS=="usb", ATTRS{idVendor}=="29f1", ATTRS{idProduct}=="33f3", GROUP="plugdev"

Links