Skip to content

itsvasugrover/qnx-qemu-minimal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QNX QEMU Minimal Setup

This repository provides a minimal setup for generating generic QNX IFS (Initial File System) images and running them in QEMU. It supports both x86_64 and aarch64le architectures.

Prerequisites

  • QNX Software Development Platform (SDP): Install QNX SDP 8.0 in your home directory (~/qnx800). Download from QNX website.
  • QNX License: Ensure you have a valid QNX license installed at ~/.qnx/license/licenses.
  • QEMU: Install QEMU on your system. On Ubuntu/Debian: sudo apt install qemu-system-x86 qemu-system-arm.

Usage

  1. Check Environment:

    ./env-check.sh

    This verifies QNX installation and license.

  2. Build QNX Image:

    ./build.sh [x86_64|aarch64le|all]
    • x86_64: Build for x86_64 architecture (default)
    • aarch64le: Build for aarch64le architecture
    • all: Build for both architectures
  3. Run in QEMU:

    ./qemu.sh [x86_64|aarch64le]
    • x86_64: Run x86_64 image (default)
    • aarch64le: Run aarch64le image

    The QEMU instance will start with:

    • 2GB RAM
    • 2 CPU cores
    • Network forwarding (SSH on port 8022)
    • Serial console output

Scripts Overview

  • env-check.sh: Validates QNX installation and license
  • source.sh: Sources the QNX development environment
  • build.sh: Builds QNX IFS images using mkqnximage
  • qemu.sh: Launches QEMU with the built image

Output

Build artifacts are stored in architecture-specific directories:

  • x86_64/build/output/: x86_64 images
  • aarch64le/build/output/: aarch64le images

Contributing

I welcome contributions! Please see CONTRIBUTING.md for detailed guidelines on how to contribute to this project.

License

MIT License - see LICENSE file for details.

About

Minimal setup to build generic QNX IFS images and run them in QEMU for x86_64 and aarch64le.

Resources

License

Contributing

Stars

Watchers

Forks

Contributors

Languages