简介
本文简单介绍如何使用QNX提供的树莓派BSP源码BSP for Raspberry Pi BCM2711 R-PI4
编译出ifs-rpi4.bin
文件,将其拷贝到SD卡中,在树莓派PI4上启动QNX800。
试验环境
Host
: Ubuntu 22.04.3 LTSQNX Version
: 8.0 Build141 - November 27.2023BSP 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
1 | source ~/qnx800/qnxsdp-env.sh |
之后就会编译生成ifs-rpi4.bin
文件,将这个文件拷贝到SD卡中。
4.配置config.txt
内容
在SD卡中创建一个config.txt
文件,内容如下,指定启动的kernel为ifs-rpi4.bin
文件。
1 | arm_64bit=1 |
整个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/