Pages:
Author

Topic: [Enhanced Firmware Mod] Dragon Bitcoin Miner ALL (1T,1.5T,2T) versions - page 8. (Read 14751 times)

sr. member
Activity: 474
Merit: 252
Dragon Miner 1T Firmware Mod README

Requirements
To get started with the new firmware you need a SD Card, size at least 7.7 GB or bigger.

Quote
Hint: It is best to format your SD card before copying the files onto it.

Firmware Download and Setup
  • 1) Download the firmware from one of the Mirrors in the first post
  • 2) Insert the SD card in a computer with an SD card reader
  • 3) Extract the *.img file from the downloaded rar archive
  • 4) Flash the image to the SD card (Guides for Linux, Windows and OS X here: https://www.raspberrypi.org/documentation/installation/installing-images/)
  • 5) Power down your Miner if not already done so
  • 5) When this process has finished, safely remove the SD card and insert it into your Miners Raspberry Pi unit
  • 6) Power on your Miner and wait a minute until the SSH and web services start
  • 7) Login to the web interface via http://192.168.1.254 OR via it's DHCP assigned address at http://$IP

You can now change Pool + Worker settings and also IP address, Gateway and DNS if needed.
Press the "Ok" Button to activate your changes and reboot to apply them automatically.


There is a small bug that might prevent cgminer from starting if not all three pool fields are populated. Make sure you fill all entries for the moment.


Voltage and Clock Tuning
The image supports voltage and blade clock tuning for all Miner versions (that i am aware of). To change these settings, SSH into the Miner and modify the file /var/config/extraopts. Modify the variables "a1vol" and "a1clock" only!

Restart your Miner with
Code:
shutdown -r now
to apply these settings automatically.

Code:
# Those settings are read and applied additionally
# Do not change if you have to ask what this means
#
# max overclock and voltage
# a1vol=890
# a1clock=1100
#
# max underclock and voltage
# a1vol=600
# a1clock=700
#
export a1vol=650
export a1clock=1000

Extranonce support via stratum-proxy
The image supports stratum-proxy optionally. The proxy needs to be enables and pool settings need to be adjusted, too.

Howto enable and configure stratum-proxy

1.) Edit your pool info in /opt/stratum-proxy/stratum-proxy.conf (this is a partial snippet only). Of course, the pool must support extranonce, too!

Example:
Quote
 "pools" : [ {
    "name" : "f2pool",
    "host" : "stratum+tcp://stratum.f2pool.com:3333",
    "user" : "mxnsch.worker17",
    "password" : "x",
    "enableExtranonceSubscribe" : true,
    "appendWorkerNames" : false,
    "workerNameSeparator" : ".",
    "useWorkerPassword" : false,
    "weight" : 9,
    "isEnabled": true
  }, {
    "name" : "Antpool2",
    "host" : "stratum+tcp://stratum.f2pool.com:3333",
    "user" : "mxnsch.worker28",
    "password" : "x",
    "enableExtranonceSubscribe" : true,
    "appendWorkerNames" : false,
    "workerNameSeparator" : ".",
    "useWorkerPassword" : false,
    "weight" : 9,
    "isEnabled": true
  }, {  
    "name" : "Antpool1",
    "host" : "stratum+tcp://stratum.antpool.com:443",
    "user" : "mxnsch.worker38",
    "password" : "x",
    "enableExtranonceSubscribe" : true,
    "appendWorkerNames" : false,
    "workerNameSeparator" : ".",
    "useWorkerPassword" : false,
    "weight" : 1,
    "isEnabled": true
  } ]

2.) SSH into the miner and edit the file /etc/rc.local.real and remove the hashes (#) in front of the two relevant lines. Restart your Miner with
Code:
shutdown -r now
    to apply these settings automatically. You can access the stratum proxy web interface at
http://192.168.1.254 OR via it's DHCP assigned address at http://$IP[/li][/list]

3.) Last but not least, you must change your pool settings to point cgminer to the local stratum-proxy. The defaults are 127.0.0.1 and port 3333. Restart your Miner with
Code:
shutdown -r now
to apply these settings automatically.

You are DONE! ;-)

Troubleshooting
The default login for is username "pi" with the password "raspberry". Enter "sudo -s" for full root permissions.
Given a working network connection, the cgminer jobs will be started automatically. If it does not work for some reason, login via SSH and check the output of "/var/www/run.sh". A good starting point is also the process output list. Run the command with
Code:
ps auxwww
as root to see all running processes. cgminer and stratum-proxy (if running) should be clearly visible.
sr. member
Activity: 474
Merit: 252
TL;DR
This post is about an image of the latest firmware of the well known Dragon 1T / 1.5T / 2T miner with my enhancements.
---------

If you have any issues, disable voltage and clock tweaks (see second post) and / or try with one of the stock firmwares first. They are linked below. Please report back any issues!

I did a little tweaks here and there after getting my hands on a Dragon Miner 1T recently. As there are still people looking for the firmware on this board, i created an (imho clearly!) enhanced image of the latest firmware of the Dragon 1T (and higher hashing) miner.

Firmware Changes
The firmware was upgraded with great care to make sure everything is running smooth.

Main features
  • Voltage and Blade Clock can now modified on ALL hardware revisions (via SSH)
  • Optional Stratum-proxy included!
  • All relevant Security Patches have been applied
  • Base Distribution is now Raspbian with important components from "jessie"
  • Web interface was completely refurbished and is now password protected and more mobile / tablet friendly
  • Upgrader miner.php from https://github.com/ckolivas/cgminer.git
  • Miner-Jobs (cgminer) and Hashrate are monitored via "cron" and are restarted automatically if required
  • SSH Access configured
  • Logs are rotated to ensure disk does not run out of space
  • Added a link to this thread as reference to the landing page
  • Activated modest overclocking for RPi
  • Properly configured LOCALES (en_US.UTF-8)
  • Filesystem cleanup and reduction to fit SD cards with at least 7.7GB
  • Removed Chinese and Russian language interfaces
  • Removed useless info.php file
  • ... and the cgminer version from the 2TH image (works for all Draon Miners)

Original Base firmwares (for troubleshooting or if you want to diff for some reason):

Credentials
  • The preconfigured IP is 192.168.1.254 with a Gateway of 192.168.1.1 OR provided via DHCP (see download options).
  • SSH login into the Raspberry with "pi" as username and "raspberry" as password.
  • The username of all password protected pages is "admin" and the password is empty.
  • You can change all relevant parameters via web frontend or by SSHing to the Miner / RPi.

Screenshots
Refurbished Web UI:


Login Dialog:


Startup script:


Voltage and Clock settings:


New landing page:


Stratum Proxy interface:


Established SSH access:


cgminer in process list:


Donations
There is absolutely no auto donation or hashing code in this image.

I am working as Senior Linux / Security Consultant and enjoy tweaking miners as hobby for almost three years now. If you want to donate some hashing, just let the miner run with my preconfigured workers for a little while or use the address from my signature.

Questions
Feel free to ping me with any questions.

DOWNLOAD
Mirror 1: Firmware preconfigured with IP 192.168.1.1.254 | Mirror 2: Firmware preconfigured with IP 192.168.1.1.254
Mirror 1: Firmware preconfigured with DHCP | Mirror 2: Firmware preconfigured with DHCP

SHA1(dragon_miner_mxnschmod_firmwarev1.2_20160108_ip254.rar)= 5de83e14ced8aa3326d2046a5d5b4a1b95d30a03
SHA1(dragon_miner_mxnschmod_firmwarev1.2_20160108_DHCP.rar)= 1b2fdf0e215c8b47e81925274cde4a8484640009
Pages:
Jump to: