← Documents Documentation/watchdog/wdt.rst GitHub 원문 ↗

Linux 6.18.37 · Watchdog / Hardware

WDT Watchdog Timer Interfaces

ICS WDT501-P와 WDT500-P의 장치 인터페이스, 부팅 옵션, 지원 기능을 설명합니다.

Source pathDocumentation/watchdog/wdt.rst
Source versionLinux v6.18.37
TranslationDUJINLABS 전문 번역 + 해설

요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.

1. 요약·해설

원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.

요약·해설

wdt.rst:1-63

ICS WDT501-P와 WDT500-P의 장치 인터페이스, 부팅 옵션, 지원 기능을 설명합니다.

2. 영어 원문 전체

번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.

원문 전체 펼치기
1 ============================================================
2 WDT Watchdog Timer Interfaces For The Linux Operating System
3 ============================================================
4
5 Last Reviewed: 10/05/2007
6
7 Alan Cox <[email protected]>
8
9 - ICS WDT501-P
10 - ICS WDT501-P (no fan tachometer)
11 - ICS WDT500-P
12
13 All the interfaces provide /dev/watchdog, which when open must be written
14 to within a timeout or the machine will reboot. Each write delays the reboot
15 time another timeout. In the case of the software watchdog the ability to
16 reboot will depend on the state of the machines and interrupts. The hardware
17 boards physically pull the machine down off their own onboard timers and
18 will reboot from almost anything.
19
20 A second temperature monitoring interface is available on the WDT501P cards.
21 This provides /dev/temperature. This is the machine internal temperature in
22 degrees Fahrenheit. Each read returns a single byte giving the temperature.
23
24 The third interface logs kernel messages on additional alert events.
25
26 The ICS ISA-bus wdt card cannot be safely probed for. Instead you need to
27 pass IO address and IRQ boot parameters. E.g.::
28
29 wdt.io=0x240 wdt.irq=11
30
31 Other "wdt" driver parameters are:
32
33 =========== ======================================================
34 heartbeat Watchdog heartbeat in seconds (default 60)
35 nowayout Watchdog cannot be stopped once started (kernel
36 build parameter)
37 tachometer WDT501-P Fan Tachometer support (0=disable, default=0)
38 type WDT501-P Card type (500 or 501, default=500)
39 =========== ======================================================
40
41 Features
42 --------
43
44 ================ ======= =======
45 WDT501P WDT500P
46 ================ ======= =======
47 Reboot Timer X X
48 External Reboot X X
49 I/O Port Monitor o o
50 Temperature X o
51 Fan Speed X o
52 Power Under X o
53 Power Over X o
54 Overheat X o
55 ================ ======= =======
56
57 The external event interfaces on the WDT boards are not currently supported.
58 Minor numbers are however allocated for it.
59
60
61 Example Watchdog Driver:
62
63 see samples/watchdog/watchdog-simple.c
64

3. 한국어 전문 번역

영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.

지원하는 ICS 보드

1-12

이 문서는 ICS WDT501-P, 팬 회전계가 없는 WDT501-P, WDT500-P 보드용 WDT watchdog 인터페이스를 설명합니다. 마지막 검토일은 2007년 10월 5일이며 작성자는 Alan Cox입니다.

지원 보드
제조사모델비고
ICSWDT501-P팬 회전계 지원 모델
ICSWDT501-P팬 회전계가 없는 모델
ICSWDT500-P기본 모델

문서가 다루는 ICS ISA watchdog 보드입니다.

============================================================
WDT Watchdog Timer Interfaces For The Linux Operating System
============================================================

Last Reviewed: 10/05/2007

Alan Cox <[email protected]>

        - ICS        WDT501-P
        - ICS        WDT501-P (no fan tachometer)
        - ICS        WDT500-P

장치 인터페이스

13-24

모든 보드는 `/dev/watchdog`를 제공합니다. 이 장치를 연 뒤 timeout 안에 데이터를 써야 하며, 쓰지 않으면 시스템이 재부팅됩니다. 한 번 쓸 때마다 재부팅 시점이 timeout만큼 다시 늦춰집니다.

소프트웨어 watchdog이 실제로 재부팅할 수 있는지는 시스템과 interrupt 상태에 좌우됩니다. 반면 하드웨어 보드는 자체 timer로 시스템을 물리적으로 끌어내리므로 거의 어떤 고장 상태에서도 재부팅할 수 있습니다.

WDT501P에는 두 번째 인터페이스인 `/dev/temperature`가 있습니다. 읽을 때마다 시스템 내부 온도를 화씨로 나타내는 1바이트를 반환합니다. 세 번째 인터페이스는 추가 경보 이벤트를 kernel 메시지로 기록합니다.

All the interfaces provide /dev/watchdog, which when open must be written
to within a timeout or the machine will reboot. Each write delays the reboot
time another timeout. In the case of the software watchdog the ability to
reboot will depend on the state of the machines and interrupts. The hardware
boards physically pull the machine down off their own onboard timers and
will reboot from almost anything.

A second temperature monitoring interface is available on the WDT501P cards.
This provides /dev/temperature. This is the machine internal temperature in
degrees Fahrenheit. Each read returns a single byte giving the temperature.

The third interface logs kernel messages on additional alert events.

부팅 매개변수와 드라이버 옵션

25-40

ICS ISA 버스 WDT 카드는 안전하게 자동 탐색할 수 없습니다. 따라서 부팅할 때 I/O 주소와 IRQ를 `wdt.io=0x240 wdt.irq=11`처럼 명시해야 합니다.

`heartbeat`는 초 단위 ping 주기이며 기본값은 60입니다. `nowayout`은 시작한 watchdog을 멈출 수 없게 하는 kernel 빌드 옵션입니다. `tachometer`는 WDT501-P 팬 회전계 지원을 제어하고 기본값 0은 비활성화를 뜻합니다. `type`은 카드 종류 500 또는 501을 고르며 기본값은 500입니다.

wdt 드라이버 매개변수
매개변수의미기본값
heartbeatwatchdog heartbeat 주기(초)60
nowayout시작 뒤 watchdog 중지 금지kernel 빌드 설정
tachometerWDT501-P 팬 회전계 지원; 0은 비활성화0
typeWDT501-P 카드 종류 500 또는 501500

ICS WDT 드라이버의 핵심 설정과 기본값입니다.


The ICS ISA-bus wdt card cannot be safely probed for. Instead you need to
pass IO address and IRQ boot parameters.  E.g.::

        wdt.io=0x240 wdt.irq=11

Other "wdt" driver parameters are:

        ===========        ======================================================
        heartbeat        Watchdog heartbeat in seconds (default 60)
        nowayout        Watchdog cannot be stopped once started (kernel
                        build parameter)
        tachometer        WDT501-P Fan Tachometer support (0=disable, default=0)
        type                WDT501-P Card type (500 or 501, default=500)
        ===========        ======================================================

WDT501P와 WDT500P 기능

41-58

두 보드 모두 재부팅 timer와 외부 재부팅 기능을 제공합니다. I/O 포트 감시는 두 모델에서 선택 기능입니다. 온도, 팬 속도, 저전압, 과전압, 과열 감시는 WDT501P에서 제공되며 WDT500P에는 제공되지 않습니다.

WDT 보드의 외부 이벤트 인터페이스는 현재 지원되지 않지만, 이를 위한 minor number는 할당되어 있습니다.

보드 기능 비교
기능WDT501PWDT500P
Reboot Timer제공제공
External Reboot제공제공
I/O Port Monitor선택선택
Temperature제공미제공
Fan Speed제공미제공
Power Under제공미제공
Power Over제공미제공
Overheat제공미제공

원문의 `X`는 제공, `o`는 미제공 또는 선택 기능 표기를 그대로 해석해 정리했습니다.

Features
--------

================   =======           =======
                   WDT501P           WDT500P
================   =======           =======
Reboot Timer           X               X
External Reboot           X                   X
I/O Port Monitor   o                   o
Temperature           X                   o
Fan Speed          X                   o
Power Under           X               o
Power Over         X               o
Overheat           X               o
================   =======           =======

The external event interfaces on the WDT boards are not currently supported.
Minor numbers are however allocated for it.

예제 watchdog 드라이버

59-63

간단한 watchdog 드라이버 구현 예제는 kernel source의 `samples/watchdog/watchdog-simple.c`에서 확인할 수 있습니다.



Example Watchdog Driver:

        see samples/watchdog/watchdog-simple.c