Pages:
Author

Topic: Braiins OS & Braiins OS+ custom ASIC firmware: optimize performance & efficiency - page 45. (Read 45390 times)

member
Activity: 277
Merit: 13
farming in Russia
Please help me to fix error

Code:
$ ls
factory_transition  sd.img

$ cd factory_transition

$ ls

firmware  hwid.py  requirements.txt  restore2factory.py  ssh.py  system  upgrade2bos.py

Code:
$ virtualenv --python=/usr/bin/python3 .env

Already using interpreter /usr/bin/python3
Using base prefix '/usr'
New python executable in /home/user/braiins/braiins-os-firmware_zynq-am1-s9_2018-09-22-1-8d9b127d/factory_transition/.env/bin/python3
Also creating executable in /home/user/braiins/braiins-os-firmware_zynq-am1-s9_2018-09-22-1-8d9b127d/factory_transition/.env/bin/python
Installing setuptools, pip, wheel...done.

$ source .env/bin/activate
$ pip install -r ./requirements.txt

Collecting progress==1.2 (from -r ./requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/74/54/bb538ae57f32fca8bf65c837d3f1715f7c17ae7734d87f4a9a56dab6e982/progress-1.2.tar.gz
Collecting Paramiko==2.0 (from -r ./requirements.txt (line 2))
  Downloading https://files.pythonhosted.org/packages/72/38/8bb071506c91db110b579c797b65a399fd08e3fbc80af89cc144ecbcbac7/paramiko-2.0.0-py2.py3-none-any.whl (170kB)
    100% |████████████████████████████████| 174kB 2.2MB/s
Collecting pyasn1>=0.1.7 (from Paramiko==2.0->-r ./requirements.txt (line 2))
  Downloading https://files.pythonhosted.org/packages/d1/a1/7790cc85db38daa874f6a2e6308131b9953feb1367f2ae2d1123bb93a9f5/pyasn1-0.4.4-py2.py3-none-any.whl (72kB)
    100% |████████████████████████████████| 81kB 15.2MB/s
Collecting cryptography>=1.1 (from Paramiko==2.0->-r ./requirements.txt (line 2))
  Downloading https://files.pythonhosted.org/packages/59/32/92cade62c645756a83598edf56289e9b19aae5370642a7ce690cd06bc72f/cryptography-2.3.1-cp34-abi3-manylinux1_x86_64.whl (2.1MB)
    100% |████████████████████████████████| 2.1MB 7.4MB/s
Collecting asn1crypto>=0.21.0 (from cryptography>=1.1->Paramiko==2.0->-r ./requirements.txt (line 2))
  Downloading https://files.pythonhosted.org/packages/ea/cd/35485615f45f30a510576f1a56d1e0a7ad7bd8ab5ed7cdc600ef7cd06222/asn1crypto-0.24.0-py2.py3-none-any.whl (101kB)
    100% |████████████████████████████████| 102kB 11.8MB/s
Collecting cffi!=1.11.3,>=1.7 (from cryptography>=1.1->Paramiko==2.0->-r ./requirements.txt (line 2))
  Downloading https://files.pythonhosted.org/packages/59/cc/0e1635b4951021ef35f5c92b32c865ae605fac2a19d724fb6ff99d745c81/cffi-1.11.5-cp35-cp35m-manylinux1_x86_64.whl (420kB)
    100% |████████████████████████████████| 430kB 2.8MB/s
Collecting six>=1.4.1 (from cryptography>=1.1->Paramiko==2.0->-r ./requirements.txt (line 2))
  Downloading https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl
Collecting idna>=2.1 (from cryptography>=1.1->Paramiko==2.0->-r ./requirements.txt (line 2))
  Using cached https://files.pythonhosted.org/packages/4b/2a/0276479a4b3caeb8a8c1af2f8e4355746a97fab05a372e4a2c6a6b876165/idna-2.7-py2.py3-none-any.whl
Collecting pycparser (from cffi!=1.11.3,>=1.7->cryptography>=1.1->Paramiko==2.0->-r ./requirements.txt (line 2))
  Downloading https://files.pythonhosted.org/packages/68/9e/49196946aee219aead1290e00d1e7fdeab8567783e83e1b9ab5585e6206a/pycparser-2.19.tar.gz (158kB)
    100% |████████████████████████████████| 163kB 12.3MB/s
Building wheels for collected packages: progress, pycparser
  Running setup.py bdist_wheel for progress ... done
  Stored in directory: /home/user/.cache/pip/wheels/69/dd/ac/3959c9b8978e9f4e4ae73d33f42981438e43987314e845de51
  Running setup.py bdist_wheel for pycparser ... done
  Stored in directory: /home/user/.cache/pip/wheels/f2/9a/90/de94f8556265ddc9d9c8b271b0f63e57b26fb1d67a45564511
Successfully built progress pycparser
Installing collected packages: progress, pyasn1, asn1crypto, pycparser, cffi, six, idna, cryptography, Paramiko
Successfully installed Paramiko-2.0.0 asn1crypto-0.24.0 cffi-1.11.5 cryptography-2.3.1 idna-2.7 progress-1.2 pyasn1-0.4.4 pycparser-2.19 six-1.11.0

error is here!!!

Code:
$ python3 upgrade2bos.py 192.168.0.33

Connecting to remote host...
/home/user/braiins/braiins-os-firmware_zynq-am1-s9_2018-09-22-1-8d9b127d/factory_transition/.env/lib/python3.5/site-packages/paramiko/rsakey.py:119: CryptographyDeprecationWarning: signer and verifier have been deprecated. Please use sign and verify instead.
  algorithm=hashes.SHA1(),
Password:
Preparing remote system...
Copy ld-musl-armhf.so.1 to /lib/ld-musl-armhf.so.1
Traceback (most recent call last):
  File "upgrade2bos.py", line 182, in
    main(args)
  File "upgrade2bos.py", line 138, in main
    prepare_system(ssh)
  File "upgrade2bos.py", line 86, in prepare_system
    ssh.put(os.path.join(SYSTEM_DIR, file_name), remote_file_name)
  File "/home/user/braiins/braiins-os-firmware_zynq-am1-s9_2018-09-22-1-8d9b127d/factory_transition/ssh.py", line 218, in put
    shutil.copyfileobj(local, remote)
  File "/home/user/braiins/braiins-os-firmware_zynq-am1-s9_2018-09-22-1-8d9b127d/factory_transition/.env/lib/python3.5/shutil.py", line 76, in copyfileobj
    fdst.write(buf)
  File "/home/user/braiins/braiins-os-firmware_zynq-am1-s9_2018-09-22-1-8d9b127d/factory_transition/.env/lib/python3.5/site-packages/paramiko/file.py", line 381, in write
    self._write_all(data)
  File "/home/user/braiins/braiins-os-firmware_zynq-am1-s9_2018-09-22-1-8d9b127d/factory_transition/.env/lib/python3.5/site-packages/paramiko/file.py", line 498, in _write_all
    count = self._write(data)
  File "/home/user/braiins/braiins-os-firmware_zynq-am1-s9_2018-09-22-1-8d9b127d/factory_transition/.env/lib/python3.5/site-packages/paramiko/channel.py", line 1237, in _write
    self.channel.sendall(data)
  File "/home/user/braiins/braiins-os-firmware_zynq-am1-s9_2018-09-22-1-8d9b127d/factory_transition/.env/lib/python3.5/site-packages/paramiko/channel.py", line 761, in sendall
    sent = self.send(s)
  File "/home/user/braiins/braiins-os-firmware_zynq-am1-s9_2018-09-22-1-8d9b127d/factory_transition/.env/lib/python3.5/site-packages/paramiko/channel.py", line 715, in send
    return self._send(s, m)
  File "/home/user/braiins/braiins-os-firmware_zynq-am1-s9_2018-09-22-1-8d9b127d/factory_transition/.env/lib/python3.5/site-packages/paramiko/channel.py", line 1075, in _send
    raise socket.error('Socket is closed')
OSError: Socket is closed

OSError: Socket is closed
member
Activity: 71
Merit: 17
newbie
Activity: 26
Merit: 0
its still not working on slush pool. bitmain claimed to have fixed the issues. NOT WORKING FOR ME ON SLUSH POOL
member
Activity: 68
Merit: 18
It works on Kano pool.

Hi @sarcheer I'm using it on a 14Th S9 on Antpool and it works fine. However the frequencies on all my chains is set to 600 and by default the advanced page to change this is not displayed.

At 600, it gives about 12 Th/s pool side.

Is it the same with you?

Edit: Manually going to http://192.168.x.xxx/cgi-bin/minerAdvanced.cgi and increasing frequency works without issues.
legendary
Activity: 2030
Merit: 1569
CLEAN non GPL infringing code made in Rust lang
Would be nice if this could be used with the R4... Also, any plans to add asicboost?

for the hundred thousandth time ASICBOOST requires compatible HARDWARE. There is no magic software to enable it on hardware that was not designed for it.

And Bitmain just announced it officially:

Quote from: blog.bitmain.com
"We’re very pleased to share that last night our developers released the firmware for the Antminer S9 to enable what is popularly called the “overt AsicBoost” functionality. We will also release in one week the firmware to activate this functionality in other BM1387-based models namely the Antminer R4, S9i, S9j, T9 and T9+."

You were saying? The BM1387 chip lacked asicboost?

If Braiins has plans to release a firmware for the R4, i would rather wait for it than use Bitmain's. The R4 is just an S9 with two boards and 1 fan.
newbie
Activity: 20
Merit: 0
Watch @slush_pool & @braiins_systems CEO @janbraiins talk #Live with @HillebrandMax at @WorldCryptoNet!

He will talk about a hot topic: how we #OpenSource #Bitcoin mining firmware #BraiinsOS to free #ASICBoost!

https://www.youtube.com/watch?v=fyp28koBxMg

Skip to 23:45 for the specifc explanation on how Bitmain's firmware is not BIP310 protocol compliant.
member
Activity: 67
Merit: 31
Watch @slush_pool & @braiins_systems CEO @janbraiins talk #Live with @HillebrandMax at @WorldCryptoNet!

He will talk about a hot topic: how we #OpenSource #Bitcoin mining firmware #BraiinsOS to free #ASICBoost!

https://www.youtube.com/watch?v=fyp28koBxMg
copper member
Activity: 330
Merit: 103
jr. member
Activity: 59
Merit: 10
confirmed.....tried and its not working with slush pool

Works on antpool and btc, if it helps at all

Code:
[2018-10-22 16:56:09.500] MASK1 : 00e0ff5f
 [2018-10-22 16:56:09.500] MASK : 00000003
 [2018-10-22 16:56:09.501] Network diff set to 541G
 [2018-10-22 16:56:09.813] Verion num 4
 [2018-10-22 16:56:09.989] Pool 2 difficulty changed to 16384
 [2018-10-22 16:56:10.017] Network diff set to 7.18T
 [2018-10-22 16:56:10.017] Stratum from pool 2 detected new block at height 546885        
 [2018-10-22 16:56:10.018] Verion num 4
 [2018-10-22 16:56:11.813] Verion num 4
newbie
Activity: 26
Merit: 0
From slushpool:

Dear Miners, we strongly recommend you DON'T UPGRADE your S9 devices with the new Bitmain firmware. It is not compatible with BIP310 standard and as a result also not compatible with @slush_pool. We are working hard on providing our own fix asap and will keep you posted.

confirmed.....tried and its not working with slush pool
member
Activity: 67
Merit: 31
From slushpool:

Dear Miners, we strongly recommend you DON'T UPGRADE your S9 devices with the new Bitmain firmware. It is not compatible with BIP310 standard and as a result also not compatible with @slush_pool. We are working hard on providing our own fix asap and will keep you posted.
newbie
Activity: 26
Merit: 0
anyone tried the firmware?
newbie
Activity: 1
Merit: 0
Can you adjust/disable the fans for immersion cooling through the Braiins OS?
newbie
Activity: 26
Merit: 0
member
Activity: 67
Merit: 31
Here are the steps if you have a linux computer on your network:

This is just the "Migrating from factory firmware to Braiins OS" setup from https://docs.braiins-os.org/ but instead of booting into the SD card and doing it locally, your doing it from your linux comp over the network:

I'm testing on an Antminer S9i over my network. 192.168.2.72 will my the address;

Requirements: braiins-os-firmware_zynq-am1-s9_*image*.tar.bz2
python3 python-virtualenv setuptools(18.5 or newer)to get some possible errors out of the way

ubuntu/debian flave:

Code:
apt-get install python3 python-virtualenv

CentOS/RedHat flave:

Code:
yum install python3 python-virtualenv

- Press Y to install

Now update python setuptools with pip because you likely already have python installed and some modules just need updating:

Code:
pip install --upgrade pip setuptools

Should now be ready without errors

Upload braiins-os-firmware_zynq-am1-s9_*latest*.bz2 to a folder on your box, in my case i downloaded it to /root

you can use wget, if you are using a windows pc you can upload using winscp:

Code:
wget https://feeds.braiins-os.org/braiins-os-firmware_zynq-am1-s9_2018-09-22-1-8d9b127d.tar.bz2

Now we are just following the directions on the page:

1- Unpack firmware

Code:
for i in  ./braiins-os-firmware_*.tar.bz2; do tar xvjf $i; done

/root# for i in  ./braiins-os-firmware_*.tar.bz2; do tar xvjf $i; done
braiins-os-firmware_zynq-am1-s9_2018-09-22-1-8d9b127d/
braiins-os-firmware_zynq-am1-s9_2018-09-22-1-8d9b127d/sd.img
braiins-os-firmware_zynq-am1-s9_2018-09-22-1-8d9b127d/factory_transition/
braiins-os-firmware_zynq-am1-s9_2018-09-22-1-8d9b127d/factory_transition/hwid.py
braiins-os-firmware_zynq-am1-s9_2018-09-22-1-8d9b127d/factory_transition/restore2factory.py
braiins-os-firmware_zynq-am1-s9_2018-09-22-1-8d9b127d/factory_transition/firmware/
braiins-os-firmware_zynq-am1-s9_2018-09-22-1-8d9b127d/factory_transition/firmware/fit.itb
braiins-os-firmware_zynq-am1-s9_2018-09-22-1-8d9b127d/factory_transition/firmware/uboot_env.bin
braiins-os-firmware_zynq-am1-s9_2018-09-22-1-8d9b127d/factory_transition/firmware/u-boot.img
braiins-os-firmware_zynq-am1-s9_2018-09-22-1-8d9b127d/factory_transition/firmware/boot.bin
braiins-os-firmware_zynq-am1-s9_2018-09-22-1-8d9b127d/factory_transition/firmware/stage2.tgz
braiins-os-firmware_zynq-am1-s9_2018-09-22-1-8d9b127d/factory_transition/firmware/CONTROL
braiins-os-firmware_zynq-am1-s9_2018-09-22-1-8d9b127d/factory_transition/firmware/uboot_env.config
braiins-os-firmware_zynq-am1-s9_2018-09-22-1-8d9b127d/factory_transition/firmware/system.bit.gz
braiins-os-firmware_zynq-am1-s9_2018-09-22-1-8d9b127d/factory_transition/firmware/stage1.sh
braiins-os-firmware_zynq-am1-s9_2018-09-22-1-8d9b127d/factory_transition/upgrade2bos.py
braiins-os-firmware_zynq-am1-s9_2018-09-22-1-8d9b127d/factory_transition/system/
braiins-os-firmware_zynq-am1-s9_2018-09-22-1-8d9b127d/factory_transition/system/ld-musl-armhf.so.1
braiins-os-firmware_zynq-am1-s9_2018-09-22-1-8d9b127d/factory_transition/system/fw_printenv
braiins-os-firmware_zynq-am1-s9_2018-09-22-1-8d9b127d/factory_transition/system/sftp-server
braiins-os-firmware_zynq-am1-s9_2018-09-22-1-8d9b127d/factory_transition/requirements.txt
braiins-os-firmware_zynq-am1-s9_2018-09-22-1-8d9b127d/factory_transition/ssh.py

2- Change to the factory transition directory;

Code:
/root # cd braiins-os-firmware_zynq-am1-s9_2018-09-22-1-8d9b127d/factory_transition/

I'll skip pasting the resulting text but just follow the instructions:

3- Next :

Code:
virtualenv --python=/usr/bin/python3 .env

4- Next :

Code:
source .env/bin/activate

5- Next :

Code:
pip install -r ./requirements.txt

you may receive a setuptools prerequisite error setuptools must be > 18.5 , this may be because this virtual environment creates a small sandbox (?) if you do get this error run try to update setuptools via pip again;

Code:
pip install --upgrade pip setuptools

and re-run:

Code:
pip install -r ./requirements.txt

6- Next :

Now i will write to one of my antminer s9i's (192.168.2.72), you will be asked for your antminers root pass

Code:
python3 upgrade2bos.py 192.168.2.72

Connecting to remote host...
/root/braiins-os-firmware_zynq-am1-s9_2018-09-22-1-8d9b127d/factory_transition/.env/lib/python3.4/site-packages/pa                                   ramiko/rsakey.py:119: CryptographyDeprecationWarning: signer and verifier have been deprecated. Please use sign and verify instead.
  algorithm=hashes.SHA1(),
/root/braiins-os-firmware_zynq-am1-s9_2018-09-22-1-8d9b127d/factory_transition/.env/lib/python3.4/site-packages/pa                                   ramiko/client.py:658: UserWarning: Unknown ssh-rsa host key for 192.168.2.72: b'f8e2b9d96ede1d9850f170b20233745e'
  (key.get_name(), hostname, hexlify(key.get_fingerprint())))
Password:

Code:
Processing miner backup...
Backup mtd0 (BOOT.bin-env-dts-kernel)
Backup mtd1 (angstram-rootfs)
Backup mtd2 (upgrade-rootfs)
Uploading firmware...
firmware/system.bit.gz: |################################| 381877/381877
firmware/uboot_env.bin: |################################| 131072/131072
firmware/fit.itb: |################################| 7134088/7134088
firmware/boot.bin: |################################| 79647/79647
firmware/stage2.tgz: |################################| 17840065/17840065
firmware/CONTROL: |################################| 1360/1360
firmware/u-boot.img: |################################| 573700/573700
firmware/uboot_env.config: |################################| 382/382
firmware/stage1.sh: |################################| 3018/3018
Upgrading firmware...

---skipping verbose ----

Upgrade was successful!
Rebooting...

Check your router for the new IP address then browse to it in your web browser... , done !

edit; thx whoever edited and added the code tags hehe
full member
Activity: 500
Merit: 105
still want to see chip temperatures.

the S9 is draining a good 6.8A at 14.6T (that was a 13.5T that was hashing at 13.1T and couldn't get it to hash higher).
member
Activity: 68
Merit: 18
for the hundred thousandth time ASICBOOST requires compatible HARDWARE. There is no magic software to enable it on hardware that was not designed for it.

The Antminer S9 was always "theoretically" capable of supporting overt ASICBOOST at the hardware level. No one was able to leverage it though. They still have not succeeded.

There was a lot of talk on Reddit regarding this:

https://www.reddit.com/r/BitcoinMining/comments/8303fa/enabling_asicboost_for_antminer/

However, the possibility still exists. Check out this blog post by Braiins OS:

https://medium.com/@braiins_systems/bitmain-antminer-s9-asicboost-capability-verified-by-braiins-13-in-energy-savings-and-planned-da67c290152c

Whether they finally succeed or not is another matter.
jr. member
Activity: 59
Merit: 10
Please check is it correct or not?

[...]

From what I  can tell, cuz I didn't use the SD card img, but yes, you can change that to the Mac address of the antminer. And it should give you the correct ip.

How to backup the original firmware? I don't understand

Could I upgrade Bitmain firmware before? It is usual Antminer S9 (April batch)

Using the SD card version you don't need to back it up. Just set the omg up on a SD card so you can run the miner off the SD. And it doesn't touch the firmware
member
Activity: 277
Merit: 13
farming in Russia
Please check is it correct or not?

Code:
$ pwd
~/braiins/braiins-os-firmware_zynq-am1-s9_2018-09-22-1-8d9b127d

$ ls
factory_transition  sd.img

$ lsblk | grep sdd
sdd              8:48   1  29,8G  0 disk 

$ sudo dd if=sd.img of=/dev/sdd
65536+0 rows received
65536+0 rows sent
33554432 byte (34 MB, 32 MiB) was copied, 66,9294 s, 501 kB/s

$ lsblk | grep sdd
sdd              8:48   1  29,8G  0 disk 
├─sdd2           8:50   1  15,5M  0 part 
└─sdd1           8:49   1    14M  0 part 

Code:
$ sudo mount /dev/sdd1 /mnt/sd

$ cd /mnt/sd

$ ls
boot.bin  fit.itb  system.bit  u-boot.img  uEnv.txt

$ more uEnv.txt
ethaddr=00:0A:35:FF:FF:FF <----- should I change this address to Antminer S9 mac-address?????



How to backup the original firmware? I don't understand

Could I upgrade Bitmain firmware before? It is usual Antminer S9 (April batch)
Pages:
Jump to: