Skip to main content

Posts

Showing posts with the label QNX

Installing QNX 6.5 on Hyper-V 2022

Installing QNX 6.5 on Hyper-V 2022 Create a VM in Hyper-V Remove all NICs and add a legacy network adapater Power up and install QNX 6.5 This assumes that the ISO was already mounted. It is important that DMA is abled by pressing d and then press ENTER key. After few seconds it should show something like below. Press F3 to install QNX into the HDD. Hereafter, default ( F1 ) selection should be OK. Once installation is complete, remove the ISO. Remember to disable DMA every time the VM is restarted.

Enable SSH server on QNX 6.5

This is quick start guide how to run ssh server on QNX. Tested on QNX 6.5 (650SP1-VM.tar). # ssh-keygen -t dsa -b 1024 -f /etc/ssh/ssh_host_dsa_key -N '' # ssh-keygen -t rsa -b 1024 -f /etc/ssh/ssh_host_rsa_key -N '' This is not security best practice but this is only a test machine. Enable direct root ssh login to the machine. # sed -i 's/#PermitRootLogin no/PermitRootLogin yes/g' /etc/ssh/sshd_config To start ssh service interactively, do: # /usr/sbin/sshd Use /usr/sbin/sshd -ddd to view debug output To run sshd on start, add the following to /etc/rc.d/rc.local : /usr/sbin/sshd & Reference: http://www.qnx.com/developers/docs/660/index.jsp?topic=%2Fcom.qnx.doc.neutrino.utilities%2Ftopic%2Fs%2Fsshd.html

Using INTEL PRO/1000 Gigabit driver in QNX 6.6 running on VMware ESXi

Using INTEL PRO/1000 Gigabit driver in QNX 6.6 running on VMware ESXi When installing QNX 6.6 using VM-QNXSDP660-201402230339.iso on VMware ESXi (8.0 update 2) the default network apapter used is AMD Lance PCNet 32 . The PCNet 32 driver reports to only support 10Mbps, for cases where higher network bandwidth is needed Intel PRO/1000 Gigabit is a good choice. To load Intel PRO/1000 Gigabit , edit /etc/rc.d/startup_aps.sh and comment out pcnet.so driver and add dirver for e1000 , like: #io-pkt-v4-hc -d /lib/dll/devn-pcnet.so & io-pkt-v4-hc -d /lib/dll/devnp-e1000.so &

Installing Vim 7.2 in QNX 6.5 using pkgsrc

Installing Vim 7.2 in QNX 6.5 using pkgsrc QNX 6.5 self-hosted Neutrino host ships with vi but Vim 7.2 is a big imporovement over the default application. Below are the steps to install Vim 7.2 using pkgsrc. Download the bootstrap package http://archive.netbsd.org/pub/pkgsrc-archive/packages/QNX/i386/6.5.0_head_20110826/bootstrap.tar.gz Download Vim package and dependencies from the link below http://archive.netbsd.org/pub/pkgsrc-archive/packages/QNX/i386/6.5.0_head_20110826/All vim-share-7.2.446.tgz libiconv-1.14.tgz gettext-lib-0.18.1.1.tgz vim-7.2.446nb1.tgz Copy the files into /tmp using ftp, Momentics IDE, sftp, etc #: ls /tmp bootstrap.tar.gz vim-share-7.2.446.tgz libiconv-1.14.tgz gettext-lib-0.18.1.1.tgz vim-7.2.446nb1.tgz Install bootstrap package into the root folder #: tar -xvzf bootstrap.tar.gz -C / Add pkgsrc utilities into the path #: echo 'export PA

How to apply QNX 6.5 SP1 into an existing QNX self hosted installation

How to apply QNX 6.5 SP1 into an existing QNX self hosted installation This was tested on VirtualBox with QNX 6.5.0 self-hosted Neutrino host. Below are the quick steps Mount the QNX 6.5 SP1 iso (qnxsdp-6.5.0SP1.iso) Run the following command in QNX terminal Load CD/DVD-ROM driver devb-eide cdrom Mount the cd/dvd-rom mount -t cd /dev/cd0 /cd Install the update cd /cd sh ./qnxsdp-6.5.0SP1-201206270843-nto.sh

Building in QNX Momentics 6.5 SP1 throws "Couldn't reserve space for cygwin's heap, Win32 error 0"

Building in QNX Momentics 6.5 SP1 throws "Couldn't reserve space for cygwin's heap, Win32 error 0" Buiding barebones QNX C++ program throws "Couldn't reserve space for cygwin's heap, Win32 error 0". See sample output below C:\QNX650\host\win32\x86\usr\bin\make.exe -k CPULIST=x86 all --file=C:/Users/u1/AppData/Local/Temp/QMakefile169726255947317724.tmp 0 [main] us 0 init_cheap: VirtualAlloc pointer is null, Win32 error 487 AllocationBase 0x0, BaseAddress 0x71690000, RegionSize 0x330000, State 0x10000 C:\QNX650\host\win32\x86\usr\bin\sh.exe: *** Couldn't reserve space for cygwin's heap, Win32 error 0 C:/QNX650/host/win32/x86/usr/bin/make.exe -j 1 -Cx86 -fMakefile all make.exe[1]: Entering directory `C:/ide-4.7-workspace/test1/x86' C:/QNX650/host/win32/x86/usr/bin/make.exe -j 1 -Co -fMakefile all make.exe[2]: Entering directory `C:/ide-4.7-workspace/test1/x86/o' make.exe[2]: Nothing to be done for `all'. make.exe[2]:

Installing QNX SDP 6.6 Linux on Ubuntu 18.10

QNX SDP 6.6 (Software Development Platform) on Linux is a 32-bit application. Now it can be installed on Ubuntu 18.10 64-bit OS but you need to install the following pre-requisite libraries: $: sudo apt install libc6:i386 default-jre-headless:i386 libgtk2.0-0:i386 libcanberra-gtk-module:i386 gtk2-engines-murrine:i386 libatk-adaptor:i386 You should be able to run QNX Momentics at this point ( /opt/qnx660/run-qde.sh ) but you will get a lot of error messages on the console like below: (qde:8603): Gtk-WARNING **: 01:12:34.312: Unable to locate theme engine in module_path: "adwaita", . To clean it up, do: $: sudo apt install gtk2-engines-murrine:i386 gtk2-engines-pixbuf:i386 gtk2-engines:i386 gnome-themes-extra:i386 </>

(Momentics:): GLib-CRITICAL **:: g_base64_encode_step: assertion 'in != NULL' failed

Running QNX Momentics (qde) from the console on Ubuntu 18.04 shows a lot of error message but it seems like it does not affect functionality of the application. Below is an example of the error message I am seeing. (Momentics:3535): GLib-CRITICAL **: 23:28:28.692: g_base64_encode_step: assertion 'in != NULL' failed To get rid of the error message, do the following: $ sudo apt install libcanberra-gtk-module export SWT_GTK3=0 ~/qnx/qnxmomentics/qde

BlackBerry Tablet Simulator Mouse Gestures

Mouse Gestures for BlackBerry Tablet Simulator Description Mouse Show top bar (notification area) Move mouse top middle and click Show Browser options Move mouse top right and click Show applications running Move mouse bottom middle and click Show application home screen (aka desktop) Move mouse bottom middle and click twice Show on screen keyboard Move mouse to lower left and click https://developer.blackberry.com/develop/simulator/simulator_gestures.html

BlackBerry Tablet Simulator shows black screen

On Windows 10 Enterprise version 1511 build 10586.589 + VMware Workstation 11.1.4, powering up a BlackBerry PlayBook Simulator 2.1 shows blank/black screen. The simulator was created around September 2012, it may have worked back in the day but with latest versions of the host OS and VMware it is not working using default configuration. The link from here mentions about supported graphics card, thus say, should support OpenGL 2.0. I am using a machine that supports Open GL 4.1 and still not working. To have a partially working simulator, change QNX boot option to 2. You can play with the simulator but developing an application that needs EGL does not work. Reference: https://developer.blackberry.com/develop/simulator/simulator_installing.html Hints/Keywords: Blank screen Black screen BlackBerry Table Simulator Not working on VMware Workstation

Installing BlackBerry Tablet Simulator 2.1 fails with "Windows error 2 occured while loading the Java VM"

Installing BlackBerry Tablet Simulator 2.1 on Windows 10 fails with the error message as shown below. --------------------------- LaunchAnywhere Error --------------------------- Windows error 2 occured while loading the Java VM --------------------------- OK --------------------------- To fix this install x86 version of JRE (tested with jre-8u102-windows-i586.exe). Running the installer again will still fail. Workaround is to pass command line argument to the installer, like: BlackBerryPlayBookSimulator-Installer-2.1.0-1032-Win-201209272349 LAX_VM "C:\Program Files (x86)\Java\jre1.8.0_102\bin\java.exe" -i GUI Run the above command on elevated prompt. Tested on Windows 10 1511 (OS Build 10586.545) Reference: https://supportforums.blackberry.com/t5/Adobe-AIR-Development/Window-error-2-occurred-when-loading-java-vm/td-p/1300033

QNX Momentics throws a lot of error on start up after install in Ubuntu 13.10 64-bit

tldr; Reboot the machine. When starting up QNX Momentics 6.5.0 on Ubuntu 13.10 64-bit, it throws a lot of errors, like below. 'Initial state verification' has encountered a problem. An internal error has occured. [Details>>] [OK] There is an error in the QNX Configuration settings. Either the QNX_CONFIGURATION environment variable is not defined correctly or the location it points to is not accessible. Exit the IDE and fix the error? [No] [Yes] There is an error in the QNX compiler settings. Either the QNX compiler is not defined or compiler definition directory is not accessible. You should exit the IDE and fix the error immediately. Exit the IDE and fix the error? [No] [Yes] And what is the workaround? Reboot the machine. Guessing that the environment variables are not yet set after install, reboot picks up the new configuration. Keywords: QNX Momentics Ubuntu

Fixing QNX Momentics Gtk themes warning on Ubuntu 13.10 64-bit

You might observe the following Gtk warnings when running QNX Momentics 6.5.0 on Ubuntu 13.10 64-bit. (qde:9636): Gtk-WARNING **: Unable to locate theme engine in module_path: "murrine", (qde:7229): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap", (qde:7229): Gtk-WARNING **: Unable to locate theme engine in module_path: "clearlooks", To fix, run the following command. $: sudo apt-get install gtk2-engines-murrine:i386 gtk2-engines-pixbuf:i386 gtk2-engines:i386

QNX Momentics TFTP server is not running

I have QNX Momentics 4.6.0 running in Cent OS 5.4 and I was trying to load QNX board support package using TFTP server but I couldn't make it to work. Looking at the Momentics TFTP server view shows: Cannot start server: error: Unable to bind to server port. This go me thinking about xinetd super service deamon but it was not running. Then I came to realize that of course the IDE was not running as root. So, to upload data to the tftp client, Momentics should be run as root user. ~ts

Loading Freescale P1020 board support package via tftp in Momentics

Relevant information :   Development System: Windows XP Sp3 with QNX SDP 6.5.0 (this is only to demonstrate loading via tftp. BSP for P1020 in QNX foundry was documented as targeted for QNX 6.4.1)   Target: P1020RDB Host machine preparation : Step 1. Download Freescale P1020 board support package, see this link . As of this writing, we only have support for QNX 6.4.1. I have it saved in D:\tmp\bsp-nto641-freescale-p1020-rdb-trunk-201009282107.zip. Take note that they continually update this package so the name may change. Step 2. Extract the zip file, it should look like this: D:\tmp\bsp-nto641-freescale-p1020-rdb-trunk-201009282107. Step 3. Open QNX Momentics (assuming you have this installed already). Step 4. Open Resource Perspective ( Window -> Open Perspective -> Other... , then select Resource ). Step 5. In Resource Perspective, create new project, i.e.:   a) File -> New -> Project...   b) Select General -> Project   c) For project name type data ,

QNX Momentics IDE 4.6 not working in Cent OS 5.5

QNX Momentics is not officially supported not even on Cent OS 5.4 much less Cent OS 5.5. Although Cent OS 5.4 should be compatible with Red Hat Enterprise Linux 5.4 Desktop. Also, QNX Momentics 4.6 is working happily in Cent OS 5.4, but users always like to use the latest and the greatest version. Anyway, running QNX Momentics in Cent OS 5.5 shows the following screen: This issue was traced back to be caused by interface change in XULRunner which comes with Firefox browser. See this link and this link for discussion about this issue. But this is not without hope of using the IDE in Cent OS 5.5. echo "org.eclipse.ui/showIntro=false" > /tmp/noWelcomeScreen.ini cd /opt/qnx641/host/linux/x86/usr/bin qde -pluginCustomization /tmp/noWelcomeScreen.ini Enjoy! ~ts