i.mx6q sabre-SD board android 8.0 fastboot "device is LOCKed"

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

i.mx6q sabre-SD board android 8.0 fastboot "device is LOCKed"

2,412 Views
rolinrolin
Contributor I

hi  all,

    I use fastboot to flash the gpt partition table and boot-imx6q.img on android 8.0 of i.mx6q sabre-sd board ,  it is failure,  the error is "ERROR: device is LOCKed!". I use the  "fastboot flashing unlock" to unlock the device, it still failure. 

anyone help?

the error show like below:

U-Boot 2017.03 (Apr 21 2018 - 20:26:32 +0800)

CPU: Freescale i.MX6Q rev1.2 996 MHz (running at 792 MHz)
CPU: Automotive temperature grade (-40C to 125C) at 40C
Reset cause: POR
Model: Freescale i.MX6 Quad SABRE Smart Device Board
Board: MX6-SabreSD
DRAM: 1 GiB
PMIC: PFUZE100! DEV_ID=0x10 REV_ID=0x11
MMC: FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2
*** Warning - bad CRC, using default environment

No panel detected: default to Hannstar-XGA
Display: Hannstar-XGA (1024x768)
In: serial
Out: serial
Err: serial
flash target is MMC:2
Net:
Warning: ethernet@02188000 using MAC address from ROM
eth0: ethernet@02188000 [PRIME]
Fastboot: Normal
Hit any key to stop autoboot: 0
=> fastboot q
Starting download of 12059944 bytes
..........................................................................
..................
downloading of 12059944 bytes finished
ERROR: device is LOCKed!

at drivers/usb/gadget/f_fastboot.c:3454/cb_flash()
Starting download of 12059944 bytes
..........................................................................
..................
downloading of 12059944 bytes finished
ERROR: device is LOCKed!

at drivers/usb/gadget/f_fastboot.c:3454/cb_flash()

/*******************************************************************************************************/

 * 华丽的分割线

 *******************************************************************************************************/


U-Boot 2017.03 (Apr 21 2018 - 20:26:32 +0800)

CPU: Freescale i.MX6Q rev1.2 996 MHz (running at 792 MHz)
CPU: Automotive temperature grade (-40C to 125C) at 42C
Reset cause: POR
Model: Freescale i.MX6 Quad SABRE Smart Device Board
Board: MX6-SabreSD
DRAM: 1 GiB
PMIC: PFUZE100! DEV_ID=0x10 REV_ID=0x11
MMC: FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2
*** Warning - bad CRC, using default environment

No panel detected: default to Hannstar-XGA
Display: Hannstar-XGA (1024x768)
In: serial
Out: serial
Err: serial
flash target is MMC:2
Net:
Warning: ethernet@02188000 using MAC address from ROM
eth0: ethernet@02188000 [PRIME]
Fastboot: Normal
Hit any key to stop autoboot: 0
=> fastboot q
Starting download of 34304 bytes

downloading of 34304 bytes finished
ERROR: device is LOCKed!

at drivers/usb/gadget/f_fastboot.c:3454/cb_flash()
flashing unlock.
It is not able to unlock device.

Labels (1)
0 Kudos
3 Replies

1,416 Views
shivanipatel
Senior Contributor II

Hi,

Please define CONFIG_ENABLE_LOCKSTATUS_SUPPORT macro in fastboot_lock_unlock.h file. This fastboot_lock_unlock.h file reside at <android_root_directory>/bootable/bootloader/uboot-imx/drivers/usb/gadget.

After defining this macro one can able to unlock the android device using fastboot oem unlock command and also able to flash the images using fastboot flash <partition_name> <filename>.

Regards,

Shivani

1,416 Views
prasannakulkarni
Contributor IV

Hi,

Very easiest way to remove fastboot LOCK from u-boot is comment out one line from "include/configs/mx6sabreandroid_common.h"

/*
* Copyright (C) 2013-2016 Freescale Semiconductor, Inc. All Rights Reserved.
* Copyright 2017 NXP
*
* SPDX-License-Identifier: GPL-2.0+
*/

#ifndef MX6_SABRE_ANDROID_COMMON_H
#define MX6_SABRE_ANDROID_COMMON_H
#include "mx_android_common.h"
/* For NAND we don't support lock/unlock */
#ifndef CONFIG_NAND_BOOT
/* #define CONFIG_FASTBOOT_LOCK */            <<------------------ Only change required.

build the u-boot.imx thats it. Fastboot is enabled.

0 Kudos

1,416 Views
joanxie
NXP TechSupport
NXP TechSupport

did you use SD card? if yes, pls check if your SD card lock or not.

0 Kudos