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

bootloop #818

Closed
onbites opened this issue Feb 6, 2024 · 14 comments
Closed

bootloop #818

onbites opened this issue Feb 6, 2024 · 14 comments
Labels

Comments

@onbites
Copy link

onbites commented Feb 6, 2024

I've just installed 0.3.1 firmware Yi Dome Camera U (2K) h51ga.

If I make any change in setup and reboot the camera keeps rebooting.

If any take out power supply it does the same. Rewriting the SD Card makes the camera work again.

Besides, is there any way to remove watermark? I've read that main.bmp and sub.bmp are on /home/app but I cannot find that folder in the SD Card.

Thanks in advance.

@roleoroleo
Copy link
Owner

Try to change the sd card if you have another.
If the problem persists try the unbrick procedure.

The watermark are in /home/app. It's a folder inside the flash memory of the cam, not in the sd.
You can replace the bmp files with other files but you can't remove them.
Otherwise the main Yi process will crash.

@onbites
Copy link
Author

onbites commented Feb 6, 2024

Try to change the sd card if you have another. If the problem persists try the unbrick procedure.

The watermark are in /home/app. It's a folder inside the flash memory of the cam, not in the sd. You can replace the bmp files with other files but you can't remove them. Otherwise the main Yi process will crash.

I'll try with another card and I will post the result.

So I need to to access via ftp or ssh. Once replaced the bmp files will remain after a reboot? Could I use a blank bmp with the same dimensions?

@roleoroleo
Copy link
Owner

So I need to to access via ftp or ssh.

Yes.

Once replaced the bmp files will remain after a reboot?

Yes. Until the next fw upgrade (Yi fw I mean).

Could I use a blank bmp with the same dimensions?

No. Yi requires a 3 channels bmp, alpha channel is not supported.
Yi applies a transparent layer after reading the image.
You can use a gray square.
Pay attention to the format, a standard bmp (for example the standard bmp saved by gimp) is not compatible and the main Yi process will crash.

@pedrosimao
Copy link

I am having the same but only when I change the ssh/ftp password.
The other setting work fine without generating boot loop.
I recently updated to y211ga_0.3.1

@onbites
Copy link
Author

onbites commented Feb 7, 2024

Tested with other microSD, same result. Once rebooted or cycle power supply generates boot loop.
Should I try an older version of yi-hack?

@roleoroleo
Copy link
Owner

roleoroleo commented Feb 8, 2024

Should I try an older version of yi-hack?

Yes, you can try.
Another try: set DEBUG_LOG=yes in /tmp/sd/yi-hack/etc/system.conf (yi-hack/etc/system.conf) if you are using the card with your PC) and post the content of the file /tmp/sd/hack_debug.log

@onbites
Copy link
Author

onbites commented Feb 8, 2024

version v0.3.0 also generates boot loop after cycle power supply.
Uploading the log.
hack_debug.log

@roleoroleo
Copy link
Owner

rmm process doesn't start.
And the watchdog restart the cam.
I don't know why.

Try to add a sleep 2 before rmm in system.sh
Lines 193 and 231.

LD_LIBRARY_PATH="/tmp/sd/yi-hack/lib:/lib:/usr/lib:/home/lib:/home/qigan/lib:/home/app/locallib:/tmp/sd:/tmp/sd/gdb" ./rmm &

LD_LIBRARY_PATH="/tmp/sd/yi-hack/lib:/lib:/usr/lib:/home/lib:/home/qigan/lib:/home/app/locallib:/tmp/sd:/tmp/sd/gdb" ./rmm &

@onbites
Copy link
Author

onbites commented Feb 9, 2024

Like this?

193 LD_LIBRARY_PATH="/tmp/sd/yi-hack/lib:/lib:/usr/lib:/home/lib:/home/qigan/lib:/home/app/locallib:/tmp/sd:/tmp/sd/gdb" sleep 2 ./rmm &

231 LD_LIBRARY_PATH="/tmp/sd/yi-hack/lib:/lib:/usr/lib:/home/lib:/home/qigan/lib:/home/app/locallib:/tmp/sd:/tmp/sd/gdb" sleep 2 ./rmm &

@roleoroleo
Copy link
Owner

No, another line:

sleep 2
LD_LIBRARY_PATH="/tmp/sd/yi-hack/lib:/lib:/usr/lib:/home/lib:/home/qigan/lib:/home/app/locallib:/tmp/sd:/tmp/sd/gdb" ./rmm &

@onbites
Copy link
Author

onbites commented Feb 12, 2024

rmm process doesn't start. And the watchdog restart the cam. I don't know why.

Try to add a sleep 2 before rmm in system.sh Lines 193 and 231.

LD_LIBRARY_PATH="/tmp/sd/yi-hack/lib:/lib:/usr/lib:/home/lib:/home/qigan/lib:/home/app/locallib:/tmp/sd:/tmp/sd/gdb" ./rmm &

LD_LIBRARY_PATH="/tmp/sd/yi-hack/lib:/lib:/usr/lib:/home/lib:/home/qigan/lib:/home/app/locallib:/tmp/sd:/tmp/sd/gdb" ./rmm &

There was a Sleep 1 before 231 but no one before 193. I've added Sleep 2 before 193 and change Sleep 1 for Sleep 2 before line 231 and it looks it's working, no boot loop after cycle power supply.

Now I can begin to try things as putting an static IP...

Thanks to everyone.

@roleoroleo
Copy link
Owner

Now I can begin to try things as putting an static IP...

Check this commit:
f2a7fc3

@robbinjanssen
Copy link

Setting the sleep to 2 works for me as well.

roleoroleo added a commit that referenced this issue Apr 7, 2024
Copy link

github-actions bot commented Jul 5, 2024

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.

@github-actions github-actions bot added the stale label Jul 5, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 4, 2024
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

4 participants