Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update cfw-1.1.bin for Wyve V2 #986

Closed
mbevand opened this issue Mar 23, 2019 · 14 comments
Closed

Update cfw-1.1.bin for Wyve V2 #986

mbevand opened this issue Mar 23, 2019 · 14 comments
Labels

Comments

@mbevand
Copy link
Contributor

mbevand commented Mar 23, 2019

I've rebuilt wyvecam_v2/cfw-1.1.bin based on the latest official firmware (4.9.4.28) here:
mbevand@957b7cc

This provides a number of enhancements:

  • First of all Xiaomi-Dafang-Hacks is in theory designed so that if the SD card containing firmware_mod is removed, the camera is supposed to boot the original firmware and be fully working with the Wyze app. Currently this is broken for the latest Wyve V2 cameras based on the jxf23 sensors. The current cfw-1.1.bin is built on a very old firmware (4.9.1.60) that doesn't
    support jxf23. So users are left with a broken firmware.

  • In 4.9.4.28 they removed the "/system/bin/singleBoadTest" binary which used to enable the SD card interface. I found by trial and error that the SD card interface can be enabled by writing 0 to GPIO43. This simplifies rcfile.sh somewhat.

  • Finally, my changes also properly unmount /system/sdcard when the camera doesn't find run.sh when booting, so that it proceeds with booting the official 4.9.4.28 firmware without the SD card being mounted in two different locations.

I have also extracted the individual 4.9.4.28 binary blobs in mbevand@fb78fae

Please let me know how you'd like to submit my changes to this repo.

@jmtatsch
Copy link
Collaborator

Great work, open two pull requests for the changes please.

@mttyptty
Copy link

Looking forward to flashing the rebuilt CFW! Thanks @mbevand and anyone else for figuring this out.

@mrlindstrom
Copy link

mrlindstrom commented Apr 16, 2019

So I have the old cfw flashed to two of my wyze cams and they indeed have the issue where if the sdcard is removed, they do not boot. I'm trying to flash them with anything, the new cfw you provided, the latest official, the test rtsp firmware, and none of them want to flash. The camera just sits idle until I put the sdcard with the dafang files back in it. Do you know if the broken cfw would cause this?

@Tectron
Copy link

Tectron commented Apr 16, 2019

Id be interested to know as well, I'm in the same boat. Without the Dafang sd card inserted i essentially have a brick.

@FuzzyMistborn
Copy link
Contributor

My cam boots without an SD card but it reverts to the latest firmware (4.9.4.37) no matter what i do in terms of trying to flash a different demo.bin file.

@mbevand
Copy link
Contributor Author

mbevand commented May 6, 2019

Don't know how to create 2 independent pull requests are the changes are inter-dependent, but I broke down my work into multiple commits:
#1041

@mbevand
Copy link
Contributor Author

mbevand commented May 6, 2019

Do you know if the broken cfw would cause this?

Flashing your Wyze camera once with a broken firmware (whether cfw or original) should not cause you camera to fail to flash, because the flashing mechanism is called very early, by the u-boot firmware, and neither the original fw nor cfw change the u-boot firmware, so they can't break it.

@yukdumboobumm
Copy link

Thank you for this. Is there any reason this hasn't been pulled into master yet? Spent way too many hours trying various cfw's before finding this.

@jmtatsch
Copy link
Collaborator

jmtatsch commented Jul 6, 2019

No. Just too little time. Merged now. Still need to build the cfw though.

@stale
Copy link

stale bot commented Sep 4, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Sep 4, 2019
@NorthernMan54
Copy link

@jmtatsch

I have been using the version linked here for a while now, and it works great. Can we get this officially published?

@stale stale bot removed the wontfix label Sep 4, 2019
@stale
Copy link

stale bot commented Nov 3, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Nov 3, 2019
@stale stale bot closed this as completed Nov 10, 2019
@stephenjamieson
Copy link

I'm having the same issue as others here... Can't flash a new demo.bin. Not sure what I need to do to get to this version?

@stephenjamieson
Copy link

stephenjamieson commented Dec 15, 2019

Ok, so the uboot that I flashed that's in the original firmware directory in this github didn't allow for the demo.bin to be loaded, but I flashed with a newer bootloader from a camera I had telnet access to. The new bootloader seems to have done the trick. new uboot had an md5sum of b1f6f38dbb48d4e9d8911833aff0bc99

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

9 participants