ETH Error on LS1043A upon migration from LSDK 20.04 to 20.12

cancel
Showing results for 
Search instead for 
Did you mean: 

ETH Error on LS1043A upon migration from LSDK 20.04 to 20.12

113 Views
carljones
Contributor III

Hi @yipingwang ,

I migrated my LS1043A project from LSDK 20.04 to LSDK 20.12 to update the kernel version from 4.19.90-RT to 5.4.47-RT and now my ethernet PHY (VSC8531) can no longer be initialized properly. Both builds uses the same device tree script.

The error on the ethernet (on the LSDK 20.12) is

[ 8.644106] 001: fsl_dpa soc:fsl,dpaa:ethernet@2 eth0: Could not connect to PHY ethernet-phy@1
[ 8.644117] 001: fsl_dpa soc:fsl,dpaa:ethernet@2 eth0: init_phy() = -19
[ 8.803451] 002: fsl_dpa soc:fsl,dpaa:ethernet@3 eth1: Could not connect to PHY ethernet-phy@2
[ 8.803462] 002: fsl_dpa soc:fsl,dpaa:ethernet@3 eth1: init_phy() = -19

Attached are the boot log comparison of the two builds.

I've looked into the difference in dpaa implementation and saw that a lot has changed (which means I more likely would introduce more errors by trying to resolve it).

Hopefully you have encountered this before and has a work around.

Thanks for your help in advance.

Kind regards,

Carlos

Tags (2)
0 Kudos
7 Replies

88 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please check your Linux Kernel configuration file whether the option "CONFIG_MICROSEMI_PHY" was enabled. 

Would you please provide your Linux Kernel configuration file and dts file?

0 Kudos

84 Views
carljones
Contributor III

Hi @yipingwang ,

Thanks for the quick response. Attached is my dts and config file (renamed both to txt as they are rejected by the forum).

Also, here's from the loaded config of the board

[root@test ~]# zcat /proc/config.gz | grep MICROSEMI
CONFIG_NET_VENDOR_MICROSEMI=y
CONFIG_MICROSEMI_PHY=y
[root@test ~]

 Kind regards,

Carlos

Tags (2)
0 Kudos

66 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please do dts porting for your custom board based on the attached dts file.

0 Kudos

62 Views
carljones
Contributor III

Hi @yipingwang ,

I just realized that it is the file being called by flexbuild according to the config/boards/ls1043a/manifest

# [linux, dtb, rfs]
kernel_img=$FBOUTDIR/linux/kernel/arm64/LS/Image
device_tree=$FBOUTDIR/linux/kernel/arm64/LS/fsl-ls1043a-rdb-sdk.dtb
mscc_kernel=$FBOUTDIR/firmware/mscc_bin/mscc_vsc8584_revb_int8051_fb48.bin

So effectively, I was using that dts file already?

Thanks,

Carlos

Tags (2)
0 Kudos

47 Views
yipingwang
NXP TechSupport
NXP TechSupport

I built Linux Kernel with you Kernel configuration file in LSDK 2012, I used it to boot LS1043ARDB, didn't reproduce your problem.

You could try my Kernel image https://drive.google.com/file/d/1Egx9FzmXaDYw3DPhvpy5y7lCJ0IbW2FG/view?usp=sharing

and the attached dtb file.

0 Kudos

23 Views
carljones
Contributor III

Hi @yipingwang ,

Thank you for the sample image. Unfortunately, I still encounter the same PHY init error. I'm going to try the default Linux kernel (non-RT version) of LSDK 20.12 and give you update.

Kind regards,

Carlos

Tags (2)
0 Kudos

62 Views
carljones
Contributor III

...deleting msg (duplicate response)

0 Kudos