Linux boot issue for custom board based on LS1046ardb on LSDK 21.08

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

Linux boot issue for custom board based on LS1046ardb on LSDK 21.08

跳至解决方案
2,071 次查看
Ghouse
Contributor V

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.

0 项奖励
回复
1 解答
1,950 次查看
Ghouse
Contributor V

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.

在原帖中查看解决方案

0 项奖励
回复
5 回复数
1,998 次查看
Oswalag
NXP TechSupport
NXP TechSupport

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

0 项奖励
回复
1,951 次查看
Ghouse
Contributor V

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.

0 项奖励
回复
2,046 次查看
Ghouse
Contributor V

Hi, any update on above topic, please provide help on this topic.

Thank u.

标记 (1)
0 项奖励
回复
2,040 次查看
Oswalag
NXP TechSupport
NXP TechSupport
Hi, could you share the device tree?
0 项奖励
回复
2,031 次查看
Ghouse
Contributor V

Hi, Please find attached the device tree of both linux and u-boot.

Please note that we have modified the device tree according to our custom board (Eg: MT25Q SPI flash is updated, since we are using MT25Q for QSPI flash)

Thank you.

0 项奖励
回复