roleoroleo / yi-hack-MStar

Custom firmware for Yi 1080p camera based on MStar platform
GNU General Public License v3.0
847 stars 112 forks source link

Online FW upgrade not working? #526

Closed vin-w closed 5 months ago

vin-w commented 10 months ago

Recently I found all camera does not show available version for new firmware.

"Online FW upgrade Installed: 0.5.3 - Available:"

roleoroleo commented 10 months ago

Did you filter the http/https connection?

vin-w commented 10 months ago

I remember I once enable proxychain but disable afterwards.

Here is some output I checked.

/home/yi-hack/bin # wget -O -  https://api.github.com/repos/roleoroleo/yi-hack-MStar/releases/latest
Connecting to api.github.com (20.205.243.168:443)
wget: note: TLS certificate validation not implemented
wget: TLS error from peer (alert code 80): 80
wget: error getting response: Connection reset by peer

/home/yi-hack/etc # cat system.conf  | grep -i proxy
PROXYCHAINSNG=no
/home/yi-hack/bin # cat /home/yi-hack/etc/proxychains.conf
roleoroleo commented 10 months ago

proxychains is not a problem if you don't use the Yi platform. The log wget: note: TLS certificate validation not implemented is normal.

This is not ok:

wget: TLS error from peer (alert code 80): 80
wget: error getting response: Connection reset by peer

Check your connection, firewall/proxy, router. It should work. Try with a temporary tethering.

marchidaniele commented 9 months ago

I have same problem. I have a cam y25 with base version 4.2.0.0H_201909041620 and Firmware Version 0.4.9.

Online update don't work

Schermata 2023-12-20 alle 00 54 55

and if I connect via ssh and download latest firmware

/tmp/sd # wget -O -  https://api.github.com/repos/roleoroleo/yi-hack-MStar/releases/latest
Connecting to api.github.com (140.82.121.6:443)
wget: note: TLS certificate validation not implemented
wget: TLS error from peer (alert code 80): 80
wget: error getting response: Connection reset by peer

if I download another file via httpS similar error:

/tmp/sd # wget https://ubuntu.mirror.garr.it/releases/jammy/ubuntu-22.04.3-live-server-amd64.iso
Connecting to ubuntu.mirror.garr.it (90.147.160.70: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

and if I add switch --no-check-certificates don't help:

/tmp/sd # wget -O -  https://api.github.com/repos/roleoroleo/yi-hack-MStar/releases/latest --no-check-certificates
wget: unrecognized option '--no-check-certificates'

any chance for upgrade my cam?

roleoroleo commented 9 months ago

I need to update busybox version. Meanwhile you can upgrade your cam with this procedure: https://github.com/roleoroleo/yi-hack-MStar/wiki/Manual-firmware-upgrade

roleoroleo commented 9 months ago

It's a bigger problem than it initially seemed. Currently I'm unable to fix it.

roleoroleo commented 8 months ago

Fixed here: https://github.com/roleoroleo/yi-hack-MStar/commit/e86b722f85cb042ca630e2b805e462eecc9db0b0

Traoma commented 8 months ago

Hello, What's the way to upgrade to the last version with very old release? I'm with the 0.3.5 that has not yet the local firmware update implementation (came since 0.4.8)

roleoroleo commented 8 months ago

Save the config. Copy home_xxx and sys_xxx to your sd card. Reboot. Restore the config if you lost it.

Traoma commented 8 months ago

I already tried that (put the 2 files on sd card root) but the camera still boot normally without flash itself. I tried with last and olders versions but no way to get updated. Very strange 🤔

roleoroleo commented 8 months ago

Are you sure that you are using the correct files for your model?

Traoma commented 8 months ago

It's OK. The problem was the sd card ... I put on old (but working) 4gb card. Tried with a new 32gb and the update has worked. Thanks

Madaraxa commented 5 months ago

Online Update from 0.5.4 to 0.5.5 wont work on my two Mstar cams. I guess this is fixed from 0.5.5 and above? So this is for now the last manual Update needed? (my two allwinner worked from 0.3.8 to 0.3.9)

Extreme79 commented 4 months ago

Happened to me today, from 0.53, in 3 cam. Solved upgrading manually (but I lost settings). 1 identical camera, 0.53, upgraded flawlessy without loosing config.

roleoroleo commented 4 months ago

The problem was fixed with 0.5.4. If you come from 0.5.3 it doesn't work.

Online Update from 0.5.4 to 0.5.5 wont work on my two Mstar cams. I guess this is fixed from 0.5.5 and above? So this is for now the last manual Update needed? (my two allwinner worked from 0.3.8 to 0.3.9)

Reading better your message, this is not correct. The update should have worked. Let me know if you have problems with the next future update.