I have a Colibri iMx8QXP + eval board setup and I use Torizon. I see that the hardware watchdog is enabled on the base OS because i can see both /dev/watchdog and /dev/watchdog0.
Now I would like the base OS’s sytemd to use it, like described here. I have manually configured RuntimeWatchdogSec
and it seems to work. But now I would like to create a golden image with that change by using torizoncore-builder. I want to avoid getting the changes from a running board, I would prefer to programatically do that change… and I’m failing to find documentation for that. Can you point me at it?
Greetings @lisandropm,
I think you might be misunderstanding, but we already configure systemd-watchdog in TorizonCore by default:
colibri-imx8x-06750825:~$ cat /usr/lib/systemd/system.conf.d/10-systemd-conf.conf
[Manager]
# Change CtrlAltDelBurstAction from default of `reboot-force` to `none`.
# Disable the immediate reboot which occurs when Ctrl+Alt+Del is pressed more
# than 7 times per 2s
# https://www.freedesktop.org/software/systemd/man/systemd.html#SIGINT
CtrlAltDelBurstAction=none
DefaultEnvironment="MACHINE=colibri-imx8x"
RuntimeWatchdogSec=30s
Unless you are using a very old version of TorizonCore from before we added this.
Best Regards,
Jeremias
Thanks a lot! Yes, I definitely missed that line.
Glad I could help clear that up.