BRN:Software:Build and Distribution:OpenWGT-FAQ

From
Revision as of 19:28, 15 September 2006 by Jeschke (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Q: Why does the system sometimes hang while reboot?

A:

  1. On newer busybox versions the command after a shutdown keyword from the /etc/inttab file will be executed, e.g.:
     ::shutdown:/sbin/halt
    So a halt action will be followed by a reboot and the node will only executes the halt action.
  2. A reboot is implemented by triggering a watchdog event. After writing to flash, the hardware watchdog failes in some cases.
    An intensive read of the flash seems to solve that timing problem:
    $ cat /dev/mtdblock/3 > /dev/null
    $ cat /dev/mtdblock/2 > /dev/null
    $ reboot -f