Successfully reported this slideshow.
Your SlideShare is downloading. ×

Blockchain Software for Hardware: The Canaan AvalonMiner Open Source Embedded System

Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad

Check these out next

1 of 42 Ad

Blockchain Software for Hardware: The Canaan AvalonMiner Open Source Embedded System

Download to read offline

The Canaan AvalonMiner 721 is hardware blockchain securing hardware technology built using Open Source software. The latest hardware AvalonMiner 721 contains 72 customized ASIC processors named Canaan A3212 which are harmonized together and then across potentially thousands of other AvalonMiners, to do SHA-256 hashing calculations.From the software toolchain all the way to OpenWrt used in Canaan's AvalonMiner Controller, this presentation describes the entire process from start to finish how the software is built, developed, launched and maintained. Of specific interest are the contributions by Canaan back to the Open Source community, including to CGMiner, OpenWRT and other projects.

The Canaan AvalonMiner 721 is hardware blockchain securing hardware technology built using Open Source software. The latest hardware AvalonMiner 721 contains 72 customized ASIC processors named Canaan A3212 which are harmonized together and then across potentially thousands of other AvalonMiners, to do SHA-256 hashing calculations.From the software toolchain all the way to OpenWrt used in Canaan's AvalonMiner Controller, this presentation describes the entire process from start to finish how the software is built, developed, launched and maintained. Of specific interest are the contributions by Canaan back to the Open Source community, including to CGMiner, OpenWRT and other projects.

Advertisement
Advertisement

More Related Content

Slideshows for you (20)

Viewers also liked (16)

Advertisement

Similar to Blockchain Software for Hardware: The Canaan AvalonMiner Open Source Embedded System (20)

Recently uploaded (20)

Advertisement

Blockchain Software for Hardware: The Canaan AvalonMiner Open Source Embedded System

  1. 1. Blockchain Software for Hardware The Canaan AvalonMiner Open Source Embedded System
  2. 2. @qinfengling
  3. 3. Fengling Name: Fengling or Mike Location: Beijing Interests: Linux, Open Source Projects (OSS and OSH) Contacts: @qinfengling (github, twitter) Experience: 2008 - 2013 Digital Video Broadcast * Software Engineer * GUI (Microwindows apps) * Driver porting (OSD, OS, Demux, Descramble, Tuner etc) 2013 - 2014 IoT * Software Engineering Manager * IOT gateway (JenNet-IP, OpenWrt, TL-WR703N porting) 2014 - Now Blockchain * Senior Software Engineer * Avalon Miner (OpenWrt, CGMiner, LuCI, AUC, MM, from Avalon 3)
  4. 4. Icarus
  5. 5. Lancelot
  6. 6. Avalon1 3module
  7. 7. Avalon2 single
  8. 8. Avalon3 single
  9. 9. Avalon nano
  10. 10. Avalon4.0 - 1T
  11. 11. Avalon4 mini
  12. 12. Avalon nano2
  13. 13. Follow @canaanio First 20 Get Free Avalon nano 2 :)
  14. 14. Avalon6 v6.0
  15. 15. AvalonMiner 741
  16. 16. AvalonMiner Open Source Embedded System
  17. 17. Products we have made Period Product ASIC Protocol 2011-11 Icarus FPGA Icarus 2012-5 Lancelot FPGA Icarus 2013-1 Avalon1 A3256 Avalon 2013-10 Avalon2 A3255 MM 2014-5 Avalon3 A3233 MM 2014-8 Avalon nano A3233 Icarus 2014-10 Avalon4 A3222 MM 2015-7 Avalon4 mini A3222 Icarus 2015-8 Avalon nano2 A3233 Icarus 2015-10 Avalon6 A3218 MM 2016-10 Avalon Miner 721 A3212 MM
  18. 18. Connections
  19. 19. Embedded System - AvalonMiner Controller
  20. 20. Embedded System - AvalonMiner Controller
  21. 21. Embedded System - AvalonMiner Controller
  22. 22. Embedded System - AUC
  23. 23. Embedded System - MM
  24. 24. How to generate the firmware - OpenWrt Step by step 1. Clone OpenWrt source code git clone git://github.com/openwrt/openwrt.git openwrt cd openwrt && git checkout 851a8906 2. Add new feeds src-git luci https://github.com/Canaan-Creative/luci.git;cgminer-webui-avalon7 src-git cgminer git://github.com/Canaan-Creative/cgminer-openwrt-packages.git 3. Choose the target and compile, that is it.
  25. 25. How to generate the firmware - OpenWrt Automatically wget https://raw.githubusercontent.com/Canaan-Creative/Avalon-extras/master/scripts/build-avalon- image.sh -O ./build-avalon-image.sh AVA_MACHINE=avalon7 AVA_TARGET_BOARD=rpi3-modelb ./build-avalon-image.sh Dailybuild http://build.canaan-creative.com:8080/~buildbot/avalon7/openwrt/ Buildbot http://build.canaan-creative.com:8010
  26. 26. How to generate the firmware - AUC Step by step 1. SDK: Install LPCXpresso 6 or above (Free Edition) 2. Clone source code git clone https://github.com/Canaan-Creative/Avalon-USB-converter.git Avalon-USB- converter 3. Change to Avalon-USB-converter and compile. cd Avalon-USB-converter make -C firmware/auc
  27. 27. How to generate the firmware - MM Step by step First you need install the ISE for sure. then edit the isedir under xilinx.mk by default we are using /home/Xilinx/14.6/ISE_DS/ $ make -C firmware/toolchain # Install the lm32-rtems-4.11- toolchain under /opt $ make -C firmware # Generate the final bitstream file .bit/.mcs under firmware/ $ make -C firmware load # Load the config bit file to FPAG by using Xilix Platform cable More details: https://github.com/Canaan-Creative/MM#how-to-build
  28. 28. About Repository Name AUC OpenWrt MM mm-tools CGMiner LuCI cgminer-openwrt- packages Avalon 4 master trunk@4307 6 avalon4 master avalon4 cgminer-webui- avalon4 master Avalon 5 master trunk@4307 6 a5dev master avalon4 cgminer-webui- avalon4 master Avalon Miner 6 master cac971da master avalon4 cgminer-webui- avalon6 master Avalon Miner 721 master 851a8906 master master cgminer-webui- avalon7 master Miner use MM protocol
  29. 29. About Repository Miner use icarus protocol Name CGMiner App Avalon nano avalon-usb Windows App Avalon nano2 avalon4 Chrome App Avalon4 mini avalon4 Chrome App
  30. 30. Contribute
  31. 31. To community
  32. 32. To community
  33. 33. To community Hardware support Raspberry Pi 1, 2, 3 Zedboard Orange Pi 2 TL-WR703N TL-MR3020 Linksys WRT1200AC Documents Bitcoin Wiki OpenWrt Wiki Qi-Hardware Wiki Wikipedia
  34. 34. To Canaan
  35. 35. How to start ? Wiki https://en.bitcoin.it/wiki Forum http://bitcointalk.org IRC #bitcoin-dev, #avalon on freenode Book Mastering Bitcoin
  36. 36. Demo
  37. 37. Demo (Avalon nano2) Mining with Chrome App
  38. 38. Follow @canaanio First 20 Get Free Avalon nano 2 :)
  39. 39. Q & A
  40. 40. qinfengling@canaan.io

Editor's Notes

  • We will talk about miner that support MM or icarus protocol.
  • OpenWrt
    cgminer-openwrt-packages (CGMiner + mm-tools)
    LuCI
  • OpenWrt
    cgminer-openwrt-packages (CGMiner + mm-tools)
    LuCI
  • OpenWrt
    cgminer-openwrt-packages (CGMiner + mm-tools)
    LuCI
  • USB2IIC
    USB-CDC class
    Run on LPC11u14 (from NXP)
    Firmware based on lpcusbsio, HID->CDC
    Makefile based project
    Distribute in UNLICENSE(Code from Canaan)
  • Blockchain task generator
    Used in Avalon4, Avalon5, Avalon6,Avalon7xx (Fast miner like rigs)
    Only Stratum protocol support
    Generate task inside the FPGA (SHA-256 core)
    Nonce and difficulty verify
  • driver-icarus.c driver-avalon-miner.c driver-avalon4.c driver-avalon7.c
  • Fork and PR through GitHub
    Code style: Linux kernel
    Never commit useless code
    Your feedback or new issues are welcome
  • If you have great interest in Blockchain, just start from Bitcoin.
    Read the bitcoin wiki and thread in the forum.
    Then the mastering Bitcoin is also very good way to start
  • Install Chrome app through app store or direct install from file.
    Plug in the miner to PC, that is it.

×