<p><span style="color: #404040; font-family: 굴림;">라즈베리파이가 사용중 먹통(프리즈 freez)현상으로 동작이 이상이 있을때&nbsp;</span><br style="color: #404040; font-family: 굴림;" /><span style="color: #404040; font-family: 굴림;">watchdog 을 이용하여 자동으로 재부팅하기 위한 방법.&nbsp;</span><br style="color: #404040; font-family: 굴림;" /><br style="color: #404040; font-family: 굴림;" /><span style="color: #404040; font-family: 굴림;">1. 커널에 라즈베리파이 모듈을 추가&nbsp;</span><br style="color: #404040; font-family: 굴림;" /><span style="color: #404040; font-family: 굴림;">&nbsp; sudo modrpobe bcm2835_wdt&nbsp; //이전버전 sudo modprobe bcm2708_wdog&nbsp;</span><br style="color: #404040; font-family: 굴림;" /><br style="color: #404040; font-family: 굴림;" /><span style="color: #404040; font-family: 굴림;">2. /etc/modules에 칩셋 모듈 이름을 등록 (vi로 직접 에디터 해도 무방)&nbsp;</span><br style="color: #404040; font-family: 굴림;" /><span style="color: #404040; font-family: 굴림;">&nbsp; sudo echo "bcm2835_wdt" &gt;&gt; /etc/modules&nbsp;</span><br style="color: #404040; font-family: 굴림;" /><br style="color: #404040; font-family: 굴림;" /><span style="color: #404040; font-family: 굴림;">3. watchdog, chkconfig 설치&nbsp;</span><br style="color: #404040; font-family: 굴림;" /><span style="color: #404040; font-family: 굴림;">&nbsp; &nbsp; sudo apt-get install watchdog chkconfig&nbsp;</span><br style="color: #404040; font-family: 굴림;" /><br style="color: #404040; font-family: 굴림;" /><span style="color: #404040; font-family: 굴림;">4. 부팅시 시작하도록 등옥&nbsp;</span><br style="color: #404040; font-family: 굴림;" /><span style="color: #404040; font-family: 굴림;">&nbsp; &nbsp; sudo chkconfig watchdog on&nbsp;</span><br style="color: #404040; font-family: 굴림;" /><br style="color: #404040; font-family: 굴림;" /><span style="color: #404040; font-family: 굴림;">5. watchdog 설정파일을 수정&nbsp;</span><br style="color: #404040; font-family: 굴림;" /><span style="color: #404040; font-family: 굴림;">&nbsp; &nbsp; sudo vi /etc/watchdog.conf&nbsp; //아래 라인 주석# 삭제&nbsp;</span><br style="color: #404040; font-family: 굴림;" /><br style="color: #404040; font-family: 굴림;" /><span style="color: #404040; font-family: 굴림;">&nbsp; &nbsp; 10 line:&nbsp; &nbsp; max-load-1&nbsp; &nbsp; = 24&nbsp;</span><br style="color: #404040; font-family: 굴림;" /><span style="color: #404040; font-family: 굴림;">&nbsp; &nbsp; 23 line:&nbsp; &nbsp; watchdog-device = /dev/watchdog&nbsp;</span><br style="color: #404040; font-family: 굴림;" /><br style="color: #404040; font-family: 굴림;" /><span style="color: #404040; font-family: 굴림;">6. watchdog을 실행&nbsp;</span><br style="color: #404040; font-family: 굴림;" /><span style="color: #404040; font-family: 굴림;">&nbsp; &nbsp; sudo service watchdog start</span></p>