Odroid HC2 watchdog not working

  • How should the watchdog be configured on the Odroid HC2?


    Currently, the systemd fails to start the watchdog service with the error modprobe: FATAL: Module softdog not found in directory /lib/modules/5.4.28-odroidxu4 much like in this thread with the same issue for the RPi4: Raspberry Pi 4 Watchdog Not Working?


    The systemctl errors are very similar to: https://forum.armbian.com/topi…g-not-found-in-directory/


    The odroid wiki has some information but I'm not sure how to apply it for OMV:


    Zitat

    ODROID-XU3/XU4 kernel support s3c2410_wdt to control the Power Management Unit (PMU).


    s3c2410_wdt driver is built-in so that watchdog daemon can configure the driver.



    https://wiki.odroid.com/odroid…e/software/linux_watchdog

  • I think i now have this working on my HC2. The reason it doesn't work out of the box is that HC2 has a hardware watchdog, so the Armbian build im using (Debian Buster Minimal 5.4) doesn't include the "softdog" software watchdog that OMV expects by default. Luckily OMV supports custom watchdogs pretty easily via environment variables:

    Bash
    # echo OMV_WATCHDOG_DEFAULT_MODULE=\"s3c2410_wdt\" >> /etc/default/openmediavault
    # omv-salt stage run prepare
    # omv-salt deploy run watchdog
    # service watchdog start

    You can then verify the watchdog is running: service watchdog status

    And test that it reboots on crash: sync; sleep 2; sync; echo c > /proc/sysrq-trigger

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!