Thanks to visit codestin.com
Credit goes to github.com

Skip to content

joexue/qemu-virt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QEMU Virtual Machine BSP for QNX

This is a QNX minimal BSP for aarch64 QEMU Virt machine.

Run QNX on a Qemu aarch64 virt machine with networking, serial port etc.

You can use this to learn QNX OS, driver writting, app writting.

A very tiny bootloader called Q-Boot is included to boot QNX Ifs image on QEMU Virt. You don't have to care it, make run will do all job.

Dependencies

  • qemu-system-arm

  • QNX software center (to download the QNX software packages) , choose target: aarch64

  • SDP (QNX Software Development Platform)

  • Virtulization Drivers for SDP image

How to use

After you installed SDP and related packages.

cd ${QNX_SDP_DIR}/bsp
git clone [email protected]:joexue/qemu-virt.git
cd qemu-virt
source ${QNX_SDP_DIR}/qnxsdp-env.sh
make
make run

The "make run" will start the QEMU and run QNX on an AARCH64 machine called VIRT.

You need to install qemu-system-aarch64 before run it. Tested under qemu-system-aarch64 8.2 but should work for other versions.

Networking

When you execute "make run", it uses QEMU user networking mode, which can access from QNX(guest OS) to outside, but cannot access from outside to QNX by default (you can do it by using port forwarding).

Ping 10.0.2.2(represents your host) is working but cannot ping outside world, if you need to do ping test, then execute "make sudo-run".

Screenshot

image

If you need more flexible networking, please execute "make run-tap", it will use QEMU tap networking mode, need sudo permision although.

More information about QEMU networking mode: https://wiki.qemu.org/Documentation/Networking

TODO

The PCI is not available yet causes massive devices/drivers cannot be used.

Verification

Tested under SDP 8.0.0

About

The qemu virt machine QNX BSP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published