cancel
Showing results for 
Search instead for 
Did you mean: 

Missing /dev/ttyRPMSG0

MWoło.2
Senior II

Hi,

After installing and running the latest, OpenStLinux discovered a problem with M4. Firmware is loading fine, but the system doesn't create /dev/ttyRPMSGx channel. What is changed in comparison to the dunfell?

[ 2399.320707] remoteproc remoteproc0: powering up m4
[ 2399.330950] remoteproc remoteproc0: Booting fw image my-m4-firmware_CM4.elf, size 3297396
[ 2399.361010] rproc-srm-core 10000000.m4:m4_system_resources: bound 10000000.m4:m4_system_resources:timer@40000000 (ops 0xc0e1da)
[ 2399.391021] rproc-srm-core 10000000.m4:m4_system_resources: bound 10000000.m4:m4_system_resources:serial@4000f000 (ops 0xc0e1d)
[ 2399.403977] rproc-srm-core 10000000.m4:m4_system_resources: bound 10000000.m4:m4_system_resources:serial@40011000 (ops 0xc0e1d)
[ 2399.437731] rproc-srm-core 10000000.m4:m4_system_resources: bound 10000000.m4:m4_system_resources:serial@40018000 (ops 0xc0e1d)
[ 2399.474831] rproc-srm-core 10000000.m4:m4_system_resources: bound 10000000.m4:m4_system_resources:serial@40019000 (ops 0xc0e1d)
[ 2399.494878] rproc-srm-core 10000000.m4:m4_system_resources: bound 10000000.m4:m4_system_resources:timer@44000000 (ops 0xc0e1da)
[ 2399.507736] rproc-srm-core 10000000.m4:m4_system_resources: bound 10000000.m4:m4_system_resources:serial@44003000 (ops 0xc0e1d)
[ 2399.518703] rproc-srm-core 10000000.m4:m4_system_resources: bound 10000000.m4:m4_system_resources:dma@48001000 (ops 0xc0e1da24)
[ 2399.529872] rproc-srm-core 10000000.m4:m4_system_resources: bound 10000000.m4:m4_system_resources:adc@48003000 (ops 0xc0e1da24)
[ 2399.544254]  remoteproc0#vdev0buffer: assigned reserved memory node vdev0buffer@10042000
[ 2399.552260] virtio_rpmsg_bus virtio0: rpmsg host is online
[ 2399.556616] virtio_rpmsg_bus virtio0: creating channel rpmsg-tty-channel addr 0x400
[ 2399.564414]  remoteproc0#vdev0buffer: registered virtio0 (type 7)
[ 2399.570653] remoteproc remoteproc0: remote processor m4 is now up

1 ACCEPTED SOLUTION

Accepted Solutions
Erwan SZYMANSKI
ST Employee

Hello @Michał Wołowik​ ,

Can you please double check that you use the latest firmware package ? The M4 code that manage coprocessor communication has changed so you have to update the M4 part.

Kind regards,

Erwan.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

View solution in original post

7 REPLIES 7
Erwan SZYMANSKI
ST Employee

Hello @Michał Wołowik​ ,

Can you please double check that you use the latest firmware package ? The M4 code that manage coprocessor communication has changed so you have to update the M4 part.

Kind regards,

Erwan.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
MWoło.2
Senior II

Thanks, Erwan,

works. Now M4 creates /dev/RPMGS0.

After migration and generating the code, I discover that the labels for GPIO which I added previously disappears. But this is probably a malfunction of the Cube.

Thanks

BR Michal

@Michał Wołowik​ ,

Thank you for your feedback, glad to see that you could solve your issue.

Have a nice day,

Erwan.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

How did you migrate?

I have the same problem (system doesn't create /dev/ttyRPMSGx channels).

Thanks!

MWoło.2
Senior II

Yes after migrate M4 is recognised in user space.

BR Michał

TArre.1
Associate III

and how did you update to the latest firmware? i do not know how to do or check it.

Many thanks.

MWoło.2
Senior II

The update procedure is straightforward. Just update the Cube Ide application to the latest or install the latest version. When You open ioc file application asks You to continue or migrate, click migrate. In my case, I need a bit to change the code some defines etc., after such migration M4 works correctly.

The very important thing is correctly creating a base project, You have to have a ioc file.

BR Michal