This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] Linux/AM3358:远程 proc 停止在更新的内核上工作

Guru**** 2555630 points
Other Parts Discussed in Thread: TPS65217

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/598350/linux-am3358-remote-proc-quit-working-on-newer-kernel

器件型号:AM3358
主题中讨论的其他器件:TPS65217

工具/软件:Linux

这可能不是此问题的正确论坛。  如果是、请指引我前往正确的论坛。

我一直在使用 BeagleBone Black 和 Green 为 PRU 开发代码。  我使用的是以下版本:

Linux BeagleBone 4.4.9.9-ti-R25 #1 SMP 星期四5月5日23:08:13 UTC 2016 armv71 GNU/Linux

我正在从 Arm 端到 PRU 执行 remote_proc。  我的.out 文件位于/lib/firmware 文件夹中。

我在启动时使用服务启动 Arm 代码。

在我升级到以下版本之前、一切都很好:

Linux BeagleBone 4.9.29-ti-rt-R36 #1 SMP 抢占 RT Wed 5月24日14:33:25 EDT 2017 armv7l GNU/Linux

我看到的是

无法打开/dev/rpmsg_pru31

当 Arm 代码执行以下操作时:


#define NUM_MESSAGES 100
#define DEVICE_NAME "/dev/rpmsg_pru31


void thread2_main (void)

INT 状态;
struct pollfd pollfds[1];
INT RESULT = 0;

/*打开 rpmsg_PRU 字符设备文件*/
pollfds[0].fd = open (device_name、O_RDWR);

/*
*如果 RPMsg 通道尚不存在、则字符器件
*也不会。
*确保已加载 PRU 固件以及 rpmsg_PRU
*模块已插入。
*
if (pollfds[0].fd < 0){
printf ("打开%s\n"、device_name 失败);
Close (pollfds[0].fd);
//返回-1;

我不确定在哪里查找问题。

发生了一些变化、因此 REMOT_PROC 无法连接。

这是我的 lsmod:

root@BeagleBone:/sys/module lsmod
使用的模块大小
binfmt_MISC 11051 1.
C_CAN_platform 7475 0
spidev 8867 0
C_CAN 12250 1 c_CAN_platform
CAN_DEV 14440 1 c_CAN
SPI_OMAP2_mcspi 12866 0
tieqep 8606 0
Virtio_rpmsg_BUS 13117 0
rpmsg_core 8217 1 virtio_rpmsg_bus
PRU_rproc 15399 0
pruss_INTC 8775 2 PRU_rproc
pruss 10633 1 PRU_rproc
OMAP-AES_DRIVER 23718 0
Crypto 引擎7035 1个 OMAP-AES_DRIVER
PRUSS_SoC_BUS 4596 0
OMAP-SHIM 26574 0
OMAP-Rng 5544 0
RNG_CORE 8523 1 OMAP-Rng
USB_f_ACM 8217 1.
U_serial 12927 3 USB_f_ACM
USB_f_RNDIS 25931 1.
G_MULTI 5958 0
USB_f_mass 存储50190 2 g_multi
U_ether 13883 2 g_multi, USB_f_RNDIS
libcomposite 54819 4 USB_f_ACM、USB_f_mass 存储、g_multi,USB_f_RNDIS
cpufreq_onDemand 7899 1.
evdev 13460 1.
cpufreq_usersspace 3807 0
cpufreq_conservative 4417 0
tps65217_charger 5088 0
cpufreq_powersave 1567 0
uio_pdrv_genirq 4045 0
uio 10625 1 uio_pdrv_genirq

我只是希望您能够向正确的方向指出我。

谢谢、

 

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好!

    [引用用户="Ty Dean"] Linux BeagleBone 4.9.29-ti-rt-R36 #1 SMP 抢占 RT Wed May 24 14:33:25 EDT 2017 armv7l GNU/Linux

    TI 仅支持官方的 TI 分布式 Linux SDK。 尝试在这些论坛中询问/查找有关此主题的解决方案

    BR

    玛格丽塔