OpenQNX :: The QNX Community Portal

Jul 25, 2008 - 04:30 PM
Google
  Web openqnx.com   
     Create an account Home · Submit News · QNX Forums · QNX Download · Search   
_
Main Menu
Who's Online
There are 28 unlogged users and 3 registered users online.

You can log-in or register for a user account here.

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
marwooj
Post subject: x86 image on usbstick  PostPosted: 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?
 
 View user's profile Send private message  
Reply with quote Back to top
mario
Post subject: RE: x86 image on usbstick  PostPosted: 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.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
marwooj
Post subject: RE: x86 image on usbstick  PostPosted: 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
 
 View user's profile Send private message  
Reply with quote Back to top
mario
Post subject: RE: x86 image on usbstick  PostPosted: 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.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
marwooj
Post subject: Re: RE: x86 image on usbstick  PostPosted: 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.
 
 View user's profile Send private message  
Reply with quote Back to top
noc
Post subject:   PostPosted: 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
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
marwooj
Post subject:   PostPosted: 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?
 
 View user's profile Send private message  
Reply with quote Back to top
noc
Post subject:   PostPosted: Nov 25, 2007 - 07:24 PM
Senior Member


Joined: Jul 06, 2002
Posts: 1631

You need to use ELF/multi-boot format (keyword "elf" in boot build file) that is required by grub, pxeboot, syslinux, etc. boot loaders.

Here are some references:

http://www.openqnx.com/PNphpBB2-viewtopic-t5866-.html
http://www.openqnx.com/index.php?name=News&file=article&sid=324
http://www.openqnx.com/index.php?name=PNphpBB2&file=viewtopic&p=25141
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
marwooj
Post subject:   PostPosted: 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,
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
All logos and trademarks in this site are property of their respective owners. The comments are property of their posters.
Powered by OpenQNX: The QNX Community Portal Site
QNX and the QNX logo are registered trademarks of QNX Software Systems.