嵌入式开发者社区

标题: 创龙TL-IPC双核通讯错误 [打印本页]

作者: baiwater521    时间: 2019-4-2 15:27
标题: 创龙TL-IPC双核通讯错误
我用tl_ipc方式进行双核通讯,步骤是按手册中操作的,但是没有成功请问怎么回事,以下代码是我在开发板输入./run.sh后输出的代码
8 m6 ^9 h( G0 b& _3 M3 E( Tmodprobe syslink                                                            R$ K! W$ F7 y: F/ C5 L7 g( i
slaveloader startup DSP ./helloworld_tlipc.out                           7 H6 B" e3 ^4 w( a

8 f/ G2 a7 d/ R  N# ?, K% pmodprobe c674x-irq-events && sleep 4 # wait for device node created           0 p8 B, {  O& d8 D7 ^6 ^! N0 b
./app_host                                                                    
! b: f  A$ p$ X8 N1 vrmmod c674x-irq-events                                                        
, r  m% y8 {! K# E: Y, ]
/ \* G% n; x+ s4 n$ d" D% Nslaveloader shutdown DSP                                                
! S. A" N  I" {) y6 E: U8 Q+ T6 ~rmmod syslink                                                                 
1 R3 Q4 }) [7 eroot@omapl138-Tronlong:/home/test/helloworld_tlipc# ./run.sh : r* e$ ]9 g1 S4 f; u- [
+ modprobe syslink9 K( T2 j4 u6 d- B) I9 S2 c* d+ ^
[  173.161745] SysLink version : 2.21.01.051 w5 l. U* R% h
[  173.161773] SysLink module created on Date:Aug 27 2017 Time:00:24:22
6 K. }' W1 Z3 N  ]+ slaveloader startup DSP ./helloworld_tlipc.out
5 ~. g* q- \0 L: b. l- Y# D" {Attached to slave procId 0.
# f, L5 q4 O8 r. CLoading procId 0.' o* o$ D1 ^3 p2 g2 F( U; n
Loaded file ./helloworld_tlipc.out on slave procId 0.
+ M2 A3 x" Z( ^% uStarted slave procId 0.) W9 R- d3 ?0 p% z9 i
+ modprobe c674x-irq-events% y/ t( g. x* |, `- F2 q, a- `( R
[  173.502316] input: c674x_irqs as /devices/virtual/input/input3
2 ^. |9 _- G2 D+ sleep 4% J) ^3 ~# N" `5 B% }, F
+ ./app_host; ^7 B1 C+ h8 c
fail to open /dev/input/c674x_irq_events
- G( r! u- j/ h+ t+ rmmod c674x-irq-events
& }; a+ [7 V7 o' ^[  177.615980] input input3: c674x_irq_exit!6 S' A8 @; @  D) `
+ slaveloader shutdown DSP
8 s) k# e( k8 Q" @Stopped slave procId 0.
1 X. G2 I" Z. K$ U. MUnloaded slave procId 0.
/ ]+ P' c) W& H# W, f1 B3 i  [Detached from slave procId 0.
$ b- z: w0 w- Z& A4 _! L+ rmmod syslink, r) o6 e8 i) E6 C; y
[  177.837527] Removed syslink kernel module' ]( q$ x, U; `+ ~. C. E

) k% J  r: F  T& s, a" n( ^1 }7 O  {' [7 @8 J( N5 m
我是将.( c! i) `9 K, _0 ^
├── app_host' ]  D6 l& O3 m; @! o- s8 p' a! ^
├── helloworld_tlipc.out, j  ]! q$ O4 A  ]
├── run.sh
) U" C* M+ c2 v  z  H8 x├── slaveloader- M. |. w( S3 F, D
└── syslink.ko
) [3 I0 L( `# H* M└── c674x-irq-events.ko
: X& H8 Z* G) x放入开发板的文件系统中然后执行./run.sh。
% U, w6 {+ C. j. b: N( a7 F$ a% m还去指导一下,到底是怎么回事  q3 @* b. O) e+ j7 E+ X6 \
app_host文件和helloworld_tlipc文件都是用您们提供的tr_arm的文件编译成的* D7 G4 q! i2 |6 |" z* Z

' c; u: ?& E  H' g: b0 f2 e
作者: 广州创龙莫工    时间: 2019-4-4 18:32
您好。这个是因为之前版本的linux,c674x-irq-events和event1设备文件重命名了。您将工程里面的c674x-irq-events改成event1重新编译就可以了。
' w( r# w' ]- r9 T# m! h% P1 ?4 `; ?' H2 f8 w5 Y# C; ?
0 P! d  t2 F8 s  v





欢迎光临 嵌入式开发者社区 (https://www.51ele.net/) Powered by Discuz! X3.4