Bitcoin Forum
May 29, 2024, 05:28:34 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 »  All
  Print  
Author Topic: "Cannot find Signature"... What's this?  (Read 792 times)
yonydouna (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 0


View Profile
December 23, 2018, 10:11:55 PM
 #1

I have a D3 that some time ago I installed the latest version of blissz firmware and it went great, recently I had to reinstall the original bitmain firmware for maintenance issues and when I'm going to reinstall the Blissz firmware I get a message that says "Cannot find Signature !!!", does anyone know how to fix it?

It is urgent for me to have Blissz's firmware since bitmain has a lot of problems, thanks. Cry Cry
BitMaxz
Legendary
*
Online Online

Activity: 3262
Merit: 2979


:( My PC broke due trying to recover an old wallet


View Profile WWW
December 23, 2018, 10:42:21 PM
 #2

Have you tried to check the firmware first if its compatible with your D3 it might be incompatible that is why it shows "cannot find Signature"

You must flash your miner with a correct firmware if you flash it with incompatible firmware it might brick your miner or it may cause more errors.

I suggest you to always use the firmware from bitmain for safety purposes.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
yonydouna (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 0


View Profile
December 23, 2018, 11:12:47 PM
 #3

Have you tried to check the firmware first if its compatible with your D3 it might be incompatible that is why it shows "cannot find Signature"

You must flash your miner with a correct firmware if you flash it with incompatible firmware it might brick your miner or it may cause more errors.

I suggest you to always use the firmware from bitmain for safety purposes.
I'm sure it's compatible because that firmware I had previously installed in the ASIC and I was mining with it for almost 3 months, only for maintenance issues I had to install the previous one and now when I try to reinstall the Blissz version, I get with this message
mikeywith
Legendary
*
Offline Offline

Activity: 2240
Merit: 6414


be constructive or S.T.F.U


View Profile
December 24, 2018, 03:28:24 AM
 #4

this happened because you installed the the latest D3 firmware which has the signature check function which the current blissz you trying to flush doesn't match with.

you have 3 solutions for this, i will start with the easiest.

1- hard reset your miner " not through the web" but with by pressing the reset bottom for 5 seconds

2-find an older/different version of the D3 firmware, flush it, and then flush blissz

3- long story but 100% guaranteed to work.


modify the current firmware on your miner by using putty SSH.

get to the upgrade.cgi file and you will find a  function related to md5 check ,which checks the signature before installing it, you need to either delete it or comment it, if you don't know how to do it,send the code and i'll modify it for you.




*edit > please move your topic to the mining support. you will get more people trying to help there. you can do so by using clicking the "move topic" bottom found on the bottom left side .

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
yonydouna (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 0


View Profile
December 24, 2018, 07:09:12 AM
 #5

this happened because you installed the the latest D3 firmware which has the signature check function which the current blissz you trying to flush doesn't match with.

you have 3 solutions for this, i will start with the easiest.

1- hard reset your miner " not through the web" but with by pressing the reset bottom for 5 seconds

2-find an older/different version of the D3 firmware, flush it, and then flush blissz

3- long story but 100% guaranteed to work.


modify the current firmware on your miner by using putty SSH.

get to the upgrade.cgi file and you will find a  function related to md5 check ,which checks the signature before installing it, you need to either delete it or comment it, if you don't know how to do it,send the code and i'll modify it for you.




*edit > please move your topic to the mining support. you will get more people trying to help there. you can do so by using clicking the "move topic" bottom found on the bottom left side .
Ok, I already moved it, I'm new in this forum, sorry

I'm going for the second option, any idea of where I can get an old version of the D3 firmware? since in the official page only the last version appears.
thierry4wd
Sr. Member
****
Offline Offline

Activity: 446
Merit: 347



View Profile WWW
December 24, 2018, 10:05:33 AM
 #6

Hi, here, I have a habit of keeping ALL the firmware in stock, for this kind of problem precisely;)

http://www.k-upload.fr/afficher-fichier-2018-12-24-130034350antminerd320.gz.html      ( Antminer-D3-201711201715-0M.tar.gz )

in view of the practice of bitmain, in my opinion, you can not reflash another firmware ... just try

yonydouna (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 0


View Profile
December 24, 2018, 03:36:43 PM
 #7

Hi, here, I have a habit of keeping ALL the firmware in stock, for this kind of problem precisely;)

http://www.k-upload.fr/afficher-fichier-2018-12-24-130034350antminerd320.gz.html      ( Antminer-D3-201711201715-0M.tar.gz )

in view of the practice of bitmain, in my opinion, you can not reflash another firmware ... just try
It does not work, I get the same message "Cannot find Signature!!!", it's really annoying Sad
Any suggestions?
thierry4wd
Sr. Member
****
Offline Offline

Activity: 446
Merit: 347



View Profile WWW
December 24, 2018, 05:02:33 PM
 #8

A thank you can be already, and hello to the first post? and mikeywith has already given solutions to explore ...

yonydouna (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 0


View Profile
December 24, 2018, 07:00:18 PM
 #9

A thank you can be already, and hello to the first post? and mikeywith has already given solutions to explore ...
Hi, I really planned to thank everyone once I explored all the solutions and closed the post, you have been a good Samaritan in passing me that firmware and I thank you very much, the reason why I ask for any suggestion is because I already try The first 2 solutions of mikeywith no success Sad, the firmware seems to be resicted even to its own older versions and also manually reset the D3 but the firmware remains the same (Tue Nov 13 11:46:56 CST 2018) , the third option of mikeywith seems to be the most suitable but I have no idea how to do it, I will write to the private one to see if you can help me more closely, or if you or someone else here knows how to do with the third solution.

BTW: Sorry for my bad English, it's not my first language but I do my best  Smiley Smiley Wink
BitMaxz
Legendary
*
Online Online

Activity: 3262
Merit: 2979


:( My PC broke due trying to recover an old wallet


View Profile WWW
December 24, 2018, 07:14:25 PM
 #10

The only thing that I know may solve this issue to reprogram the control board through microsd card flashing.

If you don't know how to do this you can check this method from here https://support.bitmain.com/hc/en-us/articles/360006020594-D3-Control-Board-Program-Recovery

After that try to flash it again with your firmware.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
mikeywith
Legendary
*
Offline Offline

Activity: 2240
Merit: 6414


be constructive or S.T.F.U


View Profile
December 24, 2018, 10:10:59 PM
 #11

ok first thing first here is a link the contains 4 different firmware for D3, mixed between bitmain and blissz , try each and everyone of them

* please scan for virus before you download, just to be safe.
https://ufile.io/oxzkc

-------------------------------------------

if everything fails then as i mentioned you need to modify the current firmware on your miner to force it to allow you a different firmware.

you will need to use a ssh tool like putty.

type the ip address of the miner in putty , keep port 22

* if message pop up > click Yes

username :root
password:admin

then you will be inside the miner.

copy paste this line

Code:
cd /www/pages/cgi-bin 
    > hit enter

like this



then type this

Code:
vi upgrade.cgi 

you will get something like this


but yours will be different, there will be something like

Code:
If sign *** signature not found

else sh runme.sh

you need to copy paste the code for me here to modify it, if you don't understand programming.

if you do, then it would be easy, just remove the IF statment.

--------------

and if you speak russian you can visit the website > the solutation i am propsoing  is actually taken from this Russian website

https://forum.bits.media/index.php?/topic/65678-%D1%81%D1%82%D0%BE%D1%80%D0%BE%D0%BD%D0%BD%D1%8F%D1%8F-%D0%BF%D1%80%D0%BE%D1%88%D0%B8%D0%B2%D0%BA%D0%B0-%D0%B4%D0%BB%D1%8F-antminer-l3-%D0%BE%D1%82-blissz/&page=5&tab=comments#comment-1703686

even if you don't understand russian, you can follow my directions and then look for the picture for the upgrade file, it's in english and could be exactly like yours, if it is, just follow the picture, if it is not, just paste the code here i will modifiy it for you.

also keep in mind the default upgrade file will be locked ,you cant modify, only view. you need to click 'I' to modify it.

--------------

let us know how it goes.



█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
yonydouna (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 0


View Profile
December 24, 2018, 10:34:03 PM
 #12

ok first thing first here is a link the contains 4 different firmware for D3, mixed between bitmain and blissz , try each and everyone of them

* please scan for virus before you download, just to be safe.
https://ufile.io/oxzkc

-------------------------------------------

if everything fails then as i mentioned you need to modify the current firmware on your miner to force it to allow you a different firmware.

you will need to use a ssh tool like putty.

type the ip address of the miner in putty , keep port 22

* if message pop up > click Yes

username :root
password:admin

then you will be inside the miner.

copy paste this line

Code:
cd /www/pages/cgi-bin 
    > hit enter

like this

https://i.imgur.com/8R2WCDt.jpg

then type this

Code:
vi upgrade.cgi 

you will get something like this

https://i.imgur.com/veCdS0V.jpg
but yours will be different, there will be something like

Code:
If sign *** signature not found

else sh runme.sh

you need to copy paste the code for me here to modify it, if you don't understand programming.

if you do, then it would be easy, just remove the IF statment.

--------------

and if you speak russian you can visit the website > the solutation i am propsoing  is actually taken from this Russian website

https://forum.bits.media/index.php?/topic/65678-%D1%81%D1%82%D0%BE%D1%80%D0%BE%D0%BD%D0%BD%D1%8F%D1%8F-%D0%BF%D1%80%D0%BE%D1%88%D0%B8%D0%B2%D0%BA%D0%B0-%D0%B4%D0%BB%D1%8F-antminer-l3-%D0%BE%D1%82-blissz/&page=5&tab=comments#comment-1703686

even if you don't understand russian, you can follow my directions and then look for the picture for the upgrade file, it's in english and could be exactly like yours, if it is, just follow the picture, if it is not, just paste the code here i will modifiy it for you.

also keep in mind the default upgrade file will be locked ,you cant modify, only view. you need to click 'I' to modify it.

--------------

let us know how it goes.




Thanks bro, I will be reporting between tomorrow and Wednesday (since today is a holiday), Merry Christmas Smiley
yonydouna (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 0


View Profile
December 25, 2018, 07:56:10 PM
 #13

ok first thing first here is a link the contains 4 different firmware for D3, mixed between bitmain and blissz , try each and everyone of them

* please scan for virus before you download, just to be safe.
https://ufile.io/oxzkc

-------------------------------------------

if everything fails then as i mentioned you need to modify the current firmware on your miner to force it to allow you a different firmware.

you will need to use a ssh tool like putty.

type the ip address of the miner in putty , keep port 22

* if message pop up > click Yes

username :root
password:admin

then you will be inside the miner.

copy paste this line

Code:
cd /www/pages/cgi-bin 
    > hit enter

like this

https://i.imgur.com/8R2WCDt.jpg

then type this

Code:
vi upgrade.cgi 

you will get something like this

https://i.imgur.com/veCdS0V.jpg
but yours will be different, there will be something like

Code:
If sign *** signature not found

else sh runme.sh

you need to copy paste the code for me here to modify it, if you don't understand programming.

if you do, then it would be easy, just remove the IF statment.

--------------

and if you speak russian you can visit the website > the solutation i am propsoing  is actually taken from this Russian website

https://forum.bits.media/index.php?/topic/65678-%D1%81%D1%82%D0%BE%D1%80%D0%BE%D0%BD%D0%BD%D1%8F%D1%8F-%D0%BF%D1%80%D0%BE%D1%88%D0%B8%D0%B2%D0%BA%D0%B0-%D0%B4%D0%BB%D1%8F-antminer-l3-%D0%BE%D1%82-blissz/&page=5&tab=comments#comment-1703686

even if you don't understand russian, you can follow my directions and then look for the picture for the upgrade file, it's in english and could be exactly like yours, if it is, just follow the picture, if it is not, just paste the code here i will modifiy it for you.

also keep in mind the default upgrade file will be locked ,you cant modify, only view. you need to click 'I' to modify it.

--------------

let us know how it goes.



Hello mikeywith, I hope you have spent a happy Christmas, I inform you that I have done so far.

First, I tried testing with the frimware that I had and as expected by me, they did not work, in fact some like the "NoFee" had already tested them before.

-------------------------------------------------

Given this, I started with the program of PuTTY with my IP and I made step by step what you indicated to me,
 - Loging, placing the password
 
Code:
cd /www/pages/cgi-bin
 
Code:
vi upgrade.cgi
(So far everything went the same as the images you placed)
 and I had this result:

Code:
login as: root
root@192.168.0.6's password:
root@antMiner:~# cd /www/pages/cgi-bin
root@antMiner:/www/pages/cgi-bin# vi upgrade.cgi
#!/bin/sh -e

# POST upload format:
# Content-Disposition: form-data; name="file1"; filename="..."^M
# Content-Type: application/octet-stream^M
# file contents
# file contents
# file contents

file=/tmp/$$

trap atexit 0

atexit() {
        rm -rf $file
        #umount $file.boot 2>/dev/null || true
        #rmdir $file.boot 2>/dev/null || true
        sync
        if [ ! $ok ]; then
            print "<h1>System upgrade failed</h1>"
        fi
}

- upgrade.cgi 1/219 0%

I leave the code so I wait for the next step and how to modify the file since I am not an expert in programming (I dedicate myself more to the Hardware part  Grin)
mikeywith
Legendary
*
Offline Offline

Activity: 2240
Merit: 6414


be constructive or S.T.F.U


View Profile
December 26, 2018, 03:47:53 PM
 #14



ok you donig good so far, but the code is incomplete, you need to scroll down use the "down arrow" on the keyboard there will be more code.

you see this
Code:
"- upgrade.cgi 1/219 0%" 

it means you are now at Line no 1 out if 219 lines. you need to click the down arrow a few times until you find  a part like this

Code:
f [ -f runme.sh ]; then

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
yonydouna (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 0


View Profile
December 26, 2018, 06:33:17 PM
Last edit: December 26, 2018, 07:37:05 PM by yonydouna
 #15



ok you donig good so far, but the code is incomplete, you need to scroll down use the "down arrow" on the keyboard there will be more code.

you see this
Code:
"- upgrade.cgi 1/219 0%" 

it means you are now at Line no 1 out if 219 lines. you need to click the down arrow a few times until you find  a part like this

Code:
f [ -f runme.sh ]; then
You mean this code?
Code:
#if [ -f runme.sh ]; then
#       sh runme.sh
#else
#       echo "Incorrect firmware!!!!" >> /tmp/upgrade_result
#fi

#
#    if [ -e /dev/mmcblk0p3 ]; then
#               mkdir $file.boot
#       mount /dev/mmcblk0p1 $file.boot
#       cp -rf * $file.boot/
#       umount $file.boot
#       sync
#       fi
#       if [ -e /dev/mtd8 ]; then
#               if [ -e initramfs.bin.SD ]; then
#                       echo "flash romfs"
#                       flash_eraseall /dev/mtd8 >/dev/null 2>&1
#                       nandwrite -p /dev/mtd8 initramfs.bin.SD >/dev/null 2>&1
#               fi
#
#               if [ -e uImage.bin ]; then
#                       echo "flash kernel"
#                       flash_eraseall /dev/mtd7 2>/dev/null
#                       nandwrite -p /dev/mtd7 uImage.bin 2>/dev/null
#               fi
#       fi
#fi

ant_result=`cat /tmp/upgrade_result`

# CGI output must start with at least empty line (or headers)

BTW/EDIT: I started to "read" what I could understand the Russian server and I leave you the code that I saw on the page, I do not know if it is this or the one above that needs to be modified:

Code:
if [ ! -f runme.sh.sig ]; then
        echo "Cannot Find Signature!!!" >> /tmp/upgrade_result
else
        openssl dgst -sha256 -verify /etc/bitmain-pub.pem -signature  runme.sh.sig  runme.sh >/dev/null  2>&1
        res=$?
        if [ $res -eq 1 ]; then
                echo "Installer Not Signtured!!!" >> /tmp/upgrade_result
        else
                if [ -f runme.sh ]; then
                        sh runme.sh
                else
                        echo "Incorrect firmware!!!!" >> /tmp/upgrade_result
                fi
        fi
fi

#if [ -f runme.sh ]; then
#       sh runme.sh
#else
#       echo "Incorrect firmware!!!!" >> /tmp/upgrade_result
#fi
mikeywith
Legendary
*
Offline Offline

Activity: 2240
Merit: 6414


be constructive or S.T.F.U


View Profile
December 26, 2018, 07:41:07 PM
 #16



no you went too far down,

search around line line no 40.

refer to the image i gave you from the Russian  website  >



you need to find these lines that he put blue rectangular, you need to find those 2 part of codes and delete them. they are usually around line no 40, but could be different , you just  need to scroll until you find them.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
yonydouna (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 0


View Profile
December 26, 2018, 08:01:16 PM
 #17



no you went too far down,

search around line line no 40.

refer to the image i gave you from the Russian  website  >

https://forum.bits.media/uploads/monthly_2018_12/176069530_2018-12-0419_48_19.png.a447fba7e31d74b4d083a1a9dc1cbd56.png

you need to find these lines that he put blue rectangular, you need to find those 2 part of codes and delete them. they are usually around line no 40, but could be different , you just  need to scroll until you find them.

Yes, I realized, I had edited the post seconds before your comment  Grin
-------------------------

Code:
if [ ! -f runme.sh.sig ]; then
        echo "Cannot Find Signature!!!" >> /tmp/upgrade_result
else
        openssl dgst -sha256 -verify /etc/bitmain-pub.pem -signature  runme.sh.sig  runme.sh >/dev/null  2>&1
        res=$?
        if [ $res -eq 1 ]; then
                echo "Installer Not Signtured!!!" >> /tmp/upgrade_result
        else
                if [ -f runme.sh ]; then
                        sh runme.sh
                else
                        echo "Incorrect firmware!!!!" >> /tmp/upgrade_result
                fi
        fi
fi

#if [ -f runme.sh ]; then
#       sh runme.sh
#else
#       echo "Incorrect firmware!!!!" >> /tmp/upgrade_result
#fi

Fine, I already have the code, what's next?
mikeywith
Legendary
*
Offline Offline

Activity: 2240
Merit: 6414


be constructive or S.T.F.U


View Profile
December 26, 2018, 09:58:52 PM
Last edit: December 28, 2018, 10:55:08 PM by mikeywith
 #18

you need to alter the code make it look like this

Code:

# if [ ! -f runme.sh.sig ]; then
      #  echo "Cannot Find Signature!!!" >> /tmp/upgrade_result
#else
 #  openssl dgst -sha256 -verify /etc/bitmain-pub.pem -signature  runme.sh.sig  runme.sh >/dev/null  2>&1
# res=$?
# if [ $res -eq 1 ]; then
 #   echo "Installer Not Signtured!!!" >> /tmp/upgrade_result
 #else
#    if [ -f runme.sh ]; then
#   sh runme.sh
 # else
# echo "Incorrect firmware!!!!" >> /tmp/upgrade_result
# fi
 # fi
#fi

if [ -f runme.sh ]; then
   sh runme.sh
else
       echo "Incorrect firmware!!!!" >> /tmp/upgrade_result
fi

you have to add # to disable the first lines, and remove the # to active the last lines.

add # to the first 15 lines, and remove # from the next 5 lines.
---------------------
to be able to edit, you need to click letter " i" on keyboard.

when you done editing

type

Code:
:wq

then re-open the file to verify the editing worked by typing this

Code:
vi upgrade.cgi

if the edition is good save and exist by typing the following

Code:
:q

once done , restart the miner . and try to upload the firmware.

* do not restart the miner
*do this at your own risk.

please make sure you don't make any mistake in the code, you don't have to TYPE or DELETE anything, just use # to disable lines, and delete # to enable lines.

your codes should like the one in the image i sent in my last post.

EDITED : thanks to yonydouna and effud for correcting the restart part.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
yonydouna (OP)
Newbie
*
Offline Offline

Activity: 15
Merit: 0


View Profile
December 26, 2018, 10:25:53 PM
 #19

you need to alter the code make it look like this

Code:

# if [ ! -f runme.sh.sig ]; then
      #  echo "Cannot Find Signature!!!" >> /tmp/upgrade_result
#else
 #  openssl dgst -sha256 -verify /etc/bitmain-pub.pem -signature  runme.sh.sig  runme.sh >/dev/null  2>&1
# res=$?
# if [ $res -eq 1 ]; then
 #   echo "Installer Not Signtured!!!" >> /tmp/upgrade_result
 #else
#    if [ -f runme.sh ]; then
#   sh runme.sh
 # else
# echo "Incorrect firmware!!!!" >> /tmp/upgrade_result
# fi
 # fi
#fi

if [ -f runme.sh ]; then
   sh runme.sh
else
       echo "Incorrect firmware!!!!" >> /tmp/upgrade_result
fi

you have to add # to disable the first lines, and remove the # to active the last lines.

add # to the first 15 lines, and remove # from the next 5 lines.
---------------------
to be able to edit, you need to click letter " i" on keyboard.

when you done editing

type

Code:
:wq

then re-open the file to verify the editing worked by typing this

Code:
vi upgrade.cgi

if the edition is good save and exist by typing the following

Code:
:q

once done , restart the miner . and try to upload the firmware.

* do this at your own risk.

please make sure you don't make any mistake in the code, you don't have to TYPE or DELETE anything, just use # to disable lines, and delete # to enable lines.

your codes should like the one in the image i sent in my last post.
Being honest, it seems very simple, Add # at the beginning of the first 15 lines and delete (Key delate) the last 5 #, but now my questions are...
1) While I am editing, can I close and open the PuTTY without danger while I have not saved the changes? (:wq)

2) Assuming the worst case, if a mistake is made, is it possible to reverse it? reinstall the firmware, set it factory default, and start over?
mikeywith
Legendary
*
Offline Offline

Activity: 2240
Merit: 6414


be constructive or S.T.F.U


View Profile
December 26, 2018, 10:32:38 PM
 #20


1) While I am editing, can I close and open the PuTTY without danger while I have not saved the changes? (:wq)

2) Assuming the worst case, if a mistake is made, is it possible to reverse it? reinstall the firmware, set it factory default, and start over?

1- yes if you use the  "x" bottom on top ,the setting won't be saved.

2- in theory the worst case scnerio is that you'll need to reset the miner. but still shit can happen.

since you are not going to do any coding , you shouldn't make any mistake, before you save just revise the code 2-3 times, compare it to the prev code you pasted here, make sure you have not deleted anything.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Pages: [1] 2 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!