help me i'm so confused

hi,
i have a win hosted QNX6.3 and in an other machine i installed QNX
selh hosted.
i’ve developped a QNX C project on my win hosted QNX . This project
was well compiled.
Now, i ask for target specification:

should the target have a QNX OS.
If yes how can i do to make this OS small.
thank u

Hi…

  1. Yes, the target has to have QNX OS running on it.

  2. You have to create an image with as many components as you may want.
    Look in the documentation in ‘Building Embedded Systems’. There you will
    see examples of how to do this.

http://www.qnx.com/developers/docs/6.3.0/neutrino/building/about.html

  1. How do you get this image in the target system? Well, again, this
    depends on your particular system.

a. if you have another full computer, simply install QNX in there as
well, and there, you have a target system. For you, it seems that this
is the best choice to get you started.

b. if you have a computer with limited resources (i.e. PC104 with
limited memory), then you need to configure the system accordingly. One
of the easiest is a flash-IDE card, that is, a flash that behaves as an
IDE device. If this is the case, then you could do something like the
following:

  • somehow, get the target to be in the same system that already runs QNX
    (if you ask how to do this, the answer will be ‘it depends’ and you
    would have to be very specific with regard to your particular system).

  • at the command line:

i. notice the partition of interest. (NOTE: it will be any partition
other than the hd0 partition, since your /dev/hd0 partition will most
likely be your base system):

ls /dev/hd*

ii. let us say that the device name is /dev/hd1, then:

dd if=/dev/zero of=/dev/hd1 count=100

fdisk /dev/hd1 add -b -t77

fdisk /dev/hd1 boot -t77

fdisk /dev/hd1 loader

fdisk /dev/hd1 show

mount -e /dev/hd1

ls /dev/hd1*

Please note that for some flash systems you have to use the t79
partition iinstead of the t77 partition. You will have to experiment
with this.

iii. let us assume that the new partition is ‘/dev/hd1t77’, then:

dinit -h /dev/hd1t77

dinit -hb /dev/hd1t77

iv. now you are ready to mount the partition to which you can write the
image and other things…

mount /dev/hd1t77 /newQNXhd

where ‘newQNXhd’ will be the hardrive formated with QNX.

v. go to the directory where you have the image, and write the image as
…boot

cp someImage.ifs /newQNXhd/.boot

so on and so forth.

Notice that there are many variants to this, and each is specific to
each particular system. Whence, the more specific you are, the more
others will be able to help (I think).

Regards…

Miguel.


inamils wrote:

hi,
i have a win hosted QNX6.3 and in an other machine i installed QNX
selh hosted.
i’ve developped a QNX C project on my win hosted QNX . This project
was well compiled.
Now, i ask for target specification:

should the target have a QNX OS.
If yes how can i do to make this OS small.
thank u