imx8qxp L4.14.98 uuu download fail via baseboard usbotg1

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

imx8qxp L4.14.98 uuu download fail via baseboard usbotg1

1,770 Views
penny_lin
Contributor III

Hi experts:

    我依照  MX8X_4.14.98_ga_BootLoader_V5-20190903_chn.pdf i.mx8x启动代码定制文档  

使用USBOTG1透過UUU下载 image (在i.MX8QXP MEK 上是连接到了底板的USBOTG 上),
打开其支持:
\uboot-imx\configs\imx8qxp_mek_defconfig
-# CONFIG_CI_UDC=y
+CONFIG_CI_UDC=y
同时, 把typeC 加USBOTG2/3 禁止掉:
-CONFIG_USB_TCPC=y
+#CONFIG_USB_TCPC=y
-CONFIG_USB_CDNS3=y
-CONFIG_USB_CDNS3_GADGET=y
+#CONFIG_USB_CDNS3=y
+#CONFIG_USB_CDNS3_GADGET=y

但因bootloader 包含了SPL 功能,

在imx-yocto-bsp\sources\meta-fsl-bsp-release\imx\meta-bsp\conf\machine\imx8qxpmek.conf會參考到imx8qxp_mek_spl_defconfig ,有如下的的定義:

UBOOT_CONFIG_SD = \
"${@bb.utils.contains('COMBINED_FEATURES', 'optee', 'imx8qxp_mek_spl_defconfig', \
'imx8qxp_mek_defconfig', d)}" 

造成了透過UUU download  時terminal會停在如下訊息,

U-Boot SPL 2018.03-4.14.98-2.3.1+gb1840a04d7 (Jun 22 2020 - 02:08:53 +0000)
Normal Boot
Trying to boot from USB SDP
couldn't find an available UDC
g_dnl_register: failed!, error: -19
SDP: initialize...

但如果在machine\imx8qxpmek.conf 把'imx8qxp_mek_spl_defconfig刪除,則可正常下載,這樣的修改是否正確? 

如果有secure boot及SPL 的須求,這樣的修改是否會影響功能? 

麻煩提供uboot包含SPL 時,如何修改BSP才能使用USBOTG1   透過UUU正常下載 image? 

謝謝

0 Kudos
2 Replies

1,619 Views
jimmychan
NXP TechSupport
NXP TechSupport

So, in the imx8qxp_mek_spl_defconfig, do you modify it same as you did on imx8qxp_mek_defconfig?

0 Kudos

1,620 Views
penny_lin
Contributor III

Yes, I also modify the imx8qxp_mek_defconfig as attached file

If we remove as below,

Add DISTRO_FEATURES_remove = " optee" in local.conf

And replace the defconfig using attachment can work.

Could you help to check the side effect after disable optee? And if we need secure boot , can it disable the optee ? if not , how to modify it?

Thank you.

Penny Lin

0 Kudos