r/QNX • • 1d ago

Measured message-priority inversion on QNX 8.0: 1605.329 ms with _NTO_CHF_FIXED_PRIORITY, 191.356 ms after

2 Upvotes

I have been looking at what a Neutrino kernel trace actually shows when a high-priority client is stuck behind message passing, not just a mutex.

Setup: QNX SDP 8.0 in QEMU TCG, wide-mode tracelogger, times from guest cycle timestamps (TRACE_CYCLES_PER_SEC in the committed captures).

A priority-40 client on a _NTO_CHF_FIXED_PRIORITY channel was blocked for 1605.329 ms (SEND-queued 1503.770 + REPLY 101.559). The server stayed at priority 10 while a priority-15 thread ran for 1497.547 ms. After creating the channel without that flag, the same client waited 191.356 ms, and the inversion finding was gone. The remaining wait is honest head-of-line time behind a 100 ms request the server was already handling — I did not try to hide it.

The same tracelogger pipeline also caught:

  • A MsgSend deadlock: two servers sent to each other, SEND-blocked for 1500.421 ms, until a watchdog killed the process. After switching to a send hierarchy (lower server notifies upward with MsgSendPulse), no cycle, worst client MsgSend() 3.823 ms.

  • A single-threaded resource manager: worst queued client 197.205 ms → 1.116 ms after receive threads + iofunc_attr_unlock() around the slow work.

  • A private pulse pool that refused 96 of 129 MsgSendPulse() calls (EAGAIN). Pool sized from the measured peak backlog of 32 up to 64: 0 refused, 129/129 received.

  • Classic semaphore inversion: 1532.579 ms → 401.660 ms with a pthread mutex and PTHREAD_PRIO_INHERIT. 401.660 ms is the legitimate 400 ms hold, not a leftover inversion.

I wrapped this in a small MIT host tool, qnx-trace-copilot: it captures the .kev, decodes it with traceprinter, flags the fault, patches a copy of the demo, rebuilds with qcc, and recaptures so the before/after is in the same report. Committed traces, timeline.html, and 31 tests are in the repo (tests and `qtc analyze` on a checked-in traceprinter file do not need a live guest).

https://github.com/alexisquirogaconsultor-droid/qnx-trace-copilot Demo (2:54): https://youtu.be/lzYF5ge__6E

I entered it in the QNX Global Hackathon (Developer Tooling & Host Tools): https://devpost.com/software/qnx-trace-copilot

If you have seen SEND/REPLY delays that a mutex-only analysis would miss, I would like to hear how you debug them.


r/QNX • • 4d ago

Stop paying the network stack tax: zero-copy first, networking when needed

Thumbnail
ekxide.io
7 Upvotes

r/QNX • • 5d ago

Pi 5 2GB (BCM2712 D0)

6 Upvotes

devs-qwdi_dhd_sdio-2_11-rpi5 crashes io-sock with SIGBUS during bcm0 init

Setup

• Raspberry Pi 5 Model B, 2GB, BCM2712 D0 stepping

• QNX SDP 8.0, BSP for Raspberry Pi 5 0.5.0 (GA8.0.6, build 738)

• Wireless Driver for RPi5, 8.0 build 6 (cypress_dhd_sdio_rpi5_2_11/0.3.0.00006)

• Ethernet (cgem) works fine. The Quick Start image also loses all networking at boot on this board, because Wi-Fi shares the io-sock instance with Ethernet.

Command (separate io-sock instance, so Ethernet keeps working)

Code:

io-sock -o prefix=/wifi -m fdt -o config=/etc/io-sock.conf -d qwdi_dhd_sdio-2_11-rpi5

(Without -m fdt the driver fails with unresolved OF_finddevice / OF_getprop. The BSP docs' example omits it.)

Log:

qwdi_dhd0: <QWDI Cypress SDIO WiFi> on QNX

dhd_get_options(5030): sdio_baseaddr = 0x1100000

dhd_get_options(5033): sdio_irq = 306

dhd_add_if(2473): bcm0: interface initialization

Process (io-sock) terminated SIGBUS code=3 fltno=6 ip=...3e8 mapaddr=000000000002c3e8

/etc/qwdi_wifi.conf has sdio_baseaddr=0x1001100000, but the driver logs 0x1100000 (upper bits missing?). The crash is identical every boot, same mapaddr, and the same with bcm2712d0-rpi-5-b.dtb, bcm2712-d-rpi-5-b.dtb and bcm2712-rpi-5-b.dtb. The older driver (build 3054) can't load (stack.requires(00010004) > mod.provides(00010003)).

Question: is the D0 stepping supported by this driver? Is there a fix or workaround for the SIGBUS in bcm0 initialization?


r/QNX • • 23d ago

eMudhra CA issue: How to Check and Fix Your QNX Quick Start Target Image

Thumbnail qnx.software
9 Upvotes

Here's a blog post related to the eMudhra CA store issue, by my colleagues Darcy and Shweta, covering how to check and patch your systems running the QNX Quick Start Target Image.


r/QNX • • 24d ago

Need REAL PI 4 TESTING

3 Upvotes

I built a tool that attacks a QNX pipeline and measures what keeps its deadlines. It only ran in QEMU so far, and I need one person to run it on a real Pi 4 (about 20 minutes). Comment or DM if you can help. And yes QNX is one of the best technologies i am enjoying the exploration.


r/QNX • • 28d ago

Podcast: QNX Everywhere: Build, Innovate & Compete in a $50K Hackathon

Thumbnail
youtube.com
8 Upvotes

The latest episode of the QNX Code The Future podcast is out, featuring Andy and I talking about QNX Everywhere and the QNX Global Hackathon! Cheers!


r/QNX • • Nov 02 '26

Introducing the QNX Global Hackathon!

Thumbnail qnx.devpost.com
30 Upvotes

The team and I are very excited to launch the first QNX Global Hackathon! It's open to nearly everyone and there's real money on the line.

Build a robot that reacts in microseconds instead of milliseconds. Write the driver nobody has written yet. Port something you love to QNX, or build the tooling you always wished existed. If it runs on QNX 8.0, or helps someone else build for it, it counts. Pick your category and compete for a share of $50,000. Show us what you can do!

I'm looking forward to seeing your projects! 😄


r/QNX • • Nov 01 '26

I need help accessing data on some hard drives apparently in some kind of QNX format

Thumbnail
gallery
4 Upvotes

These 40gb IDE drives are out of some Chrysler MyGig car stereo head units. I read somewhere that windows can't read them because they're formatted in QNX, and so I'm trying to find a way to get windows to recognize and read the QNX files.

I got a license for and downloaded the QNX Software Development Platform 8.0, as well as the QNX Momentics IDE, but it doesn't seem to be working and Windows still can't recognize the contents of the drive

I am not a software developer, am I barking up the right tree? Is what I want to do even possible?


r/QNX • • Oct 17 '26

USB mic with qnx

1 Upvotes

Which USB mic or headset has anyone gotten recording to work with on QNX 8 / Pi 4?"


r/QNX • • Oct 06 '26

Debugging Open Source Projects with VS Code and QNX Toolkit

Thumbnail qnx.software
13 Upvotes

Here's a new blog post from my colleague Marcin on the QNX open-source team. Enjoy!


r/QNX • • Oct 02 '26

Updating os version best practises

3 Upvotes

Am I missing something here or am I supposed to be installing everything from scratch on my pi if I want to go from 8.0.1-8.0.5?

What's the best procedure?


r/QNX • • Oct 02 '26

Old QNX x86 embedded system fails to start executable: supervise error (8)

Post image
4 Upvotes

We’re trying to bring an old Thermo Scientific XSeries II ICP-MS back to life and are stuck with what looks like an embedded computer/QNX issue.

The Windows PC is running PlasmaLab 2.6.2.337, while the embedded computer appears to have XSERIES Supervisor 2.5.10.

During boot, the embedded computer detects its SanDisk SDCFH-00 Rev DH X CompactFlash storage, performs a filesystem check, but then fails with:
Unable to start "supervise" (8)

We checked supervise.dat and it appears to be a 32-bit x86 ELF executable for QNX.

There is also a Thermo updater on the Windows PC that transfers files to the embedded computer through COM2, but it doesn’t seem to report which Supervisor version is currently installed.

Originally we suspected a PlasmaLab/Supervisor version mismatch, but since the embedded computer itself cannot start supervise, I’m now thinking the issue could instead be corrupted files, a failing CompactFlash card, missing dependencies/configuration, or another embedded-system problem.

Our current plan is to remove the CompactFlash card, make a complete image of it first, keep the original untouched, and inspect/work from a clone.

Has anyone worked with an XSeries II, PlasmaLab, or XSERIES Supervisor before?

Also, does anyone know exactly what QNX error (8) means when starting an executable?

Would you investigate the CompactFlash/embedded system first, or is there still a realistic chance that updating/matching PlasmaLab on the external PC could solve this?

Any old service manuals, recovery software, Supervisor files, or experience with these systems would be extremely helpful.

I can also provide photos of the boot sequence, embedded computer, CompactFlash card, updater, and exact error screens.


r/QNX • • Sep 28 '26

New YouTube Playlist: QNX Developer Diaries

Thumbnail
youtube.com
27 Upvotes

Hiya! Just sharing that we've started a new QNX-related playlist with technical videos about various QNX topics. Stay tuned for more videos about the SDP, VS Code + QNX, AI, codelabs, demo projects, and more!


r/QNX • • Sep 22 '26

Is qnx.com / QNX Software Center down?

2 Upvotes

Guys, the QNX Software Center seems to be very slow and sometimes not responding in the last few days.

Tried the home page qnx.com -> error: Page took too long to respond.

This means we could not install or update packages via QSC and are not able to view online documentation.

Anyone else has the same issue?


r/QNX • • Sep 18 '26

iceoryx2 0.10 released: full flatbuffer integration, zero copy ipc with unbounded data, robust events

9 Upvotes

Hello QNX Community. Today we have released iceoryx2 v0.10.


r/QNX • • Sep 15 '26

Ask me (and our engineers) anything about QNX Engineering. AMA October 1, 10 AM–2 PM EST

41 Upvotes

Howdy!

I'm John, I do Developer Relations for QNX. On Thursday, October 1, from 10 AM to 2 PM EST, I'll be here with a group of QNX engineers for an Ask Me Anything!

Get answers straight from the source -- anything goes! We'll answer whatever we can.

A few ideas to help you think of questions:

  • How QNX works: microkernel design, message passing, determinism, the "why" behind the architecture

  • The questions that usually don't get answered: bring the stuff you couldn't find in the docs or on a forum

  • Open-source & QNX Everywhere: our ports, contributions, and building on a free-for-non-commercial license

Can't make it live? Drop your questions as comments now and we'll get to them during the event.

Cheers!


r/QNX • • Aug 25 '26

Is this QNX/Rpi setup useful?

Thumbnail
youtube.com
5 Upvotes

QNX Development via Cytrence Kiwi

r/embedded r/raspberrypi


r/QNX • • Aug 20 '26

Need help with QNX CAN-MCP2515 driver

Thumbnail
gallery
3 Upvotes

Hi everyone, I’m working on a QNX eHACK project using a Raspberry Pi 4 and an MCP2515-based CAN module.

I found the QNX Everywhere documentation for the sample can-mcp2515 driver, which shows this GitLab repository:

https://gitlab.com/qnx/projects/drivers/can-mcp2515.git

However, when I try to clone it, GitLab says the repository could not be found or I don't have permission to view it.

Does anyone know:

Where I can get the current QNX CAN-MCP2515 driver/source?

Is this driver still available or has it been removed?

Is there another QNX-supported MCP2515 driver or implementation I can use with Raspberry Pi 4?

Any guidance would be greatly appreciated. Thanks!


r/QNX • • Aug 12 '26

Impossible to run screen with 1a03/2000 display controller?

2 Upvotes

trying to run screen on 1a03/2000 in QNX 7.1 - is it impossible? how would you go about getting graphics?


r/QNX • • Aug 01 '26

help with getting a reference image for apollo lake

2 Upvotes

Hello everyone, I need help getting the qnx hypervisor 2.0 apollo lake reference image. I tried to download it through the software center, but due to the lack of a license, I can't do it. I will be very grateful for your help.


r/QNX • • Jul 16 '26

Need solution - MCP2515 not working

2 Upvotes

Hi,

I am working on a project where I am establishing a CAN driver in QNX guest running on QNX hypervisor host. but I am getting chn0 init failure while starting the CAN daemon at the guest boot up time.
I am using Raspberry Pi 4B as target hardware and 2 channel CAN HAT (Wave share) mcp2515.
I am passing throgh the spi and mcp address spaces. I have also diabled spi-bcm2711 from host. spi-bcm2711 is running in guest and it is configured with spi.conf (given below).

Please help me if you have any known solution for this.
Thank you in Advance!

Error message during guest boot -
SDV: starting spi-bcm2711 with pass-through MMIO 0xFE204000...

SDV: starting mcp2515 CAN daemon (channels 0,1, 500 kbps, 16 MHz)...

[mcp2515] chan0 init failed: Input/output error

Unable to access "/dev/sdv/can0" (2)

Unable to access "/dev/sdv/can1" (2)

spi.conf -
[globals]

verbose=3

[bus]

busno=0

name=spi0

base=0xfe204000

irq=150

input_clock=500000000

dma_thld=65536

[dev]

parent_busno=0

devno=0

name=dev0

clock_rate=1000000

cpha=0

cpol=0

bit_order=msb

word_width=8

[dev]

parent_busno=0

devno=1

name=dev1

clock_rate=1000000

cpha=0

cpol=0

bit_order=msb

word_width=8


r/QNX • • Jul 14 '26

QNX Open-Sources the POSIX Publish Subscribe Project

Thumbnail qnx.software
18 Upvotes

The team has open-sourced QPP: a pub-sub system that also operates as a signal service using vehicle signal standards like VSS from COVESA.

More info is here: https://qnx.software/en/blog/2026/qnx-open-sources-the-posix-publish-subscribe-project

And the repo is here: https://github.com/qnx/qnx-posix-publish-subscribe/tree/main

We'll probably make a QNX codelab for it soon :)


r/QNX • • Jun 23 '26

Judging India’s First QNX Everywhere Hackathon

Thumbnail qnx.software
14 Upvotes

Just sharing some high-level thoughts from our recent trip to visit the students learning about QNX in India. There's some impressive talent in the schools there! Looking forward to visiting again some time soon.


r/QNX • • Jun 21 '26

Jobs

4 Upvotes

What are job outlooks for qnx? Any companies offering paid training?
Thanks!