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
已解决! 转到解答。
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
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
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
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.
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
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