<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: an error occured when using sja1110 gPTP in Other NXP Products</title>
    <link>https://community.nxp.com/t5/Other-NXP-Products/an-error-occured-when-using-sja1110-gPTP/m-p/2084426#M28394</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/238460"&gt;@alejandro_e&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have confirmed that the configuration of J189 is correct. The configuration of rdb3 booting from sd card is also correct.&lt;/P&gt;&lt;P&gt;I tested it again. When I directly compiled "switch_config_s32g_vnp_rdb" without any modification and loaded it, there was no error“&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-SPOILER&gt;[ 6.995965] systemd[1]: Condition check resulted in OpenVSwitch configuration for cleanup being skipped.&lt;BR /&gt;[ 6.996275] systemd[1]: Condition check resulted in File System Check on Root Device being skipped.&lt;BR /&gt;[ 7.001365] systemd[1]: Starting Load Kernel Modules...&lt;BR /&gt;[ 7.017206] sja1110: loading out-of-tree module taints kernel.&lt;BR /&gt;[ 7.023197] SPI driver sja1110 has no spi_device_id for nxp,sja1110-switch&lt;BR /&gt;[ 7.023203] SPI driver sja1110 has no spi_device_id for nxp,sja1110-uc&lt;BR /&gt;[ 7.023294] sja1110 spi5.0: probing uc&lt;BR /&gt;[ 7.023415] sja1110 spi5.1: probing switch&lt;BR /&gt;[ 7.023668] sja1110 spi5.1: Could not get GPIO from device tree&lt;BR /&gt;[ 7.023690] sja1110 spi5.1: [sja1110_post_probe_upload_worker] Trying to initialize switch&lt;BR /&gt;[ 7.024403] sja1110 spi5.1: Direct firmware load for sja1110_switch.bin failed with error -2&lt;BR /&gt;[ 7.024413] sja1110 spi5.1: request_firmware failed with -2&lt;BR /&gt;[ 7.024419] sja1110 spi5.0: [sja1110_post_probe_upload_worker] Trying to initialize uC&lt;BR /&gt;S[ 7.026935] sja1110 spi5.0: [sja1110_init_hw] loaded fw 'sja1110_uc.bin'&lt;BR /&gt;t[ 7.026946] sja1110 spi5.0: [sja1110_pre_uc_upload] Found firmware of size 126400&lt;BR /&gt;a[ 7.027015] sja1110 spi5.0: [sja1110_pre_uc_upload] firmware appears to be valid&lt;BR /&gt;r[ 7.027050] sja1110 spi5.0: [sja1110_pre_uc_upload] µC not ready for download (Status=0x31)&lt;BR /&gt;t[ 7.027138] sja1110 spi5.0: Uploading firmware...&lt;BR /&gt;ing Load Kernel Modules...&lt;BR /&gt;Startin[ 7.138512] systemd[1]: Starting Generate network units from Kernel command line...&lt;BR /&gt;g Generate network …ts from Kernel command line...&lt;BR /&gt;Starting [ 7.166366] systemd[1]: Starting Remount Root and Kernel File Systems...&lt;BR /&gt;Remount Root and Kernel File Systems...&lt;BR /&gt;[ 7.184599] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null). Quota mode: disabled.&lt;BR /&gt;Star[ 7.210767] systemd[1]: Starting Coldplug All udev Devices...&lt;BR /&gt;ting Coldplug All udev Devices...&lt;BR /&gt;[ OK ] Started Journal [ 7.236049] systemd[1]: Started Journal Service.&lt;BR /&gt;Service.&lt;BR /&gt;[ OK ] Mounted Huge Pages File System.&lt;BR /&gt;[ OK ] Mounted POSIX Message Queue File System.&lt;BR /&gt;[ OK ] Mounted Kernel Debug File System.&lt;BR /&gt;[ OK ] Finished [ 7.319044] sja1110 spi5.0: Upload successfully verified!&lt;BR /&gt;Set the console keyboard layout.&lt;BR /&gt;[ OK ] Finished Load Kernel Module configfs.&lt;BR /&gt;[ OK ] Finished Load Kernel Module drm.&lt;BR /&gt;[ OK ] Finished Load Kernel Module efi_pstore.&lt;BR /&gt;[ OK ] Finished Load Kernel Module fuse.&lt;BR /&gt;[ OK ] Finished Load Kernel Modules.&lt;/LI-SPOILER&gt;&lt;P&gt;When I only add gptp_config in Middleware and don't make any modifications, compile and load, there will be an error. That is to say, adding gptp_config will cause an error when loading.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-SPOILER&gt;Starting Load K[ 7.073122] SPI driver sja1110 has no spi_device_id for nxp,sja1110-switch&lt;BR /&gt;e[ 7.073128] SPI driver sja1110 has no spi_device_id for nxp,sja1110-uc&lt;BR /&gt;r[ 7.073214] sja1110 spi5.0: probing uc&lt;BR /&gt;n[ 7.073340] sja1110 spi5.1: probing switch&lt;BR /&gt;e[ 7.073596] sja1110 spi5.1: Could not get GPIO from device tree&lt;BR /&gt;l[ 7.073611] sja1110 spi5.1: [sja1110_post_probe_upload_worker] Trying to initialize switch&lt;BR /&gt;[ 7.074373] sja1110 spi5.1: Direct firmware load for sja1110_switch.bin failed with error -2&lt;BR /&gt;M[ 7.074383] sja1110 spi5.1: request_firmware failed with -2&lt;BR /&gt;od[ 7.074390] sja1110 spi5.0: [sja1110_post_probe_upload_worker] Trying to initialize uC&lt;BR /&gt;u[ 7.077579] sja1110 spi5.0: [sja1110_init_hw] loaded fw 'sja1110_uc.bin'&lt;BR /&gt;les[ 7.077593] sja1110 spi5.0: [sja1110_pre_uc_upload] Found firmware of size 131104&lt;BR /&gt;sja1110 spi5.0: [sja1110_pre_uc_upload] firmware appears to be valid&lt;BR /&gt;[[ 7.077698] sja1110 spi5.0: [sja1110_pre_uc_upload] µC not ready for download (Status=0x31)&lt;BR /&gt;0[ 7.077815] sja1110 spi5.0: Uploading firmware...&lt;BR /&gt;m...&lt;BR /&gt;Starti[ 7.186666] systemd[1]: Starting Generate network units from Kernel command line...&lt;BR /&gt;ng Generate network …ts from Kernel command line...&lt;BR /&gt;Starting [ 7.214398] systemd[1]: Starting Remount Root and Kernel File Systems...&lt;BR /&gt;Remount Root and Kernel File Systems...&lt;BR /&gt;[ 7.239162] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null). Quota mode: disabled.&lt;BR /&gt;[ 7.239520] systemd[1]: Starting Coldplug All udev Devices...&lt;BR /&gt;Starting Coldplug All udev Devices...&lt;BR /&gt;[ OK ] Started Jour[ 7.272430] systemd[1]: Started Journal Service.&lt;BR /&gt;nal Service.&lt;BR /&gt;[ OK ] Mounted Huge Pages File System.&lt;BR /&gt;[ OK ] Mounted POSIX Message Queue File System.&lt;BR /&gt;[ OK ] Mounted Kernel Debug File System.&lt;BR /&gt;[ OK ] Finished Set the console keyboard layout.&lt;BR /&gt;[ OK ] Finished Load Kernel Module configfs.&lt;BR /&gt;[ OK ] Finished Load Kernel Module drm.&lt;BR /&gt;[ OK ] Finished Load Kernel Module efi_pstore.&lt;BR /&gt;[ OK ] Finished Load Kernel Module fuse.&lt;BR /&gt;[ OK ] Finished Load Kernel Modules.&lt;BR /&gt;[ 7.459749] random: crng init done&lt;BR /&gt;[ 7.459769] random: 44 urandom warning(s) missed due to ratelimiting&lt;BR /&gt;[ 7.463272] sja1110 spi5.0: [sja1110_uc_parse_status_many] Upload error detected in status message 31600 (status=0x36,err=0x5b)&lt;BR /&gt;[ 7.463285] sja1110 spi5.0: Upload error detected!&lt;BR /&gt;[ 7.463290] sja1110 spi5.0: uploading firmware failed with 91&lt;BR /&gt;[ OK ] Finished Generate network units from Kernel command line.&lt;BR /&gt;[ OK ] Finished Remount Root and Kernel File Systems.&lt;BR /&gt;Mounting FUSE Control File System...&lt;BR /&gt;Mounting Kernel Configuration File System...&lt;/LI-SPOILER&gt;&lt;P&gt;I think it's a problem with the spi rate, or there's something wrong with the uboot settings.&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;P&gt;=&amp;gt; printenv&lt;BR /&gt;baudrate=115200&lt;BR /&gt;board_rev=F&lt;BR /&gt;boot_fdt=try&lt;BR /&gt;boot_mtd=booti&lt;BR /&gt;bootargs=root=/dev/ram rw earlycon loglevel=7&lt;BR /&gt;bootcmd=mmc dev ${mmcdev}; if mmc rescan; then if run loadimage; then run mmcboot; else run netboot; fi; else run netboot;fi&lt;BR /&gt;bootdelay=2&lt;BR /&gt;bootscript=echo Running bootscript from mmc ...; source&lt;BR /&gt;console=ttyLF0&lt;BR /&gt;eth1addr=00:01:be:be:ef:11&lt;BR /&gt;ethact=eth_pfeng&lt;BR /&gt;fdt_addr=0x83000000&lt;BR /&gt;fdt_enable_hs400es=fdt addr ${fdt_addr}; fdt rm /soc/mmc no-1-8-v; fdt resize;&lt;BR /&gt;fdt_file=s32g399a-rdb3.dtb&lt;BR /&gt;fdt_high=0xffffffffffffffff&lt;BR /&gt;fdt_override=;&lt;BR /&gt;fdtcontroladdr=ffa97000&lt;BR /&gt;flashboot=echo Booting from flash...; run flashbootargs;mtd read Kernel ${loadaddr};mtd read DTB ${fdt_addr};mtd read Rootfs ${ramdisk_addr};${boot_mtd} ${loadaddr} ${ramdisk_addr} ${fdt_addr};&lt;BR /&gt;flashbootargs=setenv bootargs console=${console},${baudrate} root=/dev/ram rw earlycon nohz=off coherent_pool=64M;setenv flashsize 0x04000000;&lt;BR /&gt;hwconfig=serdes0:mode=pcie,clock=ext;pcie0:mode=rc;serdes1:mode=xpcs0&amp;amp;xpcs1,clock=ext,fmhz=125;xpcs1_0:speed=2G5;xpcs1_1:speed=2G5&lt;BR /&gt;image=Image&lt;BR /&gt;initrd_high=0xffffffffffffffff&lt;BR /&gt;ipaddr=10.0.0.100&lt;BR /&gt;jtagboot=echo Booting using jtag...; ${boot_mtd} ${loadaddr} ${ramdisk_addr} ${fdt_addr}&lt;BR /&gt;jtagsdboot=echo Booting loading Linux with ramdisk from SD...; run loadimage; run loadramdisk; run loadfdt;${boot_mtd} ${loadaddr} ${ramdisk_addr} ${fdt_addr}&lt;BR /&gt;loadaddr=0x80000000&lt;BR /&gt;loadbootscript=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};&lt;BR /&gt;loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}; run fdt_override;&lt;BR /&gt;loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}&lt;BR /&gt;loadtftpfdt=tftp ${fdt_addr} ${fdt_file};&lt;BR /&gt;loadtftpimage=tftp ${loadaddr} ${image};&lt;BR /&gt;mmcargs=setenv bootargs console=${console},${baudrate} root=${mmcroot} earlycon nohz=off coherent_pool=64M&lt;BR /&gt;mmcboot=echo Booting from mmc ...; run mmcargs; if run loadfdt; then ${boot_mtd} ${loadaddr} - ${fdt_addr}; else echo WARN: Cannot load the DT; fi;&lt;BR /&gt;mmcdev=0&lt;BR /&gt;mmcpart=1&lt;BR /&gt;mmcroot=/dev/mmcblk0p2 rootwait rw&lt;BR /&gt;netargs=setenv bootargs console=${console},${baudrate} root=/dev/nfs ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp earlycon nohz=off coherent_pool=64M&lt;BR /&gt;netboot=echo Booting from net ...; run netargs; if test ${ip_dyn} = yes; then setenv get_cmd dhcp; else setenv get_cmd tftp; fi; ${get_cmd} ${image}; if test ${boot_fdt} = yes || test ${boot_fdt} = try; then if ${get_cmd} ${fdt_addr} ${fdt_file}; then ${boot_mtd} ${loadaddr} - ${fdt_addr}; else if test ${boot_fdt} = try; then ${boot_mtd}; else echo WARN: Cannot load the DT; fi; fi; else ${boot_mtd}; fi;&lt;BR /&gt;netmask=255.255.255.0&lt;BR /&gt;nfsboot=echo Booting from net using tftp and nfs...; run nfsbootargs;run loadtftpimage; run loadtftpfdt;${boot_mtd} ${loadaddr} - ${fdt_addr};&lt;BR /&gt;nfsbootargs=setenv bootargs console=${console},${baudrate} root=/dev/nfs rw ip=${ipaddr}:${serverip}::${netmask}::eth0:off nfsroot=${serverip}:/tftpboot/rfs,nolock,v3,tcp earlycon nohz=off coherent_pool=64M&lt;BR /&gt;pfe1_phy_addr=8&lt;BR /&gt;pfe1addr=00:01:be:be:ef:22&lt;BR /&gt;pfe2addr=00:01:be:be:ef:33&lt;BR /&gt;pfeaddr=00:01:be:be:ef:11&lt;BR /&gt;pfeng_mode=enable,sgmii,sgmii,rgmii&lt;BR /&gt;pfengemac=0&lt;BR /&gt;ramdisk_addr=0x90000000&lt;BR /&gt;s32cc_gmac_mode=enable&lt;BR /&gt;script=boot.scr&lt;BR /&gt;serverip=10.0.0.1&lt;BR /&gt;stderr=serial@401c8000&lt;BR /&gt;stdin=serial@401c8000&lt;BR /&gt;stdout=serial@401c8000&lt;BR /&gt;update_sd_firmware=if test ${ip_dyn} = yes; then setenv get_cmd dhcp; else setenv get_cmd tftp; fi; if mmc dev ${mmcdev}; then if ${get_cmd} ${update_sd_firmware_filename}; then setexpr fw_sz ${filesize} / 0x200; setexpr fw_sz ${fw_sz} - 7; setexpr loadaddr ${loadaddr} + 0x1000; mmc write ${loadaddr} 0x8 ${fw_sz}; fi; fi&lt;BR /&gt;update_sd_firmware_filename=fip.s32&lt;/P&gt;&lt;P&gt;Environment size: 3538/8188 bytes&lt;/P&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Apr 2025 08:17:30 GMT</pubDate>
    <dc:creator>xiaoshumiao</dc:creator>
    <dc:date>2025-04-22T08:17:30Z</dc:date>
    <item>
      <title>an error occured when using sja1110 gPTP</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/an-error-occured-when-using-sja1110-gPTP/m-p/2083859#M28380</link>
      <description>&lt;P&gt;Dear NXP fellows:&lt;/P&gt;&lt;P&gt;I am using S32G-VNP-RDB3 and Linux BSP 38.0&lt;/P&gt;&lt;P&gt;I have configured pfe0 to communicate with sja1110 port 4 through sgmii, and can ping. I want to synchronize the time between s32g and sja1110 through pfe0 and sja1110 port 4 interface.&lt;/P&gt;&lt;P&gt;Referring to the configuration of "gptp_sja1110x", I added gPTP statck on the "switch_config_s32g_vnp_rdb" and configured gptp. Finally, I compiled and generated flash_image.bin, renamed it to sja1110_uc.bin, and copied it to /lib/firmware.&lt;/P&gt;&lt;P&gt;But an error occurred, as follows:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xiaoshumiao_0-1745235794086.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/334071iCD543D091095AB46/image-size/medium?v=v2&amp;amp;px=400" role="button" title="xiaoshumiao_0-1745235794086.png" alt="xiaoshumiao_0-1745235794086.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;xiaoshumiao_0-1745235794086.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I'm guessing the error is here:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xiaoshumiao_1-1745235852368.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/334072iF7BEDFBBB687EBCD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="xiaoshumiao_1-1745235852368.png" alt="xiaoshumiao_1-1745235852368.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;xiaoshumiao_1-1745235852368.png&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xiaoshumiao_2-1745235892615.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/334073i416E99EABD63D0CB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="xiaoshumiao_2-1745235892615.png" alt="xiaoshumiao_2-1745235892615.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;xiaoshumiao_2-1745235892615.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;For detailed log please refer to the attached file&lt;/P&gt;&lt;P&gt;I can't solve this, and would really appreciate your help.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Apr 2025 11:45:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/an-error-occured-when-using-sja1110-gPTP/m-p/2083859#M28380</guid>
      <dc:creator>xiaoshumiao</dc:creator>
      <dc:date>2025-04-21T11:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: an error occured when using sja1110 gPTP</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/an-error-occured-when-using-sja1110-gPTP/m-p/2084024#M28387</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/231689"&gt;@xiaoshumiao&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Checking the logs you added it seems that the problems is only the loading and not the gPTP configuration. Please check the jumpers in J198 and ensure the following configuration:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alejandro_e_0-1745266247187.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/334109iFE46DF1EE00369C3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="alejandro_e_0-1745266247187.png" alt="alejandro_e_0-1745266247187.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;alejandro_e_0-1745266247187.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tested it successfully with said configuration:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;s32g399ardb3 login: root
root@s32g399ardb3:~# dmesg | grep -i "sja"
[    0.591985] gpio-345 (sja1110-rst-phy-t1): hogged as output/low
[    0.597484] gpio-402 (sja1110-rst-core): hogged as output/low
[    6.765011] sja1110: loading out-of-tree module taints kernel.
[    6.765512] SPI driver sja1110 has no spi_device_id for nxp,sja1110-switch
[    6.765516] SPI driver sja1110 has no spi_device_id for nxp,sja1110-uc
[    6.765614] sja1110 spi5.0: probing uc
[    6.765743] sja1110 spi5.1: probing switch
[    6.766024] sja1110 spi5.1: Could not get GPIO from device tree
[    6.766044] sja1110 spi5.1: [sja1110_post_probe_upload_worker] Trying to initialize switch
[    6.766659] sja1110 spi5.1: Direct firmware load for sja1110_switch.bin failed with error -2
[    6.766668] sja1110 spi5.1: request_firmware failed with -2
[    6.766673] sja1110 spi5.0: [sja1110_post_probe_upload_worker] Trying to initialize uC
[    6.769220] sja1110 spi5.0: [sja1110_init_hw] loaded fw 'sja1110_uc.bin'
[    6.769227] sja1110 spi5.0: [sja1110_pre_uc_upload] Found firmware of size 125376
[    6.769302] sja1110 spi5.0: [sja1110_pre_uc_upload] firmware appears to be valid
[    6.769340] sja1110 spi5.0: [sja1110_pre_uc_upload] \xc2\xb5C not ready for download (Status=0x31)
[    6.769430] sja1110 spi5.0: Uploading firmware...
[    7.061479] sja1110 spi5.0: Upload successfully verified!
root@s32g399ardb3:~# ls /lib/firmware/
s32g_pfe_class.fw  s32g_pfe_util.fw  sja1110_uc.bin
root@s32g399ardb3:~#&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Let me know if you keep having problems.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Apr 2025 20:15:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/an-error-occured-when-using-sja1110-gPTP/m-p/2084024#M28387</guid>
      <dc:creator>alejandro_e</dc:creator>
      <dc:date>2025-04-21T20:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: an error occured when using sja1110 gPTP</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/an-error-occured-when-using-sja1110-gPTP/m-p/2084426#M28394</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/238460"&gt;@alejandro_e&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have confirmed that the configuration of J189 is correct. The configuration of rdb3 booting from sd card is also correct.&lt;/P&gt;&lt;P&gt;I tested it again. When I directly compiled "switch_config_s32g_vnp_rdb" without any modification and loaded it, there was no error“&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-SPOILER&gt;[ 6.995965] systemd[1]: Condition check resulted in OpenVSwitch configuration for cleanup being skipped.&lt;BR /&gt;[ 6.996275] systemd[1]: Condition check resulted in File System Check on Root Device being skipped.&lt;BR /&gt;[ 7.001365] systemd[1]: Starting Load Kernel Modules...&lt;BR /&gt;[ 7.017206] sja1110: loading out-of-tree module taints kernel.&lt;BR /&gt;[ 7.023197] SPI driver sja1110 has no spi_device_id for nxp,sja1110-switch&lt;BR /&gt;[ 7.023203] SPI driver sja1110 has no spi_device_id for nxp,sja1110-uc&lt;BR /&gt;[ 7.023294] sja1110 spi5.0: probing uc&lt;BR /&gt;[ 7.023415] sja1110 spi5.1: probing switch&lt;BR /&gt;[ 7.023668] sja1110 spi5.1: Could not get GPIO from device tree&lt;BR /&gt;[ 7.023690] sja1110 spi5.1: [sja1110_post_probe_upload_worker] Trying to initialize switch&lt;BR /&gt;[ 7.024403] sja1110 spi5.1: Direct firmware load for sja1110_switch.bin failed with error -2&lt;BR /&gt;[ 7.024413] sja1110 spi5.1: request_firmware failed with -2&lt;BR /&gt;[ 7.024419] sja1110 spi5.0: [sja1110_post_probe_upload_worker] Trying to initialize uC&lt;BR /&gt;S[ 7.026935] sja1110 spi5.0: [sja1110_init_hw] loaded fw 'sja1110_uc.bin'&lt;BR /&gt;t[ 7.026946] sja1110 spi5.0: [sja1110_pre_uc_upload] Found firmware of size 126400&lt;BR /&gt;a[ 7.027015] sja1110 spi5.0: [sja1110_pre_uc_upload] firmware appears to be valid&lt;BR /&gt;r[ 7.027050] sja1110 spi5.0: [sja1110_pre_uc_upload] µC not ready for download (Status=0x31)&lt;BR /&gt;t[ 7.027138] sja1110 spi5.0: Uploading firmware...&lt;BR /&gt;ing Load Kernel Modules...&lt;BR /&gt;Startin[ 7.138512] systemd[1]: Starting Generate network units from Kernel command line...&lt;BR /&gt;g Generate network …ts from Kernel command line...&lt;BR /&gt;Starting [ 7.166366] systemd[1]: Starting Remount Root and Kernel File Systems...&lt;BR /&gt;Remount Root and Kernel File Systems...&lt;BR /&gt;[ 7.184599] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null). Quota mode: disabled.&lt;BR /&gt;Star[ 7.210767] systemd[1]: Starting Coldplug All udev Devices...&lt;BR /&gt;ting Coldplug All udev Devices...&lt;BR /&gt;[ OK ] Started Journal [ 7.236049] systemd[1]: Started Journal Service.&lt;BR /&gt;Service.&lt;BR /&gt;[ OK ] Mounted Huge Pages File System.&lt;BR /&gt;[ OK ] Mounted POSIX Message Queue File System.&lt;BR /&gt;[ OK ] Mounted Kernel Debug File System.&lt;BR /&gt;[ OK ] Finished [ 7.319044] sja1110 spi5.0: Upload successfully verified!&lt;BR /&gt;Set the console keyboard layout.&lt;BR /&gt;[ OK ] Finished Load Kernel Module configfs.&lt;BR /&gt;[ OK ] Finished Load Kernel Module drm.&lt;BR /&gt;[ OK ] Finished Load Kernel Module efi_pstore.&lt;BR /&gt;[ OK ] Finished Load Kernel Module fuse.&lt;BR /&gt;[ OK ] Finished Load Kernel Modules.&lt;/LI-SPOILER&gt;&lt;P&gt;When I only add gptp_config in Middleware and don't make any modifications, compile and load, there will be an error. That is to say, adding gptp_config will cause an error when loading.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-SPOILER&gt;Starting Load K[ 7.073122] SPI driver sja1110 has no spi_device_id for nxp,sja1110-switch&lt;BR /&gt;e[ 7.073128] SPI driver sja1110 has no spi_device_id for nxp,sja1110-uc&lt;BR /&gt;r[ 7.073214] sja1110 spi5.0: probing uc&lt;BR /&gt;n[ 7.073340] sja1110 spi5.1: probing switch&lt;BR /&gt;e[ 7.073596] sja1110 spi5.1: Could not get GPIO from device tree&lt;BR /&gt;l[ 7.073611] sja1110 spi5.1: [sja1110_post_probe_upload_worker] Trying to initialize switch&lt;BR /&gt;[ 7.074373] sja1110 spi5.1: Direct firmware load for sja1110_switch.bin failed with error -2&lt;BR /&gt;M[ 7.074383] sja1110 spi5.1: request_firmware failed with -2&lt;BR /&gt;od[ 7.074390] sja1110 spi5.0: [sja1110_post_probe_upload_worker] Trying to initialize uC&lt;BR /&gt;u[ 7.077579] sja1110 spi5.0: [sja1110_init_hw] loaded fw 'sja1110_uc.bin'&lt;BR /&gt;les[ 7.077593] sja1110 spi5.0: [sja1110_pre_uc_upload] Found firmware of size 131104&lt;BR /&gt;sja1110 spi5.0: [sja1110_pre_uc_upload] firmware appears to be valid&lt;BR /&gt;[[ 7.077698] sja1110 spi5.0: [sja1110_pre_uc_upload] µC not ready for download (Status=0x31)&lt;BR /&gt;0[ 7.077815] sja1110 spi5.0: Uploading firmware...&lt;BR /&gt;m...&lt;BR /&gt;Starti[ 7.186666] systemd[1]: Starting Generate network units from Kernel command line...&lt;BR /&gt;ng Generate network …ts from Kernel command line...&lt;BR /&gt;Starting [ 7.214398] systemd[1]: Starting Remount Root and Kernel File Systems...&lt;BR /&gt;Remount Root and Kernel File Systems...&lt;BR /&gt;[ 7.239162] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null). Quota mode: disabled.&lt;BR /&gt;[ 7.239520] systemd[1]: Starting Coldplug All udev Devices...&lt;BR /&gt;Starting Coldplug All udev Devices...&lt;BR /&gt;[ OK ] Started Jour[ 7.272430] systemd[1]: Started Journal Service.&lt;BR /&gt;nal Service.&lt;BR /&gt;[ OK ] Mounted Huge Pages File System.&lt;BR /&gt;[ OK ] Mounted POSIX Message Queue File System.&lt;BR /&gt;[ OK ] Mounted Kernel Debug File System.&lt;BR /&gt;[ OK ] Finished Set the console keyboard layout.&lt;BR /&gt;[ OK ] Finished Load Kernel Module configfs.&lt;BR /&gt;[ OK ] Finished Load Kernel Module drm.&lt;BR /&gt;[ OK ] Finished Load Kernel Module efi_pstore.&lt;BR /&gt;[ OK ] Finished Load Kernel Module fuse.&lt;BR /&gt;[ OK ] Finished Load Kernel Modules.&lt;BR /&gt;[ 7.459749] random: crng init done&lt;BR /&gt;[ 7.459769] random: 44 urandom warning(s) missed due to ratelimiting&lt;BR /&gt;[ 7.463272] sja1110 spi5.0: [sja1110_uc_parse_status_many] Upload error detected in status message 31600 (status=0x36,err=0x5b)&lt;BR /&gt;[ 7.463285] sja1110 spi5.0: Upload error detected!&lt;BR /&gt;[ 7.463290] sja1110 spi5.0: uploading firmware failed with 91&lt;BR /&gt;[ OK ] Finished Generate network units from Kernel command line.&lt;BR /&gt;[ OK ] Finished Remount Root and Kernel File Systems.&lt;BR /&gt;Mounting FUSE Control File System...&lt;BR /&gt;Mounting Kernel Configuration File System...&lt;/LI-SPOILER&gt;&lt;P&gt;I think it's a problem with the spi rate, or there's something wrong with the uboot settings.&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;P&gt;=&amp;gt; printenv&lt;BR /&gt;baudrate=115200&lt;BR /&gt;board_rev=F&lt;BR /&gt;boot_fdt=try&lt;BR /&gt;boot_mtd=booti&lt;BR /&gt;bootargs=root=/dev/ram rw earlycon loglevel=7&lt;BR /&gt;bootcmd=mmc dev ${mmcdev}; if mmc rescan; then if run loadimage; then run mmcboot; else run netboot; fi; else run netboot;fi&lt;BR /&gt;bootdelay=2&lt;BR /&gt;bootscript=echo Running bootscript from mmc ...; source&lt;BR /&gt;console=ttyLF0&lt;BR /&gt;eth1addr=00:01:be:be:ef:11&lt;BR /&gt;ethact=eth_pfeng&lt;BR /&gt;fdt_addr=0x83000000&lt;BR /&gt;fdt_enable_hs400es=fdt addr ${fdt_addr}; fdt rm /soc/mmc no-1-8-v; fdt resize;&lt;BR /&gt;fdt_file=s32g399a-rdb3.dtb&lt;BR /&gt;fdt_high=0xffffffffffffffff&lt;BR /&gt;fdt_override=;&lt;BR /&gt;fdtcontroladdr=ffa97000&lt;BR /&gt;flashboot=echo Booting from flash...; run flashbootargs;mtd read Kernel ${loadaddr};mtd read DTB ${fdt_addr};mtd read Rootfs ${ramdisk_addr};${boot_mtd} ${loadaddr} ${ramdisk_addr} ${fdt_addr};&lt;BR /&gt;flashbootargs=setenv bootargs console=${console},${baudrate} root=/dev/ram rw earlycon nohz=off coherent_pool=64M;setenv flashsize 0x04000000;&lt;BR /&gt;hwconfig=serdes0:mode=pcie,clock=ext;pcie0:mode=rc;serdes1:mode=xpcs0&amp;amp;xpcs1,clock=ext,fmhz=125;xpcs1_0:speed=2G5;xpcs1_1:speed=2G5&lt;BR /&gt;image=Image&lt;BR /&gt;initrd_high=0xffffffffffffffff&lt;BR /&gt;ipaddr=10.0.0.100&lt;BR /&gt;jtagboot=echo Booting using jtag...; ${boot_mtd} ${loadaddr} ${ramdisk_addr} ${fdt_addr}&lt;BR /&gt;jtagsdboot=echo Booting loading Linux with ramdisk from SD...; run loadimage; run loadramdisk; run loadfdt;${boot_mtd} ${loadaddr} ${ramdisk_addr} ${fdt_addr}&lt;BR /&gt;loadaddr=0x80000000&lt;BR /&gt;loadbootscript=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};&lt;BR /&gt;loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}; run fdt_override;&lt;BR /&gt;loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}&lt;BR /&gt;loadtftpfdt=tftp ${fdt_addr} ${fdt_file};&lt;BR /&gt;loadtftpimage=tftp ${loadaddr} ${image};&lt;BR /&gt;mmcargs=setenv bootargs console=${console},${baudrate} root=${mmcroot} earlycon nohz=off coherent_pool=64M&lt;BR /&gt;mmcboot=echo Booting from mmc ...; run mmcargs; if run loadfdt; then ${boot_mtd} ${loadaddr} - ${fdt_addr}; else echo WARN: Cannot load the DT; fi;&lt;BR /&gt;mmcdev=0&lt;BR /&gt;mmcpart=1&lt;BR /&gt;mmcroot=/dev/mmcblk0p2 rootwait rw&lt;BR /&gt;netargs=setenv bootargs console=${console},${baudrate} root=/dev/nfs ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp earlycon nohz=off coherent_pool=64M&lt;BR /&gt;netboot=echo Booting from net ...; run netargs; if test ${ip_dyn} = yes; then setenv get_cmd dhcp; else setenv get_cmd tftp; fi; ${get_cmd} ${image}; if test ${boot_fdt} = yes || test ${boot_fdt} = try; then if ${get_cmd} ${fdt_addr} ${fdt_file}; then ${boot_mtd} ${loadaddr} - ${fdt_addr}; else if test ${boot_fdt} = try; then ${boot_mtd}; else echo WARN: Cannot load the DT; fi; fi; else ${boot_mtd}; fi;&lt;BR /&gt;netmask=255.255.255.0&lt;BR /&gt;nfsboot=echo Booting from net using tftp and nfs...; run nfsbootargs;run loadtftpimage; run loadtftpfdt;${boot_mtd} ${loadaddr} - ${fdt_addr};&lt;BR /&gt;nfsbootargs=setenv bootargs console=${console},${baudrate} root=/dev/nfs rw ip=${ipaddr}:${serverip}::${netmask}::eth0:off nfsroot=${serverip}:/tftpboot/rfs,nolock,v3,tcp earlycon nohz=off coherent_pool=64M&lt;BR /&gt;pfe1_phy_addr=8&lt;BR /&gt;pfe1addr=00:01:be:be:ef:22&lt;BR /&gt;pfe2addr=00:01:be:be:ef:33&lt;BR /&gt;pfeaddr=00:01:be:be:ef:11&lt;BR /&gt;pfeng_mode=enable,sgmii,sgmii,rgmii&lt;BR /&gt;pfengemac=0&lt;BR /&gt;ramdisk_addr=0x90000000&lt;BR /&gt;s32cc_gmac_mode=enable&lt;BR /&gt;script=boot.scr&lt;BR /&gt;serverip=10.0.0.1&lt;BR /&gt;stderr=serial@401c8000&lt;BR /&gt;stdin=serial@401c8000&lt;BR /&gt;stdout=serial@401c8000&lt;BR /&gt;update_sd_firmware=if test ${ip_dyn} = yes; then setenv get_cmd dhcp; else setenv get_cmd tftp; fi; if mmc dev ${mmcdev}; then if ${get_cmd} ${update_sd_firmware_filename}; then setexpr fw_sz ${filesize} / 0x200; setexpr fw_sz ${fw_sz} - 7; setexpr loadaddr ${loadaddr} + 0x1000; mmc write ${loadaddr} 0x8 ${fw_sz}; fi; fi&lt;BR /&gt;update_sd_firmware_filename=fip.s32&lt;/P&gt;&lt;P&gt;Environment size: 3538/8188 bytes&lt;/P&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2025 08:17:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/an-error-occured-when-using-sja1110-gPTP/m-p/2084426#M28394</guid>
      <dc:creator>xiaoshumiao</dc:creator>
      <dc:date>2025-04-22T08:17:30Z</dc:date>
    </item>
    <item>
      <title>Re: an error occured when using sja1110 gPTP</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/an-error-occured-when-using-sja1110-gPTP/m-p/2084927#M28407</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/231689"&gt;@xiaoshumiao&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;From the logs I can see that the download was actually completed, please see this part:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[ 7.463272] sja1110 spi5.0: [sja1110_uc_parse_status_many] Upload error detected in status message 31600 (status=0x36,err=0x5b)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;if you check&amp;nbsp;&lt;A href="https://github.com/nxp-archive/autoivnsw_sja1110_linux/blob/ac06f130d512e75edcf98d1a8304edd90055e525/sja1110_init.h#L53" target="_blank"&gt;sja1110_init.h#L53&lt;/A&gt;, which is the module in charge of loading the firmware you can see the following:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alejandro_e_0-1745361788142.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/334365i4AE087010282A1E9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="alejandro_e_0-1745361788142.png" alt="alejandro_e_0-1745361788142.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;alejandro_e_0-1745361788142.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The status is completed (0x36) and there is no error (0x5B=91). I am assuming you are using the Yocto build, in that setup, you can modify the patch in:&amp;nbsp;&lt;STRONG&gt;.../sources/meta-alb/recipes-kernel/sja1110/sja1110/0001-s32g274a-rdb2-Add-support-for-S32G-VNP-RDB2.patch&amp;nbsp;&lt;/STRONG&gt;and add&amp;nbsp;&lt;STRONG&gt;COMPLETED&lt;/STRONG&gt; as a correct state, in here:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alejandro_e_1-1745362130548.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/334366iBAF2C2DFB8EF6BCE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="alejandro_e_1-1745362130548.png" alt="alejandro_e_1-1745362130548.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;alejandro_e_1-1745362130548.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;after that you can test if the functionalities related to the SJA1110 still work correctly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let me know the result of the test.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Apr 2025 22:50:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/an-error-occured-when-using-sja1110-gPTP/m-p/2084927#M28407</guid>
      <dc:creator>alejandro_e</dc:creator>
      <dc:date>2025-04-22T22:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: an error occured when using sja1110 gPTP</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/an-error-occured-when-using-sja1110-gPTP/m-p/2085345#M28416</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/238460"&gt;@alejandro_e&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for your reply. This method still doesn’t work and other errors will occur.&lt;/P&gt;&lt;P&gt;I refer to this to solve the problem&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/t5/S32G/s32g-vnp-rdb2-Errror-when-uploading-sja1110-uc-and-using-gPTP/m-p/1610265/thread-id/2396/highlight/true" target="_blank"&gt;https://community.nxp.com/t5/S32G/s32g-vnp-rdb2-Errror-when-uploading-sja1110-uc-and-using-gPTP/m-p/1610265/thread-id/2396/highlight/true&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2025 09:35:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/an-error-occured-when-using-sja1110-gPTP/m-p/2085345#M28416</guid>
      <dc:creator>xiaoshumiao</dc:creator>
      <dc:date>2025-04-23T09:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: an error occured when using sja1110 gPTP</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/an-error-occured-when-using-sja1110-gPTP/m-p/2085609#M28421</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/231689"&gt;@xiaoshumiao&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I'm glad you were able to solve the problem. Thanks for the reference for the solution.&lt;/P&gt;
&lt;P&gt;If you encounter any other problem feel free to create a new post.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2025 16:27:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/an-error-occured-when-using-sja1110-gPTP/m-p/2085609#M28421</guid>
      <dc:creator>alejandro_e</dc:creator>
      <dc:date>2025-04-23T16:27:20Z</dc:date>
    </item>
  </channel>
</rss>

