ETH Error on LS1043A upon migration from LSDK 20.04 to 20.12

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

ETH Error on LS1043A upon migration from LSDK 20.04 to 20.12

Jump to solution
2,457 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
1 Solution
2,304 Views
carljones
Contributor III

Hello @yipingwang,

Just like to update you that I traced the VSC8531 PHY problem of my LSDK migration to my u-boot config. I overlooked that I didn't have the CONFIG_PHY_MSCC enabled in ls1043ardb_tfa_defconfig.

Thanks,

Carlos

View solution in original post

0 Kudos
8 Replies
2,432 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
2,428 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
2,410 Views
yipingwang
NXP TechSupport
NXP TechSupport

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

0 Kudos
2,406 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
2,391 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
2,367 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
2,305 Views
carljones
Contributor III

Hello @yipingwang,

Just like to update you that I traced the VSC8531 PHY problem of my LSDK migration to my u-boot config. I overlooked that I didn't have the CONFIG_PHY_MSCC enabled in ls1043ardb_tfa_defconfig.

Thanks,

Carlos

0 Kudos
2,406 Views
carljones
Contributor III

...deleting msg (duplicate response)

0 Kudos