Skip to main content
Visitor II
August 31, 2022
Solved

Missing /dev/ttyRPMSG0

  • August 31, 2022
  • 5 replies
  • 2462 views

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

    This topic has been closed for replies.
    Best answer by Erwan SZYMANSKI

    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.

    5 replies

    Technical Moderator
    September 2, 2022

    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.

    MWoło.2Author
    Visitor II
    September 2, 2022

    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

    Technical Moderator
    September 2, 2022

    @Michał Wołowik​ ,

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

    Have a nice day,

    Erwan.

    MWoło.2Author
    Visitor II
    October 21, 2022

    Yes after migrate M4 is recognised in user space.

    BR Michał

    Visitor II
    October 21, 2022

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

    Many thanks.

    MWoło.2Author
    Visitor II
    October 21, 2022

    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