开发环境:QNX SDP 6.6;
下载地址:http://www.qnx.com/download/group.html?programid=26071html
虚拟镜像:VM-QNXSDP660-201402230339.iso;
下载地址:http://www.qnx.com/download/feature.html?programid=26217ios
其余组件:
下载地址:http://www.qnx.com/download/group.html?programid=26121web
虚拟镜像的版本必定要和系统的版本一致,如都是6.6版本,若是不对应的话是没法进行debug的。网络
安装过程,以Oracle Virtual Box虚拟机程序示例:app
一、下载开发环境和虚拟镜像*.iso文件到本地目录并分别安装正确;ide
二、打开VirtualBox,选择新建虚拟机,类型选择Other,版本选择QNX;ui
三、选择建立虚拟硬盘,其余配置自定义,而后完成建立;this
四、打开虚拟机设置选项,找到存储>控制器,选择光盘,将iso文件导入光盘;debug
五、打开虚拟机设置选项,找到系统>主板>启动顺序,将光盘设置为第一启动项,相似安装系统同样;调试
六、启动虚拟系统,控制台提示“是否要覆盖硬盘数据”,选择是,以后系统会将光盘上的文件拷贝到硬盘,而后系统会自动重启;
七、系统再次重启的时候先强制关闭系统,而后打开虚拟机设置项,将光驱从存储中删除,并将启动顺序改成硬盘启动优先;
八、打开虚拟机设置项,找到网络设置,将链接方式设置为“桥接网卡”,界面名称选择指定的网卡,注意,当选择指定的网卡后,必须保证该网卡是链接而且可用的,不然不能在虚拟机中链接成功主机网络;
九、重启QNX系统,进入控制台界面,输入ifconfig命令查询IP地址,使用ifconfig en0 192.168.0.156命令设置QNX系统IP地址为192.168.0.156(重启后会自动还原,须要设置静态IP请参考其余方法);
十、好吧,使用ping命令访问下Host主机吧,若是能ping通,则大功告成,就可使用IDE在虚拟系统中进行调试啦!
调试注意事项:有多个目标系统,如物理系统+虚拟机系统,可在IDE菜单Debug Configurations中配置两个目标系统,而后选择要调试的目标系统,肯定Apply就能在指定的目标系统中调试,是否是很方便!
QNX官网上的虚拟镜像安装指导:
Using the VMware image of a QNX® Neutrino® runtime system
Electronic edition published: Wednesday, November 25, 2015
We provide an ISO image of a QNX Neutrino runtime system that you can run as a virtual machine in VMware Workstation, VMware Player, VMware Fusion, or Oracle VirtualBox on any host.
Installing the ISO image
To install this image, do the following:
Log in to your myQNX account on our website, and then go to the Download area.
Download the ISO image, VM-QNXSDP660-nnnnnnnnnnnn.iso, where nnnnnnnnnnnn is a build number.
Verify that the checksum of the package matches the one given in the Download area.
Open your virtual machine software and create a new virtual machine. We recommend the following:
For the operating system and version, choose Other.
Use the default hard disk size (usually 8 GB or 4 GB) and memory (usually 256 MB).
Specify that the virtual machine should boot from the ISO image that you downloaded.
If the virtual machine software offers you a choice of an IDE or SCSI hard disk, choose IDE.
Start the virtual machine. The installer will confirm that you want to erase the hard disk. If you created a new virtual machine, it's safe to erase its disk.
CAUTION:
If you run the ISO on a physical machine, the installer will—if you let it—erase the physical disk.
When the installer finishes, it reboots the virtual machine, which then starts the QNX Neutrino 6.6.0 runtime system.
What's in the virtual machine?
The virtual machine includes these OS images:
bios_smp.ifs Symmetric multiprocessing. 支持多处理器 bios_smp_aps.ifs Symmetric multiprocessing, with adaptive partitioning. When you start the virtual machine, you can choose which image to load. If you want to start any additional programs when the OS boots, add the appropriate commands to /etc/rc.d/startup.sh or /etc/rc.d/startup_aps.sh, depending on which OS image you start.