Date of this edition: February 17, 2009
Target OS: This software is compatible with target systems running QNX® Neutrino® 6.4.0.
Host OS: You must have already installed the QNX® Momentics® development suite 6.4.0 as a self-hosted QNX Neutrino system, or on one of the following hosts:
Version of QNX Momentics | Microsoft Windows | Linux |
---|---|---|
6.4.0 | Windows Vista, Vista 64-bit, XP SP2 or SP3, or 2000 SP4 | Linux Red Hat Enterprise Workstation 4 or 5, Red Hat Enterprise Server 5.1 64-bit, Red Hat Fedora Core 6 or 7, Ubuntu 6.0.6 LTS or 7, or SUSE 10 |
For the latest information about this package, see the online release notes (log into your myQNX account, and then go to the Download Center area of www.qnx.com). |
This note includes:
Several archives are contained within the master archive. The following procedure can be followed to install any of the internal archives. (The archive corresponding to patch 315 is used as a reference.)
$ qconfig QNX Installations Installation Name: QNX Momentics 6.3.0 Version: 6.3.0 Base Directory: /usr/qnx630/ QNX_HOST: /usr/qnx630/host/qnx6/x86/ QNX_TARGET: /usr/qnx630/target/qnx6/
The base directory in this example is /usr/qnx630/, but it could be different on your machine, depending on your host and where you installed QNX Momentics.
copy drive:\archive base_dir
cd base_dir
tar -xvf archive
Open a command shell and use the following commands (replacing base_dir with the path found in step 2, and archive with the full path to the downloaded archive):
cd base_dir
tar -x -v -f archive
If you use WinZIP, choose | , switch to the Miscellaneous tab in this dialog, and turn off the TAR file smart CR/LF conversion option. If this option is turned on, and you extract the archive, then your shiplist file will contain ^M characters.
The patch is installed in the base_dir/patches/patch_dir directory, where patch_dir includes the version of QNX Momentics and the patch number (e.g. 630SP2-0315). This directory includes:
Next, you must determine how to incorporate the patch into your host system. The patch is stored in a directory (or folder) that's separate from your development system. This allows you some flexibility in how to apply the patch.
There are three methods for using a patch:
The first two methods work only for files within the QNX_TARGET subtree. For tools and other host-specific files, you must use the third method. |
In the first method, you can use the files in the patch by simply modifying buildfiles to include the full path to the files in the patch subdirectory. This allows you to test the patch before committing to it. It doesn't affect your development host. If you choose to stop using the patch, you just need to change the buildfiles back.
You can use a similar approach that involves creating an “override” tree. You can tell the system builder and mkifs utilities to look for binaries in a particular subdirectory before looking in the standard location ($QNX_TARGET).
To do this from the command line:
The third method replaces the files on your development host with the patched files.
Since this is a destructive procedure, we recommend that you create a backup of the affected files. |
To create a backup on any of our hosts:
cd base_dir
pax -w < patches/patch_dir/shiplist > patches/patch_dir-backup.tar
You can use whatever name you like for the backup archive. The pax utility might display some error messages when it attempts to back up nonexistent files for host operating systems other than the one you're using. You can ignore these messages.
To apply the patch on a Windows system from the command prompt (remember to switch back to cmd.exe from ksh):
cd base_dir
cd patches\patch_dir\host
cp -r . ..\..\..\host
cd ..\target cp -r . ..\..\..\target
To apply the patch on a Neutrino, Linux, or Solaris system:
cd base_dir/patches/patch_dir
grep '^host' shiplist | pax -rw base_dir/.
grep '^target' shiplist | pax -rw base_dir/.
cd target/qnx6/x86 find ! -type d | pax -rw /
If you have any questions, comments, or problems with a QNX product, please contact Technical Support. For more information, see the How to Get Help chapter of the Welcome to QNX Momentics guide or visit our website, www.qnx.com.