Detecting QNX Loader

Hi,
I’m writing a diagnostic program for our product, and one thing I’d like to
do is determine if the loader is QNX or not. What methods can I use to
determine if the QNX loader is being used?

TIA,
Ron

Ron Cococcia <stop.sp@mming.me.com> wrote:

Hi,
I’m writing a diagnostic program for our product, and one thing I’d like to
do is determine if the loader is QNX or not. What methods can I use to
determine if the QNX loader is being used?

I assume you’re talking about the disk loader – try reading 512 bytes
from /dev/hd0. Look for the string “QNX Loader”.

If you play with it before hand, you should be able to figure out exactly
what byte to look at, rather than searching.

dd if=/dev/hd0 of=my_file ibs=512 count=1
hd my_file

will give you a look at what is there.

-David

QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.