Hello Bro
we used android_o8.1.0_2.0.0-beta which is release from website, and want to use USB2.0 (otg_1) throuth UUU tools to down the image to the emmc, we follow the documentation named is "Android™ User's Guide, Rev. O8.1.0_2.0.0-beta, 01/2019 " mentioned with "8.4 How to enable USB 2.0 in U-Boot for i.MX 8QuadMax/ 8QuadXPlus ", i change the config as below:
===========================================================================================
Hi Carlos
In our company, we are using Android P9.0.0.2.1_GA release.
Mr' Wang would missed the dts change which to enable the usbotg1.
--- a/arch/arm/dts/fsl-imx8qxp-mek-auto.dts
+++ b/arch/arm/dts/fsl-imx8qxp-mek-auto.dts
@@ -44,7 +44,7 @@
};
&usbotg1 {
- status = "disabled";
+ status = "okay";
};
=====
in our side, we tried as below:
after changed,
make bootloader -j8
used fastboot to reflash the bootloader0 and bootload_a partitions with new bootloader images.
after that, when board rebooting, type enter in uart console, then input
==> fastboot flash
g_dnl_register: failed!, error: -19
I think the error is from:
static int do_fastboot(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[]) { int controller_index; char *usb_controller; int ret; if (argc < 2) return CMD_RET_USAGE; usb_controller = argv[1]; controller_index = simple_strtoul(usb_controller, NULL, 0); #ifdef CONFIG_FASTBOOT_USB_DEV controller_index = CONFIG_FASTBOOT_USB_DEV; #endif ret = board_usb_init(controller_index, USB_INIT_DEVICE); if (ret) { pr_err("USB init failed: %d", ret); return CMD_RET_FAILURE; } g_dnl_clear_detach(); ret = g_dnl_register("usb_dnl_fastboot"); if (ret) return ret;
the CONFIG_FASTBOOT_USB_DEV is 0;
when goes into the board_usb_init() function, in imx8qxpmek case, the function would be defined in
/vendor/nxp-opensource/uboot-imx/board/freescale/imx8qxp_mek/imx8qxp_mek.c
we can see there is no code for index == 0 case,
Looks like current NXP's release doesn't support USB2.0 download in fastboot.
Is there any patch to fix this?
Hi Wang,
You could take a look to steps from Android User Guide document from P9.0.0_1.0.0_GA release, in case of have missed something considering the beta status of the previous version.
Additionally, you need to ensure that U-Boot is really recompiled considering the applied changes, as it usually discard the compilation of already-compiled modules.
For more details about this, please take a look to the following thread:
Hope this will be useful for you.
Best regards!
/Carlos
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
-------------------------------------------------------------------------------