roleoroleo / yi-hack-MStar

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

Custom firmware refusing to flash. #110

Closed xfceKris closed 4 years ago

xfceKris commented 4 years ago

I feel like I'm doing something wrong, but I'm following the directions to the letter. I've downloaded and extracted the latest .tgz for my 6fus cameras, format the 8gb sd card using the yi app (as per a recommendation from another issue here). Every time I reboot, I get a normal boot up procedure. I've checked tons of open and closed issues to see if anyone else had the same issue, and found nothing of note except for a mention of firmware version being 4.6. Currently, my cameras are running the stock firmware version 2.1.0.0E. I've seen nothing here mentioning this firmware version, and I checked the yi website for updated firmware, and see that this is the latest version. I feel like I'm simply missing something, but I know I've read the documentation thoroughly.

roleoroleo commented 4 years ago

I think your cam is not MStar based. Check if you can use https://github.com/TheCrypt0/yi-hack-v4

xfceKris commented 4 years ago

That's a no-go. I've tried V4, V6, and MStar. None of them flash. They all have the exact same behavior. That is, a normal boot up and connection to wifi. Edit to add: I've also tried to flash older versions, going back only two or three versions. None of this works either. The cameras just boot as normal.

rogerb831 commented 4 years ago

I'm having the same experience on a BFUS I just bought yesterday.

rogerb831 commented 4 years ago

Actually my issue seems to be related to issue #91

roleoroleo commented 4 years ago

If it's the same issue, your cam is not MStar based. So this hack is not compatible. You can check it connecting a serial adapter and dumping the log.

xfceKris commented 4 years ago

If it's not MStar based, then one of the other hacks should work either V4 or V6, and neither one of those works either. Could it be that the manufacturer is simply mix and matching hardware and software as a way to block these hacks?

How would I go about connecting a serial adapter to dump logs? And what would another solution be if I can't get that done? simply try different hacks until one works (or bricks the camera)?

roleoroleo commented 4 years ago

See the wiki for the dump: https://github.com/roleoroleo/yi-hack-MStar/wiki/Dump-your-backup-firmware

Matchlighter commented 4 years ago

I'm running into this with a 9FUS as well. I cracked it open and it is indeed not an MStar chip - it doesn't have a discernible manufacturer, but it has a logo and QG2101A. App reports firmware as being Version 8.2.0.0A_201912270941. I'll see about trying to find the UART lines and getting some logs.

EDIT: Apologies - just found another issue regarding 8.2

IMG_20200316_224905

roleoroleo commented 4 years ago

Use TX and RX. And see this issue: https://github.com/roleoroleo/yi-hack-MStar/issues/91

roleoroleo commented 4 years ago

@Matchlighter Could you take a picture of the other side?

Matchlighter commented 4 years ago

@roleoroleo Here's the second side. IMG_20200323_100133

roleoroleo commented 4 years ago

Thank you.

xfceKris commented 4 years ago

Any update as to weather or not this will be updated to work with the 6fus with stock firmware 2.1.0.0E?

roleoroleo commented 4 years ago

Please connect a serial adapter and dump the log. I will check which platform is.

roleoroleo commented 4 years ago

See here: https://github.com/roleoroleo/yi-hack-Allwinner/

CaptianNemo commented 4 years ago

If you re-read the OP, you'll see he has a 6FUS and not the 9FUS that Matchlighter has. You will also see his camera reports running 2.1.0.0E and not 8.2.0.0A which is Matchlighter's version. I also have a 6FUS running 2.1.0.0E and have taken it apart, it is not the same as Matchlighter's. It does have an MStar chip. I belive this is a valid issue and should be re-opened. IMG_0234 IMG_0230 IMG_0232 IMG_0233

EDIT: I forgot to mention, I've tried to flash v3, v4, and MStar without any success.

roleoroleo commented 4 years ago

I need a log of the boot to study this model. At the moment is not supported.

CaptianNemo commented 4 years ago

I'll see if I can get those logs for you. Might be about a week though, I ordered a flux pen for the tiny solder job, and amazon says it'll take about a week to get here.

CaptianNemo commented 4 years ago

Yii_log_boot.log

roleoroleo commented 4 years ago

It seems a MStar based cam with a different wifi chip. The model prefix is y23. I could try to add this model to the hack but I need the dump of the flash.

CaptianNemo commented 4 years ago

Dumping the flash is covered in https://github.com/roleoroleo/yi-hack-MStar/wiki/Dump-your-backup-firmware under "dump sys_XXX" and "dump home_XXX", correct?

roleoroleo commented 4 years ago

Yes.

CaptianNemo commented 4 years ago

new_6fus_dump.zip

roleoroleo commented 4 years ago

Try this beta: https://drive.google.com/open?id=1yb22W8clLFR8sDAjiwyDctTM4uZSzV83

CaptianNemo commented 4 years ago

Flashed successfully and camera's webpage shows up. Is there anything you want me to test while I still have wires soldered to it? I really appreciate you taking time to add this model.

roleoroleo commented 4 years ago

Please, try the main features:

  1. RTSP
  2. Snapshot
  3. ONVIF
  4. Mqtt
CaptianNemo commented 4 years ago

RTSP - Working normally. Snapshot - Working normally. ONVIF - I think it's working, but the app I used (lingodigit) is having problems. Mqtt - I don't think I can test this, it seems to require a raspberry pi. The only raspberry pi I own is a zero (regular, not zero-w), which the home assistant website says is not recommended.

roleoroleo commented 4 years ago

You can test mqtt with a generic broker, home assistant is not necessary. But if you can test it, it doesn't matter. I will add y23 support in the next release.