Hello Toradex Community,
first: here is our setup:
Software summary
------------------------------------------------------------
Bootloader: U-Boot
Kernel version: 6.1.46-6.5.0+git.8e6a2ddd4fe6 #1-TorizonCore SMP PREEMPT Thu Dec 21 17:08:38 UTC 2023
Kernel command line: root=LABEL=otaroot rootfstype=ext4 quiet logo.nologo vt.global_cursor_default=0 plymouth.ignore-serial-consoles splash fbcon=map:3 ostree=/ostree/boot.1/torizon/59c201478c9930c51af6b232132519c5ca010e1baecac1df2876a5daa3e77467/0
Distro name: NAME="TorizonCore"
Distro version: VERSION_ID=6.5.0-build.8
Distro variant: VARIANT="Docker"
Hostname: verdin-am62-15207085
------------------------------------------------------------
Hardware info
------------------------------------------------------------
HW model: Toradex Verdin AM62 on Verdin Development Board
Toradex version: 0075 V1.1A
Serial number: 15207085
Processor arch: aarch64
------------------------------------------------------------
We’ve been trying to communicate with the M4F on the SOC over the rpmsg. We’ve already enabled the appropritate overlay (verdin-am62_hmp_overlay.dts). But there is no /dev/rpmsg_tty
to communicate though.
The description here RPMsg TTY Example says that you have to load the module like: modprobe imx_rpmsg_tty
. But there is no module to load since its a different processor.
Here are some outputs:
available kernel modules:
torizon@verdin-am62-15207085:~$ find /lib/modules/$(uname -r) -type f -name '*rpm*.ko'
/lib/modules/6.1.46-6.5.0+git.8e6a2ddd4fe6/kernel/samples/rpmsg/rpmsg_client_sample.ko
/lib/modules/6.1.46-6.5.0+git.8e6a2ddd4fe6/kernel/drivers/rpmsg/rpmsg_pru.ko
/lib/modules/6.1.46-6.5.0+git.8e6a2ddd4fe6/kernel/drivers/rpmsg/virtio_rpmsg_bus.ko
/lib/modules/6.1.46-6.5.0+git.8e6a2ddd4fe6/kernel/drivers/rpmsg/rpmsg_char.ko
/lib/modules/6.1.46-6.5.0+git.8e6a2ddd4fe6/kernel/drivers/rpmsg/rpmsg_ctrl.ko
/lib/modules/6.1.46-6.5.0+git.8e6a2ddd4fe6/kernel/drivers/rpmsg/rpmsg_ns.ko
torizon@verdin-am62-15207085:~$ lsmod |grep "rpm"
rpmsg_client_sample 20480 0
rpmsg_ctrl 16384 0
rpmsg_char 16384 1 rpmsg_ctrl
virtio_rpmsg_bus 24576 0
rpmsg_ns 20480 1 virtio_rpmsg_bus
rpmsg config:
torizon@verdin-am62-15207085:~$ zcat /proc/config.gz | grep -i config_rpmsg
# CONFIG_RPMSG_TTY is not set
CONFIG_RPMSG=y
CONFIG_RPMSG_CHAR=m
CONFIG_RPMSG_CTRL=m
CONFIG_RPMSG_NS=m
# CONFIG_RPMSG_QCOM_GLINK_RPM is not set
CONFIG_RPMSG_VIRTIO=m
CONFIG_RPMSG_PRU=m
CONFIG_RPMSG_KDRV=y
# CONFIG_RPMSG_KDRV_DEMO is not set
# CONFIG_RPMSG_KDRV_DISPLAY is not set
CONFIG_RPMSG_KDRV_ETH_SWITCH=y
Questions
- How can we get the
/dev/rpmsg_tty
? - Which module has to be loaded?
- Do we have to modify the device tree overlay somehow like described here Verdin Mini RPMSG imx_rpmsg_tty Issue?
- And/or do we have to add something to the tcbuild.yaml file for the TorizonCoreBuilder?
Thanks in advance,
Uwe