Hi, iam using a custom board based on Ls1046ardb, there were few changes in my custom board and i have modified them accordingly, now when iam booting everything is fine but during Tiny linux login iam getting "usb5-port1: over-current condition".
Attached is the complete bootlog for your ref. Please note that with the same device tree in LDSK 20.04 iam not getting such error, this issue is only with LSDK 21.08.
Please let me know what should be done to resolve this issue.
Thank u.
已解决! 转到解答。
Hi, on u-boot i had monitored the contents of reg : 0x1570414 using md, i was getting the value as 0x29000000, however when i was forcing it to 0 using below command,
mw 0x01570414 0
then it was booting without "USB over current condition" error.
So i did some analysis on the code and found out that in "ls1046ardb.c" there is a function config_board_mux, which is modifying the usb_pwrfault register, so i commented this section of the code, and now it is booting fine without "usb over current condition".
Thank you for your support.
Hello,
1. May I know the schematic diagram of the custom board, especially for the USB part? how were the USB1, 2, 3 connected?
2. Seems it is possibly related with usb powerfault, for a quick response, we suggest try to input the following command under uboot:
mw 0x1570414 0x09000000
Then boot the Linux to have a test
Hi, on u-boot i had monitored the contents of reg : 0x1570414 using md, i was getting the value as 0x29000000, however when i was forcing it to 0 using below command,
mw 0x01570414 0
then it was booting without "USB over current condition" error.
So i did some analysis on the code and found out that in "ls1046ardb.c" there is a function config_board_mux, which is modifying the usb_pwrfault register, so i commented this section of the code, and now it is booting fine without "usb over current condition".
Thank you for your support.