GMAC and PFE not working(A53).

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

GMAC and PFE not working(A53).

Jump to solution
10,117 Views
uiv12187
Contributor I

Hi all,

presently i am working s32g2. here as per our board we added ddr values and it is working fine and also here for development activities purpose we are using bsp34. i modified s32g274a-rdb2.dts as per our board and renamed only here i changed gmac and pfe pins but previously we used same configuration in bsp29 but now it is not initiated pfe and gmac for your reference bellow i copied booting messages and also dmesg data also i copied please go through and suggest me how to fix this issue. i am hopefully waiting for your replay. 

NOTICE: Reset status: Power-On Reset
NOTICE: BL2: v2.5(release):bsp34.0.1-2.5-dirty
NOTICE: BL2: Built : 07:11:12, Sep 6 2022
NOTICE: BL2: Booting BL31


U-Boot 2020.04+g6391b468b1 (Sep 12 2022 - 14:11:05 +0000)

CPU: NXP S32G274A rev. 2.0
Model: NXP S32G274A-RDB2
DRAM: 4 GiB
MMC: FSL_SDHC: 0
Loading Environment from MMC... OK
Invalid opmode config on SerDes0
SerDes0 configuration will be ignored as it's invalid
In: serial@401c8000
Out: serial@401c8000
Err: serial@401c8000
Board revision: RDB2/GLDBOX Revision C
Net: EQOS phy: rgmii @ 1

Warning: eth_eqos (eth0) using random MAC address - 1e:4c:6c:cc:32:17
eth0: eth_eqospfe_mac2: Invalid operation mode: rmii (6)
PFE: emac0: sgmii emac1: sgmii emac2: rmii
, eth1: eth_pfeng
Hit any key to stop autoboot: 0
** Invalid partition 2 **
PFE: emac0: sgmii emac1: sgmii emac2: rmii
pfe_mac2: Invalid operation mode: rmii (6)
PFE: emac0: sgmii emac1: sgmii emac2: rmii
31913747 bytes read in 547 ms (55.6 MiB/s)
14032904 bytes read in 247 ms (54.2 MiB/s)
** Invalid partition 2 **
45181 bytes read in 16 ms (2.7 MiB/s)
## Loading init Ramdisk from Legacy Image at 90000000 ...
Image Name: core-image-eea-ramfs-s32g274avtp
Image Type: AArch64 Linux RAMDisk Image (uncompressed)
Data Size: 31913683 Bytes = 30.4 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 83000000
Booting using the fdt blob at 0x83000000
Loading Ramdisk to fc390000, end fe1ff6d3 ... OK
Loading Device Tree to 00000000ffdd4000, end 00000000ffde207c ... OK
Skipping ft_board_setup...
Skipping ft_system_setup ...

Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 5.10.120-rt70+g0b76731696c1 (oe-user@oe-host) (aarch64-fsl-linux-gcc (GCC) 10.2.0, GNU ld (GNU Binutils) 2.35.1) #1 SMP PREEMPT Mon Sep 12 13:23:16 UTC 2022
[ 0.000000] Machine model: NXP S32G274A-RDB2
[ 0.000000] earlycon: linflex0 at MMIO 0x00000000401c8000 (options '115200n8')
[ 0.000000] printk: bootconsole [linflex0] enabled
[ 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] Zone ranges:
[ 0.000000] DMA [mem 0x0000000080000000-0x00000000ffffffff]
[ 0.000000] DMA32 empty
[ 0.000000] Normal [mem 0x0000000100000000-0x00000008ffffffff]
[ 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-0x000000008407ffff]
[ 0.000000] node 0: [mem 0x0000000084080000-0x0000000084ffffff]
[ 0.000000] node 0: [mem 0x0000000085000000-0x0000000085000fff]
[ 0.000000] node 0: [mem 0x0000000085001000-0x00000000bfffffff]
[ 0.000000] node 0: [mem 0x00000000c0000000-0x00000000c07fffff]
[ 0.000000] node 0: [mem 0x00000000c0800000-0x00000000cfffffff]
[ 0.000000] node 0: [mem 0x00000000d0000000-0x00000000d03fffff]
[ 0.000000] node 0: [mem 0x00000000d0400000-0x00000000ffffffff]
[ 0.000000] node 0: [mem 0x0000000880000000-0x00000008ffffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x00000008ffffffff]
[ 0.000000] On node 0 totalpages: 1048576
[ 0.000000] DMA zone: 7168 pages used for memmap
[ 0.000000] DMA zone: 0 pages reserved
[ 0.000000] DMA zone: 524288 pages, LIFO batch:63
[ 0.000000] Normal zone: 7168 pages used for memmap
[ 0.000000] Normal zone: 524288 pages, LIFO batch:63
[ 0.000000] cma: Reserved 256 MiB at 0x00000000ec000000
[ 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.2
[ 0.000000] percpu: Embedded 17 pages/cpu s32152 r8192 d29288 u69632
[ 0.000000] pcpu-alloc: s32152 r8192 d29288 u69632 alloc=17*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[ 0.000000] Detected VIPT I-cache on CPU0
[ 0.000000] CPU features: detected: ARM erratum 845719
[ 0.000000] CPU features: detected: GIC system register CPU interface
[ 0.000000] CPU features: detected: ARM errata 1165522, 1319367, 1530923, or 1530924
[ 0.000000] CPU features: detected: NXP erratum ERR050481 (TLBI handled incorrectly)
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 1034240
[ 0.000000] Kernel command line: root=/dev/ram0 rw earlycon console=ttyLF0,115200 earlyprintk=serial,ttyLF0,115200
[ 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] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] software IO TLB: mapped [mem 0x00000000e8000000-0x00000000ec000000] (64MB)
[ 0.000000] Memory: 3731928K/4194304K available (8766K kernel code, 648K rwdata, 2876K rodata, 1344K init, 248K bss, 200232K reserved, 262144K cma-reserved)
[ 0.000000] rcu: Preemptible hierarchical RCU implementation.
[ 0.000000] rcu: RCU event tracing is enabled.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.
[ 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] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[ 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: Distributor has no Range Selector support
[ 0.000000] GICv3: MBI range [167:182]
[ 0.000000] GICv3: Using MBI frame 0x0000000050800000
[ 0.000000] GICv3: 16 PPIs implemented
[ 0.000000] GICv3: CPU0: found redistributor 0 region 0:0x0000000050880000
[ 0.000000] ITS: No ITS available, not enabling LPIs
[ 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.000006] sched_clock: 56 bits at 5MHz, resolution 200ns, wraps every 4398046511100ns
[ 0.010084] Console: colour dummy device 80x25
[ 0.014352] Calibrating delay loop (skipped), value calculated using timer frequency.. 10.00 BogoMIPS (lpj=20000)
[ 0.024367] pid_max: default: 32768 minimum: 301
[ 0.029655] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[ 0.036787] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[ 0.051459] rcu: Hierarchical SRCU implementation.
[ 0.059144] smp: Bringing up secondary CPUs ...
[ 0.066488] Detected VIPT I-cache on CPU1
[ 0.070296] GICv3: CPU1: found redistributor 1 region 0:0x00000000508a0000
[ 0.077265] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[ 0.086159] Detected VIPT I-cache on CPU2
[ 0.089827] GICv3: CPU2: found redistributor 100 region 0:0x00000000508c0000
[ 0.096873] CPU2: Booted secondary processor 0x0000000100 [0x410fd034]
[ 0.105597] Detected VIPT I-cache on CPU3
[ 0.109196] GICv3: CPU3: found redistributor 101 region 0:0x00000000508e0000
[ 0.116248] CPU3: Booted secondary processor 0x0000000101 [0x410fd034]
[ 0.122982] smp: Brought up 1 node, 4 CPUs
[ 0.126829] SMP: Total of 4 processors activated.
[ 0.131514] CPU features: detected: 32-bit EL0 Support
[ 0.136649] CPU features: detected: CRC32 instructions
[ 0.175470] CPU: All CPU(s) started at EL2
[ 0.179251] alternatives: patching kernel code
[ 0.187676] devtmpfs: initialized
[ 0.213538] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.222987] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[ 0.277925] pinctrl core: initialized pinctrl subsystem
[ 0.286345] NET: Registered protocol family 16
[ 0.294697] DMA: preallocated 512 KiB GFP_KERNEL pool for atomic allocations
[ 0.301598] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[ 0.309453] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[ 0.318822] thermal_sys: Registered thermal governor 'step_wise'
[ 0.321377] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.334014] ASID allocator initialised with 65536 entries
[ 0.339397] Serial: AMBA PL011 UART driver
[ 0.346929] arm-scmi firmware:scmi: SCMI Notifications - Core Enabled.
[ 0.353414] arm-scmi firmware:scmi: No. of Protocol > MAX_PROTOCOLS_IMP
[ 0.359637] arm-scmi firmware:scmi: SCMI Protocol v2.0 'NXP:S32G274A' Firmware version 0x0
[ 0.417888] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[ 0.424223] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
[ 0.430903] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[ 0.437575] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
[ 0.459661] scmi-clocks scmi_dev.1: failed to register clock 87
[ 0.465567] scmi-clocks scmi_dev.1: failed to register clock 88
[ 0.471120] scmi-clocks scmi_dev.1: failed to register clock 89
[ 0.476995] scmi-clocks scmi_dev.1: failed to register clock 90
[ 0.483110] scmi-clocks scmi_dev.1: failed to register clock 95
[ 0.488819] scmi-clocks scmi_dev.1: failed to register clock 96
[ 0.494716] scmi-clocks scmi_dev.1: failed to register clock 97
[ 0.500604] scmi-clocks scmi_dev.1: failed to register clock 98
[ 0.520920] vgaarb: loaded
[ 0.523943] SCSI subsystem initialized
[ 0.528069] usbcore: registered new interface driver usbfs
[ 0.533230] usbcore: registered new interface driver hub
[ 0.538543] usbcore: registered new device driver usb
[ 0.545729] pps_core: LinuxPPS API ver. 1 registered
[ 0.550264] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.559410] PTP clock support registered
[ 0.567010] clocksource: Switched to clocksource arch_sys_counter
[ 0.587752] NET: Registered protocol family 2
[ 0.593417] IP idents hash table entries: 65536 (order: 7, 524288 bytes, linear)
[ 0.603930] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear)
[ 0.612208] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
[ 0.620635] TCP bind hash table entries: 32768 (order: 7, 524288 bytes, linear)
[ 0.634306] TCP: Hash tables configured (established 32768 bind 32768)
[ 0.641522] UDP hash table entries: 2048 (order: 4, 65536 bytes, linear)
[ 0.648030] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes, linear)
[ 0.656123] NET: Registered protocol family 1
[ 0.661803] RPC: Registered named UNIX socket transport module.
[ 0.667453] RPC: Registered udp transport module.
[ 0.672110] RPC: Registered tcp transport module.
[ 0.676795] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.683298] PCI: CLS 0 bytes, default 64
[ 0.688052] Unpacking initramfs...
[ 3.314352] Freeing initrd memory: 31164K
[ 3.323595] hw perfevents: enabled with armv8_pmuv3 PMU driver, 7 counters available
[ 3.337711] workingset: timestamp_bits=62 max_order=20 bucket_order=0
[ 3.347476] fuse: init (API version 7.32)
[ 3.351518] NET: Registered protocol family 38
[ 3.355711] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[ 3.362928] io scheduler mq-deadline registered
[ 3.367431] io scheduler kyber registered
[ 3.379245] s32g-siul2-pinctrl 4009c240.siul2-pinctrl: initialized s32 pinctrl driver
[ 3.390357] gpio-345 (sja1110-rst-phy-t1): hogged as output/low
[ 3.395912] gpio-402 (sja1110-rst-core): hogged as output/low
[ 3.412242] serial: Freescale linflex driver
[ 3.427026] printk: console [ttyLF0] enabled0x401c8000 (irq = 34, base_baud = 7812500) is a FSL_LINFLEX
[ 3.427026] printk: console [ttyLF0] enabled
[ 3.435734] printk: bootconsole [linflex0] disabled
[ 3.435734] printk: bootconsole [linflex0] disabled
[ 3.447418] 401cc000.serial: ttyLF1 at MMIO 0x401cc000 (irq = 35, base_baud = 7812500) is a FSL_LINFLEX
[ 3.458165] 402bc000.serial: ttyLF2 at MMIO 0x402bc000 (irq = 56, base_baud = 7812500) is a FSL_LINFLEX
[ 3.472596] fsl_fccu 4030c000.fccu: FCCU status is 0 (normal)
[ 3.496517] vcan: Virtual CAN interface driver
[ 3.501198] slcan: serial line CAN interface driver
[ 3.506179] slcan: 10 dynamic interface channels.
[ 3.510998] CAN device driver interface
[ 3.518701] flexcan 401b4000.flexcan: device registered (reg_base=(____ptrval____), irq(s):
[ 3.527351] flexcan 401b4000.flexcan: 26
[ 3.531448] flexcan 401b4000.flexcan: 27
[ 3.535539] flexcan 401b4000.flexcan: 28
[ 3.539631] flexcan 401b4000.flexcan: 29
[ 3.543717] flexcan 401b4000.flexcan: )
[ 3.550175] flexcan 401be000.flexcan: device registered (reg_base=(____ptrval____), irq(s):
[ 3.558716] flexcan 401be000.flexcan: 30
[ 3.562810] flexcan 401be000.flexcan: 31
[ 3.566899] flexcan 401be000.flexcan: 32
[ 3.570992] flexcan 401be000.flexcan: 33
[ 3.575078] flexcan 401be000.flexcan: )
[ 3.580269] e100: Intel(R) PRO/100 Network Driver
[ 3.585184] e100: Copyright(c) 1999-2006 Intel Corporation
[ 3.591043] e1000: Intel(R) PRO/1000 Network Driver
[ 3.596028] e1000: Copyright (c) 1999-2006 Intel Corporation.
[ 3.601984] e1000e: Intel(R) PRO/1000 Network Driver
[ 3.607049] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[ 3.613166] igb: Intel(R) Gigabit Ethernet Network Driver
[ 3.618673] igb: Copyright (c) 2007-2014 Intel Corporation.
[ 3.626397] s32cc-dwmac 4033c000.ethernet: IRQ eth_wake_irq not found
[ 3.632975] s32cc-dwmac 4033c000.ethernet: IRQ eth_lpi not found
[ 3.639718] s32cc-dwmac 4033c000.ethernet: no reset control found
[ 3.646413] s32cc-dwmac 4033c000.ethernet: Can't set rx clock
[ 3.652504] s32cc-dwmac: probe of 4033c000.ethernet failed with error -5
[ 3.660018] hse-uio 40211000.mu1b: firmware not found
[ 3.666112] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 3.672790] ehci-pci: EHCI PCI platform driver
[ 3.678714] usbcore: registered new interface driver uas
[ 3.684255] usbcore: registered new interface driver usb-storage
[ 3.696023] s32gen1-rtc 40060000.rtc: registered as rtc0
[ 3.701579] s32gen1-rtc 40060000.rtc: setting system clock to 1970-01-01T00:00:00 UTC (0)
[ 3.710887] i2c /dev entries driver
[ 3.716010] sac58r-wdt 4010c000.watchdog: SAC58R/S32GEN1 Watchdog Timer Registered. timeout=30s (nowayout=0)
[ 3.726637] sac58r-wdt 40200000.watchdog: SAC58R/S32GEN1 Watchdog Timer Registered. timeout=30s (nowayout=0)
[ 3.737105] sac58r-wdt 40204000.watchdog: SAC58R/S32GEN1 Watchdog Timer Registered. timeout=30s (nowayout=0)
[ 3.747586] sac58r-wdt 40208000.watchdog: SAC58R/S32GEN1 Watchdog Timer Registered. timeout=30s (nowayout=0)
[ 3.758336] sdhci: Secure Digital Host Controller Interface driver
[ 3.764641] sdhci: Copyright(c) Pierre Ossman
[ 3.769082] sdhci-pltfm: SDHCI platform and OF driver helper
[ 3.775517] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
[ 3.777393] mmc0: CQHCI version 5.10
[ 3.784020] hse 40210000.mu0b: firmware not found
[ 3.792457] usbcore: registered new interface driver usbhid
[ 3.798182] usbhid: USB HID core driver
[ 3.816746] s32-adc 401f8000.adc: Device initialized successfully.
[ 3.818761] mmc0: SDHCI controller on 402f0000.mmc [402f0000.mmc] using ADMA
[ 3.837680] s32-adc 402e8000.adc: Device initialized successfully.
[ 3.846147] nxp_s32_ddr_perf 403e0000.ddr-perf: probing device
[ 3.853995] nxp_s32_ddr_perf 403e0000.ddr-perf: device initialized successfully
[ 3.862004] s32-siul2-nvmem 4009c000.nvram: initialize s32 siul2 nvmem driver
[ 3.869819] s32-siul2-nvmem 44010000.nvram: initialize s32 siul2 nvmem driver
[ 3.879612] NET: Registered protocol family 10
[ 3.887668] Segment Routing with IPv6
[ 3.891609] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 3.900605] NET: Registered protocol family 17
[ 3.906152] can: controller area network core
[ 3.910887] NET: Registered protocol family 29
[ 3.915437] can: raw protocol
[ 3.915969] mmc0: Command Queue Engine enabled
[ 3.918483] can: broadcast manager protocol
[ 3.923091] mmc0: new DDR MMC card at address 0001
[ 3.927273] can: netlink gateway - max_hops=1
[ 3.935233] mmcblk0: mmc0:0001 S0J56X 14.8 GiB
[ 3.936907] 8021q: 802.1Q VLAN Support v1.8
[ 3.942023] mmcblk0boot0: mmc0:0001 S0J56X partition 1 31.5 MiB
[ 3.942023] mmcblk0boot0: mmc0:0001 S0J56X partition 1 31.5 MiB
[ 3.946341] printk: console [ttyLF0]: printing thread started
[ 3.952351] mmcblk0boot1: mmc0:0001 S0J56X partition 2 31.5 MiB
[ 3.953434] mmcblk0rpmb: mmc0:0001 S0J56X partition 3 4.00 MiB, chardev (243:0)
[ 3.958924] mmcblk0: p1
[ 3.977206] i2c i2c-0: using pinctrl states for GPIO recovery
[ 3.977734] i2c i2c-0: using generic GPIOs for recovery
[ 3.978519] pca953x 0-0022: using AI
[ 3.980048] pca953x 0-0022: failed writing register
[ 3.981504] rtc-pcf85063 0-0051: RTC chip is not present
[ 3.981798] i2c i2c-0: IMX I2C adapter registered
[ 3.982048] i2c i2c-0: using dma0chan4 (tx) and dma0chan5 (rx) for DMA transfers
[ 3.984792] i2c i2c-2: using pinctrl states for GPIO recovery
[ 3.984968] i2c i2c-2: using generic GPIOs for recovery
[ 3.985070] i2c i2c-2: IMX I2C adapter registered
[ 3.985253] i2c i2c-2: using dma1chan18 (tx) and dma1chan19 (rx) for DMA transfers
[ 3.987213] i2c i2c-4: using pinctrl states for GPIO recovery
[ 3.987301] i2c i2c-4: using generic GPIOs for recovery
[ 3.987389] i2c i2c-4: IMX I2C adapter registered
[ 3.987512] i2c i2c-4: using dma1chan20 (tx) and dma1chan21 (rx) for DMA transfers
[ 3.989257] phy-s32gen1-serdes 40480000.serdes: Using mode 3 for SerDes subsystem
[ 4.017193] phy-s32gen1-serdes 40480000.serdes: Unstable RX detected on XPCS1
[ 4.017223] phy-s32gen1-serdes 40480000.serdes: Unstable RX detected on XPCS0
[ 4.018187] phy-s32gen1-serdes 44180000.serdes: Using mode 1 for SerDes subsystem
[ 4.318391] phy-s32gen1-serdes 44180000.serdes: XPCS0 is in reset
[ 4.318420] phy-s32gen1-serdes 44180000.serdes: XPCS init failed
[ 4.319039] s32gen1-pcie 40400000.pcie: Failed to get 'serdes_lane0' PHY
[ 4.319969] s32gen1-pcie 44100000.pcie: Failed to get 'serdes_lane0' PHY
[ 4.321452] imx_usb 44064000.usb: No over current polarity defined
[ 4.334669] ci_hdrc ci_hdrc.0: EHCI Host Controller
[ 4.335283] ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 1
[ 4.651026] ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00
[ 4.651608] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10
[ 4.651629] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
ÿ+HH4.651650] usb usb1: Manufacturer: Linux 5.10.120-rt70+g0b76731696c1 ehci_hcd
[ 4.651659] usb usb1: SerialNumber: ci_hdrc.0
[ 4.653410] hub 1-0:1.0: USB hub found
[ 4.653505] hub 1-0:1.0: 1 port detected
[ 4.698145] Freeing unused kernel memory: 1344K
[ 4.699342] Run /init as init process
s32g274avtpdcu [rc=0]#

 

dmesg

 

[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[ 0.000000] Linux version 5.10.120-rt70+g0b76731696c1 (oe-user@oe-host) (aarch64-fsl-linux-gcc (GCC) 10.2.0, GNU ld (GNU Binutils) 2.35.1) #1 SMP PREEMPT Mon Sep 12 13:23:16 UTC 2022
[ 0.000000] Machine model: NXP S32G274A-RDB2
[ 0.000000] earlycon: linflex0 at MMIO 0x00000000401c8000 (options '115200n8')
[ 0.000000] printk: bootconsole [linflex0] enabled
[ 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] Zone ranges:
[ 0.000000] DMA [mem 0x0000000080000000-0x00000000ffffffff]
[ 0.000000] DMA32 empty
[ 0.000000] Normal [mem 0x0000000100000000-0x00000008ffffffff]
[ 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-0x000000008407ffff]
[ 0.000000] node 0: [mem 0x0000000084080000-0x0000000084ffffff]
[ 0.000000] node 0: [mem 0x0000000085000000-0x0000000085000fff]
[ 0.000000] node 0: [mem 0x0000000085001000-0x00000000bfffffff]
[ 0.000000] node 0: [mem 0x00000000c0000000-0x00000000c07fffff]
[ 0.000000] node 0: [mem 0x00000000c0800000-0x00000000cfffffff]
[ 0.000000] node 0: [mem 0x00000000d0000000-0x00000000d03fffff]
[ 0.000000] node 0: [mem 0x00000000d0400000-0x00000000ffffffff]
[ 0.000000] node 0: [mem 0x0000000880000000-0x00000008ffffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x00000008ffffffff]
[ 0.000000] On node 0 totalpages: 1048576
[ 0.000000] DMA zone: 7168 pages used for memmap
[ 0.000000] DMA zone: 0 pages reserved
[ 0.000000] DMA zone: 524288 pages, LIFO batch:63
[ 0.000000] Normal zone: 7168 pages used for memmap
[ 0.000000] Normal zone: 524288 pages, LIFO batch:63
[ 0.000000] cma: Reserved 256 MiB at 0x00000000ec000000
[ 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.2
[ 0.000000] percpu: Embedded 17 pages/cpu s32152 r8192 d29288 u69632
[ 0.000000] pcpu-alloc: s32152 r8192 d29288 u69632 alloc=17*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[ 0.000000] Detected VIPT I-cache on CPU0
[ 0.000000] CPU features: detected: ARM erratum 845719
[ 0.000000] CPU features: detected: GIC system register CPU interface
[ 0.000000] CPU features: detected: ARM errata 1165522, 1319367, 1530923, or 1530924
[ 0.000000] CPU features: detected: NXP erratum ERR050481 (TLBI handled incorrectly)
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 1034240
[ 0.000000] Kernel command line: root=/dev/ram0 rw earlycon console=ttyLF0,115200 earlyprintk=serial,ttyLF0,115200
[ 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] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] software IO TLB: mapped [mem 0x00000000e8000000-0x00000000ec000000] (64MB)
[ 0.000000] Memory: 3731928K/4194304K available (8766K kernel code, 648K rwdata, 2876K rodata, 1344K init, 248K bss, 200232K reserved, 262144K cma-reserved)
[ 0.000000] rcu: Preemptible hierarchical RCU implementation.
[ 0.000000] rcu: RCU event tracing is enabled.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.
[ 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] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[ 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: Distributor has no Range Selector support
[ 0.000000] GICv3: MBI range [167:182]
[ 0.000000] GICv3: Using MBI frame 0x0000000050800000
[ 0.000000] GICv3: 16 PPIs implemented
[ 0.000000] GICv3: CPU0: found redistributor 0 region 0:0x0000000050880000
[ 0.000000] ITS: No ITS available, not enabling LPIs
[ 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.000006] sched_clock: 56 bits at 5MHz, resolution 200ns, wraps every 4398046511100ns
[ 0.010084] Console: colour dummy device 80x25
[ 0.014352] Calibrating delay loop (skipped), value calculated using timer frequency.. 10.00 BogoMIPS (lpj=20000)
[ 0.024367] pid_max: default: 32768 minimum: 301
[ 0.029655] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[ 0.036787] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[ 0.051459] rcu: Hierarchical SRCU implementation.
[ 0.059144] smp: Bringing up secondary CPUs ...
[ 0.066488] Detected VIPT I-cache on CPU1
[ 0.070296] GICv3: CPU1: found redistributor 1 region 0:0x00000000508a0000
[ 0.077265] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[ 0.086159] Detected VIPT I-cache on CPU2
[ 0.089827] GICv3: CPU2: found redistributor 100 region 0:0x00000000508c0000
[ 0.096873] CPU2: Booted secondary processor 0x0000000100 [0x410fd034]
[ 0.105597] Detected VIPT I-cache on CPU3
[ 0.109196] GICv3: CPU3: found redistributor 101 region 0:0x00000000508e0000
[ 0.116248] CPU3: Booted secondary processor 0x0000000101 [0x410fd034]
[ 0.122982] smp: Brought up 1 node, 4 CPUs
[ 0.126829] SMP: Total of 4 processors activated.
[ 0.131514] CPU features: detected: 32-bit EL0 Support
[ 0.136649] CPU features: detected: CRC32 instructions
[ 0.175470] CPU: All CPU(s) started at EL2
[ 0.179251] alternatives: patching kernel code
[ 0.187676] devtmpfs: initialized
[ 0.213538] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.222987] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[ 0.277925] pinctrl core: initialized pinctrl subsystem
[ 0.286345] NET: Registered protocol family 16
[ 0.294697] DMA: preallocated 512 KiB GFP_KERNEL pool for atomic allocations
[ 0.301598] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[ 0.309453] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[ 0.318822] thermal_sys: Registered thermal governor 'step_wise'
[ 0.321377] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.334014] ASID allocator initialised with 65536 entries
[ 0.339397] Serial: AMBA PL011 UART driver
[ 0.346929] arm-scmi firmware:scmi: SCMI Notifications - Core Enabled.
[ 0.353414] arm-scmi firmware:scmi: No. of Protocol > MAX_PROTOCOLS_IMP
[ 0.359637] arm-scmi firmware:scmi: SCMI Protocol v2.0 'NXP:S32G274A' Firmware version 0x0
[ 0.417888] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[ 0.424223] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
[ 0.430903] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[ 0.437575] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
[ 0.459661] scmi-clocks scmi_dev.1: failed to register clock 87
[ 0.465567] scmi-clocks scmi_dev.1: failed to register clock 88
[ 0.471120] scmi-clocks scmi_dev.1: failed to register clock 89
[ 0.476995] scmi-clocks scmi_dev.1: failed to register clock 90
[ 0.483110] scmi-clocks scmi_dev.1: failed to register clock 95
[ 0.488819] scmi-clocks scmi_dev.1: failed to register clock 96
[ 0.494716] scmi-clocks scmi_dev.1: failed to register clock 97
[ 0.500604] scmi-clocks scmi_dev.1: failed to register clock 98
[ 0.520920] vgaarb: loaded
[ 0.523943] SCSI subsystem initialized
[ 0.528069] usbcore: registered new interface driver usbfs
[ 0.533230] usbcore: registered new interface driver hub
[ 0.538543] usbcore: registered new device driver usb
[ 0.545729] pps_core: LinuxPPS API ver. 1 registered
[ 0.550264] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.559410] PTP clock support registered
[ 0.567010] clocksource: Switched to clocksource arch_sys_counter
[ 0.587752] NET: Registered protocol family 2
[ 0.593417] IP idents hash table entries: 65536 (order: 7, 524288 bytes, linear)
[ 0.603930] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear)
[ 0.612208] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
[ 0.620635] TCP bind hash table entries: 32768 (order: 7, 524288 bytes, linear)
[ 0.634306] TCP: Hash tables configured (established 32768 bind 32768)
[ 0.641522] UDP hash table entries: 2048 (order: 4, 65536 bytes, linear)
[ 0.648030] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes, linear)
[ 0.656123] NET: Registered protocol family 1
[ 0.661803] RPC: Registered named UNIX socket transport module.
[ 0.667453] RPC: Registered udp transport module.
[ 0.672110] RPC: Registered tcp transport module.
[ 0.676795] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.683298] PCI: CLS 0 bytes, default 64
[ 0.688052] Unpacking initramfs...
[ 3.314352] Freeing initrd memory: 31164K
[ 3.323595] hw perfevents: enabled with armv8_pmuv3 PMU driver, 7 counters available
[ 3.337711] workingset: timestamp_bits=62 max_order=20 bucket_order=0
[ 3.347476] fuse: init (API version 7.32)
[ 3.351518] NET: Registered protocol family 38
[ 3.355711] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[ 3.362928] io scheduler mq-deadline registered
[ 3.367431] io scheduler kyber registered
[ 3.379245] s32g-siul2-pinctrl 4009c240.siul2-pinctrl: initialized s32 pinctrl driver
[ 3.390357] gpio-345 (sja1110-rst-phy-t1): hogged as output/low
[ 3.395912] gpio-402 (sja1110-rst-core): hogged as output/low
[ 3.412242] serial: Freescale linflex driver
[ 3.417308] 401c8000.serial: ttyLF0 at MMIO 0x401c8000 (irq = 34, base_baud = 7812500) is a FSL_LINFLEX
[ 3.427026] printk: console [ttyLF0] enabled
[ 3.435734] printk: bootconsole [linflex0] disabled
[ 3.447418] 401cc000.serial: ttyLF1 at MMIO 0x401cc000 (irq = 35, base_baud = 7812500) is a FSL_LINFLEX
[ 3.458165] 402bc000.serial: ttyLF2 at MMIO 0x402bc000 (irq = 56, base_baud = 7812500) is a FSL_LINFLEX
[ 3.472596] fsl_fccu 4030c000.fccu: FCCU status is 0 (normal)
[ 3.496517] vcan: Virtual CAN interface driver
[ 3.501198] slcan: serial line CAN interface driver
[ 3.506179] slcan: 10 dynamic interface channels.
[ 3.510998] CAN device driver interface
[ 3.518701] flexcan 401b4000.flexcan: device registered (reg_base=(____ptrval____), irq(s):
[ 3.527351] flexcan 401b4000.flexcan: 26
[ 3.531448] flexcan 401b4000.flexcan: 27
[ 3.535539] flexcan 401b4000.flexcan: 28
[ 3.539631] flexcan 401b4000.flexcan: 29
[ 3.543717] flexcan 401b4000.flexcan: )
[ 3.550175] flexcan 401be000.flexcan: device registered (reg_base=(____ptrval____), irq(s):
[ 3.558716] flexcan 401be000.flexcan: 30
[ 3.562810] flexcan 401be000.flexcan: 31
[ 3.566899] flexcan 401be000.flexcan: 32
[ 3.570992] flexcan 401be000.flexcan: 33
[ 3.575078] flexcan 401be000.flexcan: )
[ 3.580269] e100: Intel(R) PRO/100 Network Driver
[ 3.585184] e100: Copyright(c) 1999-2006 Intel Corporation
[ 3.591043] e1000: Intel(R) PRO/1000 Network Driver
[ 3.596028] e1000: Copyright (c) 1999-2006 Intel Corporation.
[ 3.601984] e1000e: Intel(R) PRO/1000 Network Driver
[ 3.607049] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[ 3.613166] igb: Intel(R) Gigabit Ethernet Network Driver
[ 3.618673] igb: Copyright (c) 2007-2014 Intel Corporation.
[ 3.626397] s32cc-dwmac 4033c000.ethernet: IRQ eth_wake_irq not found
[ 3.632975] s32cc-dwmac 4033c000.ethernet: IRQ eth_lpi not found
[ 3.639718] s32cc-dwmac 4033c000.ethernet: no reset control found
[ 3.646413] s32cc-dwmac 4033c000.ethernet: Can't set rx clock
[ 3.652504] s32cc-dwmac: probe of 4033c000.ethernet failed with error -5
[ 3.660018] hse-uio 40211000.mu1b: firmware not found
[ 3.666112] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 3.672790] ehci-pci: EHCI PCI platform driver
[ 3.678714] usbcore: registered new interface driver uas
[ 3.684255] usbcore: registered new interface driver usb-storage
[ 3.696023] s32gen1-rtc 40060000.rtc: registered as rtc0
[ 3.701579] s32gen1-rtc 40060000.rtc: setting system clock to 1970-01-01T00:00:00 UTC (0)
[ 3.710887] i2c /dev entries driver
[ 3.716010] sac58r-wdt 4010c000.watchdog: SAC58R/S32GEN1 Watchdog Timer Registered. timeout=30s (nowayout=0)
[ 3.726637] sac58r-wdt 40200000.watchdog: SAC58R/S32GEN1 Watchdog Timer Registered. timeout=30s (nowayout=0)
[ 3.737105] sac58r-wdt 40204000.watchdog: SAC58R/S32GEN1 Watchdog Timer Registered. timeout=30s (nowayout=0)
[ 3.747586] sac58r-wdt 40208000.watchdog: SAC58R/S32GEN1 Watchdog Timer Registered. timeout=30s (nowayout=0)
[ 3.758336] sdhci: Secure Digital Host Controller Interface driver
[ 3.764641] sdhci: Copyright(c) Pierre Ossman
[ 3.769082] sdhci-pltfm: SDHCI platform and OF driver helper
[ 3.775517] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
[ 3.777393] mmc0: CQHCI version 5.10
[ 3.784020] hse 40210000.mu0b: firmware not found
[ 3.792457] usbcore: registered new interface driver usbhid
[ 3.798182] usbhid: USB HID core driver
[ 3.816746] s32-adc 401f8000.adc: Device initialized successfully.
[ 3.818761] mmc0: SDHCI controller on 402f0000.mmc [402f0000.mmc] using ADMA
[ 3.837680] s32-adc 402e8000.adc: Device initialized successfully.
[ 3.846147] nxp_s32_ddr_perf 403e0000.ddr-perf: probing device
[ 3.853995] nxp_s32_ddr_perf 403e0000.ddr-perf: device initialized successfully
[ 3.862004] s32-siul2-nvmem 4009c000.nvram: initialize s32 siul2 nvmem driver
[ 3.869819] s32-siul2-nvmem 44010000.nvram: initialize s32 siul2 nvmem driver
[ 3.879612] NET: Registered protocol family 10
[ 3.887668] Segment Routing with IPv6
[ 3.891609] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 3.900605] NET: Registered protocol family 17
[ 3.906152] can: controller area network core
[ 3.910887] NET: Registered protocol family 29
[ 3.915437] can: raw protocol
[ 3.915969] mmc0: Command Queue Engine enabled
[ 3.918483] can: broadcast manager protocol
[ 3.923091] mmc0: new DDR MMC card at address 0001
[ 3.927273] can: netlink gateway - max_hops=1
[ 3.935233] mmcblk0: mmc0:0001 S0J56X 14.8 GiB
[ 3.936907] 8021q: 802.1Q VLAN Support v1.8
[ 3.942023] mmcblk0boot0: mmc0:0001 S0J56X partition 1 31.5 MiB
[ 3.946341] printk: console [ttyLF0]: printing thread started
[ 3.952351] mmcblk0boot1: mmc0:0001 S0J56X partition 2 31.5 MiB
[ 3.953434] mmcblk0rpmb: mmc0:0001 S0J56X partition 3 4.00 MiB, chardev (243:0)
[ 3.958924] mmcblk0: p1
[ 3.977206] i2c i2c-0: using pinctrl states for GPIO recovery
[ 3.977734] i2c i2c-0: using generic GPIOs for recovery
[ 3.978519] pca953x 0-0022: using AI
[ 3.980048] pca953x 0-0022: failed writing register
[ 3.981504] rtc-pcf85063 0-0051: RTC chip is not present
[ 3.981798] i2c i2c-0: IMX I2C adapter registered
[ 3.982048] i2c i2c-0: using dma0chan4 (tx) and dma0chan5 (rx) for DMA transfers
[ 3.984792] i2c i2c-2: using pinctrl states for GPIO recovery
[ 3.984968] i2c i2c-2: using generic GPIOs for recovery
[ 3.985070] i2c i2c-2: IMX I2C adapter registered
[ 3.985253] i2c i2c-2: using dma1chan18 (tx) and dma1chan19 (rx) for DMA transfers
[ 3.987213] i2c i2c-4: using pinctrl states for GPIO recovery
[ 3.987301] i2c i2c-4: using generic GPIOs for recovery
[ 3.987389] i2c i2c-4: IMX I2C adapter registered
[ 3.987512] i2c i2c-4: using dma1chan20 (tx) and dma1chan21 (rx) for DMA transfers
[ 3.989257] phy-s32gen1-serdes 40480000.serdes: Using mode 3 for SerDes subsystem
[ 4.017193] phy-s32gen1-serdes 40480000.serdes: Unstable RX detected on XPCS1
[ 4.017223] phy-s32gen1-serdes 40480000.serdes: Unstable RX detected on XPCS0
[ 4.018187] phy-s32gen1-serdes 44180000.serdes: Using mode 1 for SerDes subsystem
[ 4.318391] phy-s32gen1-serdes 44180000.serdes: XPCS0 is in reset
[ 4.318420] phy-s32gen1-serdes 44180000.serdes: XPCS init failed
[ 4.319039] s32gen1-pcie 40400000.pcie: Failed to get 'serdes_lane0' PHY
[ 4.319969] s32gen1-pcie 44100000.pcie: Failed to get 'serdes_lane0' PHY
[ 4.321452] imx_usb 44064000.usb: No over current polarity defined
[ 4.334669] ci_hdrc ci_hdrc.0: EHCI Host Controller
[ 4.335283] ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 1
[ 4.651026] ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00
[ 4.651608] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10
[ 4.651629] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 4.651640] usb usb1: Product: EHCI Host Controller
[ 4.651650] usb usb1: Manufacturer: Linux 5.10.120-rt70+g0b76731696c1 ehci_hcd
[ 4.651659] usb usb1: SerialNumber: ci_hdrc.0
[ 4.653410] hub 1-0:1.0: USB hub found
[ 4.653505] hub 1-0:1.0: 1 port detected
[ 4.698145] Freeing unused kernel memory: 1344K
[ 4.699342] Run /init as init process
[ 4.699364] with arguments:
[ 4.699370] /init
[ 4.699376] with environment:
[ 4.699382] HOME=/
[ 4.699386] TERM=linux
[ 4.699391] earlyprintk=serial,ttyLF0,115200
[ 265.096957] random: crng init done
s32g274avtpdcu [rc=0]#

 

Regards,

Raghavendra

0 Kudos
1 Solution
6,125 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

For controlling GPIOs under Linux, there is chapter provided under the BSP34.0 User Manual [Page 102] which describes how you can handle GPIOs under Linux user-space:

DanielAguirre_0-1694800420511.png

If this is not enough, help us opening a different thread for the newest request, since we seem to be going off topic. We do apologize.

Please, let us know.

View solution in original post

0 Kudos
71 Replies
6,322 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

How do you know that it is not working? Have you tried to ping the board or look into the available communication devices? BSP29 and BSP34 have many differences, for which the same steps done under BSP29 could not be valid under BSP34.

We have looked into BSP34 and, without the need of modifying the DTB, we can ping the board.

There is an "Ethernet Enablement Guide" provided for the RDB2 platform (which seems that you are using), which tells on how to use the different ethernet ports available to it. This can be accessed inside the RDB2 product page (link: S32G2 Vehicle Networking Reference Design | NXP Semiconductors)

Please, let us know.

0 Kudos
6,228 Views
uiv12187
Contributor I

Hi Daniel-Aguirre,

thank you for your input. bellow i explaining what i want to do please go through and guide me.

we have customised s32g board in this board we want to changed pin configuration of gmac & pfe and also we want to add reset pins as per our board 

bellow i mentioned what are the pins we want to change:-

1)gmac & pfe pins .(can you please help me if we want to change in configuration where we want to change)

2)reset pins we want to add (please help me where we want to add pfe and gmac reset pins)

 

presently i am using existing bsp34 here i am configured rdb2 but still i am facing to set mac address it is taking mac address from ROM bellow i added boot screen shot for your reference please help me on this.

=> reset
resetting ..þNOTICE: Reset status: Destructive Reset (RUN)
NOTICE: BL2: v2.5(release):bsp34.0.1-2.5-dirty
NOTICE: BL2: Built : 07:11:12, Sep 6 2022
NOTICE: BL2: Booting BL31


U-Boot 2020.04+g6391b468b1 (Sep 12 2022 - 14:11:05 +0000)

CPU: NXP S32G274A rev. 2.0
Model: NXP S32G274A-RDB2
DRAM: 4 GiB
MMC: FSL_SDHC: 0
Loading Environment from MMC... OK
Configuring PCIe0 as RootComplex
Setting PCI Device and Vendor IDs to 0x4002:0x1957
PCIe0: Failed to get link up
Pcie0: LINK_DBG_1: 0x00000000, LINK_DBG_2: 0x00000800 (expected 0x000000d1)
DEBUG_R0: 0x00202800, DEBUG_R1: 0x08200000
PCI: Failed autoconfig bar 20
PCI: Failed autoconfig bar 24
In: serial@401c8000
Out: serial@401c8000
Err: serial@401c8000
Board revision: RDB2/GLDBOX Revision C
Net: EQOS phy: rgmii @ 1

Warning: eth_eqos (eth0) using random MAC address - 76:7f:4a:55:5c:aa
eth0: eth_eqosFailed to set the frequency of mac2_rx_rgmii
Failed to enable mac2_rx_rgmii clock
PFE: emac0: sgmii emac1: sgmii emac2: rgmii
, eth1: eth_pfeng
=>

only i changed gmac and pfe pins in dts file and as per our board but it struck in u-boot command prompt how to resolve this issue can you please help me on this.

our main goal is to make work gmac and pfe in our custom board. 

 

Regards,

Raghavendra 

 

0 Kudos
6,214 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

Thanks for your feedback.

For both points, it seems that "s32gxxxa-rdb.dtsi" file should be the one you want to modify.

In there, we are seeing that the pin configuration is being done for the pins on both GMAC and PFE interfaces.

Also, in this file, another configuration is done, in which the SJA1110 reset pins are declared. You could follow the same scheme for the pins that you are in need of.

Please, let us know.

0 Kudos
6,141 Views
uiv12187
Contributor I

Hi,

As per your guidance i did modification in dts file but after flashing image on target board booting struck in boot prompt if i use run bootcmd/ bootd command also not working. bellow i added boot flow for your reference.

resetting ..þNOTICE: Reset status: Destructive Reset (RUN)
NOTICE: BL2: v2.5(release):bsp34.0.1-2.5-dirty
NOTICE: BL2: Built : 07:11:12, Sep 6 2022
NOTICE: BL2: Booting BL31


U-Boot 2020.04+g6391b468b1 (Sep 12 2022 - 14:11:05 +0000)

CPU: NXP S32G274A rev. 2.0
Model: NXP S32G274A-RDB2
DRAM: 4 GiB
MMC: FSL_SDHC: 0
Loading Environment from MMC... OK
Configuring PCIe0 as RootComplex
Setting PCI Device and Vendor IDs to 0x4002:0x1957
PCIe0: Failed to get link up
Pcie0: LINK_DBG_1: 0x00000000, LINK_DBG_2: 0x00000800 (expected 0x000000d1)
DEBUG_R0: 0x00202800, DEBUG_R1: 0x08200000
PCI: Failed autoconfig bar 20
PCI: Failed autoconfig bar 24
In: serial@401c8000
Out: serial@401c8000
Err: serial@401c8000
Board revision: RDB2/GLDBOX Revision C
Net: EQOS phy: rgmii @ 1

Warning: eth_eqos (eth0) using random MAC address - 76:7f:4a:55:5c:aa
eth0: eth_eqosFailed to set the frequency of mac2_rx_rgmii
Failed to enable mac2_rx_rgmii clock
PFE: emac0: sgmii emac1: sgmii emac2: rgmii
, eth1: eth_pfeng
=>

 

Regards,

Raghavendra

 

0 Kudos
6,123 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

Thanks for your feedback.

It seems that we might need to verify the configuration you are doing under the DTS files.

Help us opening a ticket under the NXP online services, for our team to provide you with a private channel where you can share the required files with them.

Please, let us know.

0 Kudos
6,306 Views
uiv12187
Contributor I

Hi Daniel Aguirre,

Thank you for immediate response but still it is not working. presently we are customising bsp34 as per our board GMAC and PFE pins are different not same as s32g274a-rdb2. because of that i changed GMAC and PFE pins value in s32g274a-rdb2.dts it it correct please guide if i am wrong and also i am trying to add reset pins but i am not finding early_init_r function i think because of arm trusted firmware lot of files are renamed i think can you please guide me where i can add reset pins(ethernet and pfe reset pins) 

 

Regards,

Raghavendra     

0 Kudos
6,266 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

 Hi,

Thanks for your feedback. Under BSP34 User Manual, we are not seeing that "s32g274a-rdb2.dts" is referenced under the related Ethernet Chapter. The files being referenced are the following:

DanielAguirre_0-1684175347762.png

 

What are the modifications you are implementing? If you require a private channel for this request, help us opening a ticket inside the NXP online services.

Please, let us know.

0 Kudos
5,982 Views
uiv12187
Contributor I

Hi Daniel,

thank you for support. as per your suggestions i tried to enable gmac and pfe but i am not able to enable. now  i customised bsp34 as per our board and also i created my own dts file and config file(custom_config, custom_qspi_config) in that file i want to know how to add default dts file(CONFIG_DEFAULT_DEVICE_TREE="fsl-s32g274a-custom.dts) in custom_config file. i added but i am getting error can you tell me which file i want to modify if i want to add my own default dts file. and also i tried to add  CONFIG_ARCH_EARLY_INIT_R=y, CONFIG_BOARD_EARLY_INIT_F=y, CONFIG_BOARD_EARLY_INIT_R=y in my custom_config file but that is also troughing error can you please tell me what are the changes i want to do and in which file i want to modify to add this parameter and dts. after this i want to enable gmac and pfe1. hopefully i am waiting for your replay.

Regards,

Raghavendra

 

0 Kudos
5,893 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

Since this is a custom build, we recommend opening a ticket under the NXP online services, since in there you should be able to provide the files you are modifying, for our team to confirm the behavior you are seeing.

As for the questions of "i want to know how to add default dts file", we may not understand it correctly. There is a makefile under the "linux/arch/arm64/boot/dts/freescale" path which provides the different dts files to be used. Is this what you are looking for?

Please, let us know.

0 Kudos
5,741 Views
uiv12187
Contributor I

Hello Daniel-Aguirre,

now Gmac is working fine but pfe is not working bellow for your reference i added boot log file please go through once. and also please help me to enable pfe. bellow i mentioned what are the steps i did

1) mdio pins configured in dts.

2) phy configured in dts(pfe0->DP83TG720)

4.pfe 1.4.0 firmware (.fw) i am using for bsp34.

5. pfe enabled and firmware path provided in distro file 

 

can you please help me on this i am not getting what is the pfe issue.

0 Kudos
5,724 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

Thanks for the information.

We understand that the PFE interfaces are up, since we are seeing the following messages:

fixup: pfe0 set to 00:01:ca:ca:ef:11
   fixup: pfe0: Update fixed-link speed to 1000Mbps
   fixup: pfe1 set to 00:01:ca:ca:ef:22
   fixup: pfe1: update phy addr to 0x3
   fixup: pfe2 set to 00:01:ca:ca:ef:33

But we are also seeing the following message:

Invalid opmode config on SerDes0
SerDes0 configuration will be ignored as it's invalid

 Can you share with us the output of the following command:

DanielAguirre_0-1688669678485.png

Also, are you seeing the "s32g_pfe_class.fw" file inside the boot partition of the SD card?

Please, let us know.

0 Kudos
5,666 Views
uiv12187
Contributor I

Hi,

Thank you so much for the response.

1) hardware config :-

hwconfig=pcie0:mode=rc,clock=int;pcie1:mode=sgmii,clock=int,fmhz=125,xpcs_mode=both

2) yes i am seeing the s32g_pfe_class.fw in file in mmc partition.

 

Regards,

Raghavendra

 

0 Kudos
5,653 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

Thanks for the feedback.

We are seeing that you are using the internal reference clock, we have the following information from the internal team:

"With clk=int, the SERDES_REF_CLK drives the block. This comes form PERIPH_PLL_PHI0_CLK which is set by u-boot to be 100MHz. The 2 SerDes blocks are the only thing connected to PERIPH_PLL_PHI0_CLK...

...If using the internal clock make sure fmhz is set to 100..."

Please, let us know.

0 Kudos
5,626 Views
uiv12187
Contributor I

Hi

thank you for immediate response.

as per your previous message i modified frequency and tried but still same issue.

:-setenv hwconfig "pcie0:mode=rc,clock=int;pcie1:mode=sgmii,clock=int,fmhz=100,xpcs_mode=both"

and one more think when i added reset pins in kernel dts eth0 is only working but pfe0,1,2 not working for your reference bellow i added reset conf and also pfe configurations i am sharing bellow please check and guide me

reset in dts:-

&gpio {
DP83TG720_RESET {
gpio-hog;
gpios = <112 GPIO_ACTIVE_LOW>;
output-low;
line-name = "DP83TG720_RESET";
};

TJA1103_RESET {
gpio-hog;
gpios = <113 GPIO_ACTIVE_LOW>;
output-low;
line-name = "JA1103_RESET";
};

88Q5040_RESET {
gpio-hog;
gpios = <114 GPIO_ACTIVE_LOW>;
output-low;
line-name = "88Q5040_RESET";
};

88EA1512_RESET {
gpio-hog;
gpios = <20 GPIO_ACTIVE_LOW>;
output-low;
line-name = "88EA1512_RESET";
};
};

 

pfe in dts:-

&pfe {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&pfe0mdiob_pins>,
<&pfe1mdiob_pins>,
<&pfe2mdiob_pins>,
<&pfe2rgmiib_pins>;
};

&pfe_mdio0 {
pinctrl-names = "default";
pinctrl-0 = <&pfe0mdiob_pins>;
status = "okay";
/* DP83TG720 */
pdcu_mdio_pfe0_b_phy: ethernet-phy@4 {
#address-cells = <1>;
#size-cells = <0>;
device_type = "ethernet-phy";
phy-connection-type = "sgmii";
reg = <4>;
};
};

&pfe_mdio1 {
pinctrl-names = "default";
pinctrl-0 = <&pfe1mdiob_pins>;
status = "okay";
/*88EA1512*/
pdcu_mdio_pfe1_b_phy: ethernet-phy@9 {
#address-cells = <1>;
#size-cells = <0>;
device_type = "ethernet-phy";
phy-connection-type = "sgmii";
marvell,reg-init=<0x12 0x14 0 0x8001>;

reg = <9>;
};
};

&pfe_mdio2 {
pinctrl-names = "default";
pinctrl-0 = <&pfe2mdiob_pins>;
status = "okay";
/* TJA1103 */
pdcu_mdio_pfe2_b_phy: ethernet-phy@1 {
#address-cells = <1>;
#size-cells = <0>;
phy-connection-type = "rgmii";
reg = <1>;
};
};

&pfe_netif0 {
status = "okay";
phy-mode = "sgmii";
phy-handle = <&pdcu_mdio_pfe0_b_phy>;
fixed-link {
speed = <1000>;
full-duplex;
};
};

&pfe_netif1 {
status = "okay";
phy-mode = "sgmii";
phy-handle = <&pdcu_mdio_pfe1_b_phy>;
};

&pfe_netif2 {
status = "okay";
phy-mode = "rgmii-id";
phy-handle = <&pdcu_mdio_pfe2_b_phy>;
};

 

Regards,

Raghavendra

0 Kudos
5,610 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

Thanks for the information.

We are also seeing that under your bootlog you receive the following logs:

DanielAguirre_1-1689197078567.png

Are you setting the "pfeng_mode" variable to your requirements? Also, we are seeing an eth1 interface, which we do not have from our side.

DanielAguirre_0-1689197013501.png

Can you ping anything from u-boot? Or is this only true under Linux?

We are able to set the internal reference clock and see no problem from our side:

DanielAguirre_3-1689198252177.png

Since this is from a custom board, we might not be able to reproduce it from this channel. If urgency is required, help us contacting your local NXP FAE, for them to be able to provide a local debugging session, to understand where the issue might be. We do apologize.

Please, let us know.

0 Kudos
5,493 Views
uiv12187
Contributor I

Hello,

Thank you for the support.

can you please help us contacting local NXP FAE, to schedule a local debugging session, to understand where the issue might be. bellow i mentioned my mail id for contacting local NXP FAE. 

mail ID:rbhovi4333@gmail.com

Regards,

Raghavendra

0 Kudos
5,429 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

If you do not know who your local NXP FAE is, you should be able to contact an NXP representative for them to channel you to the correct contact point:

Distributor Network | NXP Semiconductors

Please, let us know.

0 Kudos
5,388 Views
uiv12187
Contributor I

Hi,

I found the issue for your reference i mentioned bellow please let me how to resolve this issue.

boot: -

XPCS0 is in reset
XPCS init failed
Failed to get 'emac0_xpcs' PHY
Failed to initialize PFE XPCS phys

 

Regards,

Raghavendra

 

0 Kudos
5,359 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

Thanks for your feedback. The following test case is provided from the internal team, care should be taken since this is explained using BSP32:

"Here is my test process

1) Modification in U-boot: Disable PFE&PCI device via U-boot menuconfig to ensure that U-boot does not configure PFE and SerDes

DanielAguirre_0-1690496602426.jpeg

2) Modification in Linux:

pfe_mac0 dts: arch/arm64/boot/dts/freescale/fsl-s32gxxxa-rdb.dtsi

&pfe_logif0 {
    fixed-link {
        speed = <1000>;
        full-duplex;
    };
};

xpcs_init: drivers/net/pcs/fsl-s32gen1-xpcs.c

add "rate = MHZ(100); ext_clk = false;" into xpcs_init to make sure xpcs works internal clk 100Mhz

static int xpcs_init(struct s32gen1_xpcs **xpcs, struct device *dev,
             unsigned char id, void __iomem *base, bool ext_clk,
             unsigned long rate, bool pcie_shared)
{
    struct s32gen1_xpcs *xpcsp;
    struct regmap_config conf;
    int ret;

    rate = MHZ(100);
    ext_clk = false;

    if (rate != MHZ(125) && rate != MHZ(100)) {
        dev_err(dev, "XPCS cannot operate @%lu HZ\n", rate);
        return -EINVAL;
    }

Verify process

1) Enter U-boot, verify serdes ref clk has been enabled

DanielAguirre_1-1690496602260.jpeg

2) Serdes1 works in mode1(the default setting for Serdes1 in Linux is mode1),emac0 clk is enabled correctly

DanielAguirre_2-1690496602475.jpeg

DanielAguirre_3-1690496602305.jpeg

3) PFE0 works well after enter kernel

DanielAguirre_4-1690496602195.jpeg

Suggestion:

I do not observe there is exception related to PFE&SerDes Linux driver based on BSP32 with RDB2.
So my suggestion would be ask customer check ATF clock configuration for SerDes.

"

Again, the above information is provided under BSP32. The file "drivers/net/pcs/fsl-s32gen1-xpcs.c" is still located under the same path but renamed to "nxp-s32cc-xpcs.c" under BSP34.

Please, let us know.

5,324 Views
uiv12187
Contributor I

Hi Daniel-Aguirre,

Thank you so much for very good support and guidance.

As per your previous guidance i followed all steps and i changed in kernel and u-boot configuration after that i flashed image to my target board but i am facing different error bellow i copied error please help me to fix this issue.

this error is happening in u-boot prompt.

eth0: eth_eqosFailed to get SerDes subsystem mode
Failed to get 'emac0_xpcs' PHY
Failed to initialize PFE XPCS phys

Hit any key to stop autoboot: 0
=>

Regards,

Raghavendra

 

0 Kudos