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

reboot loop h201c (dome1080p / bfus) #556

Open
thertp opened this issue Nov 8, 2024 · 13 comments
Open

reboot loop h201c (dome1080p / bfus) #556

thertp opened this issue Nov 8, 2024 · 13 comments

Comments

@thertp
Copy link

thertp commented Nov 8, 2024

After updating from 0.4.7 to 0.5.5, I'm getting a reboot loop.

Finally, found time to look at that. For now, in /tmp/log.txt, the last message is "rcd may crashed".
Digging a little bit more, I guess it's rcd is mp4record.
I can see it in ps at boot, so either it's crashing later or there's communication issue between dispatch and mp4record
(over the ipc_rcd file?).
Not sure what would be the next step. Any hint of what to do next ?

While it may be a hardware bug, I find it unlikely as the issue appeared after the 0.5.5 upgrade.

@roleoroleo
Copy link
Owner

The message "rcd may crashed" happens very frequently.
It shouldn't be a problem.
The bootloop could be a problem related with the free space in the root partition.
Can you try to restore 0.4.7 and the upgrade to 0.5.5 step by step?
I mean 0.4.8, 0.4.9 and so on...

@thertp
Copy link
Author

thertp commented Nov 13, 2024

ok. I'll try to find time to do that. Can I do something clever like bisecting the image versions instead of upgrading with each image ?

@roleoroleo
Copy link
Owner

There are 2 different tests:
1 - You could try to downgrade to a previous version and then upgrade again to 0.5.5, to test if it's a free space problem.
2 - If it doesn't work, I need to know from which version starts the problem. In this case you should upgrade step by step.

@thertp
Copy link
Author

thertp commented Nov 26, 2024

I had few mins available yesterday. I found out that:

  • alas, the disk space is not the issue (connected through ssh and run df),
  • due to lack of time, I didn't try flashing other versions but looks like some old issues similar are found even at 0.4.8
  • after replacing /sbin/reboot with a shell script, looks like it's rmm which is triggering the reboot. As my script was not rebooting the camera, it did run overnight but I was not able to get a rtsp stream.

@roleoroleo
Copy link
Owner

There is a watchdog script (wdrtsp.sh) that monitors rmm and reboot the cam if rmm dies.
If rmm is not running you can't have the stream.
If this is the case, the question is why rmm dies, Usually it happens when the device is running in low memory.
Try to disable all unneded processes.

@thertp
Copy link
Author

thertp commented Nov 28, 2024

iirc, I've already disabled the wdrtsp (one of the first thing I did when getting the reboot loop). The rmm process is not dying, but it's doesn't seem to work either... And it's this rmm process which is calling reboot, not something else

@thertp
Copy link
Author

thertp commented Nov 28, 2024

btw, I'm seeing in the logs a bunch of "invalid msg" from dispatch. Is there some doc about all that stuff ?

@roleoroleo
Copy link
Owner

roleoroleo commented Nov 30, 2024

btw, I'm seeing in the logs a bunch of "invalid msg" from dispatch. Is there some doc about all that stuff ?

No docs sorry...
Are you able to restore the stock fw?

@woniuzfb
Copy link

Does anyone has a mtd4 partition backup? I have the same problem

@roleoroleo
Copy link
Owner

Probably you have a different cam.
mtd4 is the vdl partition (where Yi stores cam settings).
rootfs is mtd2 and home fs is mtd3.

@woniuzfb
Copy link

Probably you have a different cam. mtd4 is the vdl partition (where Yi stores cam settings). rootfs is mtd2 and home fs is mtd3.

I knew that, but it must have been corrupted, which is why the camera kept rebooting in a loop.

@thertp
Copy link
Author

thertp commented Dec 31, 2024

I fear this bug will have to be closed. I tried last week to boot again my cam but it wouldn't start. I've connected cables to the serial port and nothing is showing. I guess the cam is dead :(

@roleoroleo
Copy link
Owner

I knew that, but it must have been corrupted, which is why the camera kept rebooting in a loop.

mtd4 is different for each cam.
You should try to restore a backup through the serial interface.

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

No branches or pull requests

3 participants