root@Baikal:~# lshw
baikal
description: Computer
width: 32 bits
*-core
description: Motherboard
physical id: 0
*-memory
description: System memory
physical id: 0
size: 193MiB
*-cpu:0
physical id: 1
bus info: cpu@0
size: 816MHz
capacity: 1008MHz
capabilities: cpufreq
*-cpu:1
physical id: 2
bus info: cpu@1
size: 816MHz
capacity: 1008MHz
capabilities: cpufreq
*-cpu:2
physical id: 3
bus info: cpu@2
size: 816MHz
capacity: 1008MHz
capabilities: cpufreq
*-cpu:3
physical id: 4
bus info: cpu@3
size: 816MHz
capacity: 1008MHz
capabilities: swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpv4 idiva idivt cpufreq
*-usbhost:0
product: SW USB2.0 'Open' Host Controller (OHCI) Driver
vendor: Linux 3.4.39 ohci_hcd
physical id: 1
bus info: usb@8
logical name: usb8
version: 3.04
capabilities: usb-1.10
configuration: driver=hub slots=1 speed=12Mbit/s
*-usbhost:1
product: SW USB2.0 'Open' Host Controller (OHCI) Driver
vendor: Linux 3.4.39 ohci_hcd
physical id: 2
bus info: usb@7
logical name: usb7
version: 3.04
capabilities: usb-1.10
configuration: driver=hub slots=1 speed=12Mbit/s
*-usb
description: Communication device
product: Baikal Miner
vendor: Baikal
physical id: 1
bus info: usb@7:1
version: 2.00
serial: BKLU
capabilities: usb-2.00
configuration: driver=usbfs maxpower=100mA speed=12Mbit/s
*-usbhost:2
product: SW USB2.0 'Open' Host Controller (OHCI) Driver
vendor: Linux 3.4.39 ohci_hcd
physical id: 3
bus info: usb@6
logical name: usb6
version: 3.04
capabilities: usb-1.10
configuration: driver=hub slots=1 speed=12Mbit/s
*-usbhost:3
product: SW USB2.0 'Open' Host Controller (OHCI) Driver
vendor: Linux 3.4.39 ohci_hcd
physical id: 4
bus info: usb@5
logical name: usb5
version: 3.04
capabilities: usb-1.10
configuration: driver=hub slots=1 speed=12Mbit/s
*-usbhost:4
product: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
vendor: Linux 3.4.39 ehci_hcd
physical id: 5
bus info: usb@4
logical name: usb4
version: 3.04
capabilities: usb-2.00
configuration: driver=hub slots=1 speed=480Mbit/s
*-usbhost:5
product: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
vendor: Linux 3.4.39 ehci_hcd
physical id: 6
bus info: usb@3
logical name: usb3
version: 3.04
capabilities: usb-2.00
configuration: driver=hub slots=1 speed=480Mbit/s
*-usbhost:6
product: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
vendor: Linux 3.4.39 ehci_hcd
physical id: 7
bus info: usb@2
logical name: usb2
version: 3.04
capabilities: usb-2.00
configuration: driver=hub slots=1 speed=480Mbit/s
*-usbhost:7
product: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
vendor: Linux 3.4.39 ehci_hcd
physical id: 8
bus info: usb@1
logical name: usb1
version: 3.04
capabilities: usb-2.00
configuration: driver=hub slots=1 speed=480Mbit/s
*-network
description: Ethernet interface
physical id: 9
logical name: eth0
serial: c2:47:93:ac:13:83
size: 100Mbit/s
capacity: 100Mbit/s
capabilities: ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=sunxi_geth driverversion=SUNXI Gbgit driver V1.1 duplex=full ip=10.12.14.111 link=yes multicast=yes port=MII speed=100Mbit/s
Here's HWINFO from UBUNTU.
root@Baikal:/opt/scripta/bin# ./sgminer -n
[11:39:32] USB all: found 9 devices - listing known devices
.USB dev 0: Bus 7 Device 2 ID: 0483:5740
Manufacturer: 'Baikal'
Product: 'Baikal Miner'
Here's USBINFO from SGMINER.
In the \ usr \ bin folder then the update_fw.py file is with this content (maybe it will help):
#!/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()
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 -D ' + fwfile[0]
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"
Please type the commands I can download FW from the X10 miner. Not from OpenPI.