"arch/arm/boot/dts/imx6qdl-sabresd.dtsi"
추가 했습니다.
&gpc { fsl,cpu_pupscr_sw2iso = <0xf>; fsl,cpu_pupscr_sw = <0xf>; fsl,cpu_pdnscr_iso2sw = <0x1>; fsl,cpu_pdnscr_iso = <0x1>; fsl,ldo-bypass = <1>; /* use ldo-bypass, u-boot will check it and configure */ fsl,wdog-reset = <1>; /* crazyboys 20160225 watchdog select of reset source */ pu-supply = <®_pu>; /* ldo-bypass:use pu_dummy if VDDSOC share with VDDPU */ };
&wdog1 { status = "okay"; };
|
커널 configuration
CONFIG_WATCHDOG=y CONFIG_WATCHDOG_CORE=y CONFIG_WATCHDOG_NOWAYOUT=y CONFIG_IMX2_WDT=y |
부팅 후
[root@localhost~]# ls /dev/watchdog
/dev/watchdog
* watchdog 동작 확인 방법입니다.
1. cat > /dev/watchdog
2. Hit return once
3. Wait 60 seconds
4. Wachdog reset.
다시 부팅 시 u-boot로그에 watchdog로 리셋 된다고 메시지 출력됨
U-Boot2014.04-08648-g9d7bf9b-dirty (Jan 20 2016 - 17:47:14)
CPU: Freescale i.MX6Q rev1.5 at 792 MHz
CPU: Temperature 38 C, calibration data:0x56f4db69
Resetcause: WDOG
Board:MX6-SabreSD
I2C: ready
DRAM: 2 GiB
MMC: FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2
Display:Mango-AT070 (800x480)
In: serial
Out: serial
Err: serial
mmc2 iscurrent device
unsupportedboot devices
check_and_clean:reg 0, flag_set 0
Fastboot:Normal
flashtarget is MMC:2
Badpartition index:5 for partition:system
Net: FEC [PRIME]
NormalBoot
Hit anykey to stop autoboot: 0
내용