kernel卡死时自动重启

kernel卡死时自动重启

通过menuconfig可配置内核在卡死后能自动重启,配置项为Kernel hacking下的PANIC_TIMEOUT 具体信息见下面说明

 .config - Linux/arm64 4.19.68 Kernel Configuration
 > Kernel hacking ─────────────────────────────────────────────────────────────
  ┌───────────────────────────── panic timeout ─────────────────────────────┐
  │ CONFIG_PANIC_TIMEOUT:                                                   │
  │                                                                         │
  │ Set the timeout value (in seconds) until a reboot occurs when the       │
  │ the kernel panics. If n = 0, then we wait forever. A timeout            │
  │ value n > 0 will wait n seconds before rebooting, while a timeout       │
  │ value n < 0 will reboot immediately.                                    │
  │                                                                         │
  │ Symbol: PANIC_TIMEOUT [=0]                                              │
  │ Type  : integer                                                         │
  │ Prompt: panic timeout                                                   │
  │   Location:                                                             │
  │     -> Kernel hacking                                                   │
  │   Defined at lib/Kconfig.debug:970                                      │
  │                                                                         │
  │                                                                         │
  │                                                                         │
  │                                                                         │
  │                                                                         │
  │                                                                         │
  │                                                                         │
  │                                                                         │
  │                                                                         │
  ├─────────────────────────────────────────────────────────────────(100%)──┤
  │                                < Exit >                                 │
  └─────────────────────────────────────────────────────────────────────────┘
  
posted @ 2022-09-20 15:16  江子无怒  阅读(0)  评论(0)    收藏  举报  来源