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.下载固件
从 rpi firmware github 网站上,下载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
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
文件。
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卡启动程序中,是没有起显示的程序,因此需要连接串口,查看QNX800的启动情况。
启动的串口log如下:
参考资料
QNX 官网gitlab介绍在RPI4使用QNX预编译好的qnx_sdp8.0_rpi4_quickstart_20241216.img
镜像,刷写到SD卡上,然后运行QNX8,非常的详细:
raspberry-pi-qnx-8.0-quick-start-image
QNX pdf文档:Introduction to the QNX RTOS with Raspberry Pi
qnx-rpi-book
installing-qnx-on-raspberry-pi-4