I have read the braiins-os paper on how to, but must be missing something. I have also done searches but nothing is helping me.
Could someone please give me a step by step process to revert back to original state, or even point me in the right direction if those directions have been dummied down for folks like myself. Appreciate any help.
thanks.
see post #273 and before
Here are the instructions for if you do not have a backup from when you upgraded to bOS
1.) create empty directory backup
2.) create text file mac (without any file extension)
3.) write one line with MAC address to the file mac (you can obtain your MAC address from web interface Network -> Interfaces -> MAC-Address)
4.) compress the file mac with tar using gzip compression and store it to the backup directory with a name config.tar.gz
5.) create a file called uEnv.txt in the back up directory containing the following information:
recovery_mtdparts=mtdparts=pl35x-nand:32m(BOOT.bin-env-dts-kernel),144m(angstram-rootfs),80m(upgrade-rootfs)
6. Download recovery firmware from bitmain (for this example Antminer-S9-all-201812051512-autofreq-user-Update2UBI-NF.tar.gz is used)
7. install python (using information provided on Braiins page https://docs.braiins-os.org/python-install)
8. make a folder called backup
9. put the factory image in it, along with two more files: uEnv.txt and config.tar.gz (that contains mac adress)
in python You need to run:
python3 restore2factory.py path/to/backup ip_hostname --factory-image path/to/Antminer-S9-all-201812051512-autofreq-user-Update2UBI-NF.tar.gz
i ran command :
C:\python\braiins-os>python restore2factory.py backup/ 192.168.2.244 --factory-image backup/Antminer-S9-all-201711171757-autofreq-user-Update2UBI-NF.tar.gz
ps:
i heard they changed something in the last iteration so this could not work
it is stated:
On Antminer S9, you can alternatively flash a factory firmware image from manufacturer’s website, with FACTORY_IMAGE being file path or URL to the tar.gz (not extracted!) file. Supported images with corresponding MD5 hashes are listed in the platform.py file.
Run (on Windows, use python command instead of python3):
python3 restore2factory.py --factory-image FACTORY_IMAGE your-miner-hostname-or-ip
so, i think you can skip step 9.