HclX / WyzeHacks

Hacks I discovered allowing Wyze camera owners to do customizations
MIT License
786 stars 75 forks source link

SD card required to install on a v3 with firmware v4.36.0.280 #109

Closed nijhawank closed 3 years ago

nijhawank commented 3 years ago

Hi, I have few v3s that are already wall mounted and updated to the version 4.36.0.280. None of them have any SD cards installed. I wanted to understand do I need a SD card to install WyzeHacks? The config.inc.TEMPLATE suggests to put it in the SD card but the other documentation suggests that SD card based installation doesn’t work on v3s or v2s with recent firmware versions.

Can you please clarify the installation steps and whether SD cards are required?

HclX commented 3 years ago

Nop, SD card is no longer needed. All you need is to put a config.inc file side by side to the remote_install.sh. However, there are some caveats:

  1. if installation fails, having SD card will provide some useful logs for debugging purpose.
  2. v3 camera needs to be in a certain state to install this hack: basically, one partition (rootfs) needs to be a specific version. There is no easy way to tell what version it currently is and the only way to ensure this version is to do an SD card recovery to some known firmware versions, such as 4.36.0.218, or later. So if your installation fails this is probably the reason, again, without logs in SD card, there is no way to know the exact failure reason.
sveip commented 3 years ago
  1. Can you check /proc for some unique info to determine footfs, like tune2fs -l $(grep " / " /proc/mounts | grep -v rootfs | cut -f 1 -d " ") | grep created e.g.?

fre. 16. apr. 2021 kl. 06:17 skrev HclX @.***>:

Nop, SD card is no longer needed. All you need is to put a config.inc file side by side to the remote_install.sh. However, there are some caveats:

  1. if installation fails, having SD card will provide some useful logs for debugging purpose.
  2. v3 camera needs to be in a certain state to install this hack: basically, one partition (rootfs) needs to be a specific version. There is no easy way to tell what version it currently is and the only way to ensure this version is to do an SD card recovery to some known firmware versions, such as 4.36.0.218, or later. So if your installation fails this is probably the reason, again, without logs in SD card, there is no way to know the exact failure reason.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/HclX/WyzeHacks/issues/109#issuecomment-820894016, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABLR4L3L7VBDHXN4GTDK6BDTI6237ANCNFSM424DKBHA .

HclX commented 3 years ago

I can and I'm doing it right now. And that's how wyzehack purposely failing the installation when version doesn't match. It's just there is no way to get this information out to the user...

sveip commented 3 years ago

I meant to check the version and choose the correct hack built with the appropriate rootfs (given it's a limited #) ;-)

nijhawank commented 3 years ago

I checked all firmwares that are publicly available for Wyze cam v3 and all of them have the same rootfs version which is 4.36.0.112 (the same one that is modified and included in the WyzeHacks. It seems that originally shipped v3s have rootfs 4.36.0.56 which is not in any of the publicly available firmware packages.

HclX commented 3 years ago

Yep, that's exactly how I decided to use rootfs 112 as a base image.

On Tue, Apr 20, 2021, 09:35 nijhawank @.***> wrote:

I checked all firmwares that are publicly available for Wyze cam v3 and all of them have the same rootfs version which is 4.36.0.112 (the same one that is modified and included in the WyzeHacks. It seems that originally shipped v3s have rootfs 4.36.0.56 which is not in any of the publicly available firmware packages.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/HclX/WyzeHacks/issues/109#issuecomment-823424118, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAZNWD27ZKYTOFM3EWEW2Z3TJWULPANCNFSM424DKBHA .

nijhawank commented 3 years ago

Hi @HclX can you release a version of WyzeHacks that simply flashes the rootfs 4.36.0.112 even if the existing one is 4.36.0.56. The reason is because all of my cameras are already mounted high up there and it would be a hassle to go through SD card recovery for them (I'd really need to climb up the ladder).

I guess as we already know that WyzeHacks works fine with modified 4.36.0.112 and it anyways has to reflash the modified one, can you introduce a flag to skip the rootfs version match validation?

HclX commented 3 years ago

Yep, I think I'm going to do that. Just give me a couple days.

On Tue, Apr 20, 2021, 11:51 nijhawank @.***> wrote:

Hi @HclX https://github.com/HclX can you release a version of WyzeHacks that simply flashes the rootfs 4.36.0.112 even if the existing one is 4.36.0.56. The reason is because all of my cameras are already mounted high up there and it would be a hassle to go through SD card recovery for them (I'd really need to climb up the ladder).

I guess as we already know that WyzeHacks works fine with modified 4.36.0.112 and it anyways has to reflash the modified one, can you introduce a flag to skip the rootfs version match validation?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/HclX/WyzeHacks/issues/109#issuecomment-823520868, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAZNWD6Z43JDWKSGVMLZ4HLTJXEM3ANCNFSM424DKBHA .

HclX commented 3 years ago

@nijhawank added this support in bugfixes branch, please checkout the release 0.5.06 from that branch. I don't have a v3 device with that version so didn't do any full E2E test. Please let me know how it works.

nijhawank commented 3 years ago

It worked flawlessly. Perfect. Thank you for your awesome work.