Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Booting a Minimal QNX6.5 from a HardDrive: (17 Items)
   
Booting a Minimal QNX6.5 from a HardDrive  
The project that I'm working on requires a minimal QNX 6.5 system witch runs on an x86 platform.  Currently the .ifs 
image we are using can be booted from a Thumb drive and works great.  I now have to move this image to a Hard Drive. 

 I can fdisk and mount the drive and I can copy files to it, but when I make the hard drive the main boot device it won"
t boot.

I not sure what boot loader I'm suppose to be using and I'm also not sure if the drive is formated correctly.  I'm sure 
someone has done this before, and I'm looking for some direction.

Regards,
Mark
RE: Booting a Minimal QNX6.5 from a HardDrive  
These resources should help you:

http://www.qnx.com/developers/docs/6.5.0/index.jsp?topic=/com.qnx.doc.neutrino_technotes/qnx6bootloader.html

http://www.qnx.com/developers/docs/6.5.0/index.jsp?topic=/com.qnx.doc.neutrino_utilities/d/dinit.html

http://www.qnx.com/developers/docs/6.5.0/index.jsp?topic=/com.qnx.doc.neutrino_utilities/f/fs-qnx6.so.html

-----Original Message-----
From: Mark Bangert [mailto:community-noreply@qnx.com] 
Sent: August-22-12 5:43 PM
To: general-filesystems
Subject: Booting a Minimal QNX6.5 from a HardDrive

The project that I'm working on requires a minimal QNX 6.5 system witch runs on an x86 platform.  Currently the .ifs 
image we are using can be booted from a Thumb drive and works great.  I now have to move this image to a Hard Drive. 

 I can fdisk and mount the drive and I can copy files to it, but when I make the hard drive the main boot device it won"
t boot.

I not sure what boot loader I'm suppose to be using and I'm also not sure if the drive is formated correctly.  I'm sure 
someone has done this before, and I'm looking for some direction.

Regards,
Mark




_______________________________________________

General
http://community.qnx.com/sf/go/post95049
To cancel your subscription to this discussion, please e-mail general-filesystems-unsubscribe@community.qnx.com
Re: Booting a Minimal QNX6.5 from a HardDrive  
Is there an error message when it fails to boot?
Re: Booting a Minimal QNX6.5 from a HardDrive  
Thank for the response.

No there is no message of any kind.

My first problem is I think that I'm not get the disk formatted correctly because the partition table look very strange.


_____OS_____ Start End ______Number_____ Size Boot 
name type Cylinder Cylinder Cylinders Blocks 

1. nonQNX 205 87476 87507 32 506704 247 MB * 
2. nonQNX 88 0 4294967295 0 0 0 MB * 
3. ______ (___) _______ _______ _______ _________ _____ 
4. ______ (___) _______ _______ _______ _________ _____
Re: Booting a Minimal QNX6.5 from a HardDrive  
It appears you did...

dinit -h /dev/hd0
or
mkqnx6fs /dev/hd0

These would destroy the partition table as your post indicates.

Use fdisk first and create the type of partition you want ... 77 or 177 (qnx6fs)
Then specify the partition device, i.e. /dev/hd0t177 rather than /dev/hd0.
Re: Booting a Minimal QNX6.5 from a HardDrive  
what is the difference between these two commands;
fdisk /dev/hd1 show
and 
fdisk /dev/hd1t177

I get two very different results, which one is correct?
RE: Booting a Minimal QNX6.5 from a HardDrive  
"show" just prints the disk partition table...without it you can manipulate it.
/dev/hd1 is the raw partition, whereas /dev/hd1t77 is the QNX6 partition(don't do anything with this one)

What does the output of "fdisk /dev/hd1 show" say?

-----Original Message-----
From: Mark Bangert [mailto:community-noreply@qnx.com] 
Sent: August-23-12 1:13 PM
To: general-filesystems
Subject: Re: Booting a Minimal QNX6.5 from a HardDrive

what is the difference between these two commands; fdisk /dev/hd1 show and fdisk /dev/hd1t177

I get two very different results, which one is correct?




_______________________________________________

General
http://community.qnx.com/sf/go/post95083
To cancel your subscription to this discussion, please e-mail general-filesystems-unsubscribe@community.qnx.com
Re: RE: Booting a Minimal QNX6.5 from a HardDrive  
If you do an fdisk /dev/hd1 show you get:
        _____OS_____     Start      End     ______Number_____    Size    Boot
        name    type    Cylinder  Cylinder  Cylinders  Blocks

    1.  QNX6   (177)          0     19456     19457   312576642  152625 MB  *
    2.  ______ (___)    _______   _______   _______   _________  _____
    3.  ______ (___)    _______   _______   _______   _________  _____
    4.  ______ (___)    _______   _______   _______   _________  _____

If you do fdisk  /dev/hd1t177 show you get:
        _____OS_____     Start      End     ______Number_____    Size    Boot
        name    type    Cylinder  Cylinder  Cylinders  Blocks

    1.  nonQNX (114)     242288   255782     13495   216793029  105855 MB  *
    2.  __dos_ (_6_)    204664   205699      1036    16641012   8125 MB  *
    3.  ______ (___)    _______   _______   _______   _________  _____
    4.  ______ (___)    _______   _______   _______   _________  _____

RE: RE: Booting a Minimal QNX6.5 from a HardDrive  
So this is good, you have a bootable partition on your disk...ignore the fdisk /dev/hd1t77 wrt. fdisk.

So now you need to run "mkqnx6fs /dev/hd1t77" to create the qnx6 filesystem on your partition.
Then reboot/restart the io-blk driver, and put your disk partition should show up as /fs/hd1-qnx6 and put your ifs file 
in /fs/hd1-qnx6/.boot/
Then power off and remove your /dev/hd0 disk, upon reboot the loader should show you the ifs that is in your /.boot/


-----Original Message-----
From: Mark Bangert [mailto:community-noreply@qnx.com] 
Sent: August-23-12 2:42 PM
To: general-filesystems
Subject: Re: RE: Booting a Minimal QNX6.5 from a HardDrive

If you do an fdisk /dev/hd1 show you get:
        _____OS_____     Start      End     ______Number_____    Size    Boot
        name    type    Cylinder  Cylinder  Cylinders  Blocks

    1.  QNX6   (177)          0     19456     19457   312576642  152625 MB  *
    2.  ______ (___)    _______   _______   _______   _________  _____
    3.  ______ (___)    _______   _______   _______   _________  _____
    4.  ______ (___)    _______   _______   _______   _________  _____

If you do fdisk  /dev/hd1t177 show you get:
        _____OS_____     Start      End     ______Number_____    Size    Boot
        name    type    Cylinder  Cylinder  Cylinders  Blocks

    1.  nonQNX (114)     242288   255782     13495   216793029  105855 MB  *
    2.  __dos_ (_6_)    204664   205699      1036    16641012   8125 MB  *
    3.  ______ (___)    _______   _______   _______   _________  _____
    4.  ______ (___)    _______   _______   _______   _________  _____





_______________________________________________

General
http://community.qnx.com/sf/go/post95089
To cancel your subscription to this discussion, please e-mail general-filesystems-unsubscribe@community.qnx.com
Re: RE: RE: Booting a Minimal QNX6.5 from a HardDrive  
Almost there.  After performing the above, and rebooting I get a meessage on the screen "QNX v1.2b Boot Loader" and a 
blinking cursor.  I think the issue is not being able to copy my ifs from one drive to another.  This is basic but I'm 
have trouble.  I believe the command should be 
    cp myqnx.ifs /fs/hd1-qnx6/.boot and the ifs goes from hd0 to hd1.

regards,
Mark
 
RE: RE: RE: Booting a Minimal QNX6.5 from a HardDrive  
/fs/hd1-qnx6/.boot/ is a directory, which is where you need to put you're ifs.  You may have written over your /fs/hd1-
qnx6/.boot/ directory with your cp command ;-)  If so, you would have to rerun the mkqnx6fs command to recreate the qnx6
 filesystem.

When you remove the hd0 drive then reboot; the loader(on the secondary disk which is now the primary) should show your 
ifs as a selection to boot from.
Once booted, as long as you have the io-blk driver(and required libs) running in your ifs, then the hard-drive should 
show up as
/dev/hd0 and hopefully be mounted as /

Now this filesystem will be empty unless you've copied files over to the /fs/hd1-qnx6/ previous to removing the initial 
disk.
If you get as far as selecting you're image and it doesn't boot properly, post your myqnx.build file.

Chris 

-----Original Message-----
From: Mark Bangert [mailto:community-noreply@qnx.com] 
Sent: August-23-12 5:36 PM
To: general-filesystems
Subject: Re: RE: RE: Booting a Minimal QNX6.5 from a HardDrive

Almost there.  After performing the above, and rebooting I get a meessage on the screen "QNX v1.2b Boot Loader" and a 
blinking cursor.  I think the issue is not being able to copy my ifs from one drive to another.  This is basic but I'm 
have trouble.  I believe the command should be 
    cp myqnx.ifs /fs/hd1-qnx6/.boot and the ifs goes from hd0 to hd1.

regards,
Mark
 



_______________________________________________

General
http://community.qnx.com/sf/go/post95103
To cancel your subscription to this discussion, please e-mail general-filesystems-unsubscribe@community.qnx.com
Re: RE: RE: RE: Booting a Minimal QNX6.5 from a HardDrive  
Chris,

I'm so close.  I re-did the "mkqnx6fs /dev/hd1t177" command just in case screwed up something.  I then moved a copy of 
my bootable ifs image that's on hd0 to the /fs/hd1-qnx6/.boot directory.  I know that this is a working image.  I remove
 hd0 and make hd1 my new hd0 and boot.  I get the qnx "v1.2b Boot loader:" message but that's it.  What I have noticed 
is that there is a previous message that I get with the working hd0 "Press F1-F4 to select drive or select Partition:", 
I don't get this message with my hd.

Also another bit of information. If I have both drives in the system and when it boots I can select drive 2 and it will 
boot from drive 2. So it seems to me that I'm still missing something in the preperation of my drive. Something is still
 missing.

Regards,
Mark
RE: RE: RE: RE: Booting a Minimal QNX6.5 from a HardDrive  
I'm not sure at this point, but I would think that the boot loader would have been written with the "mkqnx6fs /dev/
hd1t177" command...but try rewriting the boot loader with:

"mkqnx6fs -B /dev/hd1t177"

If this doesn't work, then I'll get one of the file system guys to jump in.


-----Original Message-----
From: Mark Bangert [mailto:community-noreply@qnx.com] 
Sent: August-24-12 11:08 AM
To: general-filesystems
Cc: DWarnock@Medrobotics.com
Subject: Re: RE: RE: RE: Booting a Minimal QNX6.5 from a HardDrive

Chris,

I'm so close.  I re-did the "mkqnx6fs /dev/hd1t177" command just in case screwed up something.  I then moved a copy of 
my bootable ifs image that's on hd0 to the /fs/hd1-qnx6/.boot directory.  I know that this is a working image.  I remove
 hd0 and make hd1 my new hd0 and boot.  I get the qnx "v1.2b Boot loader:" message but that's it.  What I have noticed 
is that there is a previous message that I get with the working hd0 "Press F1-F4 to select drive or select Partition:", 
I don't get this message with my hd.

Also another bit of information. If I have both drives in the system and when it boots I can select drive 2 and it will 
boot from drive 2. So it seems to me that I'm still missing something in the preperation of my drive. Something is still
 missing.

Regards,
Mark



_______________________________________________

General
http://community.qnx.com/sf/go/post95117
To cancel your subscription to this discussion, please e-mail general-filesystems-unsubscribe@community.qnx.com
Re: RE: RE: RE: RE: Booting a Minimal QNX6.5 from a HardDrive  
Chris,

I tried the mkqnxfs -B /dev/hd1T177 command and still no fire.  If there is someone else that you think might be able to
 help that would be great.  I really appreciate your help, you've been great.

Have a good weekend.

Mark
Re: RE: RE: RE: RE: Booting a Minimal QNX6.5 from a HardDrive  
Hi Chris,

Success,  thought you would like to know.  The final piece of the puzzle was "dloader".  I didn't realize that two 
loaders were required.  It now makes sense.  I found a piece of documentation over the weekend that solved the problem. 
 

Thank you ever so much for all of your help.

Best Regards,

Mark
RE: RE: RE: RE: RE: Booting a Minimal QNX6.5 from a HardDrive  
Excellent news!  My pleasure...

Can you send me a link to the documentation you found?

Chris

-----Original Message-----
From: Mark Bangert [mailto:community-noreply@qnx.com] 
Sent: August-27-12 10:07 AM
To: general-filesystems
Subject: Re: RE: RE: RE: RE: Booting a Minimal QNX6.5 from a HardDrive

Hi Chris,

Success,  thought you would like to know.  The final piece of the puzzle was "dloader".  I didn't realize that two 
loaders were required.  It now makes sense.  I found a piece of documentation over the weekend that solved the problem. 
 

Thank you ever so much for all of your help.

Best Regards,

Mark




_______________________________________________

General
http://community.qnx.com/sf/go/post95143
To cancel your subscription to this discussion, please e-mail general-filesystems-unsubscribe@community.qnx.com
Re: RE: RE: RE: RE: Booting a Minimal QNX6.5 from a HardDrive  
The only reason I found this was as a result of a search for the string "Press F1-F4 to select drive or select partition
 1,2,3? 1".  This link kind of outlines everything.

http://www.qnx.com/developers/docs/6.3.2/neutrino/user_guide/starting.html

Again, thanks for the help.

Mark