Dear NXP fellows:
Recently I was debugging our custom version based on S32G399A. The USB controller function was deleted on our custom board. I used the official BSP42.0 to burn to the SD card. After starting, it stayed in the Kernel and then reset. Could you please help me analyze the reason?
NOTICE: Reset status: Power-On Reset
NOTICE: BL2: v2.10.0 (release):bsp42.0_rc9-2.10
NOTICE: BL2: Built : 19:50:36, Sep 12 2024
NOTICE: BL2: Booting BL31
U-Boot 2022.04+g5a6f62071f+p0 (Sep 06 2024 - 07:11: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: 306 devices, 25 uclasses, devicetree: board
MMC: FSL_SDHC: 0
Loading Environment from MMC... OK
s32cc_serdes_phy serdes@40480000: Using mode 0 for SerDes subsystem
pci_s32cc pcie@40400000: DBI R/W is not being enabled
pci_s32cc pcie@40400000: PCI Device and Vendor IDs could not be set
pci_s32cc pcie@40400000: DBI R/W is not being enabled
s32cc_serdes_phy serdes@40480000: Failed to lock PCIe phy
s32cc_serdes_phy serdes@40480000: PHY: Failed to power on serdes@40480000: -110.
pci_s32cc pcie@40400000: Failed to power on PHY 'serdes_lane0'
pci_s32cc pcie@40400000: Failed to set PCIe host settings
In: serial@401c8000
Out: serial@401c8000
Err: serial@401c8000
Board revision: Revision Unknown: (0x709)
Net: Enable protocol@14 failed
clk_enable(clk_rx) failed: -71
eth_eqos ethernet@4033c000: Failed to start clocks (err=-71)
eqos_start_clks() failed: -71
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 4 for SerDes subsystem
s32cc_serdes_phy serdes@44180000: XPCS0 power good timeout
s32cc_serdes_phy serdes@44180000: XPCS1 power good timeout
s32cc_serdes_phy serdes@44180000: XPCS0 is in reset
s32cc_serdes_phy serdes@44180000: XPCS init failed
pfeng_netif pfe0: Failed to get 'emac0_xpcs' PHY
eth1: pfe0s32cc_serdes_phy serdes@44180000: Using mode 4 for SerDes subsystem
s32cc_serdes_phy serdes@44180000: XPCS0 power good timeout
s32cc_serdes_phy serdes@44180000: XPCS1 power good timeout
s32cc_serdes_phy serdes@44180000: XPCS0 is in reset
s32cc_serdes_phy serdes@44180000: XPCS init failed
pfeng_netif pfe1: Failed to get 'emac1_xpcs' PHY
, eth2: pfe1Could not get PHY for pfeng-mdio-2: addr 4
pfeng_netif pfe2: PHY device not found
pfeng_netif pfe2: PHY config failed (-19)
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc0 is current device
15415304 bytes read in 647 ms (22.7 MiB/s)
Booting from mmc ...
60416 bytes read in 7 ms (8.2 MiB/s)
## Flattened Device Tree blob at 83000000
Booting using the fdt blob at 0x83000000
Using Device Tree in place at 0000000083000000, end 0000000083011bff
Failed to configure XPCS1_1
Failed to update XPCS1 for SerDes1
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 6.6.32-rt32-00903-g49d9f8bb25e0 (oe-user@oe-host) (aarch64-fsl-linux-gcc (GCC) 11.4.0, GNU ld (GNU Binutils) 2.38.20220708) #1 SMP PREEMPT Thu Sep 12 09:32:29 UTC 2024
[ 0.000000] Machine model: NXP S32G3 Reference Design Board (S32G-VNP-RDB3)
[ 0.000000] earlycon: linflex0 at MMIO 0x00000000401c8000 (options '115200n8')
[ 0.000000] printk: legacy bootconsole [linflex0] enabled
[ 0.000000] OF: reserved mem: 0x0000000034000000..0x000000003407ffff (512 KiB) nomap non-reusable pfebufs@34000000
[ 0.000000] OF: reserved mem: 0x0000000034080000..0x000000003409ffff (128 KiB) nomap non-reusable pfebufs@34080000
[ 0.000000] Reserved memory: created DMA memory pool at 0x0000000083200000, size 3 MiB
[ 0.000000] OF: reserved mem: initialized node pfebufs@83200000, compatible id shared-dma-pool
[ 0.000000] OF: reserved mem: 0x0000000083200000..0x00000000835dffff (3968 KiB) nomap non-reusable pfebufs@83200000
[ 0.000000] OF: reserved mem: 0x00000000835e0000..0x00000000835fffff (128 KiB) map non-reusable pfebufs@835e0000
[ 0.000000] OF: reserved mem: 0x0000000084000000..0x0000000084ffffff (16384 KiB) nomap non-reusable shm@84000000
[ 0.000000] OF: reserved mem: 0x00000000c0000000..0x00000000c03fffff (4096 KiB) nomap non-reusable shm@c0000000
[ 0.000000] OF: reserved mem: 0x00000000c0400000..0x00000000c07fffff (4096 KiB) nomap non-reusable shm@c0400000
[ 0.000000] OF: reserved mem: 0x00000000d0000000..0x00000000d000007f (0 KiB) nomap non-reusable shm@d0000000
[ 0.000000] OF: reserved mem: 0x00000000d0000080..0x00000000d00000ff (0 KiB) nomap non-reusable shm@d0000080
[ 0.000000] OF: reserved mem: 0x00000000ff600000..0x00000000ff7fffff (2048 KiB) nomap non-reusable atf@ff600000
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000080000000-0x00000000ffffffff]
[ 0.000000] DMA32 empty
[ 0.000000] Normal [mem 0x0000000100000000-0x00000008dfffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000080000000-0x00000000831fffff]
[ 0.000000] node 0: [mem 0x0000000083200000-0x00000000835dffff]
[ 0.000000] node 0: [mem 0x00000000835e0000-0x0000000083ffffff]
[ 0.000000] node 0: [mem 0x0000000084000000-0x0000000084ffffff]
[ 0.000000] node 0: [mem 0x0000000085000000-0x00000000bfffffff]
[ 0.000000] node 0: [mem 0x00000000c0000000-0x00000000c07fffff]
[ 0.000000] node 0: [mem 0x00000000c0800000-0x00000000cfffffff]
[ 0.000000] node 0: [mem 0x00000000d0001000-0x00000000ff5fffff]
[ 0.000000] node 0: [mem 0x00000000ff600000-0x00000000ff7fffff]
[ 0.000000] node 0: [mem 0x00000000ff800000-0x00000000ffffffff]
[ 0.000000] node 0: [mem 0x0000000880000000-0x00000008dfffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x00000008dfffffff]
[ 0.000000] On node 0, zone DMA: 1 pages in unavailable ranges
[ 0.000000] cma: Reserved 256 MiB at 0x00000000ef600000 on node -1
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv1.1 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: MIGRATE_INFO_TYPE not supported.
[ 0.000000] psci: SMC Calling Convention v1.4
[ 0.000000] percpu: Embedded 19 pages/cpu s40040 r8192 d29592 u77824
[ 0.000000] Detected VIPT I-cache on CPU0
[ 0.000000] CPU features: detected: GIC system register CPU interface
[ 0.000000] CPU features: detected: ARM erratum 845719
[ 0.000000] CPU features: detected: ARM errata 1165522, 1319367, 1530923, or 1530924
[ 0.000000] alternatives: applying boot alternatives
[ 0.000000] Kernel command line: console=ttyLF0,115200 root=/dev/mmcblk0p2 rootwait rw earlycon
[ 0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 903167
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] software IO TLB: area num 8.
[ 0.000000] software IO TLB: mapped [mem 0x00000000eb600000-0x00000000ef600000] (64MB)
[ 0.000000] Memory: 3223892K/3670012K available (9536K kernel code, 654K rwdata, 2928K rodata, 1792K init, 219K bss, 183976K reserved, 262144K cma-reserved)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=8, Nodes=1
[ 0.000000] rcu: Preemptible hierarchical RCU implementation.
[ 0.000000] rcu: RCU event tracing is enabled.
[ 0.000000] Trampoline variant of Tasks RCU enabled.
[ 0.000000] Tracing variant of Tasks RCU enabled.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] GICv3: GIC: Using split EOI/Deactivate mode
[ 0.000000] GICv3: 544 SPIs implemented
[ 0.000000] GICv3: 0 Extended SPIs implemented
[ 0.000000] GICv3: MBI range [167:182]
[ 0.000000] GICv3: Using MBI frame 0x0000000050800000
[ 0.000000] Root IRQ handler: gic_handle_irq
[ 0.000000] GICv3: GICv3 features: 16 PPIs
[ 0.000000] GICv3: CPU0: found redistributor 0 region 0:0x0000000050900000
[ 0.000000] ITS: No ITS available, not enabling LPIs
[ 0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[ 0.000000] arch_timer: cp15 timer(s) running at 5.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x127350b88, max_idle_ns: 440795202120 ns
[ 0.000001] sched_clock: 56 bits at 5MHz, resolution 200ns, wraps every 4398046511100ns
[ 0.008349] Console: colour dummy device 80x25
[ 0.012451] Calibrating delay loop (skipped), value calculated using timer frequency.. 10.00 BogoMIPS (lpj=20000)
[ 0.022659] pid_max: default: 32768 minimum: 301
[ 0.027357] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[ 0.034650] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[ 0.044061] RCU Tasks: Setting shift to 3 and lim to 1 rcu_task_cb_adjust=1.
[ 0.050738] RCU Tasks Trace: Setting shift to 3 and lim to 1 rcu_task_cb_adjust=1.
[ 0.058407] rcu: Hierarchical SRCU implementation.
[ 0.063006] rcu: Max phase no-delay instances is 1000.
[ 0.068853] smp: Bringing up secondary CPUs ...
[ 0.073523] Detected VIPT I-cache on CPU1
[ 0.073576] GICv3: CPU1: found redistributor 1 region 0:0x0000000050920000
[ 0.073614] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[ 0.074190] Detected VIPT I-cache on CPU2
[ 0.074229] GICv3: CPU2: found redistributor 2 region 0:0x0000000050940000
[ 0.074248] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[ 0.074776] Detected VIPT I-cache on CPU3
[ 0.074813] GICv3: CPU3: found redistributor 3 region 0:0x0000000050960000
[ 0.074831] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[ 0.075380] Detected VIPT I-cache on CPU4
[ 0.075437] GICv3: CPU4: found redistributor 100 region 0:0x0000000050980000
[ 0.075468] CPU4: Booted secondary processor 0x0000000100 [0x410fd034]
[ 0.076037] Detected VIPT I-cache on CPU5
[ 0.076078] GICv3: CPU5: found redistributor 101 region 0:0x00000000509a0000
[ 0.076099] CPU5: Booted secondary processor 0x0000000101 [0x410fd034]
[ 0.076647] Detected VIPT I-cache on CPU6
[ 0.076687] GICv3: CPU6: found redistributor 102 region 0:0x00000000509c0000
[ 0.076708] CPU6: Booted secondary processor 0x0000000102 [0x410fd034]
[ 0.077307] Detected VIPT I-cache on CPU7
[ 0.077349] GICv3: CPU7: found redistributor 103 region 0:0x00000000509e0000
[ 0.077369] CPU7: Booted secondary processor 0x0000000103 [0x410fd034]
[ 0.077452] smp: Brought up 1 node, 8 CPUs
[ 0.203344] SMP: Total of 8 processors activated.
[ 0.208022] CPU features: detected: 32-bit EL0 Support
[ 0.213152] CPU features: detected: CRC32 instructions
[ 0.218338] CPU: All CPU(s) started at EL2
[ 0.222354] alternatives: applying system-wide alternatives
[ 0.229691] devtmpfs: initialized
[ 0.240966] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.250296] futex hash table entries: 2048 (order: 5, 131072 bytes, linear)
[ 0.264839] pinctrl core: initialized pinctrl subsystem
[ 0.270475] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 0.276930] DMA: preallocated 512 KiB GFP_KERNEL pool for atomic allocations
[ 0.283747] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[ 0.291505] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[ 0.299506] thermal_sys: Registered thermal governor 'step_wise'
[ 0.299614] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.312088] ASID allocator initialised with 65536 entries
[ 0.317436] Serial: AMBA PL011 UART driver
[ 0.321468] scmi_core: SCMI protocol bus registered
[ 0.327323] scmi_protocol scmi_dev.1: Enabled polling mode TX channel - prot_id:16
[ 0.334788] arm-scmi firmware:scmi: SCMI Notifications - Core Enabled.
[ 0.341025] arm-scmi firmware:scmi: SCMI Protocol v2.0 'NXP:S32G399A' Firmware version 0x0
[ 0.356037] platform 4009c240.siul2-pinctrl: Fixed dependency cycle(s) with /soc/siul2@4009c000/siul2-pinctrl@4009c240/jtag_pins
[ 0.374286] Modules: 28944 pages in range for non-PLT usage
[ 0.374292] Modules: 520464 pages in range for PLT usage
[ 0.379912] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages
[ 0.391559] HugeTLB: 0 KiB vmemmap can be freed for a 1.00 GiB page
[ 0.397809] HugeTLB: registered 32.0 MiB page size, pre-allocated 0 pages
[ 0.404578] HugeTLB: 0 KiB vmemmap can be freed for a 32.0 MiB page
[ 0.410829] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
[ 0.417598] HugeTLB: 0 KiB vmemmap can be freed for a 2.00 MiB page
[ 0.423850] HugeTLB: registered 64.0 KiB page size, pre-allocated 0 pages
[ 0.430620] HugeTLB: 0 KiB vmemmap can be freed for a 64.0 KiB page
[ 0.444564] SCSI subsystem initialized
[ 0.448051] usbcore: registered new interface driver usbfs
[ 0.453377] usbcore: registered new interface driver hub
[ 0.458681] usbcore: registered new device driver usb
[ 0.464149] pps_core: LinuxPPS API ver. 1 registered
[ 0.468678] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.477800] PTP clock support registered
[ 0.482618] vgaarb: loaded
[ 0.485194] clocksource: Switched to clocksource arch_sys_counter
[ 0.497172] NET: Registered PF_INET protocol family
[ 0.501841] IP idents hash table entries: 65536 (order: 7, 524288 bytes, linear)
[ 0.511571] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear)
[ 0.519734] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.527395] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
[ 0.535485] TCP bind hash table entries: 32768 (order: 8, 1048576 bytes, linear)
[ 0.543772] TCP: Hash tables configured (established 32768 bind 32768)
[ 0.549978] UDP hash table entries: 2048 (order: 4, 65536 bytes, linear)
[ 0.556620] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes, linear)
[ 0.563858] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 0.569674] RPC: Registered named UNIX socket transport module.
[ 0.575217] RPC: Registered udp transport module.
[ 0.579899] RPC: Registered tcp transport module.
[ 0.584585] RPC: Registered tcp-with-tls transport module.
[ 0.590054] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.596502] PCI: CLS 0 bytes, default 64
[ 0.601954] workingset: timestamp_bits=62 max_order=20 bucket_order=0
[ 0.608425] fuse: init (API version 7.39)
[ 0.612154] NET: Registered PF_ALG protocol family
[ 0.616821] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[ 0.624157] io scheduler mq-deadline registered
[ 0.628667] io scheduler kyber registered
[ 0.632668] io scheduler bfq registered
[ 0.639904] s32cc-siul2-pinctrl 4009c240.siul2-pinctrl: initialized s32 pinctrl driver
[ 0.648495] s32cc-siul2-gpio 4009d700.siul2-gpio: No cache defaults, reading back from HW
[ 0.656329] s32cc-siul2-gpio 4009d700.siul2-gpio: No cache defaults, reading back from HW
[ 0.664774] gpio gpiochip0: Static allocation of GPIO base is deprecated, use dynamic allocation.
[ 0.673752] s32cc-siul2-gpio 4009d700.siul2-gpio: No cache defaults, reading back from HW
[ 0.681554] s32cc-siul2-gpio 4009d700.siul2-gpio: No cache defaults, reading back from HW
[ 0.700824] printk: legacy console [ttyLF0] enabled000 (irq = 23, base_baud = 7812500) is a FSL_LINFLEX
[ 0.700824] printk: legacy console [ttyLF0] enabled
[ 0.710719] printk: legacy bootconsole [linflex0] disabled
[ 0.710719] printk: legacy bootconsole [linflex0] disabled
[ 0.725674] 401cc000.serial: ttyLF1 at MMIO 0x401cc000 (irq = 24, base_baud = 7812500) is a FSL_LINFLEX
[ 0.736906] s32cc_fccu 4030c000.fccu: FCCU status is 0 (normal)
[ 0.745083] sja1110-sw@1 enforce active low on GPIO handle
[ 0.752916] spi-nor spi6.0: mx25uw51245g (65536 Kbytes)
[ 0.758651] 7 fixed-partitions partitions found on MTD device 0.spi
[ 0.765019] Creating 7 MTD partitions on "0.spi":
[ 0.769791] 0x000000000000-0x000004000000 : "Flash-Image"
[ 0.775537] 0x000000000000-0x000000280000 : "FIP"
[ 0.780547] 0x000000280000-0x000000290000 : "U-Boot-Env"
[ 0.786182] 0x000000290000-0x000001360000 : "Kernel"
[ 0.791474] 0x000001360000-0x000001390000 : "DTB"
[ 0.796493] 0x000001390000-0x0000032a0000 : "Rootfs"
[ 0.801770] 0x0000032a0000-0x000004000000 : "PFE-Firmware"
[ 0.808872] vcan: Virtual CAN interface driver
[ 0.813387] slcan: serial line CAN interface driver
[ 0.818337] CAN device driver interface
[ 0.823156] flexcan 401b4000.can: device registered (reg_base=(____ptrval____), irq(s):
[ 0.831281] flexcan 401b4000.can: 30
[ 0.834998] flexcan 401b4000.can: 31
[ 0.838710] flexcan 401b4000.can: 32
[ 0.842423] flexcan 401b4000.can: 33
[ 0.846134] flexcan 401b4000.can: )
[ 0.850382] flexcan 401be000.can: device registered (reg_base=(____ptrval____), irq(s):
[ 0.858508] flexcan 401be000.can: 34
[ 0.862226] flexcan 401be000.can: 35
[ 0.865939] flexcan 401be000.can: 36
[ 0.869652] flexcan 401be000.can: 37
[ 0.873363] flexcan 401be000.can: )
[ 0.877055] e100: Intel(R) PRO/100 Network Driver
[ 0.881825] e100: Copyright(c) 1999-2006 Intel Corporation
[ 0.887411] e1000: Intel(R) PRO/1000 Network Driver
[ 0.892356] e1000: Copyright (c) 1999-2006 Intel Corporation.
[ 0.898203] e1000e: Intel(R) PRO/1000 Network Driver
[ 0.903235] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[ 0.909262] igb: Intel(R) Gigabit Ethernet Network Driver
[ 0.914735] igb: Copyright (c) 2007-2014 Intel Corporation.
[ 0.921148] hse-uio 40210000.mu0b: firmware not found
[ 0.926669] usbcore: registered new interface driver uas
[ 0.932087] usbcore: registered new interface driver usb-storage
[ 0.939036] imx_usb 44064000.usb: No over current polarity defined
[ 0.959590] ci_hdrc ci_hdrc.0: EHCI Host Controller
[ 0.964660] ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 1
After loading here, it will stop for about 12 seconds and then reset,Please help me analyze how to solve this problem