Post
Topic
Board Mining (Altcoins)
Re: Baikal X10 ⚡OVERCLOCK⚡ Claim reward 0.2 BTC for TUTORIAL HOW TO :)⚡⚡⚡⚡
by
Baikalek
on 05/02/2018, 06:35:41 UTC
Quote
Im willing to use my baikal giant B as a test subject. Let me know what you need.
If we can figure an overclock or a new algo that would be great!

Please try this on Giant B: https://bitcointalk.org/index.php?topic=2790982.msg29541197#msg29541197

Hello ,
this comes up..

dfu-util: No DFU capable USB device available
baikal@Baikal:~$ dfu-util
dfu-util 0.8

OK, then:
- backup your \usr\bin\update_fw.py
- edit this file via SFTP red must be change
Code:
#!/usr/bin/env python
import subprocess
import os
import sys
from subprocess import Popen, PIPE
import fcntl
import time
import glob
tmpfile = '/home/baikal/tmp.bin'
path = '/media/boot/G*.bin'
fwfile = glob.glob(path)
if not fwfile:
   print 'No firmware'
   sys.exit()
Code:

USBDEVFS_RESET= 21780

# enter dfu mode
def enter_dfumode():
  subprocess.call('echo 0 > /sys/class/gpio_sw/PA18/data', shell=True)
  subprocess.call('echo 0 > /sys/class/gpio_sw/PA10/data', shell=True)
  subprocess.call('echo 1 > /sys/class/gpio_sw/PA10/data', shell=True)

def exit_dfumode():
  subprocess.call('echo 1 > /sys/class/gpio_sw/PA18/data', shell=True)
  subprocess.call('echo 0 > /sys/class/gpio_sw/PA10/data', shell=True)
  subprocess.call('echo 1 > /sys/class/gpio_sw/PA10/data', shell=True)

def reset_usb(driver):
  try:
    lsusb_out = Popen("lsusb | grep -i %s"%driver, shell=True, bufsize=64, stdin=PIPE, stdout=PIPE, close_fds=True).stdout.read().strip().split()
    bus = lsusb_out[1]
    device = lsusb_out[3][:-1]
    f = open("/dev/bus/usb/%s/%s"%(bus, device), 'w', os.O_WRONLY)
    fcntl.ioctl(f, USBDEVFS_RESET, 0)
  except Exception, msg:
    print ""

def update_firmware():
  enter_dfumode()
  reset_usb("DFU")
  print 'Downloading... ' + fwfile[0]
 cmd = 'sudo dfu-util -a 0 -d 0483:df11 -s 0x08000000:leave -U /home/baikal/tmp.bin'
Code:
 subprocess.call(cmd, shell=True)
  cmd = 'sudo rm -rf ' + path
  subprocess.call(cmd, shell=True)

enter_dfumode()
reset_usb("STM32F407")
reset_usb("DFU")
update_firmware()
exit_dfumode()

print "Done"
- run ./update_fw.py in folder \usr\bin\ via PuTTY
- in folder /home/baikal/ is now this file tmp.bin
- upload back your original update_fw.py and reebot your Baikal