QNX800 run in Raspberry Pi

简介

本文简单介绍如何使用QNX提供的树莓派BSP源码BSP for Raspberry Pi BCM2711 R-PI4编译出ifs-rpi4.bin文件,将其拷贝到SD卡中,在树莓派PI4上启动QNX800。


试验环境

Host: Ubuntu 22.04.3 LTS
QNX Version: 8.0 Build141 - November 27.2023
BSP for Raspberry Pi BCM2711 R-PI4: 8.0 Build 198 - June 18, 2024,BSP_raspberrypi-bcm2711-rpi4_br-hw-rel_be-800_SVN999745_JBN198.zip


准备启动所需的SD卡

1.格式化SD卡

参考树莓派官网制作SD卡流程,格式化SD卡为FAT32格式。

2.下载固件

https://github.com/raspberrypi/firmware/tree/master 网站上,下载pi4所需的最新固件,固件列表如下:

  • bcm2711-rpi-4-b.dtb
  • config.txt
  • fixup4.dat
  • fixup4cd.dat
  • fixup4db.dat
  • fixup4x.dat
  • start4.elf
  • start4cd.elf
  • start4db.elf
  • start4x.elf

3.编译PI4 BSP for QNX800

BSP
1
2
source ~/qnx800/qnxsdp-env.sh
make -C bsp/BSP_raspberrypi-bcm2711-rpi4_br-hw-rel_be-800_SVN999745_JBN198/

之后就会编译生成ifs-rpi4.bin文件,将这个文件拷贝到SD卡中。

4.配置config.txt内容

在SD卡中创建一个config.txt文件,内容如下,指定启动的kernel为ifs-rpi4.bin文件。

1
2
3
4
5
6
7
8
9
arm_64bit=1
cmdline=startup.txt
device_tree=bcm2711-rpi-4-b.dtb
# enable_jtag_gpio=1
enable_uart=1
force_turbo=1
gpu_mem=16
max_framebuffers=2
kernel=ifs-rpi4.bin

整个SD卡内容如下:


准备启动所需的SD卡


参考资料

QNX 官网gitlab介绍在RPI4使用QNX预编译好的qnx_sdp8.0_rpi4_quickstart_20241216.img镜像,刷写到SD卡上,然后运行QNX8,非常的详细:
https://gitlab.com/qnx/quick-start-images/raspberry-pi-qnx-8.0-quick-start-image

QNX pdf文档:Introduction to the QNX RTOS with Raspberry Pi
https://gitlab.com/elahav/qnx-rpi-book/

https://carleton.ca/rcs/qnx/installing-qnx-on-raspberry-pi-4/

Title:QNX800 run in Raspberry Pi

Author:Victor Huang

Time:2025-02-10 / 21:02

Link:http://wowothink.com/f31a4ca8/

License: Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0)