IPCF Compatibility Issue on S32G399A with BSP41: “Invalid Module Format” Error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IPCF Compatibility Issue on S32G399A with BSP41: “Invalid Module Format” Error

Jump to solution
1,395 Views
MohamedAbdelslam
Contributor III

Hello all,

I'm facing compatibility issues while trying to use IPCF on the S32G399A. Here are the details of my setup and the steps I followed:

  1. Environment:
    • BSP Version: BSP 41 for the A-core (Almost IPCF version 4.9).
    • M-core IPCF: Downloaded and installed IPCF version 4.10 for the M-core from the NXP portal.
  2. Initial Issue:
    • After installing IPCF version 4.10 on the M-core, I followed the instructions in the IPCF_FreeRTOS_S32G399A_M7_0 example.
    • However, when executing the last step (echo 10 > /sys/kernel/ipc-shm-sample/ping), I received an error:
      Failed to get buffer for channel 1
    • I reached out to NXP support and was advised that the issue could be due to the version mismatch between IPCF 4.10 on the M-core and IPCF version on the A-core.
    • Steps Taken:
      • Following NXP's suggestion, I manually built the Linux kernel and IPCF version 4.10 on the A-core to ensure compatibility with the M-core.
      • After building, I copied the Linux image and IPCF modules (ipc-shm-dev.ko and ipc-shm-sample.ko) to the SD card’s boot partition.
    • Current Issue:
      • When attempting to load the newly compiled IPCF modules on the A-core, I encountered the following error:
root@s32g399ardb3:~# insmod ~/ipc-shm-dev.ko
insmod: ERROR: could not insert module /home/root/ipc-shm-dev.ko: Invalid module format
    • I verified that the kernel version running on the board matches the version used to build the IPCF modules.
  • Additional Details:
    • The kernel version on the A-core is 5.15.153-rt75+gadceb7e8fa72.
    • Here’s a summary of the files on the SD card and their locations:
      root@s32g399ardb3:~# ls /run/media/boot_s32g3-mmcblk0p1/
      Image  s32g399a-rdb3.dtb  s32g_pfe_class.fw

Aslo I tried to update IPCF verision on A core using Yocto and following instructions on readme file on ipc-shm repo but got the same errors

Given these details, I’m looking for guidance on resolving the "Invalid module format" error to enable IPCF 4.10 on both cores.
Additionally I want to know how to use IPCF version 4.9 on the M core As I did not find it on the NXP download center? 
If the issue with BSP 41, do you recommend another version of BSP? and then what version of IPCF should I use ?
Any insights on this issue would be highly appreciated. Thank you in advance!

Tags (1)
0 Kudos
Reply
1 Solution
1,283 Views
Joey_z
NXP Employee
NXP Employee

hi,MohamedAbdelslam

I used IPCF 4.9, BSP41 and IPCF_FreeRTOS_S32G399A_M7_0 demo for testing. No problems were found by referring to the description file. The operation method can be seen in the following figure. Please try to make sure that the M core and A core IPCF version is the same, about your BSP41 loading IPCF driver 4.10 problems, usually means that there is some kind of incompatibility between the module file and the kernel.

Joey_z_2-1731407606253.png

Joey_z_0-1731407511310.png

Joey_z_1-1731407519252.png

BR

Joey

View solution in original post

0 Kudos
Reply
4 Replies
1,349 Views
Joey_z
NXP Employee
NXP Employee

hi,MohamedAbdelslam

Access the Automotive Software Package Manager available under the Software section of the S32G product page (link:Automotive Software Package Manager | NXP Semiconductors )

Search for IPCF and download IPCF 4.9.0.

Joey_z_0-1731310754261.png

Your problem may be a version problem, I will further reproduce this problem, and help you solve this problem.

BR

Joey

 

 

0 Kudos
Reply
1,337 Views
MohamedAbdelslam
Contributor III
Hi @Joey_z
For Automotive Software Package Manager, i've requested downloading IPCF 4.9, however it usually takes time pending and give me rejected to download.
For my problem I already changed the default version of the IPCF on Linux image to be compatible with M core version as I explained in the question
0 Kudos
Reply
1,284 Views
Joey_z
NXP Employee
NXP Employee

hi,MohamedAbdelslam

I used IPCF 4.9, BSP41 and IPCF_FreeRTOS_S32G399A_M7_0 demo for testing. No problems were found by referring to the description file. The operation method can be seen in the following figure. Please try to make sure that the M core and A core IPCF version is the same, about your BSP41 loading IPCF driver 4.10 problems, usually means that there is some kind of incompatibility between the module file and the kernel.

Joey_z_2-1731407606253.png

Joey_z_0-1731407511310.png

Joey_z_1-1731407519252.png

BR

Joey

0 Kudos
Reply
1,322 Views
Joey_z
NXP Employee
NXP Employee

hi,MohamedAbdelslam

Thank you for your reply.

I'm trying to reproduce your question.

In addition, you said that there were problems in downloading IPCF 4.9. In order to provide you with better support, could you please show me the specific rejection information?

BR

Joey

0 Kudos
Reply