This question involves QNX6 and QNX4, but here goes.
My aim is to be able to duplicate a QNX4 runtime system onto a CompactFlash but doing it in QNX6. I have an image of the QNX4 partition, which is mountable in QNX6 and therefore easily manageable.
I want to use QNX6 to fdisk and dinit the CF then copy the QNX4 files onto the CF and all done. However the QNX6 fdisk and dinits put the QNX6 primary and secondary loaders on and sadly the CF wont boot.
I need a way for QNX6 to be able to put the QNX4 loaders onto the CF. dloader should do this for me but I dont have the QNX4 loader files.
Ive tried cutting data from the first sectors of a QNX4 disk and partition and using that as the loader data, but I dont seem to be able to get the sizes right.
Has anyone done this or know how to go about it? Any other solution would also be welcome.