| Author |
Message |
|
|
Post subject: x86 image on usbstick
Posted: Nov 22, 2007 - 05:53 PM
|
|
Active Member
Joined: Nov 22, 2007
Posts: 10
|
|
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
They boots almost fine but stops after
Hit Esc for .altboot............................................................
.................
What could be fix for booting qnx with my method? |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: x86 image on usbstick
Posted: Nov 22, 2007 - 08:23 PM
|
|
QNX Master
Joined: Sep 01, 2002
Posts: 2783
|
|
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.
As for the grub part I can't help you. |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: x86 image on usbstick
Posted: Nov 23, 2007 - 03:35 PM
|
|
Active Member
Joined: Nov 22, 2007
Posts: 10
|
|
Misunderstanding
the grub part
kernel /boot/memdisk.bin
initrd /boot/qnx.raw
makes that qnx.raw image is like floppy drive image for boot loader, so the OS thinks it is on fd not on pendrive |
|
|
| |
|
|
|
 |
|
|
Post subject: RE: x86 image on usbstick
Posted: Nov 23, 2007 - 06:25 PM
|
|
QNX Master
Joined: Sep 01, 2002
Posts: 2783
|
|
| No, it makes the qnx.raw image look like a floppy driver to the loader,but once QNX starts, it takes over the machine completely. |
|
|
| |
|
|
|
 |
|
|
Post subject: Re: RE: x86 image on usbstick
Posted: Nov 24, 2007 - 08:36 AM
|
|
Active Member
Joined: Nov 22, 2007
Posts: 10
|
|
|
mario wrote:
No, it makes the qnx.raw image look like a floppy driver to the loader,but once QNX starts, it takes over the machine completely.
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. |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Nov 25, 2007 - 03:00 AM
|
|
Senior Member
Joined: Jul 06, 2002
Posts: 1631
|
|
In your build file, try to change the line
[virtual=x86,bios +compress]
to
[virtual=x86,elf +compress]
(change "bios" to "elf")
Also, since you are playing with usbstick, you should consider using "syslinux" tools. Here is the entry I have in my syslinux.cfg file:
Code:
LABEL qnx6
KERNEL mboot.c32
APPEND myown.ifs
|
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Nov 25, 2007 - 03:25 PM
|
|
Active Member
Joined: Nov 22, 2007
Posts: 10
|
|
|
noc wrote:
In your build file, try to change the line
(change "bios" to "elf")
Hi noc ,
What is the different between "bios" and "elf"?
Can you point me to documentation? |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Nov 25, 2007 - 07:24 PM
|
|
Senior Member
Joined: Jul 06, 2002
Posts: 1631
|
|
|
|
|
 |
|
|
Post subject:
Posted: Nov 26, 2007 - 08:31 AM
|
|
Active Member
Joined: Nov 22, 2007
Posts: 10
|
|
Hi noc,
Thx for your help, it works now, I have
Code:
[virtual=x86,elf +compress] bootstrap = {
}
and in grub just
Code:
title QNX_elf
kernel /boot/qnx.elf
It boot great
Now I need to find out what is different between
bootstrap =
and
boot =
Regards, |
|
|
| |
|
|
|
 |
|
|