Is there any way to cold reboot via software?

112 Views Asked by At
  1. An embedded Linux device may suddenly shut down during operation. When powered on again, the kernel records the restart type as cold_boot. At the same time, there is no abnormal information in the kernel log at the shutdown moment, which is similar to the system power failure.

  2. I want to know whether the software can cause the system cold_boot or only the hardware. If the software can cause the system to suddenly power off and shut down, what software bug may be the cause and how to locate the cause.

# cat /proc/cmdline
init=/init console=ttyS0,115200 no_console_suspend earlycon=aml-uart,0xff803000 ramoops.pstore_en=1 ramoops.record_size=0x8000 ramoops.console_size=0x4000 phy_idx= hdr_policy=0 hdr_priority= otg_device=1 
reboot_mode_android=normal logo=osd0,loaded,0x3d800000 fb_width=1920 fb_height=1080 display_bpp=16 outputmode=576cvbs vout=576cvbs,enable panel_type=lcd_1 lcd_ctrl=0x00000083 hdmitx=,444,8bit hdmimode=1080p60hz 
hdmichecksum=0x00000000 dolby_vision_on=0 frac_rate_policy=1 hdmi_read_edid=1 cvbsmode=576cvbs osd_reverse=0 video_reverse=0 irq_check_en=0 androidboot.selinux=enforcing androidboot.firstboot=1 jtag=disable 
androidboot.hardware=amlogic androidboot.bootloader=U-Boot 2015.01 androidboot.build.expect.baseband=N/A androidboot.serialno=1234567890 androidboot.wificountrycode=US androidboot.oem.key1=ATV00104319 rootfstype=ramfs androidboot.rpmb_state=0 
reboot_mode=cold_boot
0

There are 0 best solutions below