Hey,
I’m writing some device drivers and sometimes panic the kernel, to save some time (sometimes I work remotely and can’t physically hold vol- and pwr buttons), how can I get it to reboot directly to fastboot? When I say fastboot, I mean when LK allows me to push a new boot img to the device. Thanks.
Example log output from a kernel panic.
[ 24.585801] Rebooting in 5 seconds…
[ 29.588433] Going down for restart now
[ 29.591921] Causing a watchdog bite!
[ 29.595700] Wdo
Format: Log Type - Time(microsec) - Message - Optional Info
Log Type: B - Since Boot(Power On Reset), D - Delta, S - Statistic
S - QC_IMAGE_VERSION_STRING=BOOT.BF.3.0-00261
S - IMAGE_VARIANT_STRING=HAAAANAAA
S - OEM_IMAGE_VERSION_STRING=C-BPATTH
S - Boot Config, 0x000002e1
S - Core 0 Frequency, 0 MHz
B - 1545 - PBL, Start
B - 3490 - bootable_media_detect_entry, Start
B - 152082 - bootable_media_detect_success, Start
B - 152086 - elf_loader_entry, Start
B - 155051 - auth_hash_seg_entry, Start
B - 155261 - auth_hash_seg_exit, Start
B - 170702 - elf_segs_hash_verify_entry, Start
B - 229929 - PBL, End
B - 236436 - SBL1, Start
B - 299357 - pm_device_init, Start
D - 14762 - pm_device_init, Delta
B - 314699 - boot_flash_init, Start
D - 30 - boot_flash_init, Delta
B - 318725 - boot_config_data_table_init, Start
D - 30896 - boot_config_data_table_init, Delta - (0 Bytes)
B - 354196 - CDT version:3,Platform ID:24,Major ID:1,Minor ID:0,Subtype:0
B - 360388 - sbl1_ddr_set_params, Start
B - 364109 - cpr_init, Start
D - 0 - cpr_init, Delta
B - 369721 - Pre_DDR_clock_init, Start
D - 183 - Pre_DDR_clock_init, Delta
D - 0 - sbl1_ddr_set_params, Delta
B - 382226 - pm_driver_init, Start
D - 6832 - pm_driver_init, Delta
B - 397750 - clock_init, Start
D - 30 - clock_init, Delta