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.
25. 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.
26. 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
27. 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
28. 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
30. 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
34. 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
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
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.