NSLU2-Linux
view · edit · print · history

OpenSlug.Watchdog History

Hide minor edits - Show changes to markup

February 18, 2006, at 04:17 PM by TimSmall --
Changed lines 7-10 from:

slug/openembedded/packages/busybox/busybox-[insert busybox version here]/slugos/defconfig

and set WATCHDOG=y

to:

slug/openembedded/packages/busybox/busybox{busybox version}/slugos/defconfig

and set WATCHDOG=y

Changed lines 15-16 from:

busybox will now include a /usr/sbin/watchdog binary.

to:

busybox will now include a /usr/sbin/watchdog binary.

Changed lines 25-28 from:

@@#!/bin/sh

to:

[@

  1. !/bin/sh
Changed lines 55-57 from:

@@

FIXME - this should really be in the repository, along with the relevant init.d script, I think.

to:

@]

FIXME - this should really be in the repository, along with the relevant init.d script, I think.

February 18, 2006, at 04:15 PM by TimSmall --
Changed lines 19-20 from:

/sbin/watchdog /dev/watchdog

to:

/sbin/watchdog /dev/watchdog

Added lines 23-55:

e.g.

@@#!/bin/sh

case "$1" in

  start)
        echo -n "Starting watchdog: "
        start-stop-daemon -S -n watchdog -x /sbin/watchdog -- /dev/watchdog
        echo "done"
        ;;
  stop)
        echo -n "Not stopping watchdog (that would be daft)."
        echo -n "If that's really what you want, use \"reallystop\"."
        ;;
  reallystop)
        start-stop-daemon -K -n watchdog
        echo "done"
        ;;
  restart)
        $0 reallystop
        $0 start
        ;;
  *)
        echo "Usage: $0 { start | stop | reallystop | restart }" >&2
        exit 1
        ;;

esac

exit 0 @@

February 18, 2006, at 01:48 PM by TimSmall --
Changed lines 17-20 from:

Add:

watchdog /dev/watchdog

to:

3. Add:

/sbin/watchdog /dev/watchdog

February 18, 2006, at 01:47 PM by TimSmall --
Changed lines 17-19 from:

Add /usr/sbin/watchdog to your startup scripts.

FIXME - this should really be in the repository, I think.

to:

Add:

watchdog /dev/watchdog

to your startup scripts.

FIXME - this should really be in the repository, along with the relevant init.d script, I think.

February 18, 2006, at 01:41 PM by TimSmall -- Watchdog support for Openslug.
Added lines 1-19:

There is a hardware watchdog in the CPU. The kernel driver is already built by default.

To get a userspace watchdog binary:

1. Edit:

slug/openembedded/packages/busybox/busybox-[insert busybox version here]/slugos/defconfig

and set WATCHDOG=y

2. Rebuild busybox (remove appropriate files from under tmp/stamps/)

busybox will now include a /usr/sbin/watchdog binary.

Add /usr/sbin/watchdog to your startup scripts.

FIXME - this should really be in the repository, I think.

view · edit · print · history · Last edited by TimSmall.
Originally by TimSmall.
Page last modified on February 18, 2006, at 04:17 PM