{"id":514,"date":"2014-07-30T10:00:19","date_gmt":"2014-07-30T01:00:19","guid":{"rendered":"http:\/\/www.skyarch.net\/blog\/?p=514"},"modified":"2025-05-27T16:16:37","modified_gmt":"2025-05-27T07:16:37","slug":"raspberry-pi%e3%81%a7%e3%83%91%e3%83%88%e3%83%a9%e3%83%b3%e3%83%97%e3%82%92%e4%bd%9c%e6%88%90%e2%91%a3","status":"publish","type":"post","link":"https:\/\/www.skyarch.net\/blog\/raspberry-pi%e3%81%a7%e3%83%91%e3%83%88%e3%83%a9%e3%83%b3%e3%83%97%e3%82%92%e4%bd%9c%e6%88%90%e2%91%a3\/","title":{"rendered":"Raspberry Pi\u3067\u30d1\u30c8\u30e9\u30f3\u30d7\u3092\u4f5c\u6210\u2463"},"content":{"rendered":"<p>\u904e\u53bb\u306e\u8a18\u4e8b\u306f\u4e0b\u8a18\u3068\u306a\u308a\u307e\u3059\u3002<br \/>\n<a href=\"http:\/\/www.skyarch.net\/blog\/?p=444\">Raspberry Pi\u3067\u30d1\u30c8\u30e9\u30f3\u30d7\u3092\u4f5c\u6210\u2460<\/a><br \/>\n<a href=\"http:\/\/www.skyarch.net\/blog\/?p=474\">Raspberry Pi\u3067\u30d1\u30c8\u30e9\u30f3\u30d7\u3092\u4f5c\u6210\u2461<\/a><br \/>\n<a href=\"http:\/\/www.skyarch.net\/blog\/?p=480\">Raspberry Pi\u3067\u30d1\u30c8\u30e9\u30f3\u30d7\u3092\u4f5c\u6210\u2462<\/a><\/p>\n<h2>\u6c42\u3081\u308b\u4ed5\u69d8<\/h2>\n<ul>\n<li><a href=\"http:\/\/www.skyarch.net\/blog\/?p=474\">\u30a2\u30e9\u30fc\u30c8\u3092\u97f3\u3068\u5149\u3067\u4f1d\u3048\u3066\u304f\u308c\u308b<\/a><\/li>\n<li><a href=\"http:\/\/www.skyarch.net\/blog\/?p=480\">snmptrap\u3092\u53d7\u4fe1<\/a><\/li>\n<li><a href=\"http:\/\/www.skyarch.net\/blog\/?p=514\">\u5b89\u5b9a\u7a3c\u50cd<\/a> &lt;- \u4eca\u56de\u306f\u3053\u3061\u3089<\/li>\n<li><a href=\"http:\/\/www.skyarch.net\/blog\/?p=609\">\u81ea\u524d\u306e\u30b3\u30f3\u30d1\u30cd\u306b\u3066\u8a2d\u5b9a\u5909\u66f4\u304c\u53ef\u80fd<\/a><\/li>\n<\/ul>\n<h1>\u5b89\u5b9a\u7a3c\u50cd\u306e\u305f\u3081\u306bWatchDogTimer(\u756a\u72ac\u30bf\u30a4\u30de)\u3092\u5c0e\u5165<\/h1>\n<h2>WDT\u3068\u306f<\/h2>\n<p>\u30b7\u30b9\u30c6\u30e0\u306e\u30cf\u30f3\u30b0\u30a2\u30c3\u30d7\u3084\u7570\u5e38\u72b6\u614b\u3092\u691c\u77e5\u3057\u3066<br \/>\n\u5f37\u5236\u7684\u306b\u30ea\u30d6\u30fc\u30c8\u3092\u639b\u3051\u3066\u304f\u308c\u308b\u4ed5\u7d44\u307f\u3067\u3059\u3002<\/p>\n<p>\u30de\u30a4\u30b3\u30f3\u7b49\u3067\u306f\u4e00\u822c\u7684\u306b\u5229\u7528\u3055\u308c\u3066\u3044\u308b\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\nRaspberry Pi\u3067\u306f\u60c5\u5831\u91cf\u304c\u3042\u307e\u308a\u591a\u304f\u306a\u304b\u3063\u305f\u306e\u3067<br \/>\n\u3042\u307e\u308a\u5229\u7528\u3055\u308c\u3066\u3044\u306a\u3044\u5370\u8c61\u3092\u53d7\u3051\u307e\u3057\u305f\u304c<br \/>\n\u4eca\u56de\u306f\u76e3\u8996\u7528\u9014\u306b\u3082\u6d3b\u7528\u3057\u305f\u3044\u305f\u3081\u756a\u72ac\u541b\u3092\u4ed5\u8fbc\u3080\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<h2>Watchdog\u3092kernel module\u306b\u8aad\u307f\u8fbc\u3080<\/h2>\n<p>\u6709\u52b9\u306a\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u78ba\u8a8d<\/p>\n<pre>\nroot@patlam-pi:~# cat \/proc\/modules | grep 2708\nsnd_soc_bcm2708_i2s 5486 0 - Live 0xbf0c5000\nregmap_mmio 2818 1 snd_soc_bcm2708_i2s, Live 0xbf0c1000\nsnd_soc_core 128166 1 snd_soc_bcm2708_i2s, Live 0xbf090000\n<\/pre>\n<p>bcm2708_wdog\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u8aad\u307f\u8fbc\u307f&amp;\u78ba\u8a8d<\/p>\n<pre>\nroot@patlam-pi:~# modprobe bcm2708_wdog\nroot@patlam-pi:~# cat \/proc\/modules | grep 2708\nbcm2708_wdog 3613 0 - Live 0xbf116000\nsnd_soc_bcm2708_i2s 5486 0 - Live 0xbf0c5000\nregmap_mmio 2818 1 snd_soc_bcm2708_i2s, Live 0xbf0c1000\nsnd_soc_core 128166 1 snd_soc_bcm2708_i2s, Live 0xbf090000\n<\/pre>\n<h2>\u6b21\u56de\u8d77\u52d5\u6642\u306b\u3082\u6709\u52b9\u3068\u3059\u308b<\/h2>\n<pre>\nroot@patlam-pi:~# echo \"bcm2708_wdog\" >> \/etc\/modules\n<\/pre>\n<h2>loadAverage\u306e\u6025\u4e0a\u6607\u6642\u306b\u3082\u5f37\u5236\u518d\u8d77\u52d5\u8a2d\u5b9a<\/h2>\n<p>software watchdog daemon\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<pre>\nroot@patlam-pi:~# apt-get install watchdog\n<\/pre>\n<p>\/etc\/watchdog.conf \u8a2d\u5b9a<\/p>\n<pre>\nwatchdog-device = \/dev\/watchdog\nmax-load-1              = 24\n<\/pre>\n<p>\u4e0a\u8a18\u3092\u30b3\u30e1\u30f3\u30c8\u30a2\u30a6\u30c8<\/p>\n<p>\u30c6\u30b9\u30c8<\/p>\n<pre>\nroot@patlam-pi:~# [fk\u307c\u3080 \u30b5\u30fc\u30d0\u5c4b\u306e\u305f\u3081\u81ea\u4e3b\u898f\u5236]\nroot@patlam-pi:~# w\n 00:18:59 up 3 min,  2 users,  load average: 118.69, 25.32, 8.26\nUSER     TTY      FROM             LOGIN@   IDLE   JCPU   PCPU WHAT\npi       pts\/0    192.168.1.26     00:17   19.00s  2.12s  0.47s sshd: pi [priv]\npi       pts\/1    192.168.1.26     00:18   18.00s  2.15s  0.16s w\n<\/pre>\n<p>\u76f4\u3050\u306b\u518d\u8d77\u52d5\u304c\u8d70\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<h2>\u8d77\u52d5\u6642\u306b\u6709\u52b9\u3068\u3059\u308b<\/h2>\n<pre>\nroot@patlam-pi:~# chkconfig watchdog on\n<\/pre>\n<h2>\u30bd\u30fc\u30b9<\/h2>\n<p>\u4f5c\u6210\u3057\u305f\u30d7\u30ed\u30b0\u30e9\u30e0\u53ca\u3073\u3001Raspberry Pi\u306e\u914d\u7dda\u56f3\u3001Raspbian\u3078\u5b9f\u65bd\u3057\u305f\u8a2d\u5b9a\u306f\u4e0b\u8a18\u3092\u53c2\u7167\u4e0b\u3055\u3044\u3002<br \/>\n<a href=\"https:\/\/github.com\/tktk19\/Patlam-pi\"><a href=\"https:\/\/github.com\/tktk19\/Patlam-pi\">https:\/\/github.com\/tktk19\/Patlam-pi<\/a><\/a><\/p>\n<a href=\"http:\/\/www.raspberrypi.org\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2014\/07\/Raspi_Colour_R-207x250.png\" alt=\"Raspi_Colour_R-207x250\" width=\"207\" height=\"250\" class=\"aligncenter size-full wp-image-456\" \/><\/a>\n","protected":false},"excerpt":{"rendered":"<p>\u904e\u53bb\u306e\u8a18\u4e8b\u306f\u4e0b\u8a18\u3068\u306a\u308a\u307e\u3059\u3002 Raspberry Pi\u3067\u30d1\u30c8\u30e9\u30f3\u30d7\u3092\u4f5c\u6210\u2460 Raspberry Pi\u3067\u30d1\u30c8\u30e9\u30f3\u30d7\u3092\u4f5c\u6210\u2461 Raspberry Pi\u3067\u30d1\u30c8\u30e9\u30f3\u30d7\u3092\u4f5c\u6210\u2462 \u6c42\u3081\u308b\u4ed5\u69d8 \u30a2\u30e9\u30fc\u30c8\u3092\u97f3\u3068\u5149\u3067\u4f1d\u3048\u3066\u304f\u308c\u308b snmp&#8230;<\/p>\n","protected":false},"author":2,"featured_media":456,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"ja","_original_post":"514","footnotes":""},"categories":[18,17,6,9],"tags":[65,105,56,40],"class_list":{"0":"post-514","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-os","8":"category-raspberrypi","9":"category-monit","10":"category-dev","11":"tag-python","12":"tag-raspberrypi","13":"tag-56","14":"tag-40","15":"ja"},"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/514","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/comments?post=514"}],"version-history":[{"count":11,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/514\/revisions"}],"predecessor-version":[{"id":28999,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/514\/revisions\/28999"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/media\/456"}],"wp:attachment":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/media?parent=514"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/categories?post=514"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/tags?post=514"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}