Hi @chenyin_h ,
Thank you for your reply.
I did not change anything on code, just modified the hwconfig, changed both serdes "clock=ext" to "clock=int"
the previous hwconfig,
serdes0:mode=pcie&xpcs0,clock=ext,fmhz=100;pcie0:mode=rc;xpcs0_0:speed=1G,an=0;serdes1:mode=xpcs0&xpcs1,clock=ext,fmhz=125;xpcs1_0:speed=1G;xpcs1_1:speed=1G
current hwconfig,
serdes0:mode=pcie&xpcs0,clock=int,fmhz=100;pcie0:mode=rc;xpcs0_0:speed=1G,an=0;serdes1:mode=xpcs0&xpcs1,clock=int,fmhz=100;xpcs1_0:speed=1G;xpcs1_1:speed=1G
and here is the new log after applying the nxp-s32cc-xpcs.c change. However, I don't think that function was executed. I have printf in the code and patch it to bb file.
=> setenv hwconfig "serdes0:mode=pcie&xpcs0,clock=int,fmhz=100;pcie0:mode=rc;xpcs0_0:speed=1G,an=0;serdes1:mode=xpcs0&xpcs1,clock=int,fmhz=100;xpcs1_0:speed=1G,an=0;xpcs1_1:speed=1G,an=0"
=> save
Saving Environment to SPIFlash... Erasing SPI flash...Writing to SPI flash...done
OK
=> reset
resetting ...
ERROR: read error from device: 0x34330408 register: ERROR: Failed to disable VR5510 watchdog
NOTICE: Reset status: Destructive Reset (RUN)
NOTICE: BL2: v2.10.0 (release):bsp41.0-2.10-dirty
NOTICE: BL2: Built : 09:32:10, May 27 2024
NOTICE: BL2: Booting BL31
U-Boot 2022.04+g4744d0e2c8+p0 (May 27 2024 - 09:33:20 +0000)
SoC: NXP S32G399A rev. 1.1
CPU: ARM Cortex-A53 r0p4 @ max 1300 MHz
Model: NXP S32G399A-RDB3
DRAM: 3.5 GiB
Core: 312 devices, 24 uclasses, devicetree: board
MMC: FSL_SDHC: 0
Loading Environment from SPIFlash... SF: Detected mx25uw51245g with page size 256 Bytes, erase size 64 KiB, total 64 MiB
OK
s32cc_serdes_phy serdes@40480000: Using mode 1 for SerDes subsystem
s32cc_serdes_phy serdes@40480000: XPCS0 is in reset
s32cc_serdes_phy serdes@40480000: XPCS init failed
pci_s32cc pcie@40400000: Failed to get PHY 'serdes_lane0'
In: serial@401c8000
Out: serial@401c8000
Err: serial@401c8000
Board revision: Revision Unknown: (0x496)
Net: s32cc_serdes_phy serdes@40480000: Using mode 1 for SerDes subsystem
s32cc_serdes_phy serdes@40480000: XPCS0 is in reset
s32cc_serdes_phy serdes@40480000: XPCS init failed
eth_eqos ethernet@4033c000: Failed to get 'gmac_xpcs' PHY
eth_eqos ethernet@4033c000: XPCS init failed. Check hwconfig. (err=-19)
Enable protocol@14 failed
clk_enable(clk_rx) failed: -71
eth_eqos ethernet@4033c000: Failed to start clocks. Check XPCS configuration (err=-71)
eth0: ethernet@4033c000
Found PFE version 0x0101 (S32G3)
pfeng pfeng-base: Uploading CLASS firmware
pfeng pfeng-base: EMAC0 block was initialized
pfeng pfeng-base: EMAC1 block was initialized
pfeng pfeng-base: EMAC2 block was initialized
pfeng pfeng-base: Enabling the CLASS block
pfeng pfeng-base: PFE Platform started successfully (mask: 7)
s32cc_serdes_phy serdes@44180000: Using mode 3 for SerDes subsystem
s32cc_serdes_phy serdes@44180000: Unstable RX detected on XPCS1
s32cc_serdes_phy serdes@44180000: Unstable RX detected on XPCS0
, eth1: pfe0, eth2: pfe1, eth3: pfe2
Hit any key to stop autoboot: 0
git diff recipes-bsp/u-boot/u-boot-s32_2022.04.bb
diff --git a/recipes-bsp/u-boot/u-boot-s32_2022.04.bb b/recipes-bsp/u-boot/u-boot-s32_2022.04.bb
index aeb44d20..4ebf970c 100644
--- a/recipes-bsp/u-boot/u-boot-s32_2022.04.bb
+++ b/recipes-bsp/u-boot/u-boot-s32_2022.04.bb
@@ -8,4 +8,5 @@ LIC_FILES_CHKSUM += " \
# Support for generating default environment
SRC_URI += " \
file://0001-env-Add-Makefile-rule-to-generate-default-environment-${PV}.patch \
+ file://0001-nxp-changes.patch \
"
git diff recipes-bsp/u-boot/u-boot-s32_2022.04.bb
diff --git a/recipes-bsp/u-boot/u-boot-s32_2022.04.bb b/recipes-bsp/u-boot/u-boot-s32_2022.04.bb
index aeb44d20..4ebf970c 100644
--- a/recipes-bsp/u-boot/u-boot-s32_2022.04.bb
+++ b/recipes-bsp/u-boot/u-boot-s32_2022.04.bb
@@ -8,4 +8,5 @@ LIC_FILES_CHKSUM += " \
# Support for generating default environment
SRC_URI += " \
file://0001-env-Add-Makefile-rule-to-generate-default-environment-${PV}.patch \
+ file://0001-nxp-changes.patch \
"
Thanks,
XD