Hi nxp,
At present, we have built the S32G3 GoldVIP Yocto project. But we don't know how to use the test SJA1110. Can you tell me how to ping windows using the ping command? Or is there any way to test the performance of all network ports on SJA1110? Thank you!
I used the ifconfig command to configure sit0, but I couldn't ping windows.
Hello @DRAVE,
GoldVIP includes a multi-instance PFE setup, where the PFE master driver is on the Cortex-M7_0 core (GoldVIP Real-time Gateway Application), and the slave instance runs on the Cortex-A53 clusters (Linux). The master instance has to be up and running, so that the slave side can work.
You can find the binary in GoldVIP-S32G3-1.12.0\binaries\goldvip-gateway.bin. for this you will also need to use the multi core bootloader, you can learn more about it in its respective user manual, GoldVIP-S32G3-1.12.0\documentation\Bootloader-User-Manual.pdf.
Do you require to use GoldVIP instead of the base BSP? it is much simpler to use the SJA1110 ports in the latter.
Let me know if you have more questions.
Hi @alejandro_e
Thank you for your reply. I have used TP-S32G-VNP-RDB3.pdf to build Yocto, is this the base BSP?
Based on this base BSP, how should I use the sja1110 ?
Hello @DRAVE,
The guide you mention does not provide steps to build the base BSP, instead it provides steps to build the GoldVIP BSP which is very different from the base one. As I mentioned if you use the GoldVIP you have to also flash the M7_0 and use an special bootloader to run a multicore application, this can get quite complicated and time consuming, if you do not require using the GoldVIP, you can download the Yocto configuration for the latest base BSP, which is BSP43 ,in:
https://github.com/nxp-auto-linux/auto_yocto_bsp/tree/release/bsp43.0
In the readme you can see the steps to build the image, please follow the steps to get fsl-image-auto, once you build it you should get a file with a name similar to this: .../build_s32g274ardb2/tmp/deploy/images/s32g274ardb2/fsl-image-base-s32g274ardb2-20241111184159.rootfs.sdcard, this is the file you should flash in your SD card.
Once you boot this image you can ping your windows computer following these steps:
root@s32g399ardb3:~# ip addr add 192.168.1.51 dev pfe0
root@s32g399ardb3:~# ifconfig pfe0 netmask 255.255.255.0
PS C:\Users\user> ipconfig
Windows IP Configuration
Ethernet adapter Ethernet:
Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::46c:71fe:cea4:3e81%27
IPv4 Address. . . . . . . . . . . : 192.168.1.50
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . :
Wireless LAN adapter Local Area Connection* 3:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Wireless LAN adapter Local Area Connection* 4:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Wireless LAN adapter Wi-Fi:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
root@s32g399ardb3:~# ifconfig
eth0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether ae:4e:a3:82:15:b0 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 55 base 0x6000
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 82 bytes 6220 (6.0 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 82 bytes 6220 (6.0 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
pfe0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::204:9fff:febe:ef00 prefixlen 64 scopeid 0x20<link>
ether 00:04:9f:be:ef:00 txqueuelen 1000 (Ethernet)
RX packets 22 bytes 1012 (1012.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 18 bytes 2582 (2.5 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device memory 0x46000000-46ffffff
pfe1: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 00:04:9f:be:ef:01 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device memory 0x46000000-46ffffff
pfe2: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 00:04:9f:be:ef:02 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device memory 0x46000000-46ffffff
root@s32g399ardb3:~# ifconfig pfe0
pfe0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::204:9fff:febe:ef00 prefixlen 64 scopeid 0x20<link>
ether 00:04:9f:be:ef:00 txqueuelen 1000 (Ethernet)
RX packets 57 bytes 2622 (2.5 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 20 bytes 2977 (2.9 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device memory 0x46000000-46ffffff
PS C:\Users\user> ping 192.168.1.50
Pinging 192.168.1.50 with 32 bytes of data:
Reply from 192.168.1.50: bytes=32 time<1ms TTL=128
Reply from 192.168.1.50: bytes=32 time<1ms TTL=128
Reply from 192.168.1.50: bytes=32 time<1ms TTL=128
Reply from 192.168.1.50: bytes=32 time<1ms TTL=128
Ping statistics for 192.168.1.50:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
root@s32g399ardb3:~# ping 192.168.1.50
PING 192.168.1.50 (192.168.1.50) 56(84) bytes of data.
64 bytes from 192.168.1.50: icmp_seq=1 ttl=128 time=1.27 ms
64 bytes from 192.168.1.50: icmp_seq=2 ttl=128 time=0.617 ms
64 bytes from 192.168.1.50: icmp_seq=3 ttl=128 time=0.701 ms
64 bytes from 192.168.1.50: icmp_seq=4 ttl=128 time=0.721 ms
^C
--- 192.168.1.50 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3049ms
rtt min/avg/max/mdev = 0.617/0.826/1.266/0.256 ms
Please note that you can also get a precompiled BSP43 in the NXP FlexNet page:
Please let me know if this information solved your question.