Post
Topic
Re: Braiins OS: open-source mining firmware [S9, T1]. New release includes AsicBoost
by
pipcrypdoh
on 01/11/2018, 18:10:52 UTC
I've restored to factory on a couple with no issues.  Having one with this problem now though.  

Code:
Rebooting.................................................Traceback (most recent call last):
  File "restore2factory.py", line 177, in
    main(args)
  File "restore2factory.py", line 149, in main
    restore_from_dir(args, args.backup)
  File "restore2factory.py", line 123, in restore_from_dir
    wait_for_reboot(args.hostname, REBOOT_DELAY)
  File "restore2factory.py", line 106, in wait_for_reboot
    while not wait_net_service(hostname, 22, 1):
  File "restore2factory.py", line 83, in wait_net_service
    s.connect((server, port))
OSError: [Errno 113] No route to host

This kills the web interface but SSH is still fine.  I try to run the script again and get this.

Code:
Connecting to remote host...
/home/pi/braiins-os_am1-s9_2018-10-24-0-9e5687a2/factory_transition/.env/lib/python3.5/site-packages/paramiko/client.py:822: UserWarning: Unknown ssh-rsa host key for 192.168.65.27: b'd63e5c5cef9b62df2dcfdaaef4f28b8f'
  key.get_name(), hostname, hexlify(key.get_fingerprint())
Traceback (most recent call last):
  File "restore2factory.py", line 177, in
    main(args)
  File "restore2factory.py", line 149, in main
    restore_from_dir(args, args.backup)
  File "restore2factory.py", line 121, in restore_from_dir
    ssh.run('fw_setenv', RECOVERY_MTDPARTS[:-1], '"{}"'.format(mtdparts_params))
  File "/home/pi/braiins-os_am1-s9_2018-10-24-0-9e5687a2/factory_transition/ssh.py", line 228, in run
    self._check_exit_status(cmd, stdout, stderr)
  File "/home/pi/braiins-os_am1-s9_2018-10-24-0-9e5687a2/factory_transition/ssh.py", line 159, in _check_exit_status
    raise CalledProcessError(returncode, cmd, stdout, stderr)
subprocess.CalledProcessError: Command 'fw_setenv recovery_mtdparts "mtdparts=pl35x-nand:32m(BOOT.bin-env-dts-kernel),144m(angstram-rootfs),80m(upgrade-rootfs)"' returned non-zero exit status 1

I can reboot and everything is as it was for Braiins, but can't get back to original firmware.
Not sure where to put bug reports for this but ayyyy.  Here ya go.