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

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

Embed Size (px)

Citation preview

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

Blockchain Software for Hardware

The Canaan AvalonMiner Open Source

Embedded System

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

@qinfengling

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

FenglingName: 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)

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

Icarus

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

Lancelot

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

Avalon1 3module

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

Avalon2 single

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

Avalon3 single

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

Avalon nano

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

Avalon4.0 - 1T

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

Avalon4 mini

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

Avalon nano2

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

Follow @canaanio

First 20 Get Free

Avalon nano 2 :)

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

Avalon6 v6.0

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

AvalonMiner 741

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

AvalonMiner Open Source Embedded

System

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

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

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

Connections

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

Embedded System -

AvalonMiner Controller

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

Embedded System -

AvalonMiner Controller

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

Embedded System -

AvalonMiner Controller

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

Embedded System - AUC

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

Embedded System - MM

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

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.

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

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

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

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

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

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

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

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

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

Contribute

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

To community

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

To community

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

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

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

To Canaan

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

How to start ?

Wiki

https://en.bitcoin.it/wiki

Forum

http://bitcointalk.org

IRC

#bitcoin-dev, #avalon on freenode

Book

Mastering Bitcoin

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

Demo

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

Demo (Avalon nano2)Mining with Chrome App

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

Follow @canaanio

First 20 Get Free

Avalon nano 2 :)

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

Q & A

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