rpmsg_pingpong demo does not work for kernel 5.10.35 on imx8mpevk

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

rpmsg_pingpong demo does not work for kernel 5.10.35 on imx8mpevk

ソリューションへジャンプ
2,040件の閲覧回数
Troglobyte
Contributor I

Hello

I successfully got the rpmsg_pingpong demo working with my imx8mpevk board with kernel 5.4.  This is the kernel version that is flashed on the board as received.

I then upgraded the kernel version to the latest 5.10.35 for this board.

Upon attempting to re-run the rpmsg_pingpong demo, the M7 core starts correctly but the rpmsg_pingpong.ko module fails to initiate the passing of messages.  I can see with the debugger that the M7 core is waiting for the Linux side to start but it never does.

My procedure is as follows...

1.  Power on the imx8mpevk board and enter Uboot prompt

2.  Compile and load the SDK example rpmsg_lite_pingpong_rtos_linux_remote (SDK 2.10...) using JLINK plus debugger.

3.  Start the M7 application with the debugger

4.  At the Uboot prompt, set environment variable setenv fdt_file 'imx8mp-evk-rpmsg.dtb'

5.  Start linux with "boot" command

6.  load the rpmsg_pingpong kernel module with "modprobe imx_rpmsg_pingpong"

7.  At this point the cores should start passing messages but nothing happens other than the initial messages printed to the M7 console.  I can see that the rpmsg_pingpong.ko files are present and loaded.

Any ideas what is wrong with the Linux side of the demo?

Regards

Rich

0 件の賞賛
返信
1 解決策
1,969件の閲覧回数
Zhiming_Liu
NXP TechSupport
NXP TechSupport

@Troglobyte 

you should  setenv fdtfile 'imx8mp-evk-rpmsg.dtb'

 

In 5.10.35 , there is no fdt_file

元の投稿で解決策を見る

0 件の賞賛
返信
5 返答(返信)
1,959件の閲覧回数
Troglobyte
Contributor I

Thanks...that was the problem.

0 件の賞賛
返信
1,970件の閲覧回数
Zhiming_Liu
NXP TechSupport
NXP TechSupport

@Troglobyte 

you should  setenv fdtfile 'imx8mp-evk-rpmsg.dtb'

 

In 5.10.35 , there is no fdt_file

0 件の賞賛
返信
2,012件の閲覧回数
Troglobyte
Contributor I

See attached kern.log files for runs on 5.4.70.232 vs 5.10.35.200...You can see the imx_rpmsg_pingpong kernel module get loaded and the additional messages as the module runs.  There are messages coming from the M7 UART console as well.  Unfortunately there is not much output in the kernel log for 5.10.35.200...I can see that the module is loaded with the lsmod command but that is about it...My debugger shows the M7 core is waiting for the A53 cores to start.

0 件の賞賛
返信
2,003件の閲覧回数
Troglobyte
Contributor I

I wanted to update this thread with additional info I didn't mention in my original post.

On the 5.10.35 kernel, you never see the "Link is up!" message (from the M7 core) when the kernel boots like you do in 5.4.70.  So there is something outside of the kernel module imx_rpmsg_pingpong.ko that isn't working to start with in this latest release.  I will attempt to post a boot log from both versions to compare...

0 件の賞賛
返信
2,024件の閲覧回数
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @Troglobyte 

 

Can you provide the detailed error log?

0 件の賞賛
返信