HomeDefectsLIN1025-3060
Acknowledged

LIN1025-3060 : nxp-s32g: There is no 'master offset' log in gPTP validation

Created: Jul 29, 2025    Updated: Aug 17, 2025
Found In Version: 10.25.33.1
Severity: Standard
Applicable for: Wind River Linux LTS 25
Component/s: BSP

Description

root@nxp-s32g:/opt/wr-test/testcases/bts/gPTP_automotive# sntp -S -K /dev/null 147.11.100.50; phc_ctl end2 set
sntp 4.2.8p18@1.4062-o Sat 25 May 2024 07:06:58 AM UTC (1)
147.11.100.50 no UCST response after 5 seconds
phc_ctl[4810.054]: set clock time to 1748551239.305811200 or Thu May 29 20:40:39 2025
root@nxp-s32g:/opt/wr-test/testcases/bts/gPTP_automotive# ptp4l -l 7 -m -i end2 -f /usr/share/doc/linuxptp/configs/automotive-master.cfg > master.log &

root@nxp-s32g:/opt/wr-test/testcases/bts/gPTP_automotive# sshpass -proot ssh -o StrictHostKeyChecking=no root@128.224.179.112 'phc_ctl end2 set 0.0'
phc_ctl[1724.154]: set clock time to 0.000000000 or Thu Jan  1 00:00:00 1970
root@nxp-s32g:/opt/wr-test/testcases/bts/gPTP_automotive# sshpass -proot ssh -o StrictHostKeyChecking=no root@128.224.179.112 'ptp4l -l 7 -m -i end2 -f /usr/share/doc/linuxptp/configs/automotive-slave.cfg' > slave.log &

Wait 900 second for message(master offset)
root@nxp-s32g:/opt/wr-test/testcases/bts/gPTP_automotive# sshpass -proot ssh -o StrictHostKeyChecking=no root@128.224.179.112 'phc_ctl end2 get'
phc_ctl[2036.878]: clock time is 1748551556.634063919 or Thu May 29 20:45:56 2025
root@nxp-s32g:/opt/wr-test/testcases/bts/gPTP_automotive# killall -9 ptp4l

/opt/wr-test/lib/common_lib.sh: line 81:  2759 Killed                  ptp4l -l 7 -m -i end2 -f /usr/share/doc/linuxptp/configs/automotive-master.cfg > master.log
root@nxp-s32g:/opt/wr-test/testcases/bts/gPTP_automotive# sshpass -proot ssh -o StrictHostKeyChecking=no root@128.224.179.112 'killall -9 ptp4l'


root@nxp-s32g:/opt/wr-test/testcases/bts/gPTP_automotive# cat master.log
ptp4l[4810.572]: config item (null).assume_two_step is 1
ptp4l[4810.573]: config item (null).check_fup_sync is 0
ptp4l[4810.573]: config item (null).tx_timestamp_timeout is 10
ptp4l[4810.574]: config item (null).hwts_filter is 0
ptp4l[4810.574]: config item (null).ptp_minor_version is 1

....

Steps to Reproduce

INFO: HTTP shared image: http://pek-lpgtest7408.wrs.com/buildarea1/SharedImage/LTS25/BSP/nxp-s32g_preempt-rt_glibc-std_gptp_GIT/20250721_022719

/lpg-build/cdc/fast_prod/WRL10_25/WRL10_25_GIT/wrlinux-10/setup.sh --machines nxp-s32g --templates feature/docker --distros wrlinux --dl-layers=1 --accept-eula=yes
source environment-setup-x86_64-wrlinuxsdk-linux
source oe-init-build-env build
echo 'PREFERRED_PROVIDER_virtual/kernel = "linux-yocto-rt"' >> conf/local.conf

cat << EOF >> customized_test_plan.ini
[Test_Case]
pfe_slave_demo
gPTP_automotive
module_operate
bd_libfci
daemon_libfci
demo_libfci
fwfeat_libfci
logif_libfci
mirror_libfci
phyif_libfci
qos_libfci
route_libfci
spd_libfci
[Test_HW]
pfe_slave_demo = "pfe1sl##pfe1##pfe1 pfe2sl##pfe2##pfe1"
gPTP = "1G_pfe1##pfe1##pfe1 1G_pfe2##pfe2##pfe1 1G_pfe1sl##pfe1##pfe1 1G_pfe2sl##pfe2##pfe1 st_gmac_1G##eth0##eth0"
module_operate = "pfeng-slave"
EOF

echo 'BB_NUMBER_THREADS ?= "24"' >> conf/local.conf
echo 'PARALLEL_MAKE ?= "-j 24"' >> conf/local.conf
export https_proxy=147.11.252.42:9090
export http_proxy=147.11.252.42:9090
bitbake-layers add-layer /net/pek-lpgtest16.wrs.com/buildarea1/wgao/wassp-linux/testcases/wrlinux/wr-testing/bts-dev

#####To Clone a whole new testcases layer#####
git clone --depth 1 -b master git://lxgit.wrs.com/wrlinux-testing/testcases.git ../layers/testcases/wrlinux/
bitbake-layers add-layer ../layers/testcases/wrlinux/wr-testing/bts-dev
#####End#####

echo '
require templates/feature/bts/template.conf
IMAGE_FSTYPES += " tar.bz2"
ACTIVE_PLAN = "customized_test_plan.ini"' >> conf/local.conf
echo 'IMAGE_FSTYPES:remove = " live hddimg iso"' >> conf/local.conf
bitbake-layers add-layer /net/pek-lpgtest7408/buildarea1/SharedImage/wrlinux-testing-dl
echo 'SHARED_IMAGE_BASE = "/net/pek-lpgtest7408/buildarea1/SharedImage"
FIRMWARE_DIR_BASE = "${SHARED_IMAGE_BASE}/wr-bsp-images/nxp-s32g/firmwares"
DDR_FW_PATH = "${FIRMWARE_DIR_BASE}/ddr/g3/ddr_fw_ecc_off.bin"
HSE_LOCAL_FIRMWARE_DIR = "${FIRMWARE_DIR_BASE}/hse"
HSE_FW_VERSION_S32G2 = "0.1.0.14"
HSE_FW_VERSION_S32G3 = "0.2.64.0"
HSE_FW_NAME_S32G2 = "rev2.0_s32g2xx_hse_fw_0.1.0_1.0.14_pb240319.bin.pink"
HSE_FW_NAME_S32G3 = "s32g3xx_hse_fw_0.20.0_2.64.0_pb250127.bin.pink"
LLCE_LOCAL_FIRMWARE_DIR = "${FIRMWARE_DIR_BASE}/llce/1.0.9/s32g2"
LLCE_LOCAL_FIRMWARE_DIR_S32G3 = "${FIRMWARE_DIR_BASE}/llce/1.0.9/s32g3"
IPCF_M7_APP_BIN_DIR = "${FIRMWARE_DIR_BASE}/ipcf/4.9"
PFE_LOCAL_FIRMWARE_DIR = "${FIRMWARE_DIR_BASE}/pfe/1.11.0"
CUSTOMER_RECIPES:append = " llce"
CUSTOMER_RECIPES:openembedded-layer += 'ccid pcsc-lite opensc'
BB_NO_NETWORK = '0'
IMAGE_INSTALL:append = " llce ipc-shm pkcs11-hse pkcs11-hse-examples pfe pfe-slave libfci-cli"' >> conf/local.conf
bitbake wrlinux-image-std