Hi all,
I’ve continued to go deeper concerning this issue and I found an easier solution thanks to this thread :
https://forums.openqnx.com/t/topic/25298/2
As you understand the root cause is fdisk doesn’t have or doesn’t write correctly the QNX Bootloader and the secondary loader according to the partition table. The work around is to use other loader and as described in the previous thread it’s possible to download them in the contributed software library of QNX4 under /usr/free/qnx4/os/utils/disk/quietloaders.tgz.
For those interested in these files I’ve found the following link :
https://fsck.technology/software/QNX/QNX%204/QNX4/Soft/Free/os/utils/disk/
In conclusion if you need to clone a CF from USB adapter and QNX4.25 VM :
- Start USB stack with : # io-usb
- Start filesystem with : # Fsys.umass fsys -Nusb -nusb0
- Load primary loader (QNX bootloader) : # fdisk -B loader1.bin /dev/usb0 loader
- Create a bootable QNX Partition : # fdisk /dev/usb0 add -t77 -p20 boot
- Enumerate partitions : # mount -p /dev/usb0
- Load secondary loader : # dinit -h -B loader2.bin /dev/usb0t77
- Mount qnx partition : # mount /dev/usb0t77 /mnt/part77
- Copy your bootimage file : # cp /boot/images/mybootimage.1 /mnt/part77/.boot
- Umount everything and plug CF to the machine to test the boot
- Plug again to the VM, mount partitions and copy your backup files.
By the way, I’ve noticed also it’s not working for all CF models. I’ve tried this method with another CF and it’s not working at all.
Ade