Dear NXP,
at the moment I am working on the S32G274a-evb. I am trying to get the PFE running under QNX Neutrino 7.1.0
I followed the steps like your manual "PFE_S32G_A53_QNX_IntegrationManual.pdf" shown. But unfortunately it is still not working. The console shows that ifconfig returned the value 1, because there is no device pfe0. I do not know how to proceed, it would be great if you could help me with that problem.Unfortunately I cannot add the manual as pdf in the attachment because it has a size of 27MB.
Thank you and best regards
Console:
U-Boot 2020.04 (Nov 30 2022 - 13:44:32 +0100)
CPU: NXP S32G274A rev. 2.1.0
Reset cause: Power-On Reset
Model: NXP S32G2XX
Board: NXP S32G274A-EVB
DRAM: 3.5 GiB
CA53 core 1 running.
CA53 core 2 running.
CA53 core 3 running.
All (4) cores are up.
MMC: FSL_SDHC: 0
Loading Environment from FAT... *** Warning - bad CRC, using default environment
Using external clock for PCIe0, CRNS
Configuring PCIe0 as RootComplex(x2)
Using external clock for PCIe1, CRNS
Frequency 125Mhz configured for PCIe1
Configuring PCIe1 as SGMII [XPCS0 1G, XPCS1 OFF(PCIex1)]
PCIe0: Link up! X2, Gen3
Device 'pcie@44100000': seq 1 is in use by 'pci_0:0.0'
PCIe1: Not configuring PCIe, PHY not configured
BusDevFun VendorId DeviceId Device Class Sub-Class
______________________________________________________________________
pcie@40400000 RootComplex
`-- 00:00.00 0x1957 0x4002 Bridge device 0x04
`-- 01:00.00 0x144d 0xa80a Mass storage controller 0x08
In: serial
Out: serial
Err: serial
Net: EQOS phy: rgmii @ 4
Warning: eth_eqos (eth0) using random MAC address - 2a:00:32:dc:50:ad
eth0: eth_eqosFailed to change the clock source of mux 6 to 55 (CGM = 0000000044018000)
Failed to enable clock: 20005
Failed to enable 94 clock
Failed to enable mac2_rx_rgmii clock
PFE: emac0: none emac1: rgmii emac2: rgmii
Structure length mismatch: found 0 required 176
Warning: eth_pfeng using MAC address from ROM
, eth1: eth_pfeng
=> setenv boot_qnx_atf 'mmc dev 0; fatload mmc 0:1 0x83e00000 fsl-s32g274a-evb.dtb; run
> atf_fdt_0to3; run release_cpus; fatload mmc 0:1 0x80080000 ifs-s32g274a-evb.ui; pfeng
> enable; s32ccgmac disable; bootm 0x80080000 - 0x83E00000'
=> setenv atf_fdt_0to3 'fdt addr 0x83e00000; fdt resize; fdt set /cpus/cpu@1 cpu-releaseaddr <0x0 0xa0000010>; fdt set /cpus/cpu@100 cpu-release-addr <0x0 0xa0000010>; fdt
> set /cpus/cpu@101 cpu-release-addr <0x0 0xa0000010>;'
=> setenv release_cpus 'run cpu_trap; mp 1 release 0xa0000000; mp 2 release 0xa0000000; mp
> 3 release 0xa0000000;'
=> setenv cpu_trap 'dcache off; mw.l 0xa0000000 0xd503205f; mw.l 0xa0000004 0x58000060;
> mw.l 0xa0000008 0xb4ffffc0; mw.l 0xa000000C 0xd61f0000; mw.q 0xa0000010 0x00000000;
> dcache on;'
=> setenv bootcmd 'run boot_qnx_atf'
=> setenv hwconfig "pcie0:mode=rc,clock=ext;pcie1:mode=sgmii,clock=ext,fmhz=125,xpcs_mode=0"
=> setenv pfeng_mode 'enable,sgmii,rgmii,rgmii'
=> setenv s32cc_gmac_mode disable
=> setenv s32cc_gmac_mode disable
=> saveenv
Saving Environment to FAT... OK
=> boot
switch to partitions #0, OK
mmc0 is current device
42280 bytes read in 15 ms (2.7 MiB/s)
run - run commands in an environment variable
Usage:
run var [...]
- run the commands in the environment variable(s) 'var'
Unknown command 'atf_fdt_0to3' - try 'help'
Unknown command 'mp' - try 'help'
Unknown command 'mp' - try 'help'
Unknown command 'mp' - try 'help'
Unknown command '3' - try 'help'
9216208 bytes read in 410 ms (21.4 MiB/s)
pfeng - PFE controller info
Usage:
pfeng info - important hw info
pfeng [disable|enable] - disable/enable full PFE/EMACs subsystem
pfeng stop - stop the driver but don't disable PFE/EMACs
pfeng emacs [<inf0-mode>,<intf1-mode>,<intf2-mode>] - read or set EMAC0-2 interface mode
pfeng emacs reapply-clocks - reapply clock setting for all EMACs
pfeng reg <offset> - read register
Unknown command 'enable' - try 'help'
## Booting kernel from Legacy Image at 80080000 ...
Image Name:
Image Type: AArch64 Linux Kernel Image (uncompressed)
Data Size: 9216144 Bytes = 8.8 MiB
Load Address: 80080000
Entry Point: 80080000
Verifying Checksum ... OK
## Flattened Device Tree blob at 83e00000
Booting using the fdt blob at 0x83e00000
Loading Kernel Image
Loading Device Tree to 000000009fff2000, end 000000009ffff527 ... OK
Reserved memory region for spin-table: addr=fff1bbe8 size=18
DT: Enabling PFE
DT: Disabling PFE_EMAC_0
DT: Enabling PFE_EMAC_1
DT: pfe1 set to 00:01:be:be:ef:22
DT: Enabling PFE_EMAC_2
DT: pfe2 set to 00:01:be:be:ef:33
DT: Disabling GMAC
Starting kernel ...
pfe ram initialised
ClockCycles samples:
0 527927510
1 527927511
2 527927510
3 527927510
All ClockCycles offsets within tolerance
Welcome to QNX Neutrino 7.1.0 on the NXP S32G274A EVB Board!!
Starting watchdog...
Starting serial driver ...
Starting Networking driver (/dev/socket)...
ifconfig: SIOCGIFFLAGS pfe0: No such device or address
Process 4107 (ifconfig) exited status=1.
Process 10 (sh) exited status=0.
Process 9 (dhclient) exited status=1.
cp: Can't open source file. (/proc/boot/libfci_cli)
Process 20489 (cp) exited status=1.
Starting SPI driver (/dev/spi0,1,2,3,4,5)...
Starting I2C 0/1/2/3/4 driver (/dev/i2c0,1,2,3,4)...
Starting USDHC0 memory card driver...
[00]Starting QSPI Flash driver...
SIM="SDMMC" HBA="imx"
[00,0,0] type=00 ver=05 resp=00 SDMMC:
Starting USB host driver (/dev/usb/*)
Detected QSPI Flash: Macronix MX25UW512, JEDEC 0xC2 - 0x813A, Size: 0x4000000
Uaunching devb-umass for /dev/usb/* ...
# ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33136
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
Process 28698 (ifconfig) exited status=0.
#