Yes, the target has to have QNX OS running on it.
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.
- 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
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):
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
Please note that for some flash systems you have to use the t79
partition iinstead of the t77 partition. You will have to experiment
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
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).
i have a win hosted QNX6.3 and in an other machine i installed QNX
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.