imx8qxp android p9.0.0_2.3.4 adb不通

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

imx8qxp android p9.0.0_2.3.4 adb不通

跳至解决方案
1,152 次查看
xinchuan_2023
Contributor II

使用usb otg 1烧录和adb调试。烧录ok,adb 不通。

其中usbotg3作为host是好的,可以插鼠标使用。

麻烦大家帮忙分析一下,谢谢大家了!

软件配置

&usbotg1 {
vbus-supply = <&reg_usb_otg1_vbus>;
dr_mode = "otg";/*peripheral*//* host */
srp-disable;
hnp-disable;
adp-disable;
power-polarity-active-high;
disable-over-current;
status = "okay";
};

&usbotg3 {
vbus-supply = <&reg_usb_otg1_vbus>;
dr_mode = "host";/*peripheral*//* host */
srp-disable;
hnp-disable;
adp-disable;
power-polarity-active-high;
disable-over-current;
status = "okay";
};

 

原理图p1.png

标记 (1)
0 项奖励
回复
1 解答
1,058 次查看
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hello @xinchuan_2023,

I hope you are doing well.

"+ setprop vendor.usb.config "ci_hdrc.0"
I'm glad that this change made the issue resolved.

Hence Can I mark this case as closed?

Thanks & Regards,
Sanket Parekh

在原帖中查看解决方案

6 回复数
1,125 次查看
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hello @xinchuan_2023,

I hope you are doing well.

Please provide more details on the issue.
What are the error logs related to that?
Please provide the dmesg logs or console logs to debug the issue further.

Thanks & Regards,
Sanket Parekh

0 项奖励
回复
1,112 次查看
xinchuan_2023
Contributor II

Hello Sanket,

attachment log.txt is the log,

there is no interrupt when I connect the usb_otg1 to the computer,and there is no error logs.

but the usb_otg3 is ok as host,

xinchuan_2023_0-1690538602462.png

 

thanks.

0 项奖励
回复
1,090 次查看
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hello @xinchuan_2023,

I hope you are doing well.

Please make sure to check if one has soldered anything related to USB or not, if it's the case one can refer to the below-given link for reference.
https://community.nxp.com/t5/i-MX-Processors/imx6-USB-OTG/td-p/1216358

Please also make sure to check the voltage is ok.

One can manage the USB Host support through the kernel configuration options:
Support for Host-side USB (CONFIG_USB)
EHCI HCD (USB 2.0) support (CONFIG_USB_EHCI_HCD)
ChipIdea Highspeed Dual Role Controller (CONFIG_USB_CHIPIDEA)
ChipIdea device controller (CONFIG_USB_CHIPIDEA_UDC)
ChipIdea host controller (CONFIG_USB_CHIPIDEA_HOST)
Freescale MXS USB PHY support (CONFIG_USB_MXS_PHY)

One can manage the USB OTG support through the kernel configuration option:
OTG support (CONFIG_USB_OTG)

Please make sure to check the device tree configurations from the below-given location in the Linux source code.
Documentation/devicetree/bindings/usb/fsl-usb.txt.

One can find USB HOST as well as OTG-related configurations.

I hope this helps!

Thanks & Regards,
Sanket Parekh

0 项奖励
回复
1,068 次查看
xinchuan_2023
Contributor II

Hello Sanket ,

make changes as below. adb is ok.

- setprop vendor.usb.config "5b110000.usb3"
+ setprop vendor.usb.config "ci_hdrc.0"

thanks.

0 项奖励
回复
1,059 次查看
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hello @xinchuan_2023,

I hope you are doing well.

"+ setprop vendor.usb.config "ci_hdrc.0"
I'm glad that this change made the issue resolved.

Hence Can I mark this case as closed?

Thanks & Regards,
Sanket Parekh

1,004 次查看
xinchuan_2023
Contributor II

Hello Sanket,

    Please mark this case as closed.

Thanks.

 

0 项奖励
回复