Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Photon i.MX25 BSP: (23 Items)
   
Photon i.MX25 BSP  
Hello,

What do I have to do to get photon onto my i.MX25 (arm9) image so that I can run photon applications on my development 
board? Is there a photon lib that should be on the target?

Right now i get the error
Ap: Unable to locate Photon (2)

Thanks 

Marcel
RE: Photon i.MX25 BSP  
Did you run 'Photon'?

You can take a look at these minimal x86 build scripts to get an idea:

http://community.qnx.com/sf/frs/do/viewRelease/projects.graphics/frs.pho
ton.photon_minimal_build_script

These are for 64x, btw.

-Derek

-----Original Message-----
From: Marcel Meerstetter [mailto:community-noreply@qnx.com] 
Sent: Thursday, November 19, 2009 11:01 AM
To: photon-graphics
Subject: Photon i.MX25 BSP

Hello,

What do I have to do to get photon onto my i.MX25 (arm9) image so that I
can run photon applications on my development board? Is there a photon
lib that should be on the target?

Right now i get the error
Ap: Unable to locate Photon (2)

Thanks 

Marcel



_______________________________________________

Photon microGUI
http://community.qnx.com/sf/go/post42246
Re: RE: Photon i.MX25 BSP  
Hello Derek,

Thank you. I added the Photon Binary to the image and am able to start Photon, however, I still get an error when trying
 to start my application 

# Photon
# GuiTestiMx25
Ap: Unable to open resource file
(/proc/boot/GuiTestiMx25)

Do I need to add some libraries to the Image that Photon needs?

Thanks,

Marcel
Re: RE: Photon i.MX25 BSP  
Do you have the whole Photon stack up and running?  The only other thing that would cause that, besides the entire stack
 not running, is that the binary got stripped ... for PhAB applications, you need to add:

[+raw]

in the build script, to prevent it from being stripped.  When you get a chance, tkae a look at the Embedding Photon 
documentation, I believe it discusses some of these points.

Kind Regards,
-Derek
Re: RE: Photon i.MX25 BSP  
Hello again Derek,

Thanks for the Tipp with the Photon in Embedded Systems. My error was listed there and I have rebuild the image with my 
application not stripped ( I am using System Builder). I have then tried running the application again, but not get the 
error 
# GuiTestiMx25
Memory fault

I have followed the instructions in documentation on how get a photon app. running, but to no success. I have included 
all the necessary libraries( I used pidin in a VM running QNX). The one problem I do have is starting pwm, but actually 
I am hpoing my app does not need a windows manager. How do I know if I need pwm?
the error I get is
# pwm
copy from /usr/photon/config/wm/wm.cfg to /.ph/wm/wm.cfg failed
couldn't open /.ph/wm/wm.cfg for read

Thanks

Marcel
RE: RE: Photon i.MX25 BSP  
Oh, don't worry about that warning, pwm should still be running, but if
you want to silence the warning, you need to:

1)  Add /usr/photon/config/wm/wm.cfg to your build image.
2)  Have envar HOME set, and it must be writable.

You only need 'pwm' if you want window frames, or need to move your
window with the mouse.

Can you debug your application to see where it is core faults?  Can you
run and stock applications like 'ped' or 'pfm'?

-----Original Message-----
From: Marcel Meerstetter [mailto:community-noreply@qnx.com] 
Sent: Monday, November 23, 2009 12:40 PM
To: photon-graphics
Subject: Re: RE: Photon i.MX25 BSP

Hello again Derek,

Thanks for the Tipp with the Photon in Embedded Systems. My error was
listed there and I have rebuild the image with my application not
stripped ( I am using System Builder). I have then tried running the
application again, but not get the error 
# GuiTestiMx25
Memory fault

I have followed the instructions in documentation on how get a photon
app. running, but to no success. I have included all the necessary
libraries( I used pidin in a VM running QNX). The one problem I do have
is starting pwm, but actually I am hpoing my app does not need a windows
manager. How do I know if I need pwm?
the error I get is
# pwm
copy from /usr/photon/config/wm/wm.cfg to /.ph/wm/wm.cfg failed
couldn't open /.ph/wm/wm.cfg for read

Thanks

Marcel



_______________________________________________

Photon microGUI
http://community.qnx.com/sf/go/post42396
Re: RE: RE: Photon i.MX25 BSP  
Thank you for all the help Derek. No, ped and pfm get the same error
Memory Fault
I am not yet able to connect with qconn. I am hoping someone from the BSP group can help me. when I run dhcp.client, I 
don't get an IP address assigned. and when i assign one statically, it does not work either. Hopefully I will have a 
connection with qconn soon so that I can debug using Momentics

Cheers

Marcel
Re: RE: RE: Photon i.MX25 BSP  
Hello Derek,

I am able to debug using qconn. When I start the application in Momentics to run as debug, I get the following output

Stopped due to shared library event
Stopped due to shared library event
Stopped due to shared library event
Stopped due to shared library event
Stopped due to shared library event
Single stepping until exit from function PfExtentCx, 
which has no line number information.

Also, I tried to compile the application using the -static flag for the linker. Thies then failed with the error
C:/QNX641/host/win32/x86/usr/bin/qcc -Vgcc_ntoarm -Wl,--no-keep-memory  -static    -oD:/qnxWorkspace/GuiTestiMx25/arm/o-
le/GuiTestiMx25    abmain.o   -L . -L C:/QNX641/target/qnx6/armle/lib -L C:/QNX641/target/qnx6/armle/usr/lib  -Wl,--
rpath-link . -Wl,--rpath-link C:/QNX641/target/qnx6/armle/lib -Wl,--rpath-link C:/QNX641/target/qnx6/armle/usr/lib    -
lAp    -lph    -lm   -EL     
C:/QNX641/target/qnx6/armle/usr/lib\libph.a(pf.o): In function `PfSetRenderingDPI':
(.text+0x244): undefined reference to `PfSetRenderingDPICx'

the libfont library is in the image.

any clues?

cheers

Marcel
Re: RE: RE: Photon i.MX25 BSP  
Hi Marcel,

it's strange that standard apps like pterm oder phcalc don't work. Can you post the output of 'pidin mem' and 'sloginfo'
?

Anything on screen at all, e.g. mouse pointer?


- Malte
RE: RE: RE: Photon i.MX25 BSP  
and can you post you build script?  something is whacked big time.

-----Original Message-----
From: Malte Mundt [mailto:community-noreply@qnx.com] 
Sent: Wednesday, November 25, 2009 9:03 AM
To: photon-graphics
Subject: Re: RE: RE: Photon i.MX25 BSP

Hi Marcel,

it's strange that standard apps like pterm oder phcalc don't work. Can
you post the output of 'pidin mem' and 'sloginfo'?

Anything on screen at all, e.g. mouse pointer?


- Malte



_______________________________________________

Photon microGUI
http://community.qnx.com/sf/go/post42533
Re: RE: RE: RE: Photon i.MX25 BSP  
I have added a whole project. I seem to have another problem with the flash. in my last boot, it did not mount the 
filesystem
Attachment: Compressed file GuiTestiMx25export.zip 44.17 KB
Re: RE: RE: RE: Photon i.MX25 BSP  
Last night it sort of occurred to me that you might have wanted the build file from the system builder. I have attached 
the whole system Builder project as well as the output of pidin mem. the output of sloginfo is 

Jan 01 00:06:07    2     3   800 fs-etfs-3dsmx35_2048: devio_readtrans: readtrans DATAERR on cluster 60382
Jan 01 00:06:07    2     3   800 fs-etfs-3dsmx35_2048: devio_readtrans: readtrans DATAERR on cluster 60383
Jan 01 00:06:07    2     3   800 fs-etfs-3dsmx35_2048: devio_readtrans: readtrans DATAERR on cluster 60384
Jan 01 00:06:07    2     3   800 fs-etfs-3dsmx35_2048: devio_readtrans: readtrans DATAERR on cluster 60385
Jan 01 00:06:07    2     3   800 fs-etfs-3dsmx35_2048: devio_readtrans: readtrans DATAERR on cluster 60386
Jan 01 00:06:07    2     3   800 fs-etfs-3dsmx35_2048: devio_readtrans: readtrans DATAERR on cluster 60387
Jan 01 00:06:07    2     3   800 fs-etfs-3dsmx35_2048: devio_readtrans: readtrans DATAERR on cluster 60388
Jan 01 00:06:07    2     3   800 fs-etfs-3dsmx35_2048: devio_readtrans: readtrans DATAERR on cluster 60389
Jan 01 00:06:07    2     3   800 fs-etfs-3dsmx35_2048: devio_readtrans: readtrans DATAERR on cluster 60390
Jan 01 00:06:07    2     3   800 fs-etfs-3dsmx35_2048: devio_readtrans: readtrans DATAERR on cluster 60391
Jan 01 00:06:09    3     3   800 fs-etfs-3dsmx35_2048: No filesystem detected. Entering stopped mode.
Jan 01 00:06:09    1     3   800 fs-etfs-3dsmx35_2048: Unable to initialise ETFS systems (Corrupted file system 
detected)
# 

# 

The Problem with the corrupted file system started yesterday. I am working with free scale on that issue.

Cheers

Marcel
Attachment: Compressed file Log_and_Build_File.zip 17.87 MB
RE: RE: RE: RE: Photon i.MX25 BSP  
Thank you Marcel, I cannot look at it right away, do you have any
support people checking this as well?

-----Original Message-----
From: Marcel Meerstetter [mailto:community-noreply@qnx.com] 
Sent: Wednesday, November 25, 2009 9:39 AM
To: photon-graphics
Subject: Re: RE: RE: RE: Photon i.MX25 BSP

I have added a whole project. I seem to have another problem with the
flash. in my last boot, it did not mount the filesystem



_______________________________________________

Photon microGUI
http://community.qnx.com/sf/go/post42543
Re: RE: RE: RE: RE: Photon i.MX25 BSP  
Hello Derek,

no, I only posted this problem on the forum. I haven't contacted QNX support officially yet. Are you from QNX?

It would be interesting to know if any one has used the graphics in conjunction with the iMX 25 development board. 

Thanks for all your help

Marcel


> Thank you Marcel, I cannot look at it right away, do you have any
> support people checking this as well?
> 
> -----Original Message-----
> From: Marcel Meerstetter [mailto:community-noreply@qnx.com] 
> Sent: Wednesday, November 25, 2009 9:39 AM
> To: photon-graphics
> Subject: Re: RE: RE: RE: Photon i.MX25 BSP
> 
> I have added a whole project. I seem to have another problem with the
> flash. in my last boot, it did not mount the filesystem
> 
> 
> 
> _______________________________________________
> 
> Photon microGUI
> http://community.qnx.com/sf/go/post42543


RE: RE: RE: RE: RE: Photon i.MX25 BSP  
Yes, I am from QNX, just not tech. support (directly).  It might be a
good idea to file a ticket, just to keep track of things.

-----Original Message-----
From: Marcel Meerstetter [mailto:community-noreply@qnx.com] 
Sent: Thursday, November 26, 2009 10:37 AM
To: photon-graphics
Subject: Re: RE: RE: RE: RE: Photon i.MX25 BSP

Hello Derek,

no, I only posted this problem on the forum. I haven't contacted QNX
support officially yet. Are you from QNX?

It would be interesting to know if any one has used the graphics in
conjunction with the iMX 25 development board. 

Thanks for all your help

Marcel


> Thank you Marcel, I cannot look at it right away, do you have any
> support people checking this as well?
> 
> -----Original Message-----
> From: Marcel Meerstetter [mailto:community-noreply@qnx.com] 
> Sent: Wednesday, November 25, 2009 9:39 AM
> To: photon-graphics
> Subject: Re: RE: RE: RE: Photon i.MX25 BSP
> 
> I have added a whole project. I seem to have another problem with the
> flash. in my last boot, it did not mount the filesystem
> 
> 
> 
> _______________________________________________
> 
> Photon microGUI
> http://community.qnx.com/sf/go/post42543






_______________________________________________

Photon microGUI
http://community.qnx.com/sf/go/post42674
RE: RE: RE: RE: RE: Photon i.MX25 BSP  
Hi Marcel,

This is just your program project, isn't it?  I would like to see the
project, or just the build file (used by mkifs), that creates the .ifs
file you burn to your target.

Thanks,
Derek

-----Original Message-----
From: Marcel Meerstetter [mailto:community-noreply@qnx.com] 
Sent: Thursday, November 26, 2009 10:37 AM
To: photon-graphics
Subject: Re: RE: RE: RE: RE: Photon i.MX25 BSP

Hello Derek,

no, I only posted this problem on the forum. I haven't contacted QNX
support officially yet. Are you from QNX?

It would be interesting to know if any one has used the graphics in
conjunction with the iMX 25 development board. 

Thanks for all your help

Marcel


> Thank you Marcel, I cannot look at it right away, do you have any
> support people checking this as well?
> 
> -----Original Message-----
> From: Marcel Meerstetter [mailto:community-noreply@qnx.com] 
> Sent: Wednesday, November 25, 2009 9:39 AM
> To: photon-graphics
> Subject: Re: RE: RE: RE: Photon i.MX25 BSP
> 
> I have added a whole project. I seem to have another problem with the
> flash. in my last boot, it did not mount the filesystem
> 
> 
> 
> _______________________________________________
> 
> Photon microGUI
> http://community.qnx.com/sf/go/post42543






_______________________________________________

Photon microGUI
http://community.qnx.com/sf/go/post42674
Re: RE: RE: RE: RE: RE: Photon i.MX25 BSP  
Hello Derek, 
the post I did yesterday with the Log_and _Build_File.zip contains the project with which I created the image. It is the
 system builder project.


Best wishes and a nice weekend in case I don't hear from you anymore

Cheers

Marcel
RE: RE: RE: RE: RE: RE: Photon i.MX25 BSP  
Thanks, I missed it. :)

-----Original Message-----
From: Marcel Meerstetter [mailto:community-noreply@qnx.com] 
Sent: Friday, November 27, 2009 10:36 AM
To: photon-graphics
Subject: Re: RE: RE: RE: RE: RE: Photon i.MX25 BSP

Hello Derek, 
the post I did yesterday with the Log_and _Build_File.zip contains the
project with which I created the image. It is the system builder
project.


Best wishes and a nice weekend in case I don't hear from you anymore

Cheers

Marcel



_______________________________________________

Photon microGUI
http://community.qnx.com/sf/go/post42754
Re: RE: RE: RE: RE: RE: RE: Photon i.MX25 BSP  
Hi Marcel,

Your .bsh does not appear to even attempt to start Photon from what I can tell.  You need something similar to this, or 
start this from the command line:

export PHFONT=/dev/phfont
export PHOTON=/dev/photon

Photon &
waitfor /dev/photon

io-graphics &
pwm &

Of course, all the related DLLs and such must be in the correct locations, and the above binaries should be within the $
PATH envar.
The pidin output did not list any of these processes.

And yes, those flash errors do not look good.

Kind Regards,
-Derek
Re: RE: RE: RE: RE: RE: RE: Photon i.MX25 BSP  
Hello Derek, 

I have tried your suggestions but still without success. It seems as if the io-graphics is unable to start. I have added
 the flag -v to start as
io-graphics -c /etc/system/config/display.conf -d vid=0,did=0 -v

and get the output 

io-graphics:  FAIL PfAttachLocalDll(): No such file or directory, please verify
font server configuration.
fontserver_setup()

Any ideas what might be causing this? What is the font server? I do have libfont in the image. 

Thanks

Marcel
RE: RE: RE: RE: RE: RE: RE: Photon i.MX25 BSP  
If using 64x:

phfont.so
libFF-T2K*.so
libblkcache.so
libfontutils.so
/lib/dll/font/*       (must exist at this path on the target)
/usr/photon/font_repository

-----Original Message-----
From: Marcel Meerstetter [mailto:community-noreply@qnx.com] 
Sent: Thursday, December 17, 2009 11:52 AM
To: photon-graphics
Subject: Re: RE: RE: RE: RE: RE: RE: Photon i.MX25 BSP

Hello Derek, 

I have tried your suggestions but still without success. It seems as if
the io-graphics is unable to start. I have added the flag -v to start as
io-graphics -c /etc/system/config/display.conf -d vid=0,did=0 -v

and get the output 

io-graphics:  FAIL PfAttachLocalDll(): No such file or directory, please
verify
font server configuration.
fontserver_setup()

Any ideas what might be causing this? What is the font server? I do have
libfont in the image. 

Thanks

Marcel




_______________________________________________

Photon microGUI
http://community.qnx.com/sf/go/post44036
Re: RE: RE: RE: RE: RE: RE: RE: Photon i.MX25 BSP  
Hello Derek,

Thank you very much. It works now, even though I still get some errors
Unable to load '/etc/system/config/crtc-settings'
Unable to load '/usr/photon/config/crtc-settings'
realloc(disp->mode.mode_list) failed

also when I start the phcalc, I get
Draw cmd 0x43 failed
but the calculator appears on the display and functions. 

Also, is there a way to know which font file (ttf) iis which font? and what are the phf files. If there is a document 
you can point me at, that be great too.

Thanks again for your help,

Merry Christmas in case I should have no more questions :)

Marcel
RE: RE: RE: RE: RE: RE: RE: RE: Photon i.MX25 BSP  
Hi Marcel,

Copy /usr/photon/config/crtc-settings to the target (one is a link to
the other, /etc/system/config/crtc-settings).

look at /usr/photon/font_repository/fontdir for the font list, names.

phf are bitmap fonts, you only need phcursor.phf for a cursor, and
pcterm*.phf for pterm if you are using it.

It's all throughout the docs, but I would start at the "Photon in
Embedded Systems" and "Fonts" chapter in the Photon Programmer's Guide.

Merry Christmas as well. :)

-Derek


-----Original Message-----
From: Marcel Meerstetter [mailto:community-noreply@qnx.com] 
Sent: Thursday, December 17, 2009 12:22 PM
To: photon-graphics
Subject: Re: RE: RE: RE: RE: RE: RE: RE: Photon i.MX25 BSP

Hello Derek,

Thank you very much. It works now, even though I still get some errors
Unable to load '/etc/system/config/crtc-settings'
Unable to load '/usr/photon/config/crtc-settings'
realloc(disp->mode.mode_list) failed

also when I start the phcalc, I get
Draw cmd 0x43 failed
but the calculator appears on the display and functions. 

Also, is there a way to know which font file (ttf) iis which font? and
what are the phf files. If there is a document you can point me at, that
be great too.

Thanks again for your help,

Merry Christmas in case I should have no more questions :)

Marcel




_______________________________________________

Photon microGUI
http://community.qnx.com/sf/go/post44040