Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Generating a system build image: (5 Items)
   
Generating a system build image  
Hello Everyone,

I have QNX executable (dialog based, created in PhAB) and I want this executable to be run when the QNX RTOS machine 
boots up. I don't want to load the usual QNX desktop.

I am using the System Builder in the IDE, and have created a generic image file (.ifs).

But when I move this .ifs file to a Virtual Machine (running QNX RTOS 6.5), upon boot up, many error messages are given 
saying: 
Unknown symbol: <different names>
Idd: FATAL: Could not resolve all symbols

I also want to run a script (say named: testScript) from the boot script file (.bsh).
The script will be stored in: /home/test/
I understand I will have to create the folders /home/test/ in the target image.

I have searched this forum for help on working with system builder in Momentics IDE. But I don't seem to be getting the 
help that I need.

By the way, I am using IDE 4.6.0, the target RTOS (or for development purpose the Virtual Machine) will be 6.5

Can anyone please give me tips or links to pages that contain some information to build a target image?
Thanks.

Regards,
Philip
Re: Generating a system build image  
Have a look at the Building Embedded Systems bookset:

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

As well since you are intending to embedded Photon and Photon application, worth also reading:

http://www.qnx.com/developers/docs/6.5.0SP1/photon/prog_guide/embed.html

And the utility reference for mkifs will explain many of the commands understood by the utility.

http://www.qnx.com/developers/docs/6.5.0SP1/neutrino/utilities/m/mkifs.html

- Dave
Re: Generating a system build image  
> As well since you are intending to embedded Photon and Photon application, 
> worth also reading:
> 
> http://www.qnx.com/developers/docs/6.5.0SP1/photon/prog_guide/embed.html

Thanks Dave.

I have read the "Photon in Embedded Systems" section. 

I followed the steps given in the article to create an image using System Builder, and I get an image (photonBld.ifs 
file). I then moved this file to target's .boot folder (my target is now a VMWare x86 Virtual Machine running QNX 6.5). 
On boot up I select this generated photonBld.ifs file, but then nothing happens. No progress message, no errors, just 
stops after displaying the following line: "QNX v1.2b Boot Loader: photonBld.ifs ............."

Is there a way I can debug this to see what's happening?
There were no warnings/errors on building in System Builder.

Regards,
Philip
Re: Generating a system build image  
It is possible to have procnto output to a serial port but not likely helpful in this case since I assume you have 
stdout stderr available on a display console.
I would suggest using the builtin command display_msg

display_msg Starting serial port

Adding this before each new step in your boot process will allow you to see how far you are getting in your boot script.

For now you might consider commenting out the photon portions and just just get a console working, once that is 
successful, add back in the Photon components and commands.
Also note that most drivers have -v options to make their startup be more verbose (display more status and failure 
information).


Re: Generating a system build image  
Sure Dave, I should go step by step and see where the problem lies.
i will update you the outcome soon.

Thanks.

Philip