TheCrypt0 / yi-hack-v4

New Custom Firmware for Xiaomi Cameras based on Hi3518e Chipset. It features RTSP, SSH, FTP and more!
GNU General Public License v3.0
1.55k stars 218 forks source link

Problem update remote version #313

Open SirkeS opened 3 years ago

SirkeS commented 3 years ago

I have the same problem on my four cameras

/home/yi-hack-v4 # wget https://raw.githubusercontent.com/TheCrypt0/yi-hack-v4/master/VERSION Connecting to raw.githubusercontent.com (151.101.64.133:443) wget: note: TLS certificate validation not implemented wget: TLS error from peer (alert code 40): handshake failure wget: error getting response: Connection reset by peer

kani85 commented 3 years ago

Yes, it happened to me also. In order to solve I connected via ssh and commented two lines at the end of script/system.sh referring to check_update.sh I think this maybe is related to the version of wget inside busybox?

vcasado commented 3 years ago

Yes, it happened to me also. In order to solve I connected via ssh and commented two lines at the end of script/system.sh referring to check_update.sh I think this maybe is related to the version of wget inside busybox?

Thanks for the workaround, seems that it works!

TheCrypt0 commented 3 years ago

Hi guys, thanks for the report! You are right, it seems like GitHub changed its minimum TLS scheme and the current wget on the camera doesn't have it supported.

Removing the lines you referred to along with the cronjob that calls check_update.sh (old version of the fw) will do the trick.

Hammerfest commented 3 years ago

Can someone write a guide on how to do this for those who dont know how?

(for example, I can ssh to the unit, I can ls/cd around, but the rest is lost on me)

vcasado commented 3 years ago

Can someone write a guide on how to do this for those who dont know how?

(for example, I can ssh to the unit, I can ls/cd around, but the rest is lost on me)

This is what I did:

  1. Log in via SSH.

  2. Open file system.sh under folder script: vi /home/yi-hack-v4/script/system.sh

  3. Enter edit mode pressing key 'i'.

  4. Scroll down and comment the lines 83 and 85:

    $YI_HACK_PREFIX/script/check_update.sh

    crond -c $YI_HACK_PREFIX/etc/crontabs

  5. Press 'ESC' to exit edit mode and then type ":w" and press Enter to save changes.

  6. Reboot!

SirkeS commented 3 years ago

Method 2:

Login via SSH. Open file system.conf under folder script: vi /home/yi-hack-v4/etc/system.conf

Enter edit mode pressing key 'i'.

Scroll down and change value CHECK_UPDATES=no

Press 'ESC' to exit edit mode and then type ":w" and press Enter to save changes.

Reboot!

Hammerfest commented 3 years ago

Both of you mention OPEN, but not HOW to open, probably the only thing I am missing here. EDIT: of course, prior to those posts and with them i did try to google how to open a file over ssh, no joy there talking about 3rd party text editors and commands that did nothing EDIT2: got system.conf open with vi, but hitting esc does nothing, was using windows ssh, switched to putty/kitty doesnt seem to do anything, it seemed like it but after typing :w in a random attempt after making the edit, couldnt get out of the edit mode. EDIT3: ok, despite the fact that nothing shows at all when you hit esc and type, it actually did save the file edit, now to try with system.sh EDIT4: "#" is not implemented when trying to add this to line 83/85 EDIT5: re-reading both posts, I see vi is in the posts, but for whatever reason, I was not seeing it, it was invisible to me...

ID10T error