Modify

Opened 10 years ago

Closed 10 years ago

#2511 closed enhancement (fixed)

hardware watchdog support patch for RB532

Reported by: strasak@… Owned by: florian
Priority: low Milestone:
Component: kernel Version:
Keywords: hardware, watchdog, patch Cc:

Description

Hi ppl,

during work on porting and enhancing of Ondrej's patch which provided RB500-integrated watchdog support http://artax.karlin.mff.cuni.cz/~zajio1am/software/rc32434_wdt/ for 2.4.x kernels, i have found that FreeWRT already has more sophisticated watchdog support patch in their repository. I took it, modified a bit to it cover my needs - added kernel parameters for verbosity level, better support for simple scripts - something like this

nohup bash -c "while true; do echo watchdog > /dev/watchdog; sleep 15s; done" &
  • normally watchdogs stop after release operation , so some simple watchdog daemon has to used, which i wanted to avoid here. Verbosity parameter is usefull for me, bacause with default patch log files - i keep logs for relatively long time in tmpfs filesystem and sync them time to time to CF and , so if you use logging to network or other methods this will be of no use for you, anyway, it should not hurt.

I've also corrected bug - at least it seemed to be bug on recent kernels and on all 5xx boards i have here handy - where time set in timeout parameter has not been used correctly - watchdog on 532A seems to has changed it's behavior, now it runs on the same frequency as CPU, so with my modifications box reboots itself correctly after timeout seconds.

If someone is interested, please test it too and correct it if needed.

Pavel

Attachments (1)

rb500_watchdog_patch.diff (11.8 KB) - added by strasak@… 10 years ago.
patch which provides RB532's integrated watchdog support

Download all attachments as: .zip

Change History (3)

Changed 10 years ago by strasak@…

patch which provides RB532's integrated watchdog support

comment:1 Changed 10 years ago by florian

  • Owner changed from developers to florian
  • Status changed from new to assigned

comment:2 Changed 10 years ago by florian

  • Resolution set to fixed
  • Status changed from assigned to closed

Added in [9896]

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.