我正确地生成了Yocto Hardnott Technesion的图像:

$ mkdir tn-imx-yocto
$ cd tn-imx-yocto
$ repo init -u https://github.com/TechNexion/tn-imx-yocto-manifest.git -b hardknott_5.10.y-next -m imx-5.10.52-2.1.0.xml
$ repo sync -j8
$ DISTRO=fsl-imx-x11 MACHINE=pico-imx7 BASEBOARD=pi source tn-setup-release.sh -b build-x11-pico-imx7
$ bitbake core-image-base

在我运行modprobe imx_rpmsg_tty之后,我遇到了一个问题:virtio_rpmsg_bus virtio0: msg received with no recipient

我试过这个:https://community.toradex.com/t/rpmsg-error-virtio-rpmsg-bus-virtio0-msg-received-with-no-recipient/12701

当我将第83行和第102行从src改为dst时,我得到了下面的错误(也请看最后一张照片):

/home/neuberfran/freertos-tn/examples/imx7d_pico_m4/demo_apps/rpmsg/str_echo_freertos/str_echo_freertos.c: In function 'StrEchoTask':
/home/neuberfran/freertos-tn/examples/imx7d_pico_m4/demo_apps/rpmsg/str_echo_freertos/str_echo_freertos.c:83:75: error: 'dst' undeclared (first use in this function)
         result = rpmsg_rtos_recv_nocopy(app_chnl->rp_ept, &rx_buf, &len, &dst, 0xFFFFFFFF);
                                                                           ^
/home/neuberfran/freertos-tn/examples/imx7d_pico_m4/demo_apps/rpmsg/str_echo_freertos/str_echo_freertos.c:83:75: note: each undeclared identifier is reported only once for each function it appears in
/home/neuberfran/freertos-tn/examples/imx7d_pico_m4/demo_apps/rpmsg/str_echo_freertos/str_echo_freertos.c:63:19: warning: unused variable 'src' [-Wunused-variable]
     unsigned long src;
                   ^
make[2]: *** [CMakeFiles/rpmsg_str_echo_freertos_example.dir/build.make:94: CMakeFiles/rpmsg_str_echo_freertos_example.dir/home/neuberfran/freertos-tn/examples/imx7d_pico_m4/demo_apps/rpmsg/str_echo_freertos/str_echo_freertos.c.obj] Erro 1
make[2]: ** Esperando que outros processos terminem.
make[1]: *** [CMakeFiles/Makefile2:76: CMakeFiles/rpmsg_str_echo_freertos_example.dir/all] Erro 2

The error is being printed on line 761: https://elixir.bootlin.com/linux/latest/source/drivers/rpmsg/virtio_rpmsg_bus.c#L761

如何解决?

编辑:我认为问题可以留在Vring[0]Vring1.链接如下.因为我可以

#define VRING0_BASE     0xBFFF0000
#define VRING1_BASE     0xBFFF8000 

在平台信息中.c但是我不能在imx_rpmsg中进行更改.C

https://imxdev.gitlab.io/tutorial/Multicore_communication_on_WaRP7_using_Remote_Processor_Messaging_bus_(RPMsg)/

enter image description here

enter image description here

推荐答案

2022年4月13日,当我编辑这篇文章/问题并将其链接为https://imxdev.gitlab.io/tutorial/Multicore_communication_on_WaRP7_using_Remote_Processor_Messaging_bus_(RPMsg)/时,我开始解决我的问题

在freertos tn/middleware/multicore/open amp/porting/imx7d-m4/platform_info.c文件中,定义VRING1_BASE correct为0x9FFF8000

现在,我可以用str_echo_freertos脚本/示例运行RPMsg:

enter image description here

Linux相关问答推荐

并行函数的最后一个实例的状态

如何判断程序是在终端上运行还是在后台运行?

不带空格的字符串连接形成文件路径

运行系统命令失败,但相同的命令可以直接在 bash 中执行

在 bash 中使用 tee 时如何返回错误代码

如何修复 script(1) 实用程序输出的换行符?

如何验证所有 csv 文件是否具有相同的第一行?

Linux 如何使用 PCID 的值?

文件未在脚本中使用 cp 命令复制到 Docker 容器中

Bash 更新 yaml 文件中的图像值

有没有办法定义自定义隐式 GNU Make 规则?

我有 ext2 格式的文件系统图像.我喜欢在终端中读取 Linux 特别是 Ubuntu 中的所有文件系统 struct 数据.有没有工具>

使用打印命令 Select 子域

如何在 AWS Linux 服务器上实现虚拟主机?

仅显示 tcsh 或 bash 中作为符号链接的文件和文件夹

使用 awk 或 sed 删除特定字符

PuTTY:更改默认 SSH 登录目录

如何将 bash 别名定义为多个命令的序列?

Bash:等待超时

Linux 目录列表中只有问号