Show Posts
|
Pages: [1] 2 3 »
|
Here's the root user hash for anyone who can crack it. This should allow us to SSH into our own devices.
$6$LDl3NtVWLpmGp1$52ivJuFI39PLeUerTxouNpwZn/WsJNlxhvQyUwPjJdxnoo2f93D1d904xFefd91qVWWjrC2jnj7Xz5oMaWAep1
|
|
|
Anyone know the SSH credentials for these machines? I've searched both DragonMint and Innosilicon support with no luck.
Thanks
I emailed Innosilicon "post purchase support" concerning this and got the following: Dear Customer, Thanks for letting me know your concern. However, I'm sorry to let you know that we are unable to provide this. Hope for your understanding.
|
|
|
Anyone know the SSH credentials for these machines? I've searched both DragonMint and Innosilicon support with no luck.
Thanks
|
|
|
Hi,
Yesterday, on my X10, one of the blue LEDs went out, but the miner still hashes at the correct speed. I restarted, reset the pi and controller, and tried different SD card with no effect. Today, I spent a few hours online, looking for a reason/solution, but couldn't find any. When I went back to the miner, I found another blue LED has gone out (still hashing correctly). What could be causing this?
I've seen this on quite a few of the X10's I've been working with. As long as the cards still occasionally get the flashing green LED (I believe 3 flashes/second when a share is found) it should still be mining. I've yet to find one that wasn't working fine when the blue LED was off or intermittent. Definitely keep us up to date if you find otherwise.
|
|
|
The latest firmware (v1.7) for the stm32f407 (released in PiZero_GX10_180410_V1.2.img) has changes that makes our software non functional. If people want to run this source, they need to help reverse engineer it or keep the v1.6 firmware from PiZero_GX10_171229_V1.1.img
I've started reverse engineering it, but am not done yet. I'll gladly share notes with anyone who's interested.
|
|
|
From the new image: Start-Date: 2018-04-08 20:31:58 Commandline: apt-get install secure-delete
Start-Date: 2018-04-08 20:45:48 Commandline: apt-get install testdisk Covering their tracks this time, then making sure the secure delete worked using the same program used on this thread to extract deleted files. Hi Baikal! LOL, that is hilarious! Too bad they forgot to securely delete the 3 earlier versions of the STM firmware on the fat32 partition. Nice find!
|
|
|
Has anyone measured the new algorithms' power usage?
|
|
|
Updating sgminer and the STM firmware seems to be all that is needed. Both are obviously found in the new image file using something like 7zip to open the archive, then browse to 1.img/opt/bin/scripta/sgminer and 0.fat/GX10.bin. Copy both to your X10, the GX10 file should go in /media/boot. Rebooting should auto-update the STM firmware. Remember to do chmod +x /opt/scripta/bin/sgminer after you've replaced the old version. Don't forget about the web interface changes (adding of the new names) for people who actually use it.
|
|
|
I just created a python script to do it. Just duplicate one of the python files in /usr/bin/ and paste this code into it. Then, if successful, then result will reside as /home/baikal/GX10 (Extracted).bin #!/usr/bin/env python import subprocess import os import sys from subprocess import Popen, PIPE import fcntl import time import glob
tmpfile = '/home/baikal/GX10 (Extracted).bin' USBDEVFS_RESET= 21780
# enter dfu mode def enter_dfumode(): subprocess.call('sudo /opt/scripta/startup/miner-stop.sh', shell=True) 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 extract_firmware(): print "Extracting firmware..." cmd = 'sudo dfu-util -a 0 -d 0483:df11 -s 0x08000000:leave -U ' + tmpfile subprocess.call(cmd, shell=True) #n = os.path.getsize(fwfile[0]) #cmd = 'cmp '+ fwfile[0] + ' ' + tmpfile + ' -n ' + str(n) #ret = subprocess.call(cmd, shell=True) #subprocess.call('sudo rm -rf /home/baikal/tmp.bin', shell=True) #return ret enter_dfumode() reset_usb("STM32F407") reset_usb("DFU")
extract_firmware() exit_dfumode()
print "Done"
this one thank you. I have giant B on hand.. Is it okay to use this? Just a heads up, if you get an error complaining about a "(", just change the following: ... tmpfile = '/home/baikal/GX10 (Extracted).bin' ...
to something w/o the "()" like: ... tmpfile = '/home/baikal/extracted.bin' ...
Come on Baikal, release the source code to sgminer!
|
|
|
We need Wolf here Been trying to get WOLF. on board since Jan. He doesn't want to tell his secrets. Hope someone who figures it out will at least give me a few days to mine and make a little for my effort, not to mention @Cod3gen's hard work.
|
|
|
I just created a python script to do it. Just duplicate one of the python files in /usr/bin/ and paste this code into it. Then, if successful, then result will reside as /home/baikal/GX10 (Extracted).bin #!/usr/bin/env python import subprocess import os import sys from subprocess import Popen, PIPE import fcntl import time import glob
tmpfile = '/home/baikal/GX10 (Extracted).bin' USBDEVFS_RESET= 21780
# enter dfu mode def enter_dfumode(): subprocess.call('sudo /opt/scripta/startup/miner-stop.sh', shell=True) 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 extract_firmware(): print "Extracting firmware..." cmd = 'sudo dfu-util -a 0 -d 0483:df11 -s 0x08000000:leave -U ' + tmpfile subprocess.call(cmd, shell=True) #n = os.path.getsize(fwfile[0]) #cmd = 'cmp '+ fwfile[0] + ' ' + tmpfile + ' -n ' + str(n) #ret = subprocess.call(cmd, shell=True) #subprocess.call('sudo rm -rf /home/baikal/tmp.bin', shell=True) #return ret enter_dfumode() reset_usb("STM32F407") reset_usb("DFU")
extract_firmware() exit_dfumode()
print "Done"
|
|
|
For obtaining the assembly code I used eabi objdump, and for generating a more readable C pseudo code I used IDA Pro. Keep in mind that the pseudo code is just a reasonable guess.
Thank you for this information! I was able to use the following command to extract the assembly code: objdump -D --target binary -EL -Mforce-thumb -marm -z GX10_V16.bin > GX10_V16.bin.asm
Any chance you could explain how you got the pseudo code from IDA? I'm running the following version "ida_pro_v7.0_and_hex-rays_decompiler_armx64armx64x86." I'd like to compare all the firmware images against one another.
|
|
|
Its been brought to my attention from multiple points that this version will OC Baikal Giant B! Compiling and using my version it will deliver ~10-15% more hashes on LBRY than stock version based on pool side results. Great news for Giant B owners, which im not..!! :-S
Some changes in code and it will deliver even more. Will add a new post when i`ve had access to a Giant B.
Is the Giant B firmware actually accepting the "baikal_set_options" clock command or is this being achieved in another manner?
|
|
|
I have actually seen the firmware version change when I changed the firmware to an older version (Notice the firmware fix on v22 for asic_count_r:
GX10_V16_20171111 (From X10 v1.1 Image).bin: baikal_getinfo : Firmware Version: 22 - Hardware Version: 113 - BBG?: 7 - Clock: 220 - Clock << 1: 440 - ASIC Count: 45 - ASIC Count R: 45 - ASIC Ver: 114
GX10_V13_20171109 (From X10 v1.0 Image).bin: baikal_getinfo : Firmware Version: 19 - Hardware Version: 113 - BBG?: 7 - Clock: 220 - Clock << 1: 440 - ASIC Count: 45 - ASIC Count R: 23 - ASIC Ver: 114
GX10_V11_2017 (From X10 v1.1 Image).bin: baikal_getinfo : Firmware Version: 17 - Hardware Version: 113 - BBG?: 7 - Clock: 210 - Clock << 1: 420 - ASIC Count: 45 - ASIC Count R: 23 - ASIC Ver: 114
Okey. I noticed the clock report went down to 210 on V11.. Did you perhaps notice any differences to hash speed? I didn't check! I back-dated the firmware, then tried to get the clock to accept a value then I went back to the current version.
|
|
|
Got the same results as you did when i checked that. Im not so sure either. Ive tried to send multiple different values just to see if i could get the read data to change at all, but its just none. But then again, this SG Miner covers many of baikal`s miners, including earlier models - which i think this function is for. Did go over the responses from ST chip, only data field; Command BAIKAL_SET_ID Returns: Data(0) -> 1 Data(7) -> TEMP
Command BAIKAL_SEND_WORK Returns: Data(0) -> 220 (Frequency?) Data(7) -> TEMP
Command BAIKAL_SET_OPTION Returns: Data(0) -> 220 (Frequency?) Data(7) -> TEMP
Command BAIKAL_RESET Returns: Data(0) -> 3 Data(7) -> TEMP
Command BAIKAL_GET_INFO Returns: Data(1) -> 22 (Firmware ver?) Same return on Giant N so cant be.. Data(2) -> 113 (HW Ver?) Return 81 on Giant N, that may be firmware ver. Data(3) -> 7 (BBG, whats that?) Return 0 on Giant N Data(4) -> 220 (Frequency?) Return 210 on Giant N Data(5) -> 64 (Total count of ASIC chips?) Return 32 on Giant N Data(6) -> 64, 63 on two boards(Total count of Working ASIC chips?) Return 32 on Giant N Data(7) -> 114 (Asic version?) returns 81 on Giant N.
Command GET_RESULT Returns: Data(7) -> TEMP I have actually seen the firmware version change when I changed the firmware to an older version (Notice the firmware fix on v22 for asic_count_r: GX10_V16_20171111 (From X10 v1.1 Image).bin: baikal_getinfo : Firmware Version: 22 - Hardware Version: 113 - BBG?: 7 - Clock: 220 - Clock << 1: 440 - ASIC Count: 45 - ASIC Count R: 45 - ASIC Ver: 114 GX10_V13_20171109 (From X10 v1.0 Image).bin: baikal_getinfo : Firmware Version: 19 - Hardware Version: 113 - BBG?: 7 - Clock: 220 - Clock << 1: 440 - ASIC Count: 45 - ASIC Count R: 23 - ASIC Ver: 114 GX10_V11_2017 (From X10 v1.1 Image).bin: baikal_getinfo : Firmware Version: 17 - Hardware Version: 113 - BBG?: 7 - Clock: 210 - Clock << 1: 420 - ASIC Count: 45 - ASIC Count R: 23 - ASIC Ver: 114
|
|
|
So, I'm confused by the mystic line of code in driver-baikalu.c: msg.data[0] = (clk == 0) ? clk : ((clk / 10) % 20) + 2; I decided to run some common settings. These resulting values in no way correlate, even if the controller board was accepting input: mhz | ((clk / 10) % 20) + 2 ------------------------------- 150 | 17 200 | 2 250 | 7 300 | 12 350 | 17 400 | 2 Perhaps someone smarter can enlighten me? Also, I found that the following line seems to be leftover from an earlier generation of miner (PiZero_170605_V1.4.img): miner->clock = msg.data[3] << 1; But I'm not sure why they are bitwise left shifting it.
|
|
|
Nicely done! How many different source files did you need to find and/or modify? When you call baikal_setoption() what arguments do you use? Do you plan on open-sourcing the work you've done or listing the modifications you had to make?
I will be adding current extracted code on github shortly, and hope that others can contribute. Agreed, you have done an amazing job. I'd be surprised if we can't at least get the code up to par with the compiled sgminer. Do you make changes on the orange pi itself and compile/test or do you do all of that on a separate pc? From reading the bash history, of which there is a ton of, it appears they were compiling on the device during testing. Here's a chunk of it: ./configure make ls chmod a+x ./update.sh ls sudo ./update.sh sudo screen -r sudo /opt/scripta/startup/miner-stop.sh sudo screen -r sudo reboot vi /etc/rc.local ls cd ls ls -al rm -rf .subversion/ ls sudo shutdown -h now sudo chmod 755 /etc/rc.local sudo reboot lsmod sudo shutdown -h now ls vi /etc/rc.local sudo screen -r ls cd scripta/ ls cd etc/ ls sudo cp /etc/rc.local rc.local.zero ls svn diff cd ls cd ls sudo vi /etc/rc.local sudo reboot ls sudo vi /etc/rc.local sudo reboot ls sudo /etc/rc.local sudo vi /etc/rc.local sudo reboot ls sudo ntpd -qg date suvo vi /etc/rc.local sudo vi /etc/rc.local sudo reboot sudo screen -r ls sudo vi /etc/rc.local sudo reboot ls sudo vi /etc/rc.local reboot sudo reboot sudo screen -r ls sudo vi /etc/rc.local sudo reboot sudo /etc/rc.local sudo vi /etc/rc.local sudo reboot sudo vi /etc/rc.local sudo reboot ls sudo vi /etc/rc.local sudo vi /etc/default/ntp sduo vi /etc/ntp.conf sudo vi /etc/ntp.conf sudo reboot sudo screen -r ls sudo vi /etc/rc.local ls sudo vi /etc/rc.local sudo reboot ls cd scripta/ ls cd etc/ ls vi rc.local.zero sudo screen -r sudo reboot cd scripta/etc/ ls vi rc.local vi rc.local.zero sudo screen -r ls sudo vi /etc/rc.local sudo reboot ls sudo vi /etc/rc.local sudo reboot sudo screen -r sudo vi /etc/rc.local sudo hwclock --show sudo hwclock --systohc sudo hwclock --show sudo apt-get install fake-hwclock sudo /etc/init.d/fake-hwclock start sudo reboot date sudo screen -r ls sudo vi /etc/rc.local sudo reboot ls cd scripta/ ls vi install_zero.sh date sudo screen -r cd ls cd scripta/ ls cd etc/ ls cp /etc/rc.local rc.local.zero svn commit -m "modify rc.local.zero" . cd .. svn update ls cp update_one.sh update_zero.sh vi update_zero.sh ls svn add update_zero.sh svn update svn diff svn status svn commit -m "" ls chmod a+x ./update_zero.sh ls sudo ./update_zero.sh sudo reboot ls cd sgminer-5.5.0/ ls chmod a+x ./autogen.sh ./autogen.sh ls ./configure make ls sudo ./update.sh cd ls sudo screen -r sudo reboot sudo screen -r ls rm -rf sgminer-5.5.0/ ls sudo shutdown -h sudo shutdown -h now sudo screen -r sudo apt-get install samba sudo shutdonw -h now sudo shutdown -h now cd /opt/ ls cd baikal_back20161213185554/ ls cd e cd www/ ls cd html/ ls cd ls cd /opt/ ls cd scripta/ ls cd etc/ ls cd backup/ ls cd Example/ ls cd etc/ ls vi miner.options.json sudo vi miner.pools.json ls vi scripta.conf ls vi miner.conf sudo vi miner.conf cd .. ls cd .. ls sudo rm -rf Example/ sudo mv 20170209-1925/ Example cd ls sudo cp miner.html /var/www/partials/ sudo cp login.php /var/www/ ls cd /var/www/ ls ls -l vi login.php sudo vi login.php cd /var/www/partials/ ls vi miner.html cd .. ls sudo vi login.php ls sudo shutdown -h now cd /var/www/ ls cd ls ifconfig sudo cp login.php /var/www/ ls sudo cp login.php /var/www/ ls cd /opt/ ls cd scripta/ ls cd etc/ ls cd backup/ ls rm -rf Example/ sudo rm -rf Example/ ls sudo mv 20170210-1625/ sudo mv 20170210-1625/ Example ls sudo cp 20170210-1627/* Nicehash-USA/ sudo cp -a 20170210-1627/* Nicehash-USA/ ls rm -rf 20170210-1627/ sudo rm -rf 20170210-1627/ ls sudo cp -a 20170210-1630/* Zpool/ sudo rm -rf 20170210-1630/ ls sudo cp -a 20170210-1631/* Nicehash-Japan/ sudo rm -rf 20170210-1631/ ls sudo cp -a 20170210-1632/ Zpool/ sudo rm -rf 20170210-1632/ ls -l ls l s-l ls -l; ls -l sudo chown -R www-data.www-data . ls -l sudo cp -a 20170210-1633/* Nicehash-USA/ ls cat 20170210-1633/etc/miner.conf q ls rm -rf 20170210-1633/ sudo rm -rf 20170210-1633/ ls cd 20170210-1635/ ls cd etc/ ls vi miner. vi miner.conf cd .. ls sudo cp -a 20170210-1635/* Nicehash-Japan/ sudo rm -rf 20170210-1635/ ls sudo cp -a 20170210-1652/* Nicehash-Europe/ ls sudo rm 20170210-1652/ sudo rm -rf 20170210-1652/ ls sudo cp -a 20170210-1656/* Nicehash-China/ cd Nicehash- cd Nicehash-China/ cd etc/ ls vi miner.conf cd .. ls sudo rm -rf 20170210-1656/ ls sudo cp -a 20170210-1657/* Miningpoolhub/ sudo rm -rf 20170210-1657/ ls sudo cp -a 20170210-1702/* Zpool/ sudo rm -rf 20170210-1702/ ls cd ls cp -a /opt/scripta/etc/backup/* . ls rm -rf Example/ rm -rf Miningpoolhub/ rm -rf Nicehash-China/ rm -rf Nicehash-* ls rm -rf Zpool/ ls rm -rf login.php rm -rf miner.html ls cd ls cd ls ls -al cd .cache/ ls ls -al rm -rf motd.legal-displayed ls cd .. ls sudo shutdown -h now ls df cd ls sudo cp f_settings.php /var/www/ sudo cp miner.html /var/www/partials/ cd /var/www/ ls ls -l cd partials/ ls ls -l cd ls cd /opt/scripta/etc/ ls cd backup/ ls ls -l sudo cp -a /home/baikal/backup/* . ls -l cd .. ls ls -l sudo chown -R www-data.root backup/ ls -l cd backup/ ls -l cd Example/ ls ls -l cd etc/ ls -l ls cd ls rm -rf f_settings.php rm -rf miner.html ls cd /opt/scripta/etc/ ls vi miner.conf ls sudo shutdown -h now ls cd backup/ ls cd ls rm -rf backup/ ls sudo svn co svn://192.168.0.5/baikal/software/trunk/sgminer-5.5.0 ls cd sgminer-5.5.0/ ls chmod a+x autogen.sh sudo ./autogen.sh ls ./autogen.sh ls -l sudo chown -R baikal.baikal . ls -l ./autogen.sh ./configure make ls sudo ./update.sh ls cd ls sudo rm -rf sgminer-5.5.0/ ls ls -al rm -rf .subversion/ ls sudo shutdown -h now cd /opt/scripta/etc/ ls sudo vi /etc/rc.local sync sudo shutdown -h ow sudo shutdown -h now sudo halt sudo cp f_settings.php /var/www/ cd /var/www/ ls ls -l vi f_settings.php cd ls rm f_settings.php ls sudo reboot sudo halt vi /var/www/f_settings.php ls sudo screen -r ls sudo rm -rf /opt/scripta/bin/sgminer sudo screen -r ls -l /opt/scripta/bin/ ls sudo cp ./sgminer /opt/scripta/bin/ cd /opt/scripta/bin/ ls sudo chmod 755 sgminer ls -l cd ls rm -rf sgminer sudo screen -r sudo halt ls sudo vi /etc/rc.local ls sudo rm -rf /opt/scripta/bin/sgminer sudo cp ./sgminer /opt/scripta/bin/ cd /opt/scripta/bin/ ls sudo chmod a+x sgminer ls cd ls rm sgminer sudo screen -r sudo reboot sudo screen -r ls sudo vi /etc/rc.local sudo reboot cd /opt/scripta/etc/ ols ls sudo vi miner.conf sudo vi miner.pools.json sudo vi miner.conf ls cd backup/ ls cd Example/ ls ced etc/ ls cd etc/ ls sudo cp /opt/scripta/etc/miner.conf . ls -l sudo cp /opt/scripta/etc/miner.pools.json . ls vi miner.conf ls sudo vi miner.pools.json ls cd ls sudo halt sudo vi /etc/rc.local sync sudo reboot svn co svn co svn://bkls.asuscomm.com/baikal/software/trunk/sgminer-5.5.0 ls cd sgminer-5.5.0/ ls chmod a+x autogen.sh ./autogen.sh ./configure make chmod a+x ./update.sh sudo ./update.sh sudo reboot ls sudo rm -rf sgminer-5.5.0/ ls ls -al rm -rf .subversion/ sudo halt sudo screen -r cd /var/www/ ls vi login.php sudo vi login.php cd ls htop top ls svn co svn://bkls.asuscomm.com/baikal/software/trunk/sgminer-5.5.0 ls cd sgminer-5.5.0/ ls chmod a+x ./autogen.sh ./autogen.sudo apt-get update sudo dpkg --configure -a sudo apt-get update sudo dpkg --configure -a sudo dpkg --configure sudo apt-get autoremove sudo apt-get clean sudo apt-get update dmesg top ls sudo apt-get update dmesg sudo vi /etc/sysctl.conf top ls cd /opt/scripta/bin/ ls mv sgminer sgminer_org sudo mv sgminer sgminer_org sudos screen -r sudo screen -r qq sudo screen -r top q sudo apt-get update dmesg ls cd ls sudo reboot ls top sudo apt-get update sudo /etc/init.d/lighttpd stop sudo /etc/init.d/samba stop sudo apt-get update ls sudo apt-get upgrade ls sudo reboot top sudo apt-get remove samba sudo reboot ls cd /opt/scripta/bin/ ls sudo mv sgminer_org sgminer ls cd ls top sudo apt-get update sudo halt ls top sudo apt-get upgrade sudo apt-get install -y samba avahi-daemon dnsmasq ls sudo apt-get upgrade ls sudo rm -rf /opt/scripta/bin/sgminer sudo mv sgminer /opt/scripta/bin/ cd /opt/scripta/bin/ ls sudo chmod a+x sgminer ls -l sudo screen -r q sudo /etc/init.d/samba restart sudo /etc/init.d/avahi-daemon restart sudo /etc/init.d/dnsmasq restart sudo reboot ls ls -al rm -rf .subversion/ ls sudo screen -r ls sudo halt sudo screen -r sudo halt ls ls -al ls sudo rm -rf /opt/scripta/bin/sgminer sudo mv ./sgminer /opt/scripta/bin/ sudo screen -r ls sudo screen -r ls cd ls cd /etc/cron.d ls vi scripta ls sudo screen -r cd ls cd /opt/scripta/bin/ ls sudo chmod a+x ./sgminer ls sync sudo halt sudo screen -r ls kls sudo vi /etc/rc.local sudo shutdown -h now sudo vi /etc/rc.local sudo vi /etc/rc.local sudo rm /etc/.rc.local.swp sudo vi /etc/rc.local sync sudo reboot sudo vi /etc/rc.local ls top sudo halt sudo /etc/init.d/watchdog start sync sudo reboot htop sudo service watchdog init sudo service watchdog start sync sudo reboot htop sudo update-rc.d sudo update-rc.d watchdog defaults sudo reboot ls htop sudo /etc/init.d/watchdog start htop sudo service watchdog start sudo service watchdog restart sudo service watchdog start sudo reboot cd /sys/devices/platform/sunxi-ddrfreq/ ls cd devfreq/ ls cd sunxi-ddrfreq/ ls cat scaling_max_freq ls cat scaling_min_freq cat cur_freq cat max_freq sudo reboot htop ps aux ps aux | grep watch ls serice watchdog status service watchdog status sudo vi /etc/rc.local serice watchdog status sudo service watchdog status sudo vi /etc/watchdog.conf sudo service watchdog restart sudo service watchdog status sudo reboot service watchdog status sync sudo service watchdog status sudo vi /etc/watchdog.conf ls cd ls svn co svn://bkls.asuscomm.com/baikal/software/trunk/sgminer-5.5.0 ls cd sgminer-5.5.0/ ls svn update cd .. ls rm -rf .subversion/ ls ls -al cd sgminer-5.5.0/ ls chmod a+x autogen.sh ./autogen.sh ./configure make sudo ./update.sh ls sudo shutdown -h now ls cd sgminer-5.5.0/ ls svn update ls cd .svn/ ls vi entries ls cd .. svn relocate svn help relocate ls rm -rf * ls ls -al rm -rf .svn/ ls cd .. ls rm -rf sgminer-5.5.0/ ls svn co svn://192.168.0.5/baikal/software/trunk/sgminer-5.5.0 cd sgminer-5.5.0/ ls chmod a+x autogen.sh ./autogen.sh ./configure make ls sudo ./update.sh ls sudo shutdown -h now ls rm -rf sgminer-5.5.0/ ls cd ls ls -al rm -rf .subversion/ ls ls -al sudo shutdown -h now cd /opt/scripta/etc/ ls cd backup/ ls cd 20170321-1917/ ls cd etc/ ls cd .. ls cd .. ls cd Example/ ls cd etc/ ls ls -l sudo cp ../../20170321-1917/etc/* . ls ls -l cd .. ls cd .. ls sudo rm -rf 20170321-1917/ ls cd .. sudo screen -r sudo halt ls sudo visudo sudo visudo ls sudo /etc/sudoers sudo visudo sudo reboot ls sudo visudo ls sudo screen -r sudo reboot sudo screen -r sudo ls sudo shutdown -h now ls sudo screen -r sudo shutdown sudo shutdown -h now ls cd ls sudo sudo ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime date sudo apt-get install ntp ls date
sudo timedatectl sudo /etc/init.d/ntp stop sudo timedatectl top cd /etc/cron.d ls vi scripta sudo apt-get remove ntp ntpdate --help ntpdate /? ntpdate --help ntpdate -b cd ls sudo ntpdate -b -u 0.pool.ntp.org sudo ntpdate -b -u 0.pool.ntp.orgg sudo ntpdate -b -u 0.pool.ntp.org ls cd ~ ls sudo vi /etc/rc.local sudo reboot dmesg :q ls sudo vi /etc/rc.local sudo screen -r ls sudo vi /etc/rc.local sudo reboot dmesg sudo screen -r ls sudo vi /etc/rc.local sudo reboot ls sudo vi /etc/rc.local sudo reboot date cd ls dmesg sudo /etc/init.d/watchdog start dmesg date dmesg sudo vi /etc/watchdog.conf sudo /etc/init.d/watchdog restart dmesg sudo vi /etc/watchdog.conf ls cd ls sync sudo vi /etc/rc.local sudo /etc/init.d/watchdog restart dmesg ls sudo visudo sudo screen -r ls cd ls sudo screen -r ls ls -l /opt/scripta/bin/ ls sudo rm /opt/scripta/bin/sgminer sudo screen -r sudo mv sgminer /opt/scripta/bin/ cd /opt/scripta/bin/ ls sudo chmod a+x sgminer ls ls -l sudo chmod 755 sgminer ls ls -l sudo screen -r ls sudo sync sudo shutdown -h now ls -al cd ls sudo screen -r ls sudo rm /opt/scripta/bin/sgminer cd ls cd /opt/scripta/bin/ ls sudo mv /home/baikal/sgminer . ls sudo chmod a+x ./sgminer sudo screen -r sudo halt cd /oppu sudo screen -r sudo apt-get update baikal sudo apt-get install gdb gdb sudo apt-get update sudo apt-get install gdb ls sudo /opt/scripta/bin/ ls sudo /opt/scripta/bin/ ls cd /opt/scripta/bin/ ls sudo rm sgminer sudo reboot ls cd sgminer-5.6/ ls vi driver-baikalu.c make sudo ./update.sh sudo screen -r ls sudo screen -r sudo screen -rd sudo screen -r sudo apt-get install gdb cd /opt/scripta/bin/ ls sudo mv sgminer sgminer_new cd ls cd sgminer-5.6/ ls vi sgminer.conf cd ls cd /opt/scripta/bin/ ls sudo mv sgminer_new sgminer ls sudo screen -r ls cd sgminer-5.6/ ls vi sgminer.c make sudo ./update.sh sudo screen -r ifconfig ls cd sgminer-5.6/ cd /opt/scripta/bin/ ls sudo rm sgminer ls sudo screen -r q cd ls cd sgminer-5.6/ ls gdb ./sgminer ./sgminer cd ls cd .sgminer/ ls ls -al cd ls cd sgminer-5.6/ ls sudo ./update.sh sudo screen -r cd ls vi sgminer.conf sudo vi sgminer.conf ls sudo chmod 777 sgminer.conf ls mv sgminer.conf sgminer-5.6/ cd sgminer-5.6/ ls ./sgminer ./sgminer -c ./sgminer.c ./sgminer -c ./sgminer.conf sudo cp sgminer.conf ../.sgminer/ ./sgminer sudo gdb sudo gdb ./sgminer ls vi Makefile ls vi driver-baikalu.c ls vi sgminer.c ls make sudo ./update.sh sudo screen -r ls sudo screen -r ls vi driver-baikalu.c make sudo ./update.sh sudo screen -r vi driver-baikalu.c make sudo ./update.sh sudo screen -r ls vi driver-baikalu.c make ls vi driver-baikalu.c make sudo ./update.sh sudo screen -r vi driver-baikalu.c vi driver-baikal.h make sudo ./update.sh sudo screen -r ls cd sgminer-5.6/ ls make sudo ./update.sh sudo screen -r vi driver-baikalu.c make sudo ./update.sh sudo screen -r sudo ./update.sh sudo screen -r sudo ./update.sh sudo screen -r vi driver-baikalu.c make sudo ./update.sh sudo screen -r sudo ./update.sh sudo screen -r vi driver-baikalu.c vi sgminer.c vi driver-baikal.h vi driver-baikalu.c grep -Rni "update_work" . sudo screen -r ks cd sgminer-5.6/ ls grep -Rni "inappropiate" . grep -Rni "inappropriately" . sudo screen -r vi driver-baikalu.c vi sgminer.c make ls sudo ./update.sh sudo screen -r vi driver-baikalu.c vi sgminer.c make vi sgminer.c make sudo ./update.sh sudo screen -r top ls cd ls ls -al su root ls cd ls cd sgminer-5.6/ ls cd /opt/scripta/ lsl ls cd bin/ ls cd ls cd sgminer-5.6/ ls cd .. ls ls -al cd .sgminer/ ls cd ls finels ls cd ls su root htop ls cd sgminer-5.6/ ls make sudo ./update.sh sudo screen -r ls make sudo ./update.sh sudo screen -r ls cd sgminer-5.6/ ls vi driver-baikal.h ls vi driver-baikalu.c make cd ls cd /opt/scripta/etc/ ls vi miner.conf ls cd cd sgminer-5.6/ ls sudo ./update.sh sudo screen -r sudo ./update.sh sudo screen -r top htop cd sgminer-5.6/ ls vi driver-baikalu.c make sudo ./update.sh sudo screen -r cd ls su root su root ls cd ls su root sudo screen -r ls cd su root cd ls cd sgminer-5.6/ ls vi driver-baikalu.c make sudo ./update.sh sudo screen -r sudo reboot ls cd sgminer-5.6/ ls vi driver-baikalu.c make sudo ./update.sh sudo screen -r vi driver-baikalu.c ls sudo ./update.sh sudo screen -r cd su root ls su root htop ls cd sgminer-5.6/ ls vi driver-baikalu.c make sudo ./update.sh vi driver-baikalu.c make sudo ./update.sh sudo screen -r ls cd sgminer-5.6/ ls vi driver-baikalu.c sudo screen -r sudo ./update.sh sudo screen -r cd ls cd cd sgminer-5.6/ ls vcd sgminer-5.6/ ls cd sgminer-5.6/ ls vi driver-baikalu.c make sudo ./update.sh sudo screen -r sudo screen -rd sudo ./update.sh sudo screen -r vi driver-baikalu.c make sudo ./update.sh sudo screen -r sudo ./update.sh vi driver-baikalu.c make sudo ./update.sh sudo screen -r ls cd sgminer-5.6/ ls make sudo ./update.sh sudo screen -r sudo screen -rd ls cd sgminer-5.6/ ls vi driver-baikalu.c make vi driver-baikalu.c make vi driver-baikalu.c make ls vi driver-baikalu.c make vi driver-baikalu.c make vi driver-baikalu.c make sudo ./update.sh sudo screen -r vi sgminer.c make sudo ./update.sh sudo screen -r make sudo ./update.sh sudo screen -r ls vi sgminer.c make sudo ./update.sh sudo screen -r vi driver-baikalu.c vi sgminer.c make sudo ./update.sh sudo screen -r vi sgminer.c make vi miner.h make sudo ./update.sh sudo screen -r vi sgminer.c make sudo ./update.sh sudo screen -r ls vi sgminer.c make sudo ./update.sh sudo screen -r vi sgminer.c make sudo ./update.sh sduo screen -r sudo u./upda sudo ./update.sh sudo screen -r make sudo ./update.sh sudo screen -r make sudo ./update.sh sudo screen -r amke make sudo ./update.sh sudo screen -r make sudo ./update.sh sudo screen -r make sudo ./update.sh sudo screen -r make sudo ./update.sh sudo screen -r cd sgminer-5.6/ ls vi algorithm.c make sudo ./update.sh sudo screen -r ls vi algorithm.c make vi algorithm.c make vi algorithm.c make sudo ./update.sh sudo screen -r ls vi driver-baikalu.c make vi driver-baikalu.c make sudo ./update.sh sudo screen -r vi algorithm.c make sudo ./update.sh sudo screen -r df htop cd sgminer-5.6/ ls make sudo reboot cd sgminer-5.6/ ls make sudo ./update.sh sudo screen -r ls vi driver-baikalu.c make sudo ./update.sh sudo screen -r vi driver-baikalu.c make sudo ./update.sh sudo screen -r ls vi driver-baikalu.c make sudo ./update.sh sudo screen -r ls make vi driver-baikalu.c sudo ./update.sh sudo screen -r ls vi driver-baikalu.c make sudo ./update.sh sudo screen -r htop sudo screen -r cd sgminer-5.6/ ls vi algorithm.h make sudo ./update.sh sudo screen -r ls vi algorithm. vi algorithm.h make vi algorithm.h make vi algorithm.h make sudo ./update.sh sudo screen -r make sudo ./update.sh sudo screen -r sudo ./update.sh sudo screen -r sudo ./update.sh make sudo ./update.sh ls rm -rf * svn co svn://192.168.0.5/pacific/software/sgminer_5.6.x . cd .. ls svn co svn://192.168.0.5/pacific/software/sgminer_5.6.x . cd sgminer-5.6/ ls cd ls cd ls chmod a+x ./autogen.sh ./autogen.sh ./configure ls make sudo ./update.sh chmod a+x ./update.sh sudo ./update.sh chmod a+x ./update.sh ls sudo screen -r sudo ./update.sh df sudo reboot ls cd sgminer-5.6/ ls vi driver-baikalu.c make sudo ./update.sh sudo screen -r ls vi driver-baikalu.c make sudo ./update.sh sudo screen -r top sudo screen -r vi driver-baikalu.c make sudo ./update.sh sudo screen -r ls vi driver-baikalu.c vi sgminer.c ks ls sudo ./update.sh sudo screen -r ls cd sudo screen -r cd /opt/scripta/bin/ ls ls 0l ls -l ls cd ls vi driver-baikalu.c make ls vi sgminer.c make sudo ./update.sh vi driver-baikalu.c make vi sgminer.c make sudo ./update.sh make sudo ./update.sh ls sudo ./sgminer /opt/scripta/etc/miner.conf sudo ./sgminer -c /opt/scripta/etc/miner.conf sudo ./update.sh sudo reboot sudo ./update.sh sudo screen -r ls svn update vi sgminer.c svn diff | ^M svn diff q svn diff | ^M svn diff | ^M svn diff | grep ^M make sudo ./update.sh sudo screen -r sudo ./update.sh sudo screen -r vi driver-baikalu.c make sudo screen -r vi driver-baikalu.c make vi driver-baikalu.c make sudo ./update.sh sudo screen -r sudo screen 0r sudo screen -r ls vi usbutils.c make sudo ./update.sh sudo screen -r ls cd /var/www/ cd partials/ ls vi miner.html sudo vi miner.html sudo screen -r ls cd ls cd driver-baikalu.c vi driver-baikalu.c make vi driver-baikalu.c make sudo ./update.sh sudo screen -r vi driver-baikalu.c sudo screen -r vi driver-baikalu.c sudo screen -r vi driver-baikalu.c sudo screen -r sudo lsusb sudo shutdown -h now sudo screen -r vi usbutils.c make sudo ./update.sh sudo screen -r ls vi driver-baikalu.c make sudo ./update.sh sudo screen -r ls vi usbutils.c sudo screen -r ls rm *.h ls rm *.o rm *.c ls rm *.php ls rm Makefile.am ls rm missing NEWS.md sgminer ls rm algorithm/ ls -al ls rm algorithm/ rm aclocal.m4 API.* AUTHORS.md config* ls rm -rf ADL_SDK/ api-example.py auto* C* doc ls rm -rf a* c* e* i* l* ls rm -rf depcomp kernel/ m4 Makefile* man/ M* ls rm -rf mknsis.sh ocl/ README.md sgminer.c.edited sph stamp-h1 submodules/ tools/ update.sh winbuild/ ls ls -al rm -rf *.swp ls ls -al rm -rf *.*.cwp l rm -rf *.*.swp ls ls -al rm -rf .sgminer/ ls cd .svn/ ls cd .. ls rm -rf .svn/ ls ls -al rm .driver-baikalu.c.swp rm .git* ls rm -rf .libs/ rm -rf .nano/ ls ls -al rm -rf .deps/ ls cd sgminer-5.6/ ls svn update cd .. ls rm -rf sgminer-5.6/ ls ls -al rm -rf .subversion/ ls cd /opt/scripta/etc/ ls cd /opt/scripta/ ls rm -rf 20170210-1632/ sudo rm -rf 20170210-1632/ ls cd etc/ ls cd backup/ ls rm -rf 20170* sudo rm -rf 20170* ls cd ls cd ls svn co svn://192.168.0.5/pacific/software/sgminer_5.6.x ls cd sgminer_5.6.x/ ls chmod a+x autogen.sh ls ./autogen.sh ls ./configure make sudo ./update.sh chomod a+x ./update.sh chmod a+x ./update.sh ls vi algorithm.h vi algorithm.c sudo screen -r cd /var/www/partials/ ls vi miner.html sudo vi miner.html sudo screen -=r sudo screen -r sudo shutdown -h now sudo screen -r sudo shutdown -h now ls cd sgminer_5.6.x/ ls vi usbutils.c make sudo ./update.sh sudo screen -r ls vi driver-baikalu.c vi sgminer vi sgminer.c cd /opt/scripta/ ls cd etc/ ls cd backup/ ls cd 20170913-2245/ ls cd etc/ ls vi miner.conf ls cd .. ls cd .. ls cd 20170913-2314/ ls cd etc/ ls vi miner.conf cd .. ls rm -rf 20170913-2314/ sudo rm -rf 20170913-2* ls exit ls sudo vi /etc/rc.local sync sudo reboot ls cd sgminer_5.6.x/ ls svn update cd sgminer_5.6.x/ ls svn update ifconfig svn update ipconfig ifconfig ls svn update exit cd sgminer_5.6.x/ ls vi sgminer.c ls ./autogen.sh ./configure make sudo ./update.sh ls sudo shutdown -h now sudo lsusb cd /sys/class/gpio_sw/ ls cd PA18/ ls cd ls echo 0 > /sys/class/gpio_sw/PA10/data ls chmod a+x reset chmod a+x reset.sh sudo ./reset.sh echo 0 > /sys/class/gpio_sw/PA18/data sudo ./reset.sh lsusb ls sudo ./reset.sh lsusb ls vi reset.sh mv reset.sh downmode.sh cp downmode.sh normalmode.sh vi normalmode.sh sl ls sudo ./normalmode.sh lsusb sudo ./downmode.sh lsusb ls vi downmode.sh ./downmode.sh sudo ./downmode.sh lsusb sudo ./normalmode.sh lsusb sudo ./downmode.sh lsusb vi downmode.sh sudo ./downmode.sh lsusb sudo ./normalmode.sh ls vi reset_usb.c ls vi downmode.sh ls dfu-utils dfu-util ls sudo apt-get install dfu-util sudo apt-get install dfu-utils sudo screen -r q sudo apt-get install dfu-utils lks ls vi normalmode.sh lsusb ls vi ret.sh ls vi reset_usb.c ls gcc -o reset_usb reset_usb.c `pkg-config --libs libusb-1.0` vi reset_usb.c make gcc -o reset_usb reset_usb.c `pkg-config --libs libusb-1.0` ls sudo ./reset_usb vi reset_usb.c gcc -o reset_usb reset_usb.c `pkg-config --libs libusb-1.0` sudo ./reset_usb vi update_firmware.sh vi update_firmware.sh sudo reboot tail -f dmesg tail -f /var/log/dmesg sudo tail -f /var/log/dmesg ls vi reset.sh vi reset.sh su root ls vi reset_usb.c gcc -o reset_usb reset_usb.c `pkg-config --libs libusb-1.0` ls mv reset_usb exit_dfu ls sudo ./exit_dfu vi downmode.sh ls sudo ./downmode.sh vi update_firmware.sh ls mv exit_dfu reset_dfu mv enter_dfu reset_stm ls w ls sudo enter_normalmode.sh sudo ./enter_normalmode.sh ls mv enter_downmmode.sh enter_dfumode.sh mv enter_normalmode.sh enter_runmode.sh ls vi update_firmware.sh ls sudo ./update_firmware.sh lsusb sudo ./update_firmware.sh ls vi update_firmware.sh ls sudo ./update_firmware.sh ls slmod lsusb sudo ./enter_dfumode.sh lsusb ls vi update_firmware.sh sudo ./update_firmware.sh ls sudo ./enter_runmode.sh sudo lsusb vi update_firmware.sh ls sudo ./update_firmware.sh lsusb ls sudo ./enter_dfumode.sh sudo ./update_firmware.sh lsusb sudo ./enter_dfumode.sh sudo ./update_firmware.sh sudo ./reset_dfu sudo ./reset_stm lsusb ls sudo ./enter_dfumode.sh lsusb sudo ./reset_stm lsusb sudo ./reset_dfu lsusb sudo ./update_firmware.sh lsusb sudo ./enter_dfumode.sh lsusb ls vi enter_dfumode.sh ls sudo ./update_firmware.sh sudo ./enter_runmode.sh ls mkdir firmware ls mv enter_*.sh firmware/ ls vm reset_*fir vm reset_* firmware/ ls mv reset_* firmware/ ls mv pacific.bin update_firmware.sh firmware/ ls cd firmware/ ls rm reset_usb.c ls sync cd ls cd sgminer_5.6.x/ ls vi driver-baikal.h ls sudo shutdown -h now lsusb cd firmware/ ls sudo ./enter_runmode.sh sudo lsmod lsusb ls vi enter_dfumode.sh ls cat enter_runmode.sh cd ls cd /opt/scripta/etc/ ls cd backup/ ls mv 20171002-1613/ X11 sudo mv 20171002-1613/ X11 ls sudo mv 20171002-1614/ DC ls sudo rm -rf DC ls cd sgminer_5.6.x/ ls cd su root ls cd sgminer_5.6.x/ ls vi Makefile ls ./autogen.sh ls vi Makefile.am vi configure.ac ./autogen.sh ./configure make sudo ./update.sh sync ls cd ls cd firmware/ ls sudo halt ls cd firmware/ ls vi enter_dfumode.sh vi update_firmware.sh cd ls ifconfig ls cd sgminer_5.6.x/ ls vi driver-baikalu.c make sudo ./update.sh sudo screen -r ls sync make sudo ./update.sh ls vi driver-baikalu.c sudo halt ls cd firmware/ ls vi enter_dfumode.sh sudo /opt/scripta/startup/miner-stop.sh vi update_firmware.sh ls vi enter_dfumode.sh ls vi update_firmware.sh ./update_firmware.sh 1 vi update_firmware.sh ./update_firmware.sh 1 ls ./update_firmware.sh pacific.bin dfu-util ls ls cd sgminer_5.6.x/ ls make sudo ./update.sh sudo screen -r ls sudo sync sudo halt
|
|
|
Tired as hell, but woohaa! sgminer 5.6.2-cod3gen - Started: [2018-03-25 20:31:35] - [0 days 00:01:14] -------------------------------------------------------------------------------- (5s):10.13G (avg):10.27Gh/s | A:829 R:0 HW:37 WU:31147.411/m ST: 1 SS: 12 NB: 4 LW: 4168 GF: 0 RF: 0 Connected to quark.eu.nicehash.com (stratum) diff 40 as user XXX Block: 8826b8d8... Diff:87M Started: [20:32:35] Best share: 39.3K -------------------------------------------------------------------------------- [U]SB management [P]ool management [S]ettings [D]isplay options [Q]uit BKLU 0: 39C 300MHz [ASICS #64] | 3.379G/3.616Gh/s | A:288 R: 0 HW:25 WU:10739.883/m BKLU 1: 39C 300MHz [ASICS #64] | 3.379G/3.610Gh/s | A:287 R: 0 HW: 5 WU:11230.049/m BKLU 2: 38C 300MHz [ASICS #64] | 3.379G/3.613Gh/s | A:302 R: 0 HW:10 WU:11173.155/m Have not tried any other algo`s just yet, so i only know that quark works at the moment. However, i see a high rise in hardware errors, on stock sgminer this have always been "0"(Ive had the X10 in only 2 day though). Chip temps are the same as before. Ill see over the night if hashrates are showing up correctly at nicehash. Will continue tomorrow. Great work! Did you add these changes to usbutils.h? ... USB_ADD_COMMAND(C_BAIKAL_SEND, "BaikalSend") \ USB_ADD_COMMAND(C_BAIKAL_READ, "BaikalRead") ...
Yepp, came down to being fault definition of chip manufacturer in usbutils.c in its search function for finding devices .iManufacturer = "Baikal", // 25.03.18 changed from "MS Technology" to "Baikal" It seems that baikal continuously does live changes on their partition and just mirrors it to a image, that why we are able to recover these files and the reason why there are so many of the same ones. Files goes years back to A900 and Dash Mini Miner. Great job again! We might just need to go through all the different versions of each source file to find which one is the most up to date. For instance I "think" this is the latest/greatest device_baikal.h file: #ifndef __DEVICE_BAIKAL_H__ #define __DEVICE_BAIKAL_H__
#include "miner.h"
#define BAIKAL_1751 (0x1) #define BAIKAL_1772 (0x2) #define BAIKAL_1791 (0x4) #define BAIKAL_ALL (0x7) #define BAIKAL_TYPE (BAIKAL_ALL)
#define BAIKAL_MAXMINERS (5) #define BAIKAL_MAXUNIT (4) #define BAIKAL_MAXASICS (16) #define BAIKAL_WORK_FIFO (200)
#define BAIKAL_CLK_MIN (150) #define BAIKAL_CLK_MAX (300)
#if BAIKAL_TYPE == BAIKAL_1751 #define BAIKAL_CLK_DEF (200) #elif BAIKAL_TYPE == BAIKAL_1791 #define BAIKAL_CLK_DEF (400) #else #define BAIKAL_CLK_DEF (300) #endif
#define BAIKAL_CUTOFF_TEMP (60) #define BAIKAL_FANSPEED_DEF (100) #define BAIKAL_FANSPEED_MAX (100) #define BAIKAL_RECOVER_TEMP (40)
#define BAIKAL_RESET (0x01) #define BAIKAL_GET_INFO (0x02) #define BAIKAL_SET_OPTION (0x03) #define BAIKAL_SEND_WORK (0x04) #define BAIKAL_GET_RESULT (0x05) #define BAIKAL_SET_ID (0x06) #define BAIKAL_SET_IDLE (0x07)
#define BAIKAL_MINER_TYPE_NONE (0x00) #define BAIKAL_MINER_TYPE_MINI (0x01) #define BAIKAL_MINER_TYPE_CUBE (0x02)
#define BAIKAL_ENABLE_SETCLK (0)
#define BAIKAL_CHECK_STALE (0) #define BAIKAL_EN_HWE (0) #define BAIKAL_CLK_FIX (1)
struct asic_info { uint32_t nonce; uint32_t error; };
struct miner_info { int thr_id; int asic_count; int asic_count_r; int unit_count; int temp; int clock; int bbg; bool working; bool overheated; uint8_t fw_ver; uint8_t hw_ver; uint8_t asic_ver; uint32_t nonce; uint32_t error; double working_diff; struct asic_info asics[BAIKAL_MAXUNIT][BAIKAL_MAXASICS]; uint8_t work_idx; struct work *works[BAIKAL_WORK_FIFO]; cgtimer_t start_time; };
struct baikal_info { struct pool pool; int miner_count; int clock; uint8_t cutofftemp; uint8_t fanspeed; // percent uint8_t recovertemp; pthread_t *process_thr; struct miner_info miners[BAIKAL_MAXMINERS]; uint8_t miner_type; };
typedef struct { uint8_t miner_id; uint8_t cmd; uint8_t param; uint8_t dest; uint8_t data[512]; uint32_t len; } baikal_msg;
#endif /* __DEVICE_BAIKAL_H__ */
|
|
|
Ive been able to recompile sgminer based on files from X10 and CN, however some problems at hand with USB communcation to the boards, guess ill figure out those in a while. As an example i found nothing less than 33 different versions of driver-baikalu.c, so there will be some sorting before everythings ok. sgminer 5.6.2-cod3gen - Started: [2018-03-25 16:45:04] - [0 days 00:00:16] -------------------------------------------------------------------------------- (5s):0.000 (avg):0.000h/s | A:0 R:0 HW:0 WU:0.000/m ST: 1 SS: 0 NB: 1 LW: 17 GF: 0 RF: 0 Connected to quark.eu.nicehash.com (stratum) diff 40 as user XXX Block: 51abe371... Diff:101M Started: [16:45:03] Best share: 0 -------------------------------------------------------------------------------- [U]SB management [P]ool management [S]ettings [D]isplay options [Q]uit -------------------------------------------------------------------------------- [2018-03-25 16:45:02.877] Started sgminer 5.6.2-cod3gen [2018-03-25 16:45:02.877] * using Jansson 2.7 [2018-03-25 16:45:02.878] Loaded configuration file /opt/scripta/etc/miner.conf
[b] [2018-03-25 16:45:03.098] No devices detected! [2018-03-25 16:45:03.099] Waiting for USB hotplug devices or press q to quit[/b] [2018-03-25 16:45:03.099] Probing for an alive pool [2018-03-25 16:45:03.480] Startup BaikalMiner initialization... Using settings from pool quark.eu.nicehash.com. [2018-03-25 16:45:03.480] Startup Pool No = 0 [2018-03-25 16:45:03.498] quark.eu.nicehash.com difficulty changed to 40.960 [2018-03-25 16:45:09.102] API running in IP access mode on port 4028 (11) If anyone have the Giant B and Giant x10 and don't mind doing a little work, can you take out the controller board (the board that goes on top of the 3 hash boards) and also the orange pi and swap them?
Want to see if the 3 hashing boards on the Giant B and Giant x10 are the same. If it works, then that means you will only need to update the controller board first, since just swapping out SD Cards does nothing.
It will be pointless trying to compile a custom sgminer if you require to update the controller board first.
X10, B and CN all have different chips, so i dont think it will be possible to cross them, i would not suggest that any one tries this unless they have no problem risking their hardware. X10 seems to be able to support additional coins: groestl, nist5, x11-gost and veltor, thats atleast what im trying to figure out. Great work! Did you add these changes to usbutils.h? ... USB_ADD_COMMAND(C_BAIKAL_SEND, "BaikalSend") \ USB_ADD_COMMAND(C_BAIKAL_READ, "BaikalRead") ...
|
|
|
I just used photorec to recovery any/all deleted files, then used astrogrep to do some searching. The file names do not correlate. Photorec just gives them a generic name. We'll need more people searching for the other source files, my brain hurts. ;o)
Can someone post the very first image file for the X10? I have v1.0 and v1.1, but was thinking I heard someone mention an earlier one.
Nice find! Actually the c file source code looks like that it belongs to a Giant B based on the static bool baikal_send_work function. And the DEVICE_BAIKAL_H header file that you posted seems to belong to a MINI or CUBE miner. Strange... Could you please upload the v1.0 image file to mega.nz or google drive? Here's a link to the undeleted bin (PiZero_GX10_171229_V1.1.img) file: https://drive.google.com/file/d/14__gwiueXt-OBfkveUK_eMqmNhKxajni/view?usp=sharingI haven't started uploading the 4 gig (PiZero_GX10_171229_V1.0.img) file. I'll do it if you really need it and of course if no one else uploads it!
|
|
|
|