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 workaround #9

Closed
MaluNoPeleke opened this issue Jan 16, 2020 · 7 comments
Closed

Reboot workaround #9

MaluNoPeleke opened this issue Jan 16, 2020 · 7 comments

Comments

@MaluNoPeleke
Copy link

To avoid the nightly reboot which might result in a stock firmware reset you can add the following code:

# nano /etc/crontab

0 23    * * *   root    service rrwatchdoge stop
10 23   * * *   root    rm /mnt/data/rockrobo/rrlog/*REL -R
15 23   * * *   root    /root/check_all
0 4     * * *   root    service rrwatchdoge start

# nano /root/check_all

umount /mnt/updbuf
umount /mnt/data
umount /mnt/reserve
umount /mnt/default
fsck -y /dev/mmcblk0p10
fsck -y /dev/mmcblk0p1
fsck -y /dev/mmcblk0p11
fsck -y /dev/mmcblk0p6
mount /dev/mmcblk0p10 /mnt/updbuf
mount /dev/mmcblk0p1 /mnt/data
mount /dev/mmcblk0p11 /mnt/reserve
mount -o ro /dev/mmcblk0p6 /mnt/default

# service cron restart
@zvldz
Copy link
Owner

zvldz commented Jan 16, 2020

Thank you, I've seen it before. I don't see a problem with the night reboot. And I haven't had a factory reset, although I don't know what it has to do with it. The 2008 firmware doesn't have the classic cron and fsck. But I will try to add fsck to the firmware.

@MaluNoPeleke
Copy link
Author

Here is the full version: https://github.com/MadJoker0815/roborock_nologs

@zvldz
Copy link
Owner

zvldz commented Jan 22, 2020

It doesn't work on 2008 firmware.
Needs an adaptation.
The firmware 2008 has no crontab. It contains cron from busybox. That's the first thing I saw.

@zvldz
Copy link
Owner

zvldz commented Jan 22, 2020

'service' is absent too.

@pidator
Copy link
Contributor

pidator commented Feb 11, 2020

The firmware 2008 has no crontab. It contains cron from busybox.

'service' is absent too.

Is it the same for Gen1 4004 firmware? I didn't found information about the changes/differences from 3468 to 4004... (except the difference miio client 3.3.9 vs 3.5.4)

@zvldz
Copy link
Owner

zvldz commented Feb 12, 2020

In the firmware 4004 full ubuntu.
The shortened version is still only in the firmware 2008.

@zvldz zvldz closed this as completed Apr 29, 2020
@zvldz
Copy link
Owner

zvldz commented Apr 29, 2020

closed

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