在 2020年7月30日星期四 UTC+8下午7:27:15,Riccardo Bruè写道:
>
> I am facing the following problem on a custom iMX8 board (compiled
> following the vendor's guide) and using Android 10 (I have root access):
>
> When I connect via ADB (over WiFi) I issue the following command:
> # mount -o remount rw /system
> >> mount: '/system' not in /proc/mounts
>
> So, I tried to solve such error by issuing this other command:
> $ mount -o remount rw /
> >> Another IO error occurs
>
> At the end I tried this other command:
> $ adb remount
> >> Error
> $ adb disable-verity
> >> Device is locked. please unlock the device first
>
> So when I try to unlock it following these steps:
>
> - Settings => System => Advanced => Developer options => OEM unlocking
> - reboot to bootloader (device stuck)
> - type "fastboot 0" in the U-Boot command line
> - run "sudo `which fastboot` oem unlock" from the Host PC (device not
> seen from the PC)
> - wait until the unlock process is complete
>
> I receive the annoted errors, the device remains stuck (I already opened a
> ticket with the board vendor and I am waiting for a reply).
>
> Furthermore, I don't have any display to use with such board so I don't
> know what is appening (I can communicate via debug serial but it seems that
> it remains stuck also from there).
>
> So in order to avoid the whole process, I was thinking to directly build a
> custom version of the Android OS which is directly OEM unlocked so that I
> can issue the adb remount without any issue, but I am a beginner and I
> don't know where to start.
>
Hi what's the log "the annoted errors, the device remains stuck " after
you unlock the device?
do you "sudo fastboot reboot" after unlock?
If you want to unlock your device directly, you can apply below patch in
uboot.
-- a/drivers/fastboot/fb_fsl/fastboot_lock_unlock.c
+++ b/drivers/fastboot/fb_fsl/fastboot_lock_unlock.c
@@ -360,6 +360,7 @@ FbLockState fastboot_get_lock_stat(void) {
unsigned char *bdata;
int mmc_id;
FbLockState ret;
+ return FASTBOOT_UNLOCK;
/* uboot used by uuu will boot from USB, always return UNLOCK state
*/
if (is_boot_from_usb())
return g_lockstat;
@@ -404,6 +405,7 @@ fail:
* which is managed by PresistDataService
*/
+#define CONFIG_ENABLE_LOCKSTATUS_SUPPORT
#ifdef CONFIG_ENABLE_LOCKSTATUS_SUPPORT
//Brillo has no presist data partition
--
--
You received this message because you are subscribed to the "Android Building"
mailing list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en
---
You received this message because you are subscribed to the Google Groups
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/android-building/b95de4a1-344d-4d28-b298-edad87fa596co%40googlegroups.com.