2023年12月18日发(作者:)

.dynsym : { *(.dynsym) }.dynstr : { *(.dynstr) }. : { *(.) *(.ce.t*) }. : { *(.) *(.ce.t*) }. : { *(.) *(.ce.d*) }. : { *(.) *(.ce.d*) }. : { *(.) *(.ce.r*) }. : { *(.) *(.ce.r*) }. : { *(.) }. : { *(.) }. : { *(.) }. : { *(.) }. : { *(.) }. : { *(.) }. : { *(.) }. : { *(.) }. : { *(.) }. : { *(.) }. : { *(.) }. : { *(.) }. : { *(.) }. : { *(.) }.init : { *(.init) } = : { *(.plt) }.rodata : {*(.rodata .rodata.* .ce.r.*). = ALIGN();__commands_start = .;KEEP (*(.commands))__commands_end = .;. = ALIGN();__apps_start = .;KEEP (*(.apps))__apps_end = .;

{dprintf(ALWAYS,"dload mode key sequence detectedn");if (set_download_mode(EMERGENCY_DLOAD)){dprintf(CRITICAL, "dload mode not supported by targetn");}else{reboot_device(DLOAD);dprintf(CRITICAL,"Failed to reboot into dload moden");}boot_into_fastboot = true;}if (!boot_into_fastboot){if (keys_get_state(KEY_HOME) || keys_get_state(KEY_BACK))boot_into_recovery = ;if (!boot_into_recovery &&(keys_get_state(KEY_BACK) || keys_get_state(KEY_VOLUMEDOWN)))boot_into_fastboot = true;}#if NO_KEYPAD_DRIVERif (fastboot_trigger())boot_into_fastboot = true;#endif#if USE_PON_REBOOT_REGreboot_mode = check_hard_reboot_mode();#elsereboot_mode = check_reboot_mode();#endifif (reboot_mode == RECOVERY_MODE){boot_into_recovery = ;}

else if(reboot_mode == FASTBOOT_MODE){boot_into_fastboot = true;}else if(reboot_mode == ALARM_BOOT){boot_reason_alarm = true;}#if VERIFIED_BOOT#if !VBOOT_MOTAelse if(reboot_mode == DM_VERITY_ENFORCING) {_mode = ;write_device_info(&device);}#if ENABLE_VB_ATTESTelse if (reboot_mode == DM_VERITY_EIO)#elseelse if (reboot_mode == DM_VERITY_LOGGING)#endif{_mode = ;write_device_info(&device);} else if(reboot_mode == DM_VERITY_KEYSCLEAR) {if(send_delete_keys_to_tz())ASSERT();}#endif#endifnormal_boot:if (!boot_into_fastboot){if (target_is_emmc_boot()){if(emmc_recovery_init())

dprintf(ALWAYS,"error in emmc_recovery_initn");if(target_use_signed_kernel()){if((_unlocked) || (_tampered)){#ifdef TZ_TAMPER_FUSEset_tamper_fuse_cmd();#endif#if USE_PCOM_SECBOOTset_tamper_flag(_tampered);#endif}}boot_linux_from_mmc(); /* 从emmc读取linux内核镜像并启动 */}else{recovery_init();#if USE_PCOM_SECBOOTif((_unlocked) || (_tampered))set_tamper_flag(_tampered);#endifboot_linux_from_flash();}dprintf(CRITICAL, "ERROR: Could not do normal boot. Reverting ""to fastboot mode.n");}/* We are here means regular boot did not happen. Start fastboot. *//* register aboot specific fastboot commands */aboot_fastboot_register_commands();/* dump partition table for debug info */partition_dump();/* initialize and start fastboot */fastboot_init(target_get_scratch_address(), target_get_max_flash_size());