Hi,
My goal is to crate qnx image that I can put on usbstick and boot it using grub.
The image is not directly installed to /dev/usb but I want it to put raw file on a vfat formated pendrive.
Using in grub
title QNX_rtl
kernel /boot/memdisk.bin
initrd /boot/qnx.raw
I have tried with all this
bios.build
finstall.build
qnxbasedmaaps.build
qnxbasesmp.build
qemu-minimal.build
qnxbase.build
qnxbasedma.build
and they all boot fine in QEMU but neither wants to boot in real PC from grub and pendrive
None of these image are meant to boot off a USB flash disk, you need to write a custom image for that. All these images expect a bunch of files to be present on a QNX partition
You should also make sure that the perticular USB device is supporte by QNX.
Ok, you are right, but everything QNX needs to run is on qnx.raw (it is made from qemu-minimal.build example - I just commented out part with mounting, it does not make any different for QNX to boot in qemu) image so one it is loaded into ram I do not need to mount it under QNX. I do not need to load anything extra outside image for now I just need it to boot.
Hello Marwooj
I have similar requirement, but I am newbie to QNX.
I found many default build file in /boot/build
I tried to modify qnxbasesmp-apic.build to change the keyword of bios to elf, and boot to bootstrap
and type:
mkifs qnxbasesmp-apic.build /root/qnx.elf
And write below in /boot/grub/grub.cfg in hd0(grub2 base)
set default=0
set timeout=10
set root=(hd0,1)
terminal console
menuentry “QNX 6.5” {
multiboot (hd0,1)/images/qnx.elf
}
The grub2 can show the menu of QNX 6.5, but it will show error when into the boot item
error: invalid arch-dependent ELF magic
I am not sure if the command(mkifs) is correct to generate elf or not, could you please share your step