Chinaunix首页 | 论坛 | 博客
  • 博客访问: 99982
  • 博文数量: 20
  • 博客积分: 1400
  • 博客等级: 上尉
  • 技术积分: 240
  • 用 户 组: 普通用户
  • 注册时间: 2008-02-21 11:18
文章分类

全部博文(20)

文章存档

2011年(1)

2009年(3)

2008年(16)

我的朋友

分类:

2009-03-10 10:19:06

2009/1/4
使用tftp,串口连接Target,下载内核
1.uboot的使用
1) 采用串口,波特率为115200, 采用QNX M IDE默认的设置,按任意键,即可进入uboot
2) 常用的命令有:
   setenv serverip 192.168.0.1;设置服务器tftp地址
   setenv ipaddr   192.168.0.2;设置本地tftp地址
   tftp 20000 file; 通过tftp下载内核到0x20000 RAM 地址
   go 20000; 运行指定位置未压缩的程序

2.QNX M IDE 的TFTP服务器启动
  打开TFTP的view, 在linux系统中启动报错, 为linux/proxy:cannot execute
  解决方法如下:
  In the IDE on Linux, if you aren't logged in as root, and you try to start the tftp server and
  bind to port 67 (which requires root privileges), the IDE now displays an error message. If you want
  to run tftp as a non-root user, change the port (e.g. to 6700), or make the proxy program set its
  user ID to root. For example:
  su chown root eclipse/plugins/com.qnx.tools.ide.tftp_VERSION/os/linux/proxy
  chmod a+sx eclipse/plugins/com.qnx.tools.ide.tftp_VERSION/os/linux/proxy


2009/02/23
使用vmware 6 安装 QNX 6.4 一切正确;使用virtualbox 2.1.2安装QNX时,鼠标不正常。
采用vmware 后, 网络采用host only方式, 设置qnx采用vmnet1,qnx采用dchp方式,
自动获取IP,取得IP后,两者即可通讯。

2009/02/23
使用QNX M IDE可以链接到QNX 目标机,在QNX IDE中建立Target project项目,填写Target的IP,端口号不变。
再在target端启动qconn进程。此时在IDE中就可以看到target的目录了。

2009/02/24
报没有找到相关photon的图形库函数,就加上
-lAp -lph

提示错误信息:undefined reference to gxx_personality_v0
加上标准库-lstdc++ 或者表示程序为C++

C 程序用 qcc
c++ 程序用 QCC

Ap: Unable to open resource file
在用qconn下载程序时,在update选项中,不用strip应用程序。

QNX 项目采用的是makefile方式,不是managed c/c++
主要是common.mk组织makefile文件,
#===== EXTRA_SRCVPATH - a space-separated list of directories to search for source files.
EXTRA_SRCVPATH+=$(PROJECT_ROOT)/src  ;主要用于指定源程序位置

//////////
#===== POST_BUILD - extra steps to do after building the image.
define POST_BUILD
phabbind $(BUILDNAME) $(PHAB_MODULES)
endef
include $(MKFILES_ROOT)/qmacros.mk
#QNX internal start
include $(PROJECT_ROOT)/src/abWfiles
include $(PROJECT_ROOT)/src/abLfiles
LIBS += $(subst -l, ,$(ABLIB))
PHAB_MODULES = $(foreach mod,$(ABMOD),$(PROJECT_ROOT)/wgt/$(mod))
EXTRA_DEPS += $(PHAB_MODULES)
/////////
以上用于由AP生成的图形界面编译代码

2009/02/27
设置vmware里QNX与主机linux的共享,采用FTP方式
修改/etc/inetd.conf文件,打开ftpd服务
运行inetd -d 起动服务
修改/etc/ftpuser文件,起动一个用户,比如root
passwd root修改root的密码

在主机中,采用ftp客户端,比如linux下的ftp命令端
ftp 192.168.71.130
输入用户名及密码,即可以链接。
>ftp ;输入help可以查看相关的命令。
或者下载一个ftp客户端

2009/03/03
#===== EXTRA_SRCVPATH - a space-separated list of directories to search for source files.
EXTRA_SRCVPATH+=$(PROJECT_ROOT_Global) $(PROJECT_ROOT)/CAN  \
    $(PROJECT_ROOT)/check

以上用于编译多文件夹的源代码结构,在QNX生成的common.mk中,增加
以上内容,写上每个文件夹,make会自动编译列的每个文件夹下的文件。

2009/03/04
当一个工程分为几个项目做时,项目之间可以相互引用,在项目的properties中的compiler的extra include中
现在引用的项目。在links中,extra library paths中选择项目。在 extra library选择别的项目生成的库文件。
在引用的项目名称与生成的类库文件名称应该相同,不同时可以通过项目的properties中的general中的Target base name
中进行修改

2009/03/27
在加入gtest库时,由于gtest用了许多扩展库,在在项目的properties中的link中link against cpp library中
GNU With Exception.
阅读(8891) | 评论(4) | 转发(0) |
0

上一篇:linux下代码统计

下一篇:google test学习使用

给主人留下些什么吧!~~

chinaunix网友2010-04-07 09:25:15

呵呵 株洲的朋友啊,你怎么都不发新 贴了,你们的产品已经出来了吗,我还刚开始弄呢,还请多多指教,请加 12371944 谢谢

chinaunix网友2009-04-02 10:51:10

您好!我最近在学习QNX,不知道怎么下手,希望得到前辈的指教,我的QQ:364746948,能加你为好友吗?谢谢!

chinaunix网友2009-03-17 13:52:41

看看IP

chinaunix网友2009-03-12 13:55:34

嚯嚯,居然是你