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

Can't install CFW on Dafang 2017DP3894 on 5.5.1.353 #669

Closed
DanielePetrarolo opened this issue Sep 1, 2018 · 226 comments
Closed

Can't install CFW on Dafang 2017DP3894 on 5.5.1.353 #669

DanielePetrarolo opened this issue Sep 1, 2018 · 226 comments
Labels

Comments

@DanielePetrarolo
Copy link

DanielePetrarolo commented Sep 1, 2018

Hello everyone

I really can't install the CFW on my dafang DF3 1080p.
I tryed eveything. Downlaod cfw from 1.0 to 1.3, put on microsd, holdsetup button than powered and release at different times.
I tried 2 different microsd from Lexar: one is 16GB the other is 8GB.
Eveytime I try to flash the camera start spin in just 20seconds, and when I test the blue shining led, I don't get it.
Also, passing the steps above give me no result. The camera use always the original firmware.
On MiHome the camera is on firmware 5.5.1.353.

Can you give me some advice?

Maybe my DaFang is a new versione? I have bought it some weeks ago.

@DanielePetrarolo DanielePetrarolo changed the title Can't install CFW on Dafang DF3 Can't install CFW on Dafang 2017DP3894 on 5.5.1.353 Sep 4, 2018
@DanielePetrarolo
Copy link
Author

Someone can help me?

@jmtatsch
Copy link
Collaborator

jmtatsch commented Sep 4, 2018

Did you try with a 512 mb fat partition?

@DanielePetrarolo
Copy link
Author

Yes. Nothing different.
Why a small partition could be a solutions? I ask because I'm Noob, maybe I'm do something wrong.

Maybe the problem is the latest firmware 5.5.1.353?

@jmtatsch
Copy link
Collaborator

jmtatsch commented Sep 5, 2018

Are you on windows? No hidden files left on the SD?

@DanielePetrarolo
Copy link
Author

Tried everything: from windows but also on Mac, using terminal to check if on the microSd thare are hidden files.
Nothing. Only demo.bin present but can't install cfw. Really sad.

@DanielePetrarolo
Copy link
Author

I add some info: trying to install demo.bin I turn on the camera (yellow light) with setup pressed, after 5 second the light become blue, i release button and after 5 second the light back to yellow. After 2 second it start rotating. Here I disconnect the camera and copy firmware_mod inside sd card. After this I'm stuck.

@jmtatsch
Copy link
Collaborator

jmtatsch commented Sep 5, 2018

That sounds like a normal startup. Are you pressing the setup button hard enough? Is it broken?

@DanielePetrarolo
Copy link
Author

I think I press well.
After this part I power off camera, Remove sd and restar camera: only a Yellow ligth appear, no blue.
If a try to copy firmware_mod and mount sd, the stock firmware start, not the mod one.

Maybe 5.5.1.353 remove possibility to hack?

@jmtatsch
Copy link
Collaborator

jmtatsch commented Sep 6, 2018

Possible but unlikely. 5.5.1.327 is known to work and not that far away. Maybe try to downgrade your stock firmware to 5.5.1.200

@DanielePetrarolo
Copy link
Author

How can I do a firmware downgrade? The are some instructions?

@jmtatsch
Copy link
Collaborator

jmtatsch commented Sep 6, 2018

Just use the original fw on git and follow the initial demo.bin procedure.

@DanielePetrarolo
Copy link
Author

So I have to do the demo.bin procedure. Than poweroff, remove sd, copy firmware original on micro sd and restare with out setup pressed Buffon?

1 similar comment
@DanielePetrarolo
Copy link
Author

So I have to do the demo.bin procedure. Than poweroff, remove sd, copy firmware original on micro sd and restare with out setup pressed Buffon?

@jmtatsch
Copy link
Collaborator

jmtatsch commented Sep 6, 2018

You got it working now?

@DanielePetrarolo
Copy link
Author

I junk i have close the issue for error. I will try this night. The procedure to downgrade the firmware is what I write up here?

@jmtatsch
Copy link
Collaborator

jmtatsch commented Sep 6, 2018

No. Take the stock fw, rename to demo.bin and flash exactly like the custom fw.

@DanielePetrarolo
Copy link
Author

Insidie the original fw folder there are a kit of files: what i have to take to rename in demo.bin?

@DanielePetrarolo
Copy link
Author

Someone can help me? Inside the 5.5.1.200 there are a lot of files. What should I take and rename to demo.bin to flash original fw? Thanks

@jmtatsch
Copy link
Collaborator

jmtatsch commented Sep 8, 2018

There are 2 firmwares already packed in a .bin. Take one of those.

@DanielePetrarolo
Copy link
Author

I see more than 2 bin file here: https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks/tree/master/firmware_original/dafang/5.5.1.200
What should I Use? Sorry for nood question XD

Other things: after flash the original firmware in the MiHome app I have to check the fw version to check 5.5.1.200 right?

@jmtatsch
Copy link
Collaborator

jmtatsch commented Sep 8, 2018

Then take an earlier fw which is already packed.

@DanielePetrarolo
Copy link
Author

Tried eveything. Nothing work. really sad,,, I think it's my hardware

@DanielePetrarolo
Copy link
Author

Maybe is need a new version of cf for 5.5.1.353? cf-1.4.bin incoming?

@jmtatsch
Copy link
Collaborator

jmtatsch commented Sep 8, 2018

Nah, first you should solder a serial interface to your camera and collect a full bootlog.

@jplh42
Copy link

jplh42 commented Sep 11, 2018

Having the exact same issue. I have been trying everything, every demo.bin. It's my 4th camera (I ordered this one recently, never had the issue before). Impossible to downgrade or to put a CFW. I will try to open it up and plug a serial to check what is happening.

@M203
Copy link

M203 commented Sep 11, 2018

I have the exact same issue. FW is 5.5.1.353. Looking forward to your findings @jplh42

@ferrexevi
Copy link

ferrexevi commented Jul 2, 2020

I haven't been successful installing the microSD bootloader on a Wyze Cam V2. I start out by downgrading the firmware on the camera to 4.9.3.64 because the discussion above says that firmware version works with CFW. My downgrade works. I can connect to the camera using the phone app and it reports firmware version as 4.9.3.64.

I have no trouble going back and forth between the 4.9.3.64 firmware and the latest firmware, 4.9.4.111, via the setup process, holding down setup, plugging in power. So... I at least know how to hold down the setup button and plug the camera in.....

But I can't get past the next step, installing the microSD bootloader, cfw-1.1.bin, renamed to demo.bin. I hold down the setup button and see the light change from yellow to blue, but then it changes back to yellow and stays yellow. If I unplug the power, and remove the sd card, and then plug it back in, the camera light stays yellow and I can't connect with the app.

I have no trouble restoring the camera to working order by reinstalling latest or 4.9.3.64 firmware, but I never can get the camera to work after trying to setup with cfw-1.1.bin.

I am careful about making sure the only file on the sd card is "demo.bin". I have tried both formatting the whole card and formatting just a 512 MB partition. Formatting the whole card works fine with both the 4.9.3.64 and 4.9.4.111 demo.bin files.

What am I doing wrong?

You have to install the firm "4.9.1.60", you will find it inside the original firmware folder, you can also try firmware "4.9.4.28" which is also in that folder.

sorry for my bad english, I use google translator

EDIT: lincks to FW orig -> https://support.wyzecam.com/hc/en-us/articles/360024852172&?section=v2-firmware

@ctrager
Copy link

ctrager commented Jul 2, 2020

Thanks, but I don't know what to do next. Regarding the 4.9.1.60 "original firmware folder", I expected to see one file (that I would copy to the sd card as demo.bin) but instead I see a folder with many files. Should I copy the many files to SD card? At the wyze website there is no link to download the 4.9.1.60 file anymore.

@ferrexevi
Copy link

Thanks, but I don't know what to do next. Regarding the 4.9.1.60 "original firmware folder", I expected to see one file (that I would copy to the sd card as demo.bin) but instead I see a folder with many files. Should I copy the many files to SD card? At the wyze website there is no link to download the 4.9.1.60 file anymore.

try the latest available "4.9.2.42". If it fails, it is a matter of testing versions. Then to connect to the wifi you have to modify the file WPA_suplicant.conf.dist to then rename it and leave it with extension .conf for it to take effect, I assume that you know this step well, otherwise, it will not connect to your wifi

@ctrager
Copy link

ctrager commented Jul 2, 2020

I tried with 4.9.2.42 but it didn't work. That is, after I install cfw-1.1, the camera light stays yellow and I can't connect to it via the app, nor does anything happen if I then turn it on with the firmware_mod contents on the sd card.

I also tried the files related to this: #986
That is, firmware 4.9.4.28 and his cfw-1.1
But also didn't work.

@Foden7
Copy link

Foden7 commented Jul 2, 2020

Once you've booted with the hacked firmware you need to replace the boot microSD with one that contains the system files and then reboot the camera. From here https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks/tree/master/firmware_mod, then rename wpa_supplicant.conf.dist to wpa_supplicant.conf and edit the contents to match your wi-fi. Then reboot your camera and wait 3-5 mins for the solid blue light to appear

@ctrager
Copy link

ctrager commented Jul 2, 2020

@Foden7 - I've done that a few times. The light doesn't turn blue.
I thought after flashing cfw-1.1.bin. I should be able to run the camera even WITHOUT an SD card? Of course, I wouldn't get the features in firmware_mod, but at least I would know that the step of flashing cfw-1.1.bin worked. I never get back to blue after flashing cfw-1.1.bin, regardless of whether I have an SD card with firmware_mod contents or not. I'm guessing my issue is I still haven't started with the firmware known to work, 4.9.1.60, and isn't available at the wyze website anymore.

@Foden7
Copy link

Foden7 commented Jul 2, 2020

As far as I know you need an sd card with the file/folder structure from the link in my previous message.

Sd card with demo.bin MUST be formatted FAT32 and ONLY contain demo.bin

Oldest I have is 4.9.2.42, key thing for me was to have a piece of a credit card that I used to push down the setup button on the camera whilst I was pushing in the power cable, made it much easier. Lost my notes for the rest, pretty sure I posted them here ages ago. With the demo.bin sd card installed, hold down the setup button whilst putting power to the camera. When the camera powers up the light flashes yellow, i think, and then after a while changes to blue (or the other way around). Keep the setup button pressed until then, usually 10 seconds or so - I don't think it hurts holding it too long. Then I leave it alone for at least 5 mins before it gets powered off. Then swap the sd card for the one with the file/folder structure from the link in my previous message and power it on. After 30 seconds or so it's connected to my Wi-Fi

@ctrager
Copy link

ctrager commented Jul 2, 2020

Thanks. I'm sure the problem is NOT with me holding setup button because I'm able to easily switch back and forth between different firmwares that I download from wyze. The step I can't get past is after I flash cfw-1-1.bin the camera is effectively dead. Doesn't get to blue, both when I reboot without sd card and if I reboot with sd card with firmware_mod contents.

I'm giving up for now.

(My goal was to try the hacks RTSP stream because the experimental wyze firmware with RTSP, 4.28.4.41, results in a pretty poor looking stream. I wanted to get the stream so that I could write my own specialized motion detection logic but the stream is so jerky it's not usable to me. I was wondering whether the stream that's part of the hacks is better.)

@Foden7
Copy link

Foden7 commented Jul 2, 2020

Gotcha - sorry, you are obviously doing that right to switch firmware. For me, the stream via the hack is terrible no matter what settings I try. I used to have all my cameras on this firmware and then used SightHound to view/record the stream. The RTSP firmware, for me, is WAY better than this hack. I ditched SightHound, excellent product but renewals every year. Detection is AWEOSME, https://www.sighthound.com/. I now use TinyCamPro running on Lineage OS 14.1 running on VirtualBox. I had it running on Android x86 OS and it was great. I wanted to run the setup headless but couldn't find any remote access software that worked properly with AOSP Android

I took a look at the WayBackWhen machine and older firmware is available try here https://web.archive.org/web/20191217193836/https://support.wyzecam.com/hc/en-us/articles/360024852172

Good luck

@domotica-orellana-loyola

What would be the configuration for a hidden ssid

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
ap_scan=1

network={
ssid="enteryourssidherebutrememebertokeepthequotes"
psk="enteryourpasswordherebutremembertokeepthequotes"
key_mgmt=WPA-PSK
}

@Foden7
Copy link

Foden7 commented Jul 5, 2020

This is what I have in the standard \config\wpa_supplicant.conf file

For more configuration option please see:

https://w1.fi/cgit/hostap/plain/wpa_supplicant/wpa_supplicant.conf

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
ap_scan=1

network={
ssid="SSID"
# Uncomment to connect to Hidden SSIDs
#scan_ssid=1
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP WEP104 WEP40
psk="PW"
priority=2
}

@kalyway101
Copy link

kalyway101 commented Aug 6, 2020

Thanks. I'm sure the problem is NOT with me holding setup button because I'm able to easily switch back and forth between different firmwares that I download from wyze. The step I can't get past is after I flash cfw-1-1.bin the camera is effectively dead. Doesn't get to blue, both when I reboot without sd card and if I reboot with sd card with firmware_mod contents.

I'm giving up for now.

(My goal was to try the hacks RTSP stream because the experimental wyze firmware with RTSP, 4.28.4.41, results in a pretty poor looking stream. I wanted to get the stream so that I could write my own specialized motion detection logic but the stream is so jerky it's not usable to me. I was wondering whether the stream that's part of the hacks is better.)

I'm having the EXACT same issue as you. I can successfully flash, 4.9.2.42 AND 4.9.4.28 with no issues at all. I then downloaded cfw-1.1 and rename it to demo.bin and hold the setup button for 10seconds while I plug it in.

It starts as a solid yellow for about 2seconds, the light changes to a light blue (not solid blue) for about 1minute, then restarts so the light changes back to yellow (2seconds again) then goes to light blue for about 1second, then switches to solid yellow and stays that way indefinitely.

After about 10mins I unplug it, copy the "firmware_mod" files with my proper wifi settings, rename from conf.dist to .conf, and when I plug it back in... it's just solid yellow without any connection to my WiFi.

EDIT: So it works! I followed this video except that I had a 128GB card, so I ended up creating a 512mb partition and it works great!!!

https://www.youtube.com/watch?v=DD7mLfk_l9I

@nogueirasa
Copy link

Works for e with Dafang on 5.5.1.4xx version and using 8GB SD Card

@undertherainITA
Copy link

Who gives me a hand?
I tried with a Dafang DF3 with firmware 5.5.1_0426 with the result that it no longer works.
I copied firmware demo_5.5.1.194.bin renaming it to demo.bin on 32GB SD but with 512MB partition in FAT32.
I insert the SD, hold down the reset button, connect the power supply, I keep it for 20 sec., The camera first turns blue, it usually turns around and then stops in the central position with the LED that remains yellow flashing forever.
Who gives me a hand?
I wanted to make it work on ITA server but at least before with China server it worked perfectly.
Thanks.

@undertherainITA
Copy link

undertherainITA commented Sep 27, 2020

Works for e with Dafang on 5.5.1.4xx version and using 8GB SD Card
Which exact version?
I'm trying with the 5.5.1_0426 but I still have a flashing yellow LED and the camera doesn't respond anymore.

@nogueirasa
Copy link

Works for e with Dafang on 5.5.1.4xx version and using 8GB SD Card
Which exact version?
I'm trying with the 5.5.1_0426 but I still have a flashing yellow LED and the camera doesn't respond anymore.

Sorry, I cant remember, but should be the same as your because my camera was updated with Mi Home and I did it last week.

@undertherainITA
Copy link

Guys, can someone help me out that I'm going crazy?
I have a Dafang DF3 which had firmware 5.5.1_0426.
I upgraded to mod firmware and it stopped working (always blinks yellow).
Now I would like to put back the original firmware but I can't.
I did the procedure with 2 different 32 GB microSD cards (either with a smooth partition or by creating a 4 GB, 512 MB, etc.), but nothing to do.
I copy the original firmware demo_5.5.1.194.bin to the microSD, renaming it demo.bin, by holding down the reset I connect the power supply and keep it pressed for 20 sec ..
The cam emits solid blue, then solid yellow, then flashing yellow starting to spin and then flashing yellow forever ... what should I do to put it back in place?
Help me, I don't want to use it as a paperweight ...

@undertherainITA
Copy link

Works for e with Dafang on 5.5.1.4xx version and using 8GB SD Card
Which exact version?
I'm trying with the 5.5.1_0426 but I still have a flashing yellow LED and the camera doesn't respond anymore.

Sorry, I cant remember, but should be the same as your because my camera was updated with Mi Home and I did it last week.

Can you tell me exactly what you did and what do you use?
Read below what I did.
Give me a hand, I'm desperate ...

@nogueirasa
Copy link

Very important. Check if the sd card has only the demo.bin. Delete the "System Volume Information" hidden folder. Exemplo: https://www.getusb.info/how-to-delete-and-keep-system-volume-information-folder-off-flash-drives/

@undertherainITA
Copy link

Very important. Check if the sd card has only the demo.bin. Delete the "System Volume Information" hidden folder. Exemplo: https://www.getusb.info/how-to-delete-and-keep-system-volume-information-folder-off-flash-drives/
I tried to follow your advice by deleting the folder but I just did a test on the fly and I still couldn't update the firmware.
In the end I got bored and did an "imaginative" Amazon return ...;)

@rogodra
Copy link

rogodra commented Oct 15, 2020

Hi, I have two Dafang, which were all with firmware 5.5.1.426.
I tested the process with a very old 128Mb microSD and the cfw-1.3.bin file and it worked at first on both.
Once upgraded the two have downgraded to version 5.5.1.243, and if it boots with the files on the microSD, it runs the custom firmware correctly.
Therefore I confirm that the hack works with firmware 5.5.1.426.

@undertherainITA
Copy link

Hi, I have two Dafang, which were all with firmware 5.5.1.426.
I tested the process with a very old 128Mb microSD and the cfw-1.3.bin file and it worked at first on both.
Once upgraded the two have downgraded to version 5.5.1.243, and if it boots with the files on the microSD, it runs the custom firmware correctly.
Therefore I confirm that the hack works with firmware 5.5.1.426.

I honestly had not succeeded but after a while I had given up and I preferred to make the 2 Dafangs that I had disappeared by replacing them with 2 new IMILAB basic... ;)

@rogodra
Copy link

rogodra commented Oct 16, 2020

Mine are two years old, they can't be returned. I did the process with a 128Mb microSD, it worked with both in the first, surely your problem was the microSD.
In fact, to boot with the hack on a microSD HC class 10 does not detect it, I think you need to use older SD.
The final control is total, very happy with the hack.

@undertherainITA
Copy link

Mine are two years old, they can't be returned. I did the process with a 128Mb microSD, it worked with both in the first, surely your problem was the microSD.
In fact, to boot with the hack on a microSD HC class 10 does not detect it, I think you need to use older SD.
The final control is total, very happy with the hack.

I had run out of old SD ... anyway thanks!
So were you able to connect them to Mi Home apps on a NON China server?
But the cloud doesn't work right?

@rogodra
Copy link

rogodra commented Oct 19, 2020

I had run out of old SD ... anyway thanks!
So were you able to connect them to Mi Home apps on a NON China server?
But the cloud doesn't work right?

I don't know if it goes outside of china, I use china server because I have devices that only work on this one.
If everything works, if you put the files in the SD with the custom firm it starts with it, if you remove the files or the SD starts normally and is controllable from mi home.

@undertherainITA
Copy link

I don't know if it goes outside of china, I use china server because I have devices that only work on this one.
If everything works, if you put the files in the SD with the custom firm it starts with it, if you remove the files or the SD starts normally and is controllable from mi home.

I see.
I'm Italian and to have realtime cameras I put everything on Xiaomi Italia servers, that's why I made the Dafang disappear since I couldn't fix them, but that's okay ...;)
I only have the Xiaomi Rubik's Cube now that it only goes to China server but with Mi Home mod app ... all right ...;)
Thanks again friend!

@stale
Copy link

stale bot commented Dec 19, 2020

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 Dec 19, 2020
@stale stale bot closed this as completed Dec 26, 2020
@reenberg
Copy link

reenberg commented Aug 8, 2021

Just for reference. I had a Dafang DF3 with firmware 5.5.1_0426, and I could also not get the camera to flash the cfw-1.3.bin. Every time I inserted the SD card and started the camera, it would start spinning instantly, and when looking at the SD card afterwards, it had placed logs files and a few folders. aka it started up normally.

I downloaded the 5.5.1.194 firmware, and downgraded, which worked. I confirmed the downgraded firmware version in the Mi Home app, through profile -> settings -> check for updates.

Then I downloaded the cfw-1.3.bin again, and now it flashed without any problems. Formatted the SD to its full 32G capacity, added the firmware_mod files and fixed the wpa_supplicant, works like charm.

Great work. Now all the fun begins :)

Note. I did this on a windows machine, and thus I made sure to delete the "system volume information" folder as described in an earlier comment. Also I was using a 32G card, so it ended up being a 508.88M partition when trying to flash with the demo.bin files.

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