Avalon nano: Difference between revisions

From Bitcoin Wiki
Jump to navigation Jump to search
Mikeqin (talk | contribs)
No edit summary
Mikeqin (talk | contribs)
Line 8: Line 8:


= Schematics =
= Schematics =
* [[媒体文件:Avalon usb sch.PDF|Avalon-usb schematics]]
* [http://downloads.canaan-creative.com/software/avalon_nano/doc/Avalon_usb_sch.pdf Avalon-usb schematics]


= BFGMiner =
= BFGMiner =

Revision as of 08:27, 19 November 2014

Configrations

  • LPC11u14
 Clock Crystals        48.000 MHz 
  • A3233
 Clock Crystals        24.000 MHz

USB: 29F1:33F1

Schematics

BFGMiner

  • 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
 备注:timing详见bfgminer的README,如果当前配置的频率是400MHz,则Hashrate=400*11.8=~4Gh/s
 <math>\mbox{timing} = \frac{1}{4\times 10^9}\times 10^9</math>
  • BFGMiner MHS Cur
 MHS Cur = Diff1 Work * (Difficulty Accepted/(Difficulty Accepted+Difficulty Rejected+Difficulty Stale)*60/(Elapsed)*71582788/(1000000)
 所有的信息可以通过./bfgminer-rpc -o summary获取。
 注:如果Difficulty Accepted+Difficulty Rejected+Difficulty Stale = 0,则Difficulty Accepted/(Difficulty Accepted+Difficulty Rejected+Difficulty Stale) 取1。
  • BFGMiner release from luck.dashjr
 http://luke.dashjr.org/programs/bitcoin/files/bfgminer/

Cgminer for Avalon nano

  • Cgminer(Icarus)compile guide
 sudo apt-get install libudev-dev 
 ./autogen.sh && ./configure --enable-icarus && make
  • Cgminer(Icarus)Run params
 ./cgminer \
       -o stratum+tcp://stratum.ozco.in:80 -O mikeqin.avalon:1234 \
       --icarus-options 115200:1:1 \
       --icarus-timing 0.22 \
       --api-listen \
       2>log
  Note:Please add 01-cgminer.rules to your udev rules before you run.

LED

IDLE:Green。
Working:From red to blue( frequence high to low)。
Hot Alert:RED blinking。

ULINK 2

SmartPro 5000U-Plus

LPC11u14

  • LPC11U14 LPCXpresso Board Spec
 Processor             NXP's Cortex-M0 LPC11U14 microcontroller in LQFP48 package
 Flash                 32 kB
 Data Memory           6 kB
 Clock Crystals        12.000 MHz crystal for CPU
 Dimensions            35 x 140 mm
 Power                 3.15V-3.3V external powering, or from USB via JTAG probe (LPC-LINK)
 Connectors            
                             • mini-B USB connector for LPC11U14 USB interface
                             • All LPC11U14 pins available on expansion connector (2x27 pin rows, 100 mil pitch, 900 mil between rows)
 Other                  
                             • Embedded JTAG (LPC-LINK) functionality via LPCXpresso toolchain
                             • LPC-LINK can be connected to external target processor after modifications to the LPCXpresso board
                             • LED on PIO0_7
  • 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
  • Gdb connect
 1. gdb connect
 arm-none-eabi-gdb nxp_lpcxpresso_11u14_periph_blinky.axf
 target extended-remote | crt_emu_lpc11_13_nxp -pLPC11U14/201 -2 -wire=winusb
 load

Firmware

Reflash

Patches

 For what: Cgminer patch.
 From where: Based c5ec1171@https://github.com/BitSyncom/cgminer/tree/avalon2
 Comments: Support avalon3 nano in cgminer.
           Support Icarus protocol.

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

AvalonMiner

20140911

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

20140614

Windows GUI

CLI

  • BFGMiner (C:\Program Files (x86)\Avalon Nano\BfgMiner)
 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.

Links