-
Notifications
You must be signed in to change notification settings - Fork 1k
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
New Bootloader - Testers needed #573
Comments
works without problems on my df3 👍 |
From what I have seen in the issues Xiaomi Xiaofang 1S and Wyzecam V2 may have only 64 mb ram so double check before flashing those models. |
Can someone provide a bootlog from the u-boot of Xiaofang 1S and Wyzecam V2? It would help to identify the size of the ram. On a Dafang its like:
Also a teardown would help to identify the RAM which is being used. |
Okey, found another way to find out how much Ram your camera have:
Then just count all the mem variables together. mem + ispmem + rmem = Its 128Mb |
Okey, another update(last for today). So if someone with a 64Mb Device want to give it a try: Flash it using:
|
I have a couple of Wyzecam V2 and a Wyzecam Pan: All my Wyzecam V2 have 128mb and I had already manually hex-mod the original uboot fw to support 1080p. Here's teardown pics / cmd / uboot output. Teardown: Cmdline:
Uboot log: Edit : Edit 2: |
I haven't open my Wyzecam Pan yet, but heres the Cmdline:
|
@hcgonzalezpr : Many thanks! I suppose that its now proven, that its working on 128Mb Devices. There is still testing needed on 64Mb Devices. |
Xiaomi Xiaofang 1S (64MB): Seems to have failed (boots, enables/disables ircut, seems to reboot after some time), but had no time for further debug. |
@jpbarraca Can you try to remove the SDCard and check if it still boots? If so, remove uEnv.txt from your SDCard. |
Will try later tonight |
@EliasKotlyar I flashed the openfirmware on the Wyzecam Pan, booted up fine. But when I enabled the UEnv.txt on a later test it hung. It did boot with a blue light, meaning it it was trying to load the uEnv.txt file. |
Hmm, my Dafang (DF3) seems to only have 64MB. 😞
|
It boots but goes into the original firmware. With a uenv file, its stuck at Card has 2 partitions (fat and ext3) |
@jpbarraca : Can you try to modify your bootargs in your uEnv.txt? I suppose that its a memory related issue. You should change it to:
|
I have a Xiaomi Xiaofang 1S (64MB). The chip says T20. I'm now prepared to test the uboot. Some questions before... The sdcard needs to have 2 partitions (fat+ext3)? ext3 or ext4? whats sizes? Thanks |
Hello @paumove , Thanks for your efforts.
Flash it using: Greatings |
U-Boot 2013.07 DafangHacksV1.3-g96a42d5-dirty (Jul 16 2018 - 22:15:12) Board: ISVP (Ingenic XBurst T20 SoC) *** Warning - bad CRC, using default environment You need somthing more? What can I do now to use normally as RTSP? |
@paumove : That looks really good! I suppose that there is no issue here. You can try to flash #575 - this will enable more options for your camera |
I can't run it on normal functioning (as I have done previously). I attach the serial log. Meanwhile I will try #575 |
@EliasKotlyar The Wyzecam Pan works perfectly with opensource-T20-V1.2.bin Before:
After: (with 1080p applied via uEnv.txt)
|
WyzeCam Pan (128Mb) flashed successfully here without issues, and FullHD is working great now -- hooray!
|
Hello, I have two Xiaofang S1's (64MB) which do not cope very well (not at all) with 720P/1080P RSTP streams. So far only 640x320 seems to be stable. I am willing to sacrifice 1 S1 to see if this new bootloader helps? |
It will not boot correctly due to an error detecting the sdcard but it should not become a paperweight. See #581 |
I followed the tutorial with a Dafang and got a brick. I haven't opened the thing yet, and I have a couple of others to play with so I'm not put out, plus I always wanted to learn how to reprogram an eeprom, so that'll be fun, I have a flashing usb stick thing on order. Not sure I did anything wrong as far as the procedure? I didn't check the versions of the chips, though. The md5 sum of the binary I flashed matched and everything. |
Figured out what I did. I right clicked and copied the link to the binaries in the instructions, and flashed that. That turns out to be the GitHub repo listing where you would then find a link to download the raw file. I did this again when I went to flash my 2nd camera and noticed it wasn't updating and that is when I went back and checked what file I had downloaded. I did this with the first camera as well I remember. Perhaps put a disclaimer. Maybe it is my method of working but I guess I always assume if someone points to a link that is supposed to be a binary I copy that link and use wget or curl and download it somewhere specific. But I guess I assumed too much! |
@Daylights : Please wait a little until we figure out a solution for a Xiaofang 1S. For now its booting, but there are still some problems with WIFI and sensor @th0ma5w : Sorry for my mistake if i wrote some stupid link - but can you please point out which tutorial you mean? Are you meaning this one: |
@stve-a that doesn't sound good. I think you should invest in a serial bridge and/or spi flasher. |
@stve-a : Try to remove the sdcard. If its still not boots, you need to investigate that using a serial-bridge and/or a SPI flasher. |
Thanks @EliasKotlyar and @jmtatsch for your feedback. The removal of the SD card was the first thing I tried to check out, but alas to no use. It's a pitty because I think I did everything right, so I don't understand why other people were able to flash it succesfully. On the sticker it mentions 1S and iSC5 between the chinese text under the foot of the cam. cmdline output prior to the flash looked like:
Have others been succesfull with the 1S 64mb v2 flash ? Or is only the v1 flash confirmed ? I don't have any problem getting some extra hardware to get access to the console (it's part of the tinkering) but I'm not all that savvy with soldering and/or electricity in general so the chip clip hardware gets my preference. So could you guys validate the hardware before I buy it ? I am looking at a CH341 like this: And a chip clip like this: Thanks for all the feedback and support, and thanks to all the people that help in the development of these hacks! Regards |
So I bricked my camera, pulled the flash chip and flashed new bootloader...ONLY to break a leg off the chip when attempting to solder back on. Ordered new chips and flashed bootloader. Confirmed it works (see in serial output) but realized I don’t have any other firmware on the chip...Would I get the 11-12MB demo.bin from Wyzecam (have Wyzecam v2) and flash using rom.layout? Just trying to figure out how to get all the right bin files on using flashrom. I know the cams aren’t much $$$ but I’m trying to get enough experience under my belt so I can start contributing to this awesome project. |
If you have flashed the custom uboot, you can also try the new rootfs (my pull request) or openfang rootfs directly. No need to flash the rom... |
So below is my serial readout...I have my card as Ext3, cloned rootfs and it's not booting. Root of sd card has uEnv.txt (no changes from git clone). Any ideas? I asked about flashing the original firmware of the wyzecam v2 as if that was successful I'd simply do the micro bootloader and flash mtd0 after ssh (like with my other wyzecam v2s).
|
I'm seeing intermittent video losses, as in, RTSP feed goes offline, then after a while it comes back up. This happens with a Dafang camera, flashed today, with the current u-boot. It's also ignoring uEnv.txt. |
Hi Thanks |
@woody4165 V2 Just means its the second version in that case. Fits all 128 MB Dafangs. |
I have the same setup and same issue. My V2 never boots. My next step is to hook up the serial console but I am guessing it will match @reichley 's. |
Hello, I am curious if it is possible if we can flash the custom bootloader onto our Wyzecams (v2) and then possibly revert back to the original Wyzecam firmware while on the custom boot loader or would it not be compatible? Currently my understanding is that the firmware that controls the Camera's main functionality (recording, etc), is separate from the bootloader firmware. Trying to understand if the original Wyzecam firmware requires the original bootloader to work normally. Thanks! Also, does anyone know how to dump the current bootloader so I can back it up just in case? I assume the bootloader dumps will probably be the exact same between the same cameras (Wyzecam V2) right? |
Hello @Rocketboy235 Yes, you can still use your original wyzecam firmware with the custom bootloader. Your understanding is correct. You can dump everything of your firmware with the following commands: |
@EliasKotlyar ... How would I restore original Wyze V2 software after loading this customer bootloader? |
@jpbarraca @rfenouil @EliasKotlyar
when you change cmdline parameters, how do you calculate the hex value after memory size?
|
@InstigatorX You basically dont need to restore any software after you have installed this new bootloader. The bootloader is compatible with the original wyzecam software. However, if you really feel that you need to restore it, you can flash the original bootloader from wyze with the same method. Just replace the binary with the one from wyze. @EsEnZeT |
@EliasKotlyar thank you very much! |
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. |
flashed Xiaofang 1S 64mb v2 Bootloader MD5: Bootloader Version: Your CMDline is: with this parameters |
I have Xiaofang 1s 64MB with T20L (well i think its an L not sure though)
|
On the wayzecam v2, it seems that the camera will occasionally lock up, and a power cycle is the only way to recover |
guys can anyone provide me a full dump of spi flash coz i fucked it up and i dont know how to flash all partitions back in eeprom so if anyone have full backup please provide me i have rt809f and ch3412a both flasher |
what camera? |
Wyze v2 i flashed it back using serial and spi now how to reconnect it with app coz it wont sound or shows it is in pairing mode |
U there bro?? |
Discord, biatu.aut.miahn |
Hello everyone,
I have completed work on a new u-boot bootloader. I need someone for testing it out on different devices. The list includes:
Xiaomi Dafang -> was tested from @hyteoo, @benleb
Xiaomi Xiaofang 1S (64Mb) -> was tested from @paumove
Wyzecam Pan(128Mb) -> was tested from @l0gik @hcgonzalezpr
Wyzecam V2(128Mb) -> was tested from @hcgonzalezpr
The benefit is, that you can use FullHD and / or boot a kernel from microsd.
Attention : Please consider, that it may result in a completely hardbrick of your device, which may only be fixxed by desoldering/soldering the nand-flash. There is a recovery tutorial here:
https://github.com/Dafang-Hacks/spiflasher
Prepare for recovery before flashing!
I suppose that it will only work on devices which are really similar to the original Dafang. The original Dafang has DDR2_M14D1G1664A Ram(according to u-boot) and 128MB in size. If your Camera has different type/size of Ram, do not try to flash it! It is very likely that it will brick your device or at least have some malfunctions. Instead, please report your RAM Type and your RAM size here.
So if you are brave enough, please use the following tutorial and report your results here:
https://github.com/EliasKotlyar/Xiaomi-Dafang-Hacks/blob/master/hacks/flashinguboot.md
The text was updated successfully, but these errors were encountered: