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:
apt-get install python3 python-virtualenv
CentOS/RedHat flave:
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:
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:
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
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;
/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 :
virtualenv --python=/usr/bin/python3 .env
4- Next :
5- Next :
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;
pip install --upgrade pip setuptools
and re-run:
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
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:
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