首先,安卓系统完全启动4AJ.2.1。
其次,查看OMAP4的Tesla相关信息,检查Tesla是否使能。(有如下显示,则OK)
cat /d/emoteproc/omap-rproc.0/version                                                <
rpmsg: 1.20.09.23
core0: 1.20.09.23
        xdctools_3_23_04_60
        ipc_1_24_03_32
        bios_6_33_06_50
        TI_CGT_C6000_7.3.4
127|shell@android:/d/remoteproc/omap-rproc.0 # cat trace0                     
[      0.000] 10 IpcMemory entries at 20000010
[      0.000] Watchdog enabled: TimerBase = 0x1d3a000 Freq = 38400000
[      0.000] Watchdog_restore registered as a resume callback
[      0.000] DSP starting..
[      0.001] copyTask 50: Entered...:
[      0.005] VirtQueue_startup: bufAddr address of 0xa0000000 received
[      0.005] registering rpmsg-client-sample service on 50 with HOST
[      0.009] copyTask 51: Entered...:
[      0.009] registering rpmsg-client-sample service on 51 with HOST
[      0.011] OmxSrvMgr: started on port: 60
[      0.011] registering rpmsg-omx2 service on 60 with HOST
[      0.011] OmxSrvMgr: Proc#3 sending BOOTINIT_DONE
最后,运行编译好的官方示例,并查看相关信息。
1|shell@android:/data/test_dsp # ./omx_sample 2                           
omx_sample: Connected to OMX
omx_sample (1): OMX_GetHandle (H264_decoder).
        msg_id: 99, fxn_idx: 5, data_size: 13, data: OMX_Callback
omx_sample (1): Got omx_handle: 0x5c0ffee5
omx_sample(1): OMX_SetParameter (0x5c0ffee5)
omx_sample (1): Got result 0
omx_sample: Closed connection to OMX!
shell@android:/data/test_dsp # ./omx_benchmark 2                           
omx_sample: Connected to OMX
omx_benchmarkex: called fxnDouble(1)), result = 2
exec_cmd time (1): 61
exec_cmd avg time: 61 usecs
omx_sample: Closed connection to OMX!
shell@android:/data/hmm_test_dsp # ./omx_benchmark 2 10                        
omx_sample: Connected to OMX
omx_benchmarkex: called fxnDouble(1)), result = 2
exec_cmd time (1): 91
omx_benchmarkex: called fxnDouble(2)), result = 4
exec_cmd time (2): 61
omx_benchmarkex: called fxnDouble(3)), result = 6
exec_cmd time (3): 61
omx_benchmarkex: called fxnDouble(4)), result = 8
exec_cmd time (4): 61
omx_benchmarkex: called fxnDouble(5)), result = 10
exec_cmd time (5): 61
omx_benchmarkex: called fxnDouble(6)), result = 12
exec_cmd time (6): 91
omx_benchmarkex: called fxnDouble(7)), result = 14
exec_cmd time (7): 91
omx_benchmarkex: called fxnDouble(8)), result = 16
exec_cmd time (8): 61
omx_benchmarkex: called fxnDouble(9)), result = 18
exec_cmd time (9): 61
omx_benchmarkex: called fxnDouble(10)), result = 20
exec_cmd time (10): 61
exec_cmd avg time: 70 usecs
omx_sample: Closed connection to OMX!
shell@android:/data/test_dsp #
DSP核调试信息
cat /d/remoteproc/omap-rproc.0/trace0                                                         <
[      0.000] 10 IpcMemory entries at 20000010
[      0.000] Watchdog enabled: TimerBase = 0x1d3a000 Freq = 38400000
[      0.000] Watchdog_restore registered as a resume callback
[      0.000] DSP starting..
[      0.000] copyTask 50: Entered...:
[      0.004] VirtQueue_startup: bufAddr address of 0xa0000000 received
[      0.004] registering rpmsg-client-sample service on 50 with HOST
[      0.007] copyTask 51: Entered...:
[      0.007] registering rpmsg-client-sample service on 51 with HOST
[      0.009] OmxSrvMgr: started on port: 60
[      0.009] registering rpmsg-omx2 service on 60 with HOST
[      0.009] OmxSrvMgr: Proc#3 sending BOOTINIT_DONE
[      5.054] IpcPower_postResume: BIOS Tick Timer may lose context across Device OFF (depending on host-side code)
[      5.057] OmxSrvMgr: received msg type: 0 from addr: 1025
[      5.057] OmxSrvMgr: CONN_REQ: len: 4, name: OMX
[      5.063] createService: new OMX Service at endpoint: 101
[      5.063] OmxSrvMgr: Replying with msg type: 1 to addr: 1025  from: 60
[      5.074] OmxSrvMgr: received msg type: 4 from addr: 1025
[      5.074] OmxSrvMgr: OMX_DISCONNECT: len 4, addr: 101
[      5.075] RcmServer_serverThrFxn_P: Exiting thread.
[      5.075] deleteService: removed RcmServer at endpoint: 101
[     10.092] IpcPower_postResume: BIOS Tick Timer may lose context across Device OFF (depending on host-side code)
[     10.095] OmxSrvMgr: received msg type: 0 from addr: 1025
[     10.095] OmxSrvMgr: CONN_REQ: len: 4, name: OMX
[     10.102] createService: new OMX Service at endpoint: 101
[     10.102] OmxSrvMgr: Replying with msg type: 1 to addr: 1025  from: 60
[     10.112] OmxSrvMgr: received msg type: 4 from addr: 1025
[     10.112] OmxSrvMgr: OMX_DISCONNECT: len 4, addr: 101
[     10.113] RcmServer_serverThrFxn_P: Exiting thread.
[     10.115] deleteService: removed RcmServer at endpoint: 101
[     15.273] IpcPower_postResume: BIOS Tick Timer may lose context across Device OFF (depending on host-side code)
[     15.276] OmxSrvMgr: received msg type: 0 from addr: 1025
[     15.276] OmxSrvMgr: CONN_REQ: len: 4, name: OMX
[     15.283] createService: new OMX Service at endpoint: 101
[     15.283] OmxSrvMgr: Replying with msg type: 1 to addr: 1025  from: 60
[     15.293] OmxSrvMgr: received msg type: 4 from addr: 1025
[     15.293] OmxSrvMgr: OMX_DISCONNECT: len 4, addr: 101
[     15.294] RcmServer_serverThrFxn_P: Exiting thread.
[     15.296] deleteService: removed RcmServer at endpoint: 101
[     20.891] IpcPower_postResume: BIOS Tick Timer may lose context across Device OFF (depending on host-side code)
[     20.894] OmxSrvMgr: received msg type: 0 from addr: 1025
[     20.894] OmxSrvMgr: CONN_REQ: len: 4, name: OMX
[     20.901] createService: new OMX Service at endpoint: 101
[     20.901] OmxSrvMgr: Replying with msg type: 1 to addr: 1025  from: 60
[     20.908] OmxSrvMgr: received msg type: 4 from addr: 1025
[     20.908] OmxSrvMgr: OMX_DISCONNECT: len 4, addr: 101
[     20.909] RcmServer_serverThrFxn_P: Exiting thread.
[     20.911] deleteService: removed RcmServer at endpoint: 101
[     26.619] IpcPower_postResume: BIOS Tick Timer may lose context across Device OFF (depending on host-side code)
[     26.622] OmxSrvMgr: received msg type: 0 from addr: 1025
[     26.622] OmxSrvMgr: CONN_REQ: len: 4, name: OMX
[     26.629] createService: new OMX Service at endpoint: 101
[     26.629] OmxSrvMgr: Replying with msg type: 1 to addr: 1025  from: 60
[     26.662] OmxSrvMgr: received msg type: 4 from addr: 1025
[     26.662] OmxSrvMgr: OMX_DISCONNECT: len 4, addr: 101
[     26.663] RcmServer_serverThrFxn_P: Exiting thread.
[     26.665] deleteService: removed RcmServer at endpoint: 101
参考资料:
1、http://www.omappedia.com/wiki/RPMsg_Tesla

OMAP4之DSP核(Tesla)软件开发学习(四)ARM核与DSP核通讯示例的更多相关文章

  1. OMAP4之DSP核(Tesla)软件开发学习(三)使能DSP核

    目标: 1.编译或直接获取DSP映像tesla-dsp.bin. 2.boot并使能DSP核(这个可以看启动打印或者进入/d/remoteproc/omap-rproc.0/参看dsp调试信息).   ...

  2. OMAP4之DSP核(Tesla)软件开发学习(一)

    目的:       目前手上正在OMAP4上做东西,由于涉及到大量运算,交给arm A9双核发现运算速度很慢,不能满足需求.故考虑将大量运算任务(比如FIR.FFT.卷积.图像处理.向量运算等)交给O ...

  3. Java开发学习(四十一)----MyBatisPlus标准数据层(增删查改分页)开发

    一.标准CRUD使用 对于标准的CRUD功能都有哪些以及MyBatisPlus都提供了哪些方法可以使用呢? 我们先来看张图: 1.1 环境准备 这里用的环境就是Java开发学习(四十)----MyBa ...

  4. OMAP4之DSP核(Tesla)软件开发学习(二)Linux内核驱动支持OMAP4 DSP核

    注:必须是Linux/arm 3.0以上内核才支持RPMSG,在此使用的是.config - Linux/arm 3.0.31 Kernel Configuration.(soure code fro ...

  5. 转载:使用Xilinx IP核进行PCIE开发学习笔记(一)简介篇

    https://zhuanlan.zhihu.com/p/32786076 最近接触到一个项目,需要使用PCIE协议,项目要求完成一个pcie板卡,最终可以通过电脑进行通信,完成电脑发送的指令.这当中 ...

  6. 软件开发学习笔记 <二>软件开发模型、Up、Rup、敏捷Up

    软件开发过程(process) 是一个将用户需求转化为软件系统所需要的活动的集合. 软件生命周期(SDLC,Software Devlopment Life Cycle) 软件从孕育.诞生.成长.成熟 ...

  7. 软件开发学习笔记 <一> UML

    UML http://www.uml-diagrams.org http://www.umlchina.com/index.htm 统一建模语言(UML)始于1997年的一个OMG(对象管理组织)标准 ...

  8. 程序员带你十天快速入门Python,玩转电脑软件开发(四)

    本系列文章立志于从一个已经习得一门编程语言的基础之上,全面介绍Python的相关开发过程和相关经验总结.本篇文章主要是基于上一篇的程序员带你十天快速入门Python,玩转电脑软件开发(三)的基础之上, ...

  9. delphi开发学习四:TClientDataSet与TDataSetProvider控件使用实例

    1.TClientDataSet控件 通过TClientDataSet控件可以建立瘦客户端的应用程序,且数据执行效率较高,但它不能和数据库自动连接,程序中必须制定它如何获取数据.一般情况下,TClie ...

随机推荐

  1. centos 邮件服务 腾讯企业邮箱(免费) 使用iRedmail 需要有公网的centos主机 发邮件协议:smtp 端口25 收邮件协议:pop3 端口110 iredmail安装配置 使用邮箱系统 第三十一节课

    centos   邮件服务  腾讯企业邮箱(免费) 使用iRedmail 需要有公网的centos主机 发邮件协议:smtp 端口25  收邮件协议:pop3 端口110  iredmail安装配置 ...

  2. 邮件服务器Postfix的管理 重启php-fpm

    Postfix邮件系统安装与配置:Postfix,Cyrus-IMAP,Cyrus-sasl,Dovecot和SPFhttp://www.freehao123.com/postfix-cyrus/Ce ...

  3. [WorldWind学习]20.修改ShapeFileLayer类及托管D3D文字绘制方法

    PluginSDK\ShapeFileLayer.cs Line:1027char[] fieldDataChars = dbfReader.ReadChars(fieldHeaders[j].Fie ...

  4. maven+springboot项目使用idea打包

    首先简单了解一下maven: 概述 日常开发中,我们用到的maven相关功能大概以下几种: 1. 管理jar依赖 2. 构建项目(打包.编译等) 3. 发布项目(共享.上传至服务器,供他人使用) 简单 ...

  5. Ambari Rest api 使用

    最近由于项目的需要在看一些Ambari的api去获取集群的一些信息,获取集群节点的状态信息以及各个服务和组件的信息.然后在我们的数据服务管理平台上去做一些监控运维,现在把一些使用总结一下:官网rest ...

  6. PAT 1088 Rational Arithmetic[模拟分数的加减乘除][难]

    1088 Rational Arithmetic(20 分) For two rational numbers, your task is to implement the basic arithme ...

  7. AngularJS SQL

    服务端代码 以下列出了列出了几种服务端代码类型: 使用 PHP 和 MySQL.返回 JSON. 使用 PHP 和 MS Access.返回 JSON. 使用 ASP.NET, VB, 及 MS Ac ...

  8. Python 安装pytz

    1.    https://pypi.org/project/pytz/#files 2.    下载上图标黄的文件, 3.    pip install 4.    from pytz import ...

  9. python webdriver 测试框架-数据驱动json文件驱动的方式

    数据驱动json文件的方式 test_data_list.json: [ "邓肯||蒂姆", "乔丹||迈克尔", "库里||斯蒂芬", & ...

  10. 在apache中使用.htaccess文件的注意事项

    在apache的配置文件中: <VirtualHost *:80> ServerName tp5.com DocumentRoot d:/wamp/www/tp5.com/public & ...