S32G3 IPC-shm-us Question

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

S32G3 IPC-shm-us Question

ソリューションへジャンプ
1,734件の閲覧回数
Coco111
Contributor III

Can you provide a script of how to compile ipc-shm-us for S32G399?

The current work is as follows:

一. Build kernel
git checkout bsp35.0-5.10.145-rt
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
 
 
二. compile ipc-shm-us
 Screenshot from 2023-07-10 17-13-54.png
git -C ipc-shm-us submodule update --init --remote
git -C ipc-shm-us checkout  release/bsp35.0
git -C ipc-shm-us/common checkout  release/bsp35.0
 
the first compilation is ok
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-
export PLATFORM_FLAVOR=s32g3
make -C ./ipc-shm/sample PLATFORM_FLAVOR=s32g3 KERNELDIR=$PWD/linux modules
 
but the following command failed
 
make -C ./ipc-shm-us/sample IPC_UIO_MODULE_DIR="/lib/modules/5.10.145-rt74+g09ebf03aa02c/extra"
Screenshot from 2023-07-10 17-20-56.png
 
0 件の賞賛
返信
1 解決策
1,707件の閲覧回数
nxf92355
NXP Employee
NXP Employee

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

元の投稿で解決策を見る

0 件の賞賛
返信
6 返答(返信)
1,710件の閲覧回数
Coco111
Contributor III

Please provide me with some suggestions and ideas @nxp

0 件の賞賛
返信
1,708件の閲覧回数
nxf92355
NXP Employee
NXP Employee

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

0 件の賞賛
返信
1,698件の閲覧回数
Coco111
Contributor III

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

1.PNG2.PNG

Step2: Compile ipc-shm-dev.ko &&ipc-shm-sample.ko

git checkout SW32G_IPCF_4.8.0_D2212
 
export ARCH=arm64
export CROSS_COMPILE=<DIR>/Desktop/S32G/BSP/seperate/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-
 
make -C ./ipc-shm/sample PLATFORM_FLAVOR=s32g3 KERNELDIR=$PWD/linux modules
 
 
Note: Modification of ipc-shm (Is this a source code error?)
Screenshot from 2023-07-13 12-23-00.png

 

step3 run demo
  
uboot=>dcache off;
uboot=>mw.q 0x34000000 0x0 0x100000;
uboot=>tftp 0x80000000 IPCF_Example_S32G399_M7_0_demo.bin;
uboot=>cp.b 0x80000000 0x34300000 0xc0000;
uboot=>startm7 0x34381000
 
linux#insmod ipc-shm-dev.ko;insmod ipc-shm-sample.ko;
linux#echo 10 > /sys/kernel/ipc-shm-sample/ping
 
I got an error:
Screenshot from 2023-07-13 12-27-16.png
 
0 件の賞賛
返信
1,678件の閲覧回数
Coco111
Contributor III

 

Screenshot from 2023-07-13 15-08-46.png

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

Screenshot from 2023-07-13 15-22-19.png

ipc-shm-us demo

Screenshot from 2023-07-13 15-16-29.png

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

@nxf92355 

0 件の賞賛
返信
1,673件の閲覧回数
nxf92355
NXP Employee
NXP Employee

Hi Ni Yu

Thanks,  can you please raise a new ticket for new issue.

0 件の賞賛
返信
1,663件の閲覧回数
Coco111
Contributor III
OKay
0 件の賞賛
返信