Making a boot image that includes your minidriver
At this point, you have a startup program (including your minidriver code) that's been compiled. Now include this startup program in the QNX Neutrino boot image and try out the minidriver.
There are some basic rules to follow when building a boot image that includes a minidriver:
- The boot image shouldn't be compressed.
Decompression of the boot image affects the timings defined by the mdriver_max copy size.
Your boot image should have an image type like the following:
[virtual=armle-v7,binary] .bootstrap = {Note that the keyword
+compressisn't included in this line. You should change thearmle-v7orbinaryentry to reflect your hardware and image format. - After you compile your startup program that includes the minidriver, make
sure to specify this startup program in your buildfile.
For example, if you compile your startup program as startup-my_board, you should copy it to the appropriate directory (e.g., ${QNX_TARGET}/armle-v7/boot/sys/startup-my_board-mdriver), and then change your buildfile to include startup-my_board-mdriver.
Page updated:
