Dear NXP fellows,
This question is a sequel to my previous topic:
Questions regarding multi-core networking in S32G399A
Right now, I have enabled PFE Master/Slave on our custom board based on S32G399A-RDB3 by appending pfe-slave to the Yocto distro-features:
DISTRO_FEATURES:append = " pfe pfe-slave"
This enables the PFE Slave to run on the A53 cores (Linux BSP).
On the slave side, it seems to be working as expected, I can assign IP addresses to the three PFE interfaces and the ping is working from both sides.
For your reference, the command libfci_cli phyif-print returns:
DISCLAIMER: This is a DEMO application. It is not part of the production code deliverables.
0: emac0
<ENABLED>
<promisc:OFF, mode:DEFAULT, block-state:NORMAL>
<vlan-conf:OFF, ptp-conf:OFF, ptp-promisc:OFF, q-in-q:ON>
<discard-if-ttl-below-2:OFF, fast-forward-all-tcp:ON>
ingress: 57 egress: 45 discarded: 0 malformed: 0
flexible-filter: ---
ptp-mgmt-if: ---
MAC:
00:04:9f:be:ef:00
33:33:00:00:00:01
01:00:5e:00:00:01
33:33:ff:be:ef:00
01:80:c2:00:00:00
01:80:c2:00:00:03
01:80:c2:00:00:0e
33:33:00:01:00:03
01:00:5e:00:00:fc
mirrors:
rxmirr0: ---
rxmirr1: ---
txmirr0: ---
txmirr1: ---
logical interfaces:
0: emac0
<ENABLED>
<promisc:ON, match-mode:AND, discard-on-match:OFF>
accepted: 57 rejected: 0 discarded: 0 processed: 57
egress: hif0
match-rules: ---
1: emac1
<ENABLED>
<promisc:OFF, mode:DEFAULT, block-state:NORMAL>
<vlan-conf:OFF, ptp-conf:OFF, ptp-promisc:OFF, q-in-q:ON>
<discard-if-ttl-below-2:OFF, fast-forward-all-tcp:ON>
ingress: 75 egress: 53 discarded: 0 malformed: 0
flexible-filter: ---
ptp-mgmt-if: ---
MAC:
00:04:9f:be:ef:01
33:33:00:00:00:01
01:00:5e:00:00:01
33:33:ff:be:ef:01
mirrors:
rxmirr0: ---
rxmirr1: ---
txmirr0: ---
txmirr1: ---
logical interfaces:
1: emac1
<ENABLED>
<promisc:ON, match-mode:AND, discard-on-match:OFF>
accepted: 75 rejected: 0 discarded: 0 processed: 75
egress: hif1
match-rules: ---
2: emac2
<ENABLED>
<promisc:OFF, mode:DEFAULT, block-state:NORMAL>
<vlan-conf:OFF, ptp-conf:OFF, ptp-promisc:OFF, q-in-q:ON>
<discard-if-ttl-below-2:OFF, fast-forward-all-tcp:ON>
ingress: 13 egress: 37 discarded: 0 malformed: 0
flexible-filter: ---
ptp-mgmt-if: ---
MAC:
00:04:9f:be:ef:02
33:33:00:00:00:01
01:00:5e:00:00:01
33:33:ff:be:ef:02
01:80:c2:00:00:00
01:80:c2:00:00:03
01:80:c2:00:00:0e
01:00:5e:00:00:fc
33:33:00:01:00:03
mirrors:
rxmirr0: ---
rxmirr1: ---
txmirr0: ---
txmirr1: ---
logical interfaces:
2: emac2
<ENABLED>
<promisc:ON, match-mode:AND, discard-on-match:OFF>
accepted: 13 rejected: 0 discarded: 0 processed: 13
egress: hif2
match-rules: ---
5: util
<DISABLED>
<promisc:OFF, mode:DEFAULT, block-state:NORMAL>
<vlan-conf:OFF, ptp-conf:OFF, ptp-promisc:OFF, q-in-q:ON>
<discard-if-ttl-below-2:OFF, fast-forward-all-tcp:ON>
ingress: 0 egress: 0 discarded: 0 malformed: 0
flexible-filter: ---
ptp-mgmt-if: ---
MAC: ---
mirrors:
rxmirr0: ---
rxmirr1: ---
txmirr0: ---
txmirr1: ---
logical interfaces: ---
6: hif0
<ENABLED>
<promisc:OFF, mode:DEFAULT, block-state:NORMAL>
<vlan-conf:OFF, ptp-conf:OFF, ptp-promisc:OFF, q-in-q:ON>
<discard-if-ttl-below-2:OFF, fast-forward-all-tcp:ON>
ingress: 105 egress: 57 discarded: 0 malformed: 0
flexible-filter: ---
ptp-mgmt-if: ---
MAC: ---
mirrors:
rxmirr0: ---
rxmirr1: ---
txmirr0: ---
txmirr1: ---
logical interfaces:
3: hif0
<ENABLED>
<promisc:ON, match-mode:AND, discard-on-match:OFF>
accepted: 29 rejected: 0 discarded: 0 processed: 29
egress: ---
match-rules: ---
7: hif1
<ENABLED>
<promisc:OFF, mode:DEFAULT, block-state:NORMAL>
<vlan-conf:OFF, ptp-conf:OFF, ptp-promisc:OFF, q-in-q:ON>
<discard-if-ttl-below-2:OFF, fast-forward-all-tcp:ON>
ingress: 53 egress: 75 discarded: 0 malformed: 0
flexible-filter: ---
ptp-mgmt-if: ---
MAC: ---
mirrors:
rxmirr0: ---
rxmirr1: ---
txmirr0: ---
txmirr1: ---
logical interfaces:
4: hif1
<ENABLED>
<promisc:ON, match-mode:AND, discard-on-match:OFF>
accepted: 0 rejected: 0 discarded: 0 processed: 0
egress: ---
match-rules: ---
8: hif2
<ENABLED>
<promisc:OFF, mode:DEFAULT, block-state:NORMAL>
<vlan-conf:OFF, ptp-conf:OFF, ptp-promisc:OFF, q-in-q:ON>
<discard-if-ttl-below-2:OFF, fast-forward-all-tcp:ON>
ingress: 37 egress: 13 discarded: 0 malformed: 0
flexible-filter: ---
ptp-mgmt-if: ---
MAC: ---
mirrors:
rxmirr0: ---
rxmirr1: ---
txmirr0: ---
txmirr1: ---
logical interfaces:
5: hif2
<ENABLED>
<promisc:ON, match-mode:AND, discard-on-match:OFF>
accepted: 0 rejected: 0 discarded: 0 processed: 0
egress: ---
match-rules: ---
9: hif3
<DISABLED>
<promisc:OFF, mode:DEFAULT, block-state:NORMAL>
<vlan-conf:OFF, ptp-conf:OFF, ptp-promisc:OFF, q-in-q:ON>
<discard-if-ttl-below-2:OFF, fast-forward-all-tcp:ON>
ingress: 0 egress: 0 discarded: 31 malformed: 0
flexible-filter: ---
ptp-mgmt-if: ---
MAC: ---
mirrors:
rxmirr0: ---
rxmirr1: ---
txmirr0: ---
txmirr1: ---
logical interfaces:
6: hif3
<ENABLED>
<promisc:ON, match-mode:AND, discard-on-match:OFF>
accepted: 0 rejected: 0 discarded: 0 processed: 0
egress: ---
match-rules: ---
Command successfully executed.
and the command libfci_cli logif-print returns:
DISCLAIMER: This is a DEMO application. It is not part of the production code deliverables.
0: emac0
<ENABLED>
<promisc:ON, match-mode:AND, discard-on-match:OFF>
accepted: 57 rejected: 0 discarded: 0 processed: 57
parent: emac0
egress: hif0
match-rules: ---
1: emac1
<ENABLED>
<promisc:ON, match-mode:AND, discard-on-match:OFF>
accepted: 75 rejected: 0 discarded: 0 processed: 75
parent: emac1
egress: hif1
match-rules: ---
2: emac2
<ENABLED>
<promisc:ON, match-mode:AND, discard-on-match:OFF>
accepted: 13 rejected: 0 discarded: 0 processed: 13
parent: emac2
egress: hif2
match-rules: ---
3: hif0
<ENABLED>
<promisc:ON, match-mode:AND, discard-on-match:OFF>
accepted: 29 rejected: 0 discarded: 0 processed: 29
parent: hif0
egress: ---
match-rules: ---
4: hif1
<ENABLED>
<promisc:ON, match-mode:AND, discard-on-match:OFF>
accepted: 0 rejected: 0 discarded: 0 processed: 0
parent: hif1
egress: ---
match-rules: ---
5: hif2
<ENABLED>
<promisc:ON, match-mode:AND, discard-on-match:OFF>
accepted: 0 rejected: 0 discarded: 0 processed: 0
parent: hif2
egress: ---
match-rules: ---
6: hif3
<ENABLED>
<promisc:ON, match-mode:AND, discard-on-match:OFF>
accepted: 0 rejected: 0 discarded: 0 processed: 0
parent: hif3
egress: ---
match-rules: ---
Command successfully executed.
However, I would like to configure the M7 core PFE-master now.
My questions are:
- Can I assign an IP address to the PFE Master from the PFE Slave (BSP)?
- Do I need to use the EB Tresos PFE-DRV_S32G_M7_MCAL sample application for configuring the M7 core networking?
- Does it require to connect the S32G Debug Probe to the board in order to access the M7 core?
Thank you for your support!
Best regards,
Guilherme