Coder Social home page Coder Social logo

toome123 / 8iaxe Goto Github PK

View Code? Open in Web Editor NEW

This project forked from patsch91/8iaxe

0.0 0.0 0.0 18.59 MB

Miner with 8 Asic-chips based on the 0xaxe

License: CERN Open Hardware Licence Version 2 - Strongly Reciprocal

Shell 0.01% Rust 3.83% HTML 96.15%

8iaxe's Introduction

8]axe

The 8]axe is a 8-ASIC-BM1366 Miner based on the 0xaxe

rev1: averaging at about 3.3-3,6TH/s with ~90 Watts on the wall on default settings (485Mhz)

note: The 8]axe is not a stand-alone device because it only supports USB. It can be run connected to a Raspberry Pi without problems. Also multiple devices can be connected to a single Pi.

ASICs

The 8]axe uses 8 ASICs of type BM1366

image

Compilation (Bootloader or CMSIS-DAP)

Start WSL on your PC and go through the followig steps:

# install curl
sudo apt install curl

# install rust
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh

# add to ~/.bash.rc (afterwards, opening a new terminal is needed)
echo 'source "$HOME/.cargo/env"' >> ~/.bashrc

# clone repository
git clone https://github.com/shufps/0xaxe

# clone submodules
cd 0xaxe
git submodule init
git submodule update

# add rust target for STM32L0 variants
rustup target add thumbv6m-none-eabi

# build firmware for L072
cd firmware/fw-L072KZ
./build.sh

Using it on Windows running WSL

For windows the usbipd is needed to connect the device to WSL. Install it from here:

https://github.com/dorssel/usbipd-win/releases

Afterwards reboot your PC and open the cmd as Administrator.

Connect the USB to your PC and power on the 12V while pressing the BOOT Button to start the device in BOOT-Mode

Then:

C:\Windows\System32>usbipd list
Connected:
BUSID  VID:PID    DEVICE                                                        STATE
2-1    046d:c52b  Logitech USB Input Device, USB-Eingabegerät                   Not shared
3-1    0c76:161f  USB PnP Audio Device, USB-Eingabegerät                        Not shared
3-2    046d:c52b  Logitech USB Input Device, USB-Eingabegerät                   Not shared
3-3    046d:c548  Logitech USB Input Device, USB-Eingabegerät                   Not shared
4-1    8087:0aa7  Intel(R) Wireless Bluetooth(R)                                Not shared
4-2    2e8a:000c  Picoprobe CMSIS-DAP v2, Serielles USB-Gerät (COM3)            Attached

Note the BUSID for the STM32. Then

C:\Windows\System32> usbipd bind --busid 4-2

Afterwards start your WSL Linux

Then attach the device with:

C:\Windows\System32> usbipd attach --wsl --busid 4-2

When it is running you can check in your WSL-Linux if the probe is detected:

probe-rs list

The following debug probes were found:
[0]: Picoprobe CMSIS-DAP (VID: 2e8a, PID: 000c, Serial: E66138528337A532, CmsisDap)

Installation via USB Bootloader on board with BOOT button

The STM32L072CB variant has an integrated DFU Bootloader that starts when pressing the BOOT button during reset.

Afterwards the firmware can be flashed via dfu-utils:

# install cargo-binutils and llvm tools
cargo install cargo-binutils
rustup component add llvm-tools-preview

# create the firmware.bin
DEFMT_LOG=info cargo objcopy --release --bin qaxe -- -O binary 0xaxe.bin

# install dfu-utils
sudo apt-get install dfu-util

# after booting, list the devices
dfu-util --list

# flash the binary
dfu-util -a 0 -s 0x08000000:leave -D 0xaxe.bin

Config

Use the "config.yml.example" of the Piaxe-Miner and change it as follows:

debug_bm1366: false
verify_solo: false
miner: 0xaxe

# works only with public pool
#suggest_difficulty: 2048

0xaxe:
  name: 8]axe
  chips: 8
  fan_speed_1: 0.8
  asic_frequency: 480
  extranonce2_interval: 1.5
  serial_port_asic: "/dev/ttyACM0"
  serial_port_ctrl: "/dev/ttyACM1"

...

Mining Client

image

Stratum Mining Client:
https://github.com/shufps/piaxe-miner

Misc

If you like this project and want to support future work, feel free to donate to: (https://github.com/shufps/0xaxe)

8iaxe's People

Contributors

shufps avatar patsch91 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.