Can you provide a script of how to compile ipc-shm-us for S32G399?
The current work is as follows:
export ARCH=arm64
export CROSS_COMPILE=/home/niyu/Desktop/S32G/BSP/seperate/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-make s32cc_defconfig
make
git -C ipc-shm-us submodule update --init --remotegit -C ipc-shm-us checkout release/bsp35.0git -C ipc-shm-us/common checkout release/bsp35.0
export ARCH=arm64export CROSS_COMPILE=/home/niyu/Desktop/S32G/BSP/seperate/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-export PLATFORM_FLAVOR=s32g3make -C ./ipc-shm/sample PLATFORM_FLAVOR=s32g3 KERNELDIR=$PWD/linux modules
make -C ./ipc-shm-us/sample IPC_UIO_MODULE_DIR="/lib/modules/5.10.145-rt74+g09ebf03aa02c/extra"
解決済! 解決策の投稿を見る。
Hi Ni Yu
Hope you are doing well
Thanks for reaching to us. There may be sample.c compiles as user environment and uses ipc-shm.o which compiled for module. can you try below things
make -C ./ipc-shm-us/ clean
make -C ./ipc-shm-us/sample IPC_UIO_MODULE_DIR="/lib/modules/5.10.145-rt74+g09ebf03aa02c/extra"
and let us know if not solved
Regards ,
Tushar
Please provide me with some suggestions and ideas @nxp
Hi Ni Yu
Hope you are doing well
Thanks for reaching to us. There may be sample.c compiles as user environment and uses ipc-shm.o which compiled for module. can you try below things
make -C ./ipc-shm-us/ clean
make -C ./ipc-shm-us/sample IPC_UIO_MODULE_DIR="/lib/modules/5.10.145-rt74+g09ebf03aa02c/extra"
and let us know if not solved
Regards ,
Tushar
It takes effect, thank you very much. It's a problem with the ipc-shm. o file
But the demo seems doesn't work.
Step1: Compile IPCF_Example_S32G399_M7_0_demo.bin
Step2: Compile ipc-shm-dev.ko &&ipc-shm-sample.ko
step3 run demo
I realized that the PFE driver may interfere with the IPCF, so I adjusted the IPCF to use 0x34100000 (1M) 0x34200000 (1M) as the data interaction space. However, the system is in a stuck state, possibly due to the inability to obtain interrupts
ipc-shm demo
ipc-shm-us demo
I have currently checked the IPCF version, shared SRAM address, and possible conflicts.
But there are still issues, please help me. How should the s32g399 platform use this demo
Hi Ni Yu
Thanks, can you please raise a new ticket for new issue.