在VxWorks Workbench4中将DKM项目作为子项目/附加模块链接到内核映像(VIP)项目 [英] Linking DKM Projects to Kernel Image(VIP) project as a Sub project/Extra Module in VxWorks Workbench4

查看:88
本文介绍了在VxWorks Workbench4中将DKM项目作为子项目/附加模块链接到内核映像(VIP)项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用内核映像(VIP)项目链接/加载DKM项目,以便我可以从内核映像项目的"usrAppInit.c"调用DKM项目(应用程序)的入口点功能,以使应用程序在启动时自动启动?有人可以描述一下步骤或向我指出任何文档吗?

How to Link/Load DKM projects with Kernel Image(VIP) project so that i can call the Entry point function of DKM project(application) from Kernel Image project's "usrAppInit.c" to get the application started automatically at boot time? Could some one please describe steps or point me to any documentation?

推荐答案

  1. 将DKM项目添加为VIP的子项目.您可以拖放或打开VIP项目属性,然后从项目参考"中检查您的DKM项目
  2. 在usrAppInit.c中,调用DKM的入口点.您可能需要包括适当的标题
  3. 根据需要修改VIP包含路径,以包含头文件.
  4. 如果需要,将内核配置为对DKM使用正确的构建目标.

使用这种方法,在构建VIP时,它将首先构建子DKM项目(将生成.out文件),然后构建VIP,从而生成包含.out文件的vxworks映像

Using this approach, when you build the VIP, it will first build the child DKM projects (which will generate the .out files) then the VIP, generating a vxworks image that includes the .out files

这篇关于在VxWorks Workbench4中将DKM项目作为子项目/附加模块链接到内核映像(VIP)项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆