diff options
author | Girish Sharma <girish.sharma@einfochips.com> | 2016-02-02 17:30:53 +0530 |
---|---|---|
committer | Nicolas Dechesne <nicolas.dechesne@linaro.org> | 2016-02-02 22:27:27 +0100 |
commit | 6f17a96c5876b4571709d5b1d22133d9e4061cd7 (patch) | |
tree | c0307ce9a2de6eeb3dab448a90bd452cfe65c27e | |
parent | 37d4907dbb315b0423c297d80a4bbe7d5d64d575 (diff) |
Fastboot: Moving forcefully board into fastbootrelease/LA.AF.1.1-02810-8064+rescue
These changes will force application bootloader to boot board into
fastboot, this is useful to boot board into fastboot via SD card.
Change-Id: Icb31fc296739ea6280f1e94510020d8b1b8b70e0
Signed-off-by: eInfochips Team <ei-qc8064@einfochips.com>
Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
-rw-r--r-- | app/aboot/aboot.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/aboot/aboot.c b/app/aboot/aboot.c index 1711dc70..023a336c 100644 --- a/app/aboot/aboot.c +++ b/app/aboot/aboot.c @@ -1898,10 +1898,15 @@ void aboot_init(const struct app_descriptor *app) if (target_is_emmc_boot()) { +goto fastboot; if(emmc_recovery_init()) dprintf(ALWAYS,"error in emmc_recovery_init\n"); if(target_use_signed_kernel()) { + if ((target_use_signed_kernel() && !((device.is_unlocked)^(device.is_tampered)))) + if (!((device.is_unlocked) && (device.is_tampered))) + goto fastboot; + if((device.is_unlocked) || (device.is_tampered)) { #ifdef TZ_TAMPER_FUSE @@ -1928,6 +1933,7 @@ void aboot_init(const struct app_descriptor *app) fastboot: + dprintf(ALWAYS, "Board going in fastboot !!\n"); target_fastboot_init(); if(!usb_init) |