roleoroleo / yi-hack-Allwinner-v2

Custom firmware for Yi 1080p camera based on Allwinner platform
MIT License
828 stars 95 forks source link

y291ga_0.3.0 not working with RFUS v9 #784

Closed electricmessiah closed 4 months ago

electricmessiah commented 9 months ago

I normally run y291ga_0.2.9 in my RFUS v9 cameras. I tried the new version, y291ga_0.3.0, and it will not finish setup. It just says "waiting to connect" forever. On the y291ga_0.2.9 version, it will say it once, then it gets the blue light and starts working. I think there's a bug in this build as it should work with this camera.

roleoroleo commented 9 months ago

Yes, it should work. Are you using the same sd card or another one? This has also happened to other users when using slow SD cards. Probably there is a race condition in the startup script but I can't find it.

gne5 commented 9 months ago

I have the same issue also on RFUS v9.0.19. Tried two different class10 cards. I got the blue light to blink by using the previous wifi method on the current 0.3.0 build on y21ga.

But mine is just blinking blue. I tried configuring the wifi using both (app-less) methods. I use a hidden ssid, does this require any additional changes? My router isn't showing any connection attempts.

Edit: Tried again with a fresh y21ga 0.3.0 + wifi details and it seems work up until the blue lights stay blinking.

roleoroleo commented 9 months ago

Edit: Tried again with a fresh y21ga 0.3.0 + wifi details and it seems work up until the blue lights stay blinking.

Please, explain me better.

gne5 commented 9 months ago

Edit: Tried again with a fresh y21ga 0.3.0 + wifi details and it seems work up until the blue lights stay blinking.

Please, explain me better.

My bad, I did not reset the camera before inserting a clean copy of y21ga v0.3.0, including wifi ssid and password via factory/configure_wifi.cfg. It probably retained previous wifi details.

Model: YYS.2016 2023.10 RFUS v9.0.19.12 [y21ga, v0.3.0]
a) Result: Yellow blinking light, "waiting to connect". Process:

Continued from (a).. b) Result: Blue blinking light. Process:

Start over - try with sdwifi for 1st boot: c) Result: Blue blinking light. Process:

--

Then I tried y21ga v0.2.9 with sdwifi after resetting the camera and it... connected with solid blue light. Web server works.

Edit: But, I checked mtdblock7_xx.bin and there was no ssid or password still. It looks different like a hash of the ssid/pw. So, I figured the ssid/pw was probably saved on the camera. I deleted the contents of sdcard and put a clean copy of y21ga 0.3.0 on without editing wifi credentials and booted it up and it works. Web server working and reporting version 0.3.0!

roleoroleo commented 9 months ago

Checking the sdcard.. it created a backup and renamed the factory folder with .done. No root/mtdblock7_xx.bin created. Checked the backup/mtdblock7.bin dump and there is no ssid or password inside.

This behavior is because the cam is already hacked (/backup/init.sh contains telnetd.

Checked sdcard; Newly created root/mtdblock7_xx.bin - No ssid or password inside.

mtdblock7_xx.bin is the backup before to change wifi credentials. No password inside is correct. But it should work after the reboot.

If 0.2.9 with sdwifi works you can update to 0.3.0 without lose the wifi data.

A couple of notes:

github-actions[bot] commented 6 months ago

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.