Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Display Hanging after Pterm Utility: Page 1 of 2 (28 Items)
   
Display Hanging after Pterm Utility  
Dear All,

I am trying to port display driver on QNX for OMAP2430 hardware. I have configured LCD controller, Framebuffer etc. I am
 seeing PTERM windows on the LCD panel and the cursor blinking but thats it. I cannot type any commands in "minicom" 
neither in pterm window(needless to say there is no input driver running). Is Photon expecting an input driver? If it is
, then display driver is depending upon the input driver.
One more thing I read on QNX website that don't use "layer_flushrect()" API. I was seeing this API being called 
continuously, so I commented this API. May I know what does this API do? Is it the same as "blitting"?

I have attached the relevant files for your kind reference.
I would appreciate the help very much.
Attachment: Text files.tar.gz 7.34 KB
RE: Display Hanging after Pterm Utility  
What version of the OS are you running on?

layer_flushrect() is basically a "hack" for drivers that have virtual
layers, and or an optimization for layers if their GPU can be fine tuned
that way.  It is not necessary, and you should not populate the callout.

Input is not required, but you would need it to type into a pterm.  btw,
you would see this being called continually if you had a blinking
cursor.

I am not sure what you mean by minicom, I assume you mean a terminal
connected to the serial port?
Maybe something is running ready?  Run you terminal at a higher
priority, and check the state of the system.
If it is a serial terminal, you will need to run the serial driver at a
higher priority as well.

-----Original Message-----
From: Raj Pandey [mailto:community-noreply@qnx.com] 
Sent: February 8, 2011 5:34 AM
To: advanced-graphics
Subject: Display Hanging after Pterm Utility

Dear All,

I am trying to port display driver on QNX for OMAP2430 hardware. I have
configured LCD controller, Framebuffer etc. I am seeing PTERM windows on
the LCD panel and the cursor blinking but thats it. I cannot type any
commands in "minicom" neither in pterm window(needless to say there is
no input driver running). Is Photon expecting an input driver? If it is,
then display driver is depending upon the input driver.
One more thing I read on QNX website that don't use "layer_flushrect()"
API. I was seeing this API being called continuously, so I commented
this API. May I know what does this API do? Is it the same as
"blitting"?

I have attached the relevant files for your kind reference.
I would appreciate the help very much.



_______________________________________________

Advanced Graphics
http://community.qnx.com/sf/go/post82973
Re: RE: Display Hanging after Pterm Utility  
Thanks Derek for the reply.
Sorry for not mentioning the OS version. I am running 6.5.

As I mentioned I am not populating the layer_flushrect(), but you are right I could be getting the continuous calls 
because my cursor is blinking.

You are absolutely right about "minicom". I am using a serial terminal to launch the Pterm utility. I am not sure on 
what priority my serial driver is running on. 

I would appreciate Derek if you could look at the attached files and see if there is something wrong in that.

RE: RE: Display Hanging after Pterm Utility  
Are you running the pterm in the background?  pterm &

-----Original Message-----
From: Raj Pandey [mailto:community-noreply@qnx.com] 
Sent: February 8, 2011 12:26 PM
To: advanced-graphics
Subject: Re: RE: Display Hanging after Pterm Utility

Thanks Derek for the reply.
Sorry for not mentioning the OS version. I am running 6.5.

As I mentioned I am not populating the layer_flushrect(), but you are
right I could be getting the continuous calls because my cursor is
blinking.

You are absolutely right about "minicom". I am using a serial terminal
to launch the Pterm utility. I am not sure on what priority my serial
driver is running on. 

I would appreciate Derek if you could look at the attached files and see
if there is something wrong in that.





_______________________________________________

Advanced Graphics
http://community.qnx.com/sf/go/post82996
Re: RE: RE: Display Hanging after Pterm Utility  
No Derek, it is running in foreground.

###########################################################################
## START OF BUILD SCRIPT
###########################################################################

[image=0x80010000]
[+compress]
#[virtual=armle,binary] .bootstrap = {
[virtual=armle,raw] .bootstrap = {
	startup-omap2420sdp -L -v -U1 -le 0xA1F00000 0x01000000
	#######################################################################
	## PATH set here is the *safe* path for executables.
	## LD_LIBRARY_PATH set here is the *safe* path for libraries.
	##     i.e. These are the paths searched by setuid/setgid binaries.
	##          (confstr(_CS_PATH...) and confstr(_CS_LIBPATH...))
	#######################################################################
	PATH=:/proc/boot:/bin:/usr/bin:/bin:/usr/photon/bin
        LD_LIBRARY_PATH=:/proc/boot:/lib:/usr/lib:/lib/dll \ 
	PHOTON_PATH=/usr/photon PHOTON=/dev/photon PHFONT=/dev/phfont procnto-v6
}
[+script] .script = {
	procmgr_symlink ../../proc/boot/libc.so.3 /usr/lib/ldqnx.so.2

	display_msg Welcome to QNX Neutrino Trunk on the Texas Instruments OMAP2430SDP Board

	#######################################################################
	## SERIAL driver
	#######################################################################
	devc-seromap -e -F -b57600 -c48000000/16 0x4806A000^2,72
	waitfor /dev/ser1 4
	reopen /dev/ser1

	slogger
	pipe

	#######################################################################
	## NAND_ETFS driver
	#######################################################################
	#display_msg Starting etfs driver...
	
	#fs-etfs-omap2420 -r4096

	#######################################################################
	## NETWORK driver
	#######################################################################
	#
	#display_msg Starting on-board ethernet with TCP/IP stack...
	#
	#io-pkt-v4 -dsmc9000 ioport=0x08000300,irq=188 -ptcpip
	#
	#waitfor /dev/io-net/en0 4

	#######################################################################
	## I2C driver
	##  - Required for both USB and AUDIO
	#######################################################################
	display_msg Starting I2C driver...
	
	i2c-omap59xx -p0x48072000 -i56
	waitfor /dev/i2c0 5

	#######################################################################
	## USB driver
	##  - Requires the I2C driver to be running
	#######################################################################
	#display_msg Starting USB stack...
	
	#omap2420sdp_usb_init
	#io-usb -dohci ioport=0x4805e000,irq=78
	
	#######################################################################
	## input
	#######################################################################
	#display_msg Starting Keypad driver... 
	
	#devi-omap_keypad keypad
	
	#######################################################################
	## These env variables are inherited by all the programs which follow
	#######################################################################
	SYSNAME=nto
	PATH=:/proc/boot:/bin:/usr/bin:/opt/bin:/usr/photon/bin
	LD_LIBRARY_PATH=:/proc/boot:/lib:/usr/lib:/lib/dll
	PHOTON_PATH=/usr/photon
	PHOTON=/dev/photon
	PHFONT=/dev/phfont
	TERM=qansi
	HOME=/

        #######################################################################
	## GRAPHICS
	#######################################################################
	display_msg Starting io-display... 
	
	io-display  -dvid=0,did=0
	waitfor /dev/io-display 10

	#######################################################################
	## Photon and Phfont
	## - NOTE: Photon and phfont MUST be started before the GRAPHICS driver
	#######################################################################
	display_msg Starting Photon...
	Photon &
	waitfor /dev/photon 10
	display_msg Starting Phfont...
	Phfont &
	waitfor /proc/boot/phfont 10
        display_msg...
View Full Message
RE: RE: RE: Display Hanging after Pterm Utility  
Maybe I misunderstand, but how do you expect to type on the serial
console, if pterm is running in the foreground on the console?  pterm
does not daemonize itself.  I am not even sure that bkgdmgr daemonizes
itself either ... add a & to the end of those lines.

-----Original Message-----
From: Raj Pandey [mailto:community-noreply@qnx.com] 
Sent: February 8, 2011 9:32 PM
To: advanced-graphics
Subject: Re: RE: RE: Display Hanging after Pterm Utility

No Derek, it is running in foreground.

########################################################################
###
## START OF BUILD SCRIPT
########################################################################
###

[image=0x80010000]
[+compress]
#[virtual=armle,binary] .bootstrap = {
[virtual=armle,raw] .bootstrap = {
	startup-omap2420sdp -L -v -U1 -le 0xA1F00000 0x01000000
	
#######################################################################
	## PATH set here is the *safe* path for executables.
	## LD_LIBRARY_PATH set here is the *safe* path for libraries.
	##     i.e. These are the paths searched by setuid/setgid
binaries.
	##          (confstr(_CS_PATH...) and confstr(_CS_LIBPATH...))
	
#######################################################################
	PATH=:/proc/boot:/bin:/usr/bin:/bin:/usr/photon/bin
        LD_LIBRARY_PATH=:/proc/boot:/lib:/usr/lib:/lib/dll \ 
	PHOTON_PATH=/usr/photon PHOTON=/dev/photon PHFONT=/dev/phfont
procnto-v6
}
[+script] .script = {
	procmgr_symlink ../../proc/boot/libc.so.3 /usr/lib/ldqnx.so.2

	display_msg Welcome to QNX Neutrino Trunk on the Texas
Instruments OMAP2430SDP Board

	
#######################################################################
	## SERIAL driver
	
#######################################################################
	devc-seromap -e -F -b57600 -c48000000/16 0x4806A000^2,72
	waitfor /dev/ser1 4
	reopen /dev/ser1

	slogger
	pipe

	
#######################################################################
	## NAND_ETFS driver
	
#######################################################################
	#display_msg Starting etfs driver...
	
	#fs-etfs-omap2420 -r4096

	
#######################################################################
	## NETWORK driver
	
#######################################################################
	#
	#display_msg Starting on-board ethernet with TCP/IP stack...
	#
	#io-pkt-v4 -dsmc9000 ioport=0x08000300,irq=188 -ptcpip
	#
	#waitfor /dev/io-net/en0 4

	
#######################################################################
	## I2C driver
	##  - Required for both USB and AUDIO
	
#######################################################################
	display_msg Starting I2C driver...
	
	i2c-omap59xx -p0x48072000 -i56
	waitfor /dev/i2c0 5

	
#######################################################################
	## USB driver
	##  - Requires the I2C driver to be running
	
#######################################################################
	#display_msg Starting USB stack...
	
	#omap2420sdp_usb_init
	#io-usb -dohci ioport=0x4805e000,irq=78
	
	
#######################################################################
	## input
	
#######################################################################
	#display_msg Starting Keypad driver... 
	
	#devi-omap_keypad keypad
	
	
#######################################################################
	## These env variables are inherited by all the programs which
follow
	
#######################################################################
	SYSNAME=nto
	PATH=:/proc/boot:/bin:/usr/bin:/opt/bin:/usr/photon/bin
	LD_LIBRARY_PATH=:/proc/boot:/lib:/usr/lib:/lib/dll
	PHOTON_PATH=/usr/photon
	PHOTON=/dev/photon
	PHFONT=/dev/phfont
	TERM=qansi
	HOME=/

 
#######################################################################
	## GRAPHICS
	
#######################################################################
	display_msg...
View Full Message
Re: RE: RE: Display Hanging after Pterm Utility  
I got the Pterm working. I ran the Pterm in background and I could see the blinking cursor and I can type the commands 
in serial terminal.

I created one simple app to draw a rectangle and I am trying to launch this app from the serial terminal and not the 
Pterm. I have put that application in /src/utils/ folder. The application is there in the image.

I have two question regarding this.

i) Do I need to launch the app from the Pterm?
   If yes, then I will need an input driver.

ii) Can I launch that App from the serial terminal?

I tried doing it but it doesn't draw the rectangle. 
The "Sloginfo" says that gf_draw_begin() failed with gf_errno 1.

Does anybody know why I got this error? I would appreciate the reply.

Note:
I could draw the rectangle by typing following command on pterm "pterm -x10 -y10 -height100 -width100".

One final question. Is there a way to display the QNX home screen on the LCD panel? If yes, then how?

Regards,

> No Derek, it is running in foreground.
> 
> ###########################################################################
> ## START OF BUILD SCRIPT
> ###########################################################################
> 
> [image=0x80010000]
> [+compress]
> #[virtual=armle,binary] .bootstrap = {
> [virtual=armle,raw] .bootstrap = {
> 	startup-omap2420sdp -L -v -U1 -le 0xA1F00000 0x01000000
> 	#######################################################################
> 	## PATH set here is the *safe* path for executables.
> 	## LD_LIBRARY_PATH set here is the *safe* path for libraries.
> 	##     i.e. These are the paths searched by setuid/setgid binaries.
> 	##          (confstr(_CS_PATH...) and confstr(_CS_LIBPATH...))
> 	#######################################################################
> 	PATH=:/proc/boot:/bin:/usr/bin:/bin:/usr/photon/bin
>         LD_LIBRARY_PATH=:/proc/boot:/lib:/usr/lib:/lib/dll \ 
> 	PHOTON_PATH=/usr/photon PHOTON=/dev/photon PHFONT=/dev/phfont procnto-v6
> }
> [+script] .script = {
> 	procmgr_symlink ../../proc/boot/libc.so.3 /usr/lib/ldqnx.so.2
> 
> 	display_msg Welcome to QNX Neutrino Trunk on the Texas Instruments 
> OMAP2430SDP Board
> 
> 	#######################################################################
> 	## SERIAL driver
> 	#######################################################################
> 	devc-seromap -e -F -b57600 -c48000000/16 0x4806A000^2,72
> 	waitfor /dev/ser1 4
> 	reopen /dev/ser1
> 
> 	slogger
> 	pipe
> 
> 	#######################################################################
> 	## NAND_ETFS driver
> 	#######################################################################
> 	#display_msg Starting etfs driver...
> 	
> 	#fs-etfs-omap2420 -r4096
> 
> 	#######################################################################
> 	## NETWORK driver
> 	#######################################################################
> 	#
> 	#display_msg Starting on-board ethernet with TCP/IP stack...
> 	#
> 	#io-pkt-v4 -dsmc9000 ioport=0x08000300,irq=188 -ptcpip
> 	#
> 	#waitfor /dev/io-net/en0 4
> 
> 	#######################################################################
> 	## I2C driver
> 	##  - Required for both USB and AUDIO
> 	#######################################################################
> 	display_msg Starting I2C driver...
> 	
> 	i2c-omap59xx -p0x48072000 -i56
> 	waitfor /dev/i2c0 5
> 
> 	#######################################################################
> 	## USB driver
> 	##  - Requires the I2C driver to be running
> 	#######################################################################
> 	#display_msg Starting USB stack...
> 	
> 	#omap2420sdp_usb_init
> 	#io-usb -dohci ioport=0x4805e000,irq=78
> 	
>...
View Full Message
RE: RE: RE: Display Hanging after Pterm Utility  
Is this rectangle application a GF or a Photon application?

No, there is no need to run it from pterm.

-----Original Message-----
From: Raj Pandey [mailto:community-noreply@qnx.com] 
Sent: February 9, 2011 8:49 AM
To: advanced-graphics
Subject: Re: RE: RE: Display Hanging after Pterm Utility

I got the Pterm working. I ran the Pterm in background and I could see
the blinking cursor and I can type the commands in serial terminal.

I created one simple app to draw a rectangle and I am trying to launch
this app from the serial terminal and not the Pterm. I have put that
application in /src/utils/ folder. The application is there in the
image.

I have two question regarding this.

i) Do I need to launch the app from the Pterm?
   If yes, then I will need an input driver.

ii) Can I launch that App from the serial terminal?

I tried doing it but it doesn't draw the rectangle. 
The "Sloginfo" says that gf_draw_begin() failed with gf_errno 1.

Does anybody know why I got this error? I would appreciate the reply.

Note:
I could draw the rectangle by typing following command on pterm "pterm
-x10 -y10 -height100 -width100".

One final question. Is there a way to display the QNX home screen on the
LCD panel? If yes, then how?

Regards,

> No Derek, it is running in foreground.
> 
>
########################################################################
###
> ## START OF BUILD SCRIPT
>
########################################################################
###
> 
> [image=0x80010000]
> [+compress]
> #[virtual=armle,binary] .bootstrap = {
> [virtual=armle,raw] .bootstrap = {
> 	startup-omap2420sdp -L -v -U1 -le 0xA1F00000 0x01000000
>
#######################################################################
> 	## PATH set here is the *safe* path for executables.
> 	## LD_LIBRARY_PATH set here is the *safe* path for libraries.
> 	##     i.e. These are the paths searched by setuid/setgid
binaries.
> 	##          (confstr(_CS_PATH...) and confstr(_CS_LIBPATH...))
>
#######################################################################
> 	PATH=:/proc/boot:/bin:/usr/bin:/bin:/usr/photon/bin
>         LD_LIBRARY_PATH=:/proc/boot:/lib:/usr/lib:/lib/dll \ 
> 	PHOTON_PATH=/usr/photon PHOTON=/dev/photon PHFONT=/dev/phfont
procnto-v6
> }
> [+script] .script = {
> 	procmgr_symlink ../../proc/boot/libc.so.3 /usr/lib/ldqnx.so.2
> 
> 	display_msg Welcome to QNX Neutrino Trunk on the Texas
Instruments 
> OMAP2430SDP Board
> 
>
#######################################################################
> 	## SERIAL driver
>
#######################################################################
> 	devc-seromap -e -F -b57600 -c48000000/16 0x4806A000^2,72
> 	waitfor /dev/ser1 4
> 	reopen /dev/ser1
> 
> 	slogger
> 	pipe
> 
>
#######################################################################
> 	## NAND_ETFS driver
>
#######################################################################
> 	#display_msg Starting etfs driver...
> 	
> 	#fs-etfs-omap2420 -r4096
> 
>
#######################################################################
> 	## NETWORK driver
>
#######################################################################
> 	#
> 	#display_msg Starting on-board ethernet with TCP/IP stack...
> 	#
> 	#io-pkt-v4 -dsmc9000 ioport=0x08000300,irq=188 -ptcpip
> 	#
> 	#waitfor /dev/io-net/en0 4
> 
>
#######################################################################
> 	## I2C driver
> 	##  - Required for both USB and AUDIO
>
#######################################################################
> 	display_msg Starting I2C driver...
> 	
> 	i2c-omap59xx -p0x48072000 -i56
> 	waitfor /dev/i2c0 5
>...
View Full Message
Re: RE: RE: RE: Display Hanging after Pterm Utility  
Thanks for the reply Derek. It is a GF application and not the Photon one.

> Is this rectangle application a GF or a Photon application?
> 
> No, there is no need to run it from pterm.
> 
> -----Original Message-----
> From: Raj Pandey [mailto:community-noreply@qnx.com] 
> Sent: February 9, 2011 8:49 AM
> To: advanced-graphics
> Subject: Re: RE: RE: Display Hanging after Pterm Utility
> 
> I got the Pterm working. I ran the Pterm in background and I could see
> the blinking cursor and I can type the commands in serial terminal.
> 
> I created one simple app to draw a rectangle and I am trying to launch
> this app from the serial terminal and not the Pterm. I have put that
> application in /src/utils/ folder. The application is there in the
> image.
> 
> I have two question regarding this.
> 
> i) Do I need to launch the app from the Pterm?
>    If yes, then I will need an input driver.
> 
> ii) Can I launch that App from the serial terminal?
> 
> I tried doing it but it doesn't draw the rectangle. 
> The "Sloginfo" says that gf_draw_begin() failed with gf_errno 1.
> 
> Does anybody know why I got this error? I would appreciate the reply.
> 
> Note:
> I could draw the rectangle by typing following command on pterm "pterm
> -x10 -y10 -height100 -width100".
> 
> One final question. Is there a way to display the QNX home screen on the
> LCD panel? If yes, then how?
> 
> Regards,
> 
> > No Derek, it is running in foreground.
> > 
> >
> ########################################################################
> ###
> > ## START OF BUILD SCRIPT
> >
> ########################################################################
> ###
> > 
> > [image=0x80010000]
> > [+compress]
> > #[virtual=armle,binary] .bootstrap = {
> > [virtual=armle,raw] .bootstrap = {
> > 	startup-omap2420sdp -L -v -U1 -le 0xA1F00000 0x01000000
> >
> #######################################################################
> > 	## PATH set here is the *safe* path for executables.
> > 	## LD_LIBRARY_PATH set here is the *safe* path for libraries.
> > 	##     i.e. These are the paths searched by setuid/setgid
> binaries.
> > 	##          (confstr(_CS_PATH...) and confstr(_CS_LIBPATH...))
> >
> #######################################################################
> > 	PATH=:/proc/boot:/bin:/usr/bin:/bin:/usr/photon/bin
> >         LD_LIBRARY_PATH=:/proc/boot:/lib:/usr/lib:/lib/dll \ 
> > 	PHOTON_PATH=/usr/photon PHOTON=/dev/photon PHFONT=/dev/phfont
> procnto-v6
> > }
> > [+script] .script = {
> > 	procmgr_symlink ../../proc/boot/libc.so.3 /usr/lib/ldqnx.so.2
> > 
> > 	display_msg Welcome to QNX Neutrino Trunk on the Texas
> Instruments 
> > OMAP2430SDP Board
> > 
> >
> #######################################################################
> > 	## SERIAL driver
> >
> #######################################################################
> > 	devc-seromap -e -F -b57600 -c48000000/16 0x4806A000^2,72
> > 	waitfor /dev/ser1 4
> > 	reopen /dev/ser1
> > 
> > 	slogger
> > 	pipe
> > 
> >
> #######################################################################
> > 	## NAND_ETFS driver
> >
> #######################################################################
> > 	#display_msg Starting etfs driver...
> > 	
> > 	#fs-etfs-omap2420 -r4096
> > 
> >
> #######################################################################
> > 	## NETWORK driver
> >
> #######################################################################
> > 	#
>...
View Full Message
RE: RE: RE: RE: Display Hanging after Pterm Utility  
Ok, you will need to run it on a different layer than Photon, or turn
your application into a Photon/GF hybrid application.  Examples of
hybrid applications can be found at:

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

-----Original Message-----
From: Raj Pandey [mailto:community-noreply@qnx.com] 
Sent: February 9, 2011 11:37 AM
To: advanced-graphics
Subject: Re: RE: RE: RE: Display Hanging after Pterm Utility

Thanks for the reply Derek. It is a GF application and not the Photon
one.

> Is this rectangle application a GF or a Photon application?
> 
> No, there is no need to run it from pterm.
> 
> -----Original Message-----
> From: Raj Pandey [mailto:community-noreply@qnx.com] 
> Sent: February 9, 2011 8:49 AM
> To: advanced-graphics
> Subject: Re: RE: RE: Display Hanging after Pterm Utility
> 
> I got the Pterm working. I ran the Pterm in background and I could see
> the blinking cursor and I can type the commands in serial terminal.
> 
> I created one simple app to draw a rectangle and I am trying to launch
> this app from the serial terminal and not the Pterm. I have put that
> application in /src/utils/ folder. The application is there in the
> image.
> 
> I have two question regarding this.
> 
> i) Do I need to launch the app from the Pterm?
>    If yes, then I will need an input driver.
> 
> ii) Can I launch that App from the serial terminal?
> 
> I tried doing it but it doesn't draw the rectangle. 
> The "Sloginfo" says that gf_draw_begin() failed with gf_errno 1.
> 
> Does anybody know why I got this error? I would appreciate the reply.
> 
> Note:
> I could draw the rectangle by typing following command on pterm "pterm
> -x10 -y10 -height100 -width100".
> 
> One final question. Is there a way to display the QNX home screen on
the
> LCD panel? If yes, then how?
> 
> Regards,
> 
> > No Derek, it is running in foreground.
> > 
> >
>
########################################################################
> ###
> > ## START OF BUILD SCRIPT
> >
>
########################################################################
> ###
> > 
> > [image=0x80010000]
> > [+compress]
> > #[virtual=armle,binary] .bootstrap = {
> > [virtual=armle,raw] .bootstrap = {
> > 	startup-omap2420sdp -L -v -U1 -le 0xA1F00000 0x01000000
> >
>
#######################################################################
> > 	## PATH set here is the *safe* path for executables.
> > 	## LD_LIBRARY_PATH set here is the *safe* path for libraries.
> > 	##     i.e. These are the paths searched by setuid/setgid
> binaries.
> > 	##          (confstr(_CS_PATH...) and confstr(_CS_LIBPATH...))
> >
>
#######################################################################
> > 	PATH=:/proc/boot:/bin:/usr/bin:/bin:/usr/photon/bin
> >         LD_LIBRARY_PATH=:/proc/boot:/lib:/usr/lib:/lib/dll \ 
> > 	PHOTON_PATH=/usr/photon PHOTON=/dev/photon PHFONT=/dev/phfont
> procnto-v6
> > }
> > [+script] .script = {
> > 	procmgr_symlink ../../proc/boot/libc.so.3 /usr/lib/ldqnx.so.2
> > 
> > 	display_msg Welcome to QNX Neutrino Trunk on the Texas
> Instruments 
> > OMAP2430SDP Board
> > 
> >
>
#######################################################################
> > 	## SERIAL driver
> >
>
#######################################################################
> > 	devc-seromap -e -F -b57600 -c48000000/16 0x4806A000^2,72
> > 	waitfor /dev/ser1 4
> > 	reopen /dev/ser1
> > 
> > 	slogger
> > 	pipe
> > 
>...
View Full Message
Re: RE: RE: RE: RE: Display Hanging after Pterm Utility  
Thanks Again Derek for the reply. Appreciated it very much. I'll work on hybrid application tomorrow. 
Is there a way to display QNX homescreen like all the other OS does ,e.g Linux shows a "penguin" or WindowsCE/Mobile 
shows their logo during/after boot up?

Regards,
Raj
> Ok, you will need to run it on a different layer than Photon, or turn
> your application into a Photon/GF hybrid application.  Examples of
> hybrid applications can be found at:
> 
> http://community.qnx.com/sf/frs/do/viewRelease/projects.graphics/frs.pho
> ton.gf_ph_2d
> 
> -----Original Message-----
> From: Raj Pandey [mailto:community-noreply@qnx.com] 
> Sent: February 9, 2011 11:37 AM
> To: advanced-graphics
> Subject: Re: RE: RE: RE: Display Hanging after Pterm Utility
> 
> Thanks for the reply Derek. It is a GF application and not the Photon
> one.
> 
> > Is this rectangle application a GF or a Photon application?
> > 
> > No, there is no need to run it from pterm.
> > 
> > -----Original Message-----
> > From: Raj Pandey [mailto:community-noreply@qnx.com] 
> > Sent: February 9, 2011 8:49 AM
> > To: advanced-graphics
> > Subject: Re: RE: RE: Display Hanging after Pterm Utility
> > 
> > I got the Pterm working. I ran the Pterm in background and I could see
> > the blinking cursor and I can type the commands in serial terminal.
> > 
> > I created one simple app to draw a rectangle and I am trying to launch
> > this app from the serial terminal and not the Pterm. I have put that
> > application in /src/utils/ folder. The application is there in the
> > image.
> > 
> > I have two question regarding this.
> > 
> > i) Do I need to launch the app from the Pterm?
> >    If yes, then I will need an input driver.
> > 
> > ii) Can I launch that App from the serial terminal?
> > 
> > I tried doing it but it doesn't draw the rectangle. 
> > The "Sloginfo" says that gf_draw_begin() failed with gf_errno 1.
> > 
> > Does anybody know why I got this error? I would appreciate the reply.
> > 
> > Note:
> > I could draw the rectangle by typing following command on pterm "pterm
> > -x10 -y10 -height100 -width100".
> > 
> > One final question. Is there a way to display the QNX home screen on
> the
> > LCD panel? If yes, then how?
> > 
> > Regards,
> > 
> > > No Derek, it is running in foreground.
> > > 
> > >
> >
> ########################################################################
> > ###
> > > ## START OF BUILD SCRIPT
> > >
> >
> ########################################################################
> > ###
> > > 
> > > [image=0x80010000]
> > > [+compress]
> > > #[virtual=armle,binary] .bootstrap = {
> > > [virtual=armle,raw] .bootstrap = {
> > > 	startup-omap2420sdp -L -v -U1 -le 0xA1F00000 0x01000000
> > >
> >
> #######################################################################
> > > 	## PATH set here is the *safe* path for executables.
> > > 	## LD_LIBRARY_PATH set here is the *safe* path for libraries.
> > > 	##     i.e. These are the paths searched by setuid/setgid
> > binaries.
> > > 	##          (confstr(_CS_PATH...) and confstr(_CS_LIBPATH...))
> > >
> >
> #######################################################################
> > > 	PATH=:/proc/boot:/bin:/usr/bin:/bin:/usr/photon/bin
> > >         LD_LIBRARY_PATH=:/proc/boot:/lib:/usr/lib:/lib/dll \ 
> > > 	PHOTON_PATH=/usr/photon PHOTON=/dev/photon PHFONT=/dev/phfont
> > procnto-v6
> >...
View Full Message
RE: RE: RE: RE: RE: Display Hanging after Pterm Utility  
Depends how soon you want it to come up ... do you want it immediate, or
once io-display is running, or is it OK to wait until Photon is booted?

Immediate is much more difficult.

If once io-display is running, just run a GF application on a layer that
is behind the layer that Photon will use (if you have more than one
layer).  You can slay it off later.

If after Photon has booted, just run you Photon application before any
other Photon applications.

-----Original Message-----
From: Raj Pandey [mailto:community-noreply@qnx.com] 
Sent: February 9, 2011 12:20 PM
To: advanced-graphics
Subject: Re: RE: RE: RE: RE: Display Hanging after Pterm Utility

Thanks Again Derek for the reply. Appreciated it very much. I'll work on
hybrid application tomorrow. 
Is there a way to display QNX homescreen like all the other OS does ,e.g
Linux shows a "penguin" or WindowsCE/Mobile shows their logo
during/after boot up?

Regards,
Raj
> Ok, you will need to run it on a different layer than Photon, or turn
> your application into a Photon/GF hybrid application.  Examples of
> hybrid applications can be found at:
> 
>
http://community.qnx.com/sf/frs/do/viewRelease/projects.graphics/frs.pho
> ton.gf_ph_2d
> 
> -----Original Message-----
> From: Raj Pandey [mailto:community-noreply@qnx.com] 
> Sent: February 9, 2011 11:37 AM
> To: advanced-graphics
> Subject: Re: RE: RE: RE: Display Hanging after Pterm Utility
> 
> Thanks for the reply Derek. It is a GF application and not the Photon
> one.
> 
> > Is this rectangle application a GF or a Photon application?
> > 
> > No, there is no need to run it from pterm.
> > 
> > -----Original Message-----
> > From: Raj Pandey [mailto:community-noreply@qnx.com] 
> > Sent: February 9, 2011 8:49 AM
> > To: advanced-graphics
> > Subject: Re: RE: RE: Display Hanging after Pterm Utility
> > 
> > I got the Pterm working. I ran the Pterm in background and I could
see
> > the blinking cursor and I can type the commands in serial terminal.
> > 
> > I created one simple app to draw a rectangle and I am trying to
launch
> > this app from the serial terminal and not the Pterm. I have put that
> > application in /src/utils/ folder. The application is there in the
> > image.
> > 
> > I have two question regarding this.
> > 
> > i) Do I need to launch the app from the Pterm?
> >    If yes, then I will need an input driver.
> > 
> > ii) Can I launch that App from the serial terminal?
> > 
> > I tried doing it but it doesn't draw the rectangle. 
> > The "Sloginfo" says that gf_draw_begin() failed with gf_errno 1.
> > 
> > Does anybody know why I got this error? I would appreciate the
reply.
> > 
> > Note:
> > I could draw the rectangle by typing following command on pterm
"pterm
> > -x10 -y10 -height100 -width100".
> > 
> > One final question. Is there a way to display the QNX home screen on
> the
> > LCD panel? If yes, then how?
> > 
> > Regards,
> > 
> > > No Derek, it is running in foreground.
> > > 
> > >
> >
>
########################################################################
> > ###
> > > ## START OF BUILD SCRIPT
> > >
> >
>
########################################################################
> > ###
> > > 
> > > [image=0x80010000]
> > > [+compress]
> > > #[virtual=armle,binary] .bootstrap = {
> > > [virtual=armle,raw] .bootstrap = {
> > > 	startup-omap2420sdp -L -v -U1 -le 0xA1F00000 0x01000000
> > >
>...
View Full Message
Re: RE: RE: RE: RE: RE: Display Hanging after Pterm Utility  
Thanks Derek.

Primarily we would have liked to do this during startup but now we abandon the idea. Now we want to do it once the 
Photon is up and display driver is running.
I am assuming Photon is running on the main layer, layer=0. I tried with the hybrid app that you shared yesterday but 
could not see any thing on the LCD panel. Looking at the log it seems the GF app is trying to run on the layer=1. 
Pasting excerpt from the log after launching "gf-ph-2d" app.

================================================
# gf-ph-2d 
Raw Widget: width = 235, height = 166
+devg_get_miscfuncs
-devg_get_miscfuncs
omap_module_info TI OMAP 35xx display Controller
omap_alloc_surface ++
omap_get_alloc_info ++
**************PdCreateOffscreenContextGF(): No such process
omap_layer_update_begin ++
omap_layer_set_surface ++ 
DISP_LAYER_FORMAT_RGB565
omap_layer_set_surface --
omap_layer_update_end ++
omap_layer_program ++ 
Video layer1 no scaling widthomap_layer_program 
OMAP_LAYER_VID1
omap_layer_program --
omap_layer_update_end --

================================================

demarked the error text in the log. Why I got this error?

the sloginfo is :

========================

# sloginfo
Time             Sev Major Minor Args
Jan 01 00:00:09    1     8     0 phfont.so: init...
Jan 01 00:00:09    1     8     0 phfont.so: initialized.
Jan 01 00:00:09    1     8     0 phfont.so: '/dev/phfont[<32|64>]' server installed.
Jan 01 00:00:11    6     8     0 omap_set_mode QVGA mode
Jan 01 00:00:11    6     8     0 omap_set_mode Use custom timing
Jan 01 00:00:11    6     8     0 omap_layer_query Layer unknown, (no more layers, maybe end of layer query)
Jan 01 00:00:11    6     8     0 omap_layer_program VIDEO 1
Jan 01 00:00:19    6     8     0 omap_layer_program VIDEO 1
========================
If my assumptions are right, by default photon starts on layer=0(GFX), any 2D app starts on layer=1(Video1) and 3D 
starts on layer=2(Video2).
 
I was trying to display one JPEG image on the LCD panel and reading through the QNX docs I got to know that I will need 
"img_decode_simple" to draw the image. I do have libimg.so in my image and do see the entries for various image formats 
in img.conf file.

Right now, I do not have "img_decode_simple" utility and I heard it comes with Advanced Graphics. 
How do I get this utility to draw some image on the LCD panel. I would appreciate if you can clarify few of my doubts.

Regards,
Raj

> Depends how soon you want it to come up ... do you want it immediate, or
> once io-display is running, or is it OK to wait until Photon is booted?
> 
> Immediate is much more difficult.
> 
> If once io-display is running, just run a GF application on a layer that
> is behind the layer that Photon will use (if you have more than one
> layer).  You can slay it off later.
> 
> If after Photon has booted, just run you Photon application before any
> other Photon applications.
> 
> -----Original Message-----
> From: Raj Pandey [mailto:community-noreply@qnx.com] 
> Sent: February 9, 2011 12:20 PM
> To: advanced-graphics
> Subject: Re: RE: RE: RE: RE: Display Hanging after Pterm Utility
> 
> Thanks Again Derek for the reply. Appreciated it very much. I'll work on
> hybrid application tomorrow. 
> Is there a way to display QNX homescreen like all the other OS does ,e.g
> Linux shows a "penguin" or WindowsCE/Mobile shows their logo
> during/after boot up?
> 
> Regards,
> Raj
> > Ok, you will need to run it on a different layer than Photon, or turn
> > your application into a Photon/GF hybrid application.  Examples of
> > hybrid applications can be found at:
> > 
> >
> http://community.qnx.com/sf/frs/do/viewRelease/projects.graphics/frs.pho
> > ton.gf_ph_2d
> > 
> > -----Original Message-----
> > From: Raj Pandey...
View Full Message
RE: RE: RE: RE: RE: RE: Display Hanging after Pterm Utility  
Is there any gf_layer_attach calls in the gf-ph-2d code?  I don't
believe it attaches directly to any layer ...

-----Original Message-----
From: Raj Pandey [mailto:community-noreply@qnx.com] 
Sent: February 10, 2011 11:51 AM
To: advanced-graphics
Subject: Re: RE: RE: RE: RE: RE: Display Hanging after Pterm Utility

Thanks Derek.

Primarily we would have liked to do this during startup but now we
abandon the idea. Now we want to do it once the Photon is up and display
driver is running.
I am assuming Photon is running on the main layer, layer=0. I tried with
the hybrid app that you shared yesterday but could not see any thing on
the LCD panel. Looking at the log it seems the GF app is trying to run
on the layer=1. Pasting excerpt from the log after launching "gf-ph-2d"
app.

================================================
# gf-ph-2d 
Raw Widget: width = 235, height = 166
+devg_get_miscfuncs
-devg_get_miscfuncs
omap_module_info TI OMAP 35xx display Controller
omap_alloc_surface ++
omap_get_alloc_info ++
**************PdCreateOffscreenContextGF(): No such process
omap_layer_update_begin ++
omap_layer_set_surface ++ 
DISP_LAYER_FORMAT_RGB565
omap_layer_set_surface --
omap_layer_update_end ++
omap_layer_program ++ 
Video layer1 no scaling widthomap_layer_program 
OMAP_LAYER_VID1
omap_layer_program --
omap_layer_update_end --

================================================

demarked the error text in the log. Why I got this error?

the sloginfo is :

========================

# sloginfo
Time             Sev Major Minor Args
Jan 01 00:00:09    1     8     0 phfont.so: init...
Jan 01 00:00:09    1     8     0 phfont.so: initialized.
Jan 01 00:00:09    1     8     0 phfont.so: '/dev/phfont[<32|64>]'
server installed.
Jan 01 00:00:11    6     8     0 omap_set_mode QVGA mode
Jan 01 00:00:11    6     8     0 omap_set_mode Use custom timing
Jan 01 00:00:11    6     8     0 omap_layer_query Layer unknown, (no
more layers, maybe end of layer query)
Jan 01 00:00:11    6     8     0 omap_layer_program VIDEO 1
Jan 01 00:00:19    6     8     0 omap_layer_program VIDEO 1
========================
If my assumptions are right, by default photon starts on layer=0(GFX),
any 2D app starts on layer=1(Video1) and 3D starts on layer=2(Video2).
 
I was trying to display one JPEG image on the LCD panel and reading
through the QNX docs I got to know that I will need "img_decode_simple"
to draw the image. I do have libimg.so in my image and do see the
entries for various image formats in img.conf file.

Right now, I do not have "img_decode_simple" utility and I heard it
comes with Advanced Graphics. 
How do I get this utility to draw some image on the LCD panel. I would
appreciate if you can clarify few of my doubts.

Regards,
Raj

> Depends how soon you want it to come up ... do you want it immediate,
or
> once io-display is running, or is it OK to wait until Photon is
booted?
> 
> Immediate is much more difficult.
> 
> If once io-display is running, just run a GF application on a layer
that
> is behind the layer that Photon will use (if you have more than one
> layer).  You can slay it off later.
> 
> If after Photon has booted, just run you Photon application before any
> other Photon applications.
> 
> -----Original Message-----
> From: Raj Pandey [mailto:community-noreply@qnx.com] 
> Sent: February 9, 2011 12:20 PM
> To: advanced-graphics
> Subject: Re: RE: RE: RE: RE: Display Hanging after Pterm Utility
> 
> Thanks Again Derek for the reply. Appreciated it very much. I'll work
on
> hybrid application tomorrow. 
> Is there a way to display QNX homescreen like all the other OS does
,e.g
> Linux shows a "penguin" or WindowsCE/Mobile shows their logo
> during/after boot up?
> 
> Regards,
> Raj
> > Ok, you will need to run it on a different layer than Photon,...
View Full Message
Re: RE: RE: RE: RE: RE: RE: Display Hanging after Pterm Utility  
You are right Derek, there is no call to attach with any layer in the gf-ph-2d code.
So, what went wrong. Why I can't see the gf-ph-2d app running?

Do you suspect anything wrong with my settings? Be it display.conf/omap35xx.conf or the build file. I need to mention 
one thing that I added layer=0 entry in the photon part of the display.conf file.

Regards,
Raj

> Is there any gf_layer_attach calls in the gf-ph-2d code?  I don't
> believe it attaches directly to any layer ...
> 
> -----Original Message-----
> From: Raj Pandey [mailto:community-noreply@qnx.com] 
> Sent: February 10, 2011 11:51 AM
> To: advanced-graphics
> Subject: Re: RE: RE: RE: RE: RE: Display Hanging after Pterm Utility
> 
> Thanks Derek.
> 
> Primarily we would have liked to do this during startup but now we
> abandon the idea. Now we want to do it once the Photon is up and display
> driver is running.
> I am assuming Photon is running on the main layer, layer=0. I tried with
> the hybrid app that you shared yesterday but could not see any thing on
> the LCD panel. Looking at the log it seems the GF app is trying to run
> on the layer=1. Pasting excerpt from the log after launching "gf-ph-2d"
> app.
> 
> ================================================
> # gf-ph-2d 
> Raw Widget: width = 235, height = 166
> +devg_get_miscfuncs
> -devg_get_miscfuncs
> omap_module_info TI OMAP 35xx display Controller
> omap_alloc_surface ++
> omap_get_alloc_info ++
> **************PdCreateOffscreenContextGF(): No such process
> omap_layer_update_begin ++
> omap_layer_set_surface ++ 
> DISP_LAYER_FORMAT_RGB565
> omap_layer_set_surface --
> omap_layer_update_end ++
> omap_layer_program ++ 
> Video layer1 no scaling widthomap_layer_program 
> OMAP_LAYER_VID1
> omap_layer_program --
> omap_layer_update_end --
> 
> ================================================
> 
> demarked the error text in the log. Why I got this error?
> 
> the sloginfo is :
> 
> ========================
> 
> # sloginfo
> Time             Sev Major Minor Args
> Jan 01 00:00:09    1     8     0 phfont.so: init...
> Jan 01 00:00:09    1     8     0 phfont.so: initialized.
> Jan 01 00:00:09    1     8     0 phfont.so: '/dev/phfont[<32|64>]'
> server installed.
> Jan 01 00:00:11    6     8     0 omap_set_mode QVGA mode
> Jan 01 00:00:11    6     8     0 omap_set_mode Use custom timing
> Jan 01 00:00:11    6     8     0 omap_layer_query Layer unknown, (no
> more layers, maybe end of layer query)
> Jan 01 00:00:11    6     8     0 omap_layer_program VIDEO 1
> Jan 01 00:00:19    6     8     0 omap_layer_program VIDEO 1
> ========================
> If my assumptions are right, by default photon starts on layer=0(GFX),
> any 2D app starts on layer=1(Video1) and 3D starts on layer=2(Video2).
>  
> I was trying to display one JPEG image on the LCD panel and reading
> through the QNX docs I got to know that I will need "img_decode_simple"
> to draw the image. I do have libimg.so in my image and do see the
> entries for various image formats in img.conf file.
> 
> Right now, I do not have "img_decode_simple" utility and I heard it
> comes with Advanced Graphics. 
> How do I get this utility to draw some image on the LCD panel. I would
> appreciate if you can clarify few of my doubts.
> 
> Regards,
> Raj
> 
> > Depends how soon you want it to come up ... do you want it immediate,
> or
> > once io-display is running, or is it OK to wait until Photon is
> booted?
> > 
> > Immediate is much more difficult.
> > 
> > If once io-display is running, just run a GF application on a layer
> that
> > is behind the layer that Photon will use (if you have more...
View Full Message
RE: RE: RE: RE: RE: RE: RE: Display Hanging after Pterm Utility  
ok, Photon is running, correct?  Are you running it as root?  By
default, all GF applications must run as root user.

-----Original Message-----
From: Raj Pandey [mailto:community-noreply@qnx.com] 
Sent: February 10, 2011 12:18 PM
To: advanced-graphics
Subject: Re: RE: RE: RE: RE: RE: RE: Display Hanging after Pterm Utility

You are right Derek, there is no call to attach with any layer in the
gf-ph-2d code.
So, what went wrong. Why I can't see the gf-ph-2d app running?

Do you suspect anything wrong with my settings? Be it
display.conf/omap35xx.conf or the build file. I need to mention one
thing that I added layer=0 entry in the photon part of the display.conf
file.

Regards,
Raj

> Is there any gf_layer_attach calls in the gf-ph-2d code?  I don't
> believe it attaches directly to any layer ...
> 
> -----Original Message-----
> From: Raj Pandey [mailto:community-noreply@qnx.com] 
> Sent: February 10, 2011 11:51 AM
> To: advanced-graphics
> Subject: Re: RE: RE: RE: RE: RE: Display Hanging after Pterm Utility
> 
> Thanks Derek.
> 
> Primarily we would have liked to do this during startup but now we
> abandon the idea. Now we want to do it once the Photon is up and
display
> driver is running.
> I am assuming Photon is running on the main layer, layer=0. I tried
with
> the hybrid app that you shared yesterday but could not see any thing
on
> the LCD panel. Looking at the log it seems the GF app is trying to run
> on the layer=1. Pasting excerpt from the log after launching
"gf-ph-2d"
> app.
> 
> ================================================
> # gf-ph-2d 
> Raw Widget: width = 235, height = 166
> +devg_get_miscfuncs
> -devg_get_miscfuncs
> omap_module_info TI OMAP 35xx display Controller
> omap_alloc_surface ++
> omap_get_alloc_info ++
> **************PdCreateOffscreenContextGF(): No such process
> omap_layer_update_begin ++
> omap_layer_set_surface ++ 
> DISP_LAYER_FORMAT_RGB565
> omap_layer_set_surface --
> omap_layer_update_end ++
> omap_layer_program ++ 
> Video layer1 no scaling widthomap_layer_program 
> OMAP_LAYER_VID1
> omap_layer_program --
> omap_layer_update_end --
> 
> ================================================
> 
> demarked the error text in the log. Why I got this error?
> 
> the sloginfo is :
> 
> ========================
> 
> # sloginfo
> Time             Sev Major Minor Args
> Jan 01 00:00:09    1     8     0 phfont.so: init...
> Jan 01 00:00:09    1     8     0 phfont.so: initialized.
> Jan 01 00:00:09    1     8     0 phfont.so: '/dev/phfont[<32|64>]'
> server installed.
> Jan 01 00:00:11    6     8     0 omap_set_mode QVGA mode
> Jan 01 00:00:11    6     8     0 omap_set_mode Use custom timing
> Jan 01 00:00:11    6     8     0 omap_layer_query Layer unknown, (no
> more layers, maybe end of layer query)
> Jan 01 00:00:11    6     8     0 omap_layer_program VIDEO 1
> Jan 01 00:00:19    6     8     0 omap_layer_program VIDEO 1
> ========================
> If my assumptions are right, by default photon starts on layer=0(GFX),
> any 2D app starts on layer=1(Video1) and 3D starts on layer=2(Video2).
>  
> I was trying to display one JPEG image on the LCD panel and reading
> through the QNX docs I got to know that I will need
"img_decode_simple"
> to draw the image. I do have libimg.so in my image and do see the
> entries for various image formats in img.conf file.
> 
> Right now, I do not have "img_decode_simple" utility and I heard it
> comes with Advanced Graphics. 
> How do I get this utility to draw some image on the LCD panel. I would
> appreciate if you can clarify few of my doubts.
> 
> Regards,
> Raj
> 
> > Depends how soon you want it to come up ... do you...
View Full Message
Re: RE: RE: RE: RE: RE: RE: RE: Display Hanging after Pterm Utility  
I guess Photon is running alright. All I see is a window with some color on LCD panel along with a command prompt 
terminal just like a serial console. What will be the best way to check if the Photon is running perfectly?
Also, how do I run all the GF apps with root privilage?

Derek, my 2nd question was do I really need "img_decode_simple" utility to draw a bmp/jpg/gif image? If yes then how do 
I get it?

Regards,
Raj
> ok, Photon is running, correct?  Are you running it as root?  By
> default, all GF applications must run as root user.
> 
> -----Original Message-----
> From: Raj Pandey [mailto:community-noreply@qnx.com] 
> Sent: February 10, 2011 12:18 PM
> To: advanced-graphics
> Subject: Re: RE: RE: RE: RE: RE: RE: Display Hanging after Pterm Utility
> 
> You are right Derek, there is no call to attach with any layer in the
> gf-ph-2d code.
> So, what went wrong. Why I can't see the gf-ph-2d app running?
> 
> Do you suspect anything wrong with my settings? Be it
> display.conf/omap35xx.conf or the build file. I need to mention one
> thing that I added layer=0 entry in the photon part of the display.conf
> file.
> 
> Regards,
> Raj
> 
> > Is there any gf_layer_attach calls in the gf-ph-2d code?  I don't
> > believe it attaches directly to any layer ...
> > 
> > -----Original Message-----
> > From: Raj Pandey [mailto:community-noreply@qnx.com] 
> > Sent: February 10, 2011 11:51 AM
> > To: advanced-graphics
> > Subject: Re: RE: RE: RE: RE: RE: Display Hanging after Pterm Utility
> > 
> > Thanks Derek.
> > 
> > Primarily we would have liked to do this during startup but now we
> > abandon the idea. Now we want to do it once the Photon is up and
> display
> > driver is running.
> > I am assuming Photon is running on the main layer, layer=0. I tried
> with
> > the hybrid app that you shared yesterday but could not see any thing
> on
> > the LCD panel. Looking at the log it seems the GF app is trying to run
> > on the layer=1. Pasting excerpt from the log after launching
> "gf-ph-2d"
> > app.
> > 
> > ================================================
> > # gf-ph-2d 
> > Raw Widget: width = 235, height = 166
> > +devg_get_miscfuncs
> > -devg_get_miscfuncs
> > omap_module_info TI OMAP 35xx display Controller
> > omap_alloc_surface ++
> > omap_get_alloc_info ++
> > **************PdCreateOffscreenContextGF(): No such process
> > omap_layer_update_begin ++
> > omap_layer_set_surface ++ 
> > DISP_LAYER_FORMAT_RGB565
> > omap_layer_set_surface --
> > omap_layer_update_end ++
> > omap_layer_program ++ 
> > Video layer1 no scaling widthomap_layer_program 
> > OMAP_LAYER_VID1
> > omap_layer_program --
> > omap_layer_update_end --
> > 
> > ================================================
> > 
> > demarked the error text in the log. Why I got this error?
> > 
> > the sloginfo is :
> > 
> > ========================
> > 
> > # sloginfo
> > Time             Sev Major Minor Args
> > Jan 01 00:00:09    1     8     0 phfont.so: init...
> > Jan 01 00:00:09    1     8     0 phfont.so: initialized.
> > Jan 01 00:00:09    1     8     0 phfont.so: '/dev/phfont[<32|64>]'
> > server installed.
> > Jan 01 00:00:11    6     8     0 omap_set_mode QVGA mode
> > Jan 01 00:00:11    6     8     0 omap_set_mode Use custom timing
> > Jan 01 00:00:11    6     8     0 omap_layer_query Layer unknown, (no
> > more layers, maybe end of layer query)
> > Jan 01 00:00:11    6     8     0 omap_layer_program VIDEO 1
> > Jan 01 00:00:19    6     8     0...
View Full Message
RE: RE: RE: RE: RE: RE: RE: RE: Display Hanging after Pterm Utility  
If you can see your pterm, it is running OK.

Yes, GF apps need root priviledge, or you need to set up an access
group, see the documentation for io-display.

The binary for img_decode_simple should be shipped, under /usr/bin, or
do you mean the source?

-----Original Message-----
From: Raj Pandey [mailto:community-noreply@qnx.com] 
Sent: February 10, 2011 12:42 PM
To: advanced-graphics
Subject: Re: RE: RE: RE: RE: RE: RE: RE: Display Hanging after Pterm
Utility

I guess Photon is running alright. All I see is a window with some color
on LCD panel along with a command prompt terminal just like a serial
console. What will be the best way to check if the Photon is running
perfectly?
Also, how do I run all the GF apps with root privilage?

Derek, my 2nd question was do I really need "img_decode_simple" utility
to draw a bmp/jpg/gif image? If yes then how do I get it?

Regards,
Raj
> ok, Photon is running, correct?  Are you running it as root?  By
> default, all GF applications must run as root user.
> 
> -----Original Message-----
> From: Raj Pandey [mailto:community-noreply@qnx.com] 
> Sent: February 10, 2011 12:18 PM
> To: advanced-graphics
> Subject: Re: RE: RE: RE: RE: RE: RE: Display Hanging after Pterm
Utility
> 
> You are right Derek, there is no call to attach with any layer in the
> gf-ph-2d code.
> So, what went wrong. Why I can't see the gf-ph-2d app running?
> 
> Do you suspect anything wrong with my settings? Be it
> display.conf/omap35xx.conf or the build file. I need to mention one
> thing that I added layer=0 entry in the photon part of the
display.conf
> file.
> 
> Regards,
> Raj
> 
> > Is there any gf_layer_attach calls in the gf-ph-2d code?  I don't
> > believe it attaches directly to any layer ...
> > 
> > -----Original Message-----
> > From: Raj Pandey [mailto:community-noreply@qnx.com] 
> > Sent: February 10, 2011 11:51 AM
> > To: advanced-graphics
> > Subject: Re: RE: RE: RE: RE: RE: Display Hanging after Pterm Utility
> > 
> > Thanks Derek.
> > 
> > Primarily we would have liked to do this during startup but now we
> > abandon the idea. Now we want to do it once the Photon is up and
> display
> > driver is running.
> > I am assuming Photon is running on the main layer, layer=0. I tried
> with
> > the hybrid app that you shared yesterday but could not see any thing
> on
> > the LCD panel. Looking at the log it seems the GF app is trying to
run
> > on the layer=1. Pasting excerpt from the log after launching
> "gf-ph-2d"
> > app.
> > 
> > ================================================
> > # gf-ph-2d 
> > Raw Widget: width = 235, height = 166
> > +devg_get_miscfuncs
> > -devg_get_miscfuncs
> > omap_module_info TI OMAP 35xx display Controller
> > omap_alloc_surface ++
> > omap_get_alloc_info ++
> > **************PdCreateOffscreenContextGF(): No such process
> > omap_layer_update_begin ++
> > omap_layer_set_surface ++ 
> > DISP_LAYER_FORMAT_RGB565
> > omap_layer_set_surface --
> > omap_layer_update_end ++
> > omap_layer_program ++ 
> > Video layer1 no scaling widthomap_layer_program 
> > OMAP_LAYER_VID1
> > omap_layer_program --
> > omap_layer_update_end --
> > 
> > ================================================
> > 
> > demarked the error text in the log. Why I got this error?
> > 
> > the sloginfo is :
> > 
> > ========================
> > 
> > # sloginfo
> > Time             Sev Major Minor Args
> > Jan 01 00:00:09    1     8     0 phfont.so: init...
> > Jan 01 00:00:09    1     8     0 phfont.so: initialized.
> >...
View Full Message
Re: RE: RE: RE: RE: RE: RE: RE: RE: Display Hanging after Pterm Utility  
Thanks. It means Photon is running OK.
I guess I got the idea of running the app in access group.
Is it that we need to put the gf-ph-2d app in the build file under the display driver group where all the other default 
apps like, vsync, pterm, egl-gears are?

I am definitely not talking about the source code of img_decode_simple. I'll just check if we have this under /usr/bin 
folder.

Thanks again Derek. Very much appreciated your help.

Regards,
Raj

> If you can see your pterm, it is running OK.
> 
> Yes, GF apps need root priviledge, or you need to set up an access
> group, see the documentation for io-display.
> 
> The binary for img_decode_simple should be shipped, under /usr/bin, or
> do you mean the source?
> 
> -----Original Message-----
> From: Raj Pandey [mailto:community-noreply@qnx.com] 
> Sent: February 10, 2011 12:42 PM
> To: advanced-graphics
> Subject: Re: RE: RE: RE: RE: RE: RE: RE: Display Hanging after Pterm
> Utility
> 
> I guess Photon is running alright. All I see is a window with some color
> on LCD panel along with a command prompt terminal just like a serial
> console. What will be the best way to check if the Photon is running
> perfectly?
> Also, how do I run all the GF apps with root privilage?
> 
> Derek, my 2nd question was do I really need "img_decode_simple" utility
> to draw a bmp/jpg/gif image? If yes then how do I get it?
> 
> Regards,
> Raj
> > ok, Photon is running, correct?  Are you running it as root?  By
> > default, all GF applications must run as root user.
> > 
> > -----Original Message-----
> > From: Raj Pandey [mailto:community-noreply@qnx.com] 
> > Sent: February 10, 2011 12:18 PM
> > To: advanced-graphics
> > Subject: Re: RE: RE: RE: RE: RE: RE: Display Hanging after Pterm
> Utility
> > 
> > You are right Derek, there is no call to attach with any layer in the
> > gf-ph-2d code.
> > So, what went wrong. Why I can't see the gf-ph-2d app running?
> > 
> > Do you suspect anything wrong with my settings? Be it
> > display.conf/omap35xx.conf or the build file. I need to mention one
> > thing that I added layer=0 entry in the photon part of the
> display.conf
> > file.
> > 
> > Regards,
> > Raj
> > 
> > > Is there any gf_layer_attach calls in the gf-ph-2d code?  I don't
> > > believe it attaches directly to any layer ...
> > > 
> > > -----Original Message-----
> > > From: Raj Pandey [mailto:community-noreply@qnx.com] 
> > > Sent: February 10, 2011 11:51 AM
> > > To: advanced-graphics
> > > Subject: Re: RE: RE: RE: RE: RE: Display Hanging after Pterm Utility
> > > 
> > > Thanks Derek.
> > > 
> > > Primarily we would have liked to do this during startup but now we
> > > abandon the idea. Now we want to do it once the Photon is up and
> > display
> > > driver is running.
> > > I am assuming Photon is running on the main layer, layer=0. I tried
> > with
> > > the hybrid app that you shared yesterday but could not see any thing
> > on
> > > the LCD panel. Looking at the log it seems the GF app is trying to
> run
> > > on the layer=1. Pasting excerpt from the log after launching
> > "gf-ph-2d"
> > > app.
> > > 
> > > ================================================
> > > # gf-ph-2d 
> > > Raw Widget: width = 235, height = 166
> > > +devg_get_miscfuncs
> > > -devg_get_miscfuncs
> > > omap_module_info TI OMAP 35xx display Controller
> > > omap_alloc_surface ++
> > > omap_get_alloc_info ++
> > >...
View Full Message
Re: RE: RE: RE: RE: RE: RE: RE: RE: Display Hanging after Pterm Utility  
Derek, I found the img_decode_simple app. I followed the procedures mentioned on the QNX website link "working with 
images". I edited the img.conf file to have the entries for JPEG and BMP only. Added the img_decode_simple binary into 
the target as well as added the jpg/bmp files for the drawing. I added this line :

img_decode_simple my.jpg 

into the build script so that it starts the drawing as soon as photon/io-display/io-graphics starts up and running. 
However, I am getting this error 

gf_setup() failed with error 8 which means there is something wrong with the format. 

My display resolution is 240x320 and I am trying with images (125x94/300x282 as I couldn't find the image with exact 
240x320 resolution).

Do you know what is wrong?

regarding the hybrid apps that you shared, I am not able see anything on the LCD panel after running gf-ph-2d & gf-ph-3d
 app.
gf-ph-2d complains about "PdCreateOffscreenContextGF(): No such process" and
gf-ph-3d complains saying "PdCreateOffscreenContextGF(): failed".

But the gf-gl_pg_demo app runs perfectly and I could see the gears moving with some text on the top as well.

Please tell what is wrong I am doing.

Regards,

 
RE: RE: RE: RE: RE: RE: RE: RE: RE: Display Hanging after Pterm Utility  
I will check next week, I do not have time today.

-----Original Message-----
From: Raj Pandey [mailto:community-noreply@qnx.com] 
Sent: February 11, 2011 6:49 AM
To: advanced-graphics
Subject: Re: RE: RE: RE: RE: RE: RE: RE: RE: Display Hanging after Pterm
Utility

Derek, I found the img_decode_simple app. I followed the procedures
mentioned on the QNX website link "working with images". I edited the
img.conf file to have the entries for JPEG and BMP only. Added the
img_decode_simple binary into the target as well as added the jpg/bmp
files for the drawing. I added this line :

img_decode_simple my.jpg 

into the build script so that it starts the drawing as soon as
photon/io-display/io-graphics starts up and running. However, I am
getting this error 

gf_setup() failed with error 8 which means there is something wrong with
the format. 

My display resolution is 240x320 and I am trying with images
(125x94/300x282 as I couldn't find the image with exact 240x320
resolution).

Do you know what is wrong?

regarding the hybrid apps that you shared, I am not able see anything on
the LCD panel after running gf-ph-2d & gf-ph-3d app.
gf-ph-2d complains about "PdCreateOffscreenContextGF(): No such process"
and
gf-ph-3d complains saying "PdCreateOffscreenContextGF(): failed".

But the gf-gl_pg_demo app runs perfectly and I could see the gears
moving with some text on the top as well.

Please tell what is wrong I am doing.

Regards,

 



_______________________________________________

Advanced Graphics
http://community.qnx.com/sf/go/post83110
Re: RE: RE: RE: RE: RE: RE: RE: RE: RE: Display Hanging after Pterm Utility  
Hi Derek,

did u get a chance to look into this issue that I am running in?

Regards,
> I will check next week, I do not have time today.
> 
> -----Original Message-----
> From: Raj Pandey [mailto:community-noreply@qnx.com] 
> Sent: February 11, 2011 6:49 AM
> To: advanced-graphics
> Subject: Re: RE: RE: RE: RE: RE: RE: RE: RE: Display Hanging after Pterm
> Utility
> 
> Derek, I found the img_decode_simple app. I followed the procedures
> mentioned on the QNX website link "working with images". I edited the
> img.conf file to have the entries for JPEG and BMP only. Added the
> img_decode_simple binary into the target as well as added the jpg/bmp
> files for the drawing. I added this line :
> 
> img_decode_simple my.jpg 
> 
> into the build script so that it starts the drawing as soon as
> photon/io-display/io-graphics starts up and running. However, I am
> getting this error 
> 
> gf_setup() failed with error 8 which means there is something wrong with
> the format. 
> 
> My display resolution is 240x320 and I am trying with images
> (125x94/300x282 as I couldn't find the image with exact 240x320
> resolution).
> 
> Do you know what is wrong?
> 
> regarding the hybrid apps that you shared, I am not able see anything on
> the LCD panel after running gf-ph-2d & gf-ph-3d app.
> gf-ph-2d complains about "PdCreateOffscreenContextGF(): No such process"
> and
> gf-ph-3d complains saying "PdCreateOffscreenContextGF(): failed".
> 
> But the gf-gl_pg_demo app runs perfectly and I could see the gears
> moving with some text on the top as well.
> 
> Please tell what is wrong I am doing.
> 
> Regards,
> 
>  
> 
> 
> 
> _______________________________________________
> 
> Advanced Graphics
> http://community.qnx.com/sf/go/post83110


RE: RE: RE: RE: RE: RE: RE: RE: RE: RE: Display Hanging after Pterm Utility  
not yet, I just got to work.

-----Original Message-----
From: Raj Pandey [mailto:community-noreply@qnx.com] 
Sent: February 13, 2011 9:29 PM
To: advanced-graphics
Subject: Re: RE: RE: RE: RE: RE: RE: RE: RE: RE: Display Hanging after
Pterm Utility

Hi Derek,

did u get a chance to look into this issue that I am running in?

Regards,
> I will check next week, I do not have time today.
> 
> -----Original Message-----
> From: Raj Pandey [mailto:community-noreply@qnx.com] 
> Sent: February 11, 2011 6:49 AM
> To: advanced-graphics
> Subject: Re: RE: RE: RE: RE: RE: RE: RE: RE: Display Hanging after
Pterm
> Utility
> 
> Derek, I found the img_decode_simple app. I followed the procedures
> mentioned on the QNX website link "working with images". I edited the
> img.conf file to have the entries for JPEG and BMP only. Added the
> img_decode_simple binary into the target as well as added the jpg/bmp
> files for the drawing. I added this line :
> 
> img_decode_simple my.jpg 
> 
> into the build script so that it starts the drawing as soon as
> photon/io-display/io-graphics starts up and running. However, I am
> getting this error 
> 
> gf_setup() failed with error 8 which means there is something wrong
with
> the format. 
> 
> My display resolution is 240x320 and I am trying with images
> (125x94/300x282 as I couldn't find the image with exact 240x320
> resolution).
> 
> Do you know what is wrong?
> 
> regarding the hybrid apps that you shared, I am not able see anything
on
> the LCD panel after running gf-ph-2d & gf-ph-3d app.
> gf-ph-2d complains about "PdCreateOffscreenContextGF(): No such
process"
> and
> gf-ph-3d complains saying "PdCreateOffscreenContextGF(): failed".
> 
> But the gf-gl_pg_demo app runs perfectly and I could see the gears
> moving with some text on the top as well.
> 
> Please tell what is wrong I am doing.
> 
> Regards,
> 
>  
> 
> 
> 
> _______________________________________________
> 
> Advanced Graphics
> http://community.qnx.com/sf/go/post83110






_______________________________________________

Advanced Graphics
http://community.qnx.com/sf/go/post83129
Re: RE: RE: RE: RE: RE: RE: RE: RE: RE: RE: Display Hanging after Pterm Utility  
Derek, no need for you to spend your time on img_decode_simple issue. Just got that stuff working today. I slayed the 
Photon app and then run "img_decode_simple my.jpg" and I was able to draw the image on the LCD panel.
I just saw another thread inquiring about the FRAME BUFFER concept in QNX display driver.
This one thing is baffling me as well. Although I can do almost everything with my display driver ,i.e, draw images, run
 2D/3D demo apps. The only thing pending is playing a video.

Just wanted to know where are we defining the memory for the frame buffer. Is it the one in build file, the parameters 
we pass to the start up script like omap3530 -L 0x87E00000 0x00020000 ?
I haven't see any reference of frame buffer in the devg code.

The other thing is do we have any test code to test our driver thoroughly?

I would appreciate the reply.

Regards 

> not yet, I just got to work.
> 
> -----Original Message-----
> From: Raj Pandey [mailto:community-noreply@qnx.com] 
> Sent: February 13, 2011 9:29 PM
> To: advanced-graphics
> Subject: Re: RE: RE: RE: RE: RE: RE: RE: RE: RE: Display Hanging after
> Pterm Utility
> 
> Hi Derek,
> 
> did u get a chance to look into this issue that I am running in?
> 
> Regards,
> > I will check next week, I do not have time today.
> > 
> > -----Original Message-----
> > From: Raj Pandey [mailto:community-noreply@qnx.com] 
> > Sent: February 11, 2011 6:49 AM
> > To: advanced-graphics
> > Subject: Re: RE: RE: RE: RE: RE: RE: RE: RE: Display Hanging after
> Pterm
> > Utility
> > 
> > Derek, I found the img_decode_simple app. I followed the procedures
> > mentioned on the QNX website link "working with images". I edited the
> > img.conf file to have the entries for JPEG and BMP only. Added the
> > img_decode_simple binary into the target as well as added the jpg/bmp
> > files for the drawing. I added this line :
> > 
> > img_decode_simple my.jpg 
> > 
> > into the build script so that it starts the drawing as soon as
> > photon/io-display/io-graphics starts up and running. However, I am
> > getting this error 
> > 
> > gf_setup() failed with error 8 which means there is something wrong
> with
> > the format. 
> > 
> > My display resolution is 240x320 and I am trying with images
> > (125x94/300x282 as I couldn't find the image with exact 240x320
> > resolution).
> > 
> > Do you know what is wrong?
> > 
> > regarding the hybrid apps that you shared, I am not able see anything
> on
> > the LCD panel after running gf-ph-2d & gf-ph-3d app.
> > gf-ph-2d complains about "PdCreateOffscreenContextGF(): No such
> process"
> > and
> > gf-ph-3d complains saying "PdCreateOffscreenContextGF(): failed".
> > 
> > But the gf-gl_pg_demo app runs perfectly and I could see the gears
> > moving with some text on the top as well.
> > 
> > Please tell what is wrong I am doing.
> > 
> > Regards,
> > 
> >  
> > 
> > 
> > 
> > _______________________________________________
> > 
> > Advanced Graphics
> > http://community.qnx.com/sf/go/post83110
> 
> 
> 
> 
> 
> 
> _______________________________________________
> 
> Advanced Graphics
> http://community.qnx.com/sf/go/post83129


RE: RE: RE: RE: RE: RE: RE: RE: RE: RE: RE: Display Hanging after Pterm Utility  
Derek, no need for you to spend your time on img_decode_simple issue.
Just got that stuff working today. I slayed the Photon app and then run
"img_decode_simple my.jpg" and I was able to draw the image on the LCD
panel.
I just saw another thread inquiring about the FRAME BUFFER concept in
QNX display driver.
This one thing is baffling me as well. Although I can do almost
everything with my display driver ,i.e, draw images, run 2D/3D demo
apps. The only thing pending is playing a video.

DL:  Yes, you cannot run img_decode_simple (GF application) on the same
layer that Photon is working, glad you figured it out OK.

Just wanted to know where are we defining the memory for the frame
buffer. Is it the one in build file, the parameters we pass to the start
up script like omap3530 -L 0x87E00000 0x00020000 ?
I haven't see any reference of frame buffer in the devg code.

The other thing is do we have any test code to test our driver
thoroughly?

DL:  Do you have a video decoder on your board?  Does it present to a
physical address?  frame buffer is just a region of memory.

I would appreciate the reply.

Regards 

> not yet, I just got to work.
> 
> -----Original Message-----
> From: Raj Pandey [mailto:community-noreply@qnx.com] 
> Sent: February 13, 2011 9:29 PM
> To: advanced-graphics
> Subject: Re: RE: RE: RE: RE: RE: RE: RE: RE: RE: Display Hanging after
> Pterm Utility
> 
> Hi Derek,
> 
> did u get a chance to look into this issue that I am running in?
> 
> Regards,
> > I will check next week, I do not have time today.
> > 
> > -----Original Message-----
> > From: Raj Pandey [mailto:community-noreply@qnx.com] 
> > Sent: February 11, 2011 6:49 AM
> > To: advanced-graphics
> > Subject: Re: RE: RE: RE: RE: RE: RE: RE: RE: Display Hanging after
> Pterm
> > Utility
> > 
> > Derek, I found the img_decode_simple app. I followed the procedures
> > mentioned on the QNX website link "working with images". I edited
the
> > img.conf file to have the entries for JPEG and BMP only. Added the
> > img_decode_simple binary into the target as well as added the
jpg/bmp
> > files for the drawing. I added this line :
> > 
> > img_decode_simple my.jpg 
> > 
> > into the build script so that it starts the drawing as soon as
> > photon/io-display/io-graphics starts up and running. However, I am
> > getting this error 
> > 
> > gf_setup() failed with error 8 which means there is something wrong
> with
> > the format. 
> > 
> > My display resolution is 240x320 and I am trying with images
> > (125x94/300x282 as I couldn't find the image with exact 240x320
> > resolution).
> > 
> > Do you know what is wrong?
> > 
> > regarding the hybrid apps that you shared, I am not able see
anything
> on
> > the LCD panel after running gf-ph-2d & gf-ph-3d app.
> > gf-ph-2d complains about "PdCreateOffscreenContextGF(): No such
> process"
> > and
> > gf-ph-3d complains saying "PdCreateOffscreenContextGF(): failed".
> > 
> > But the gf-gl_pg_demo app runs perfectly and I could see the gears
> > moving with some text on the top as well.
> > 
> > Please tell what is wrong I am doing.
> > 
> > Regards,
> > 
> >  
> > 
> > 
> > 
> > _______________________________________________
> > 
> > Advanced Graphics
> > http://community.qnx.com/sf/go/post83110
> 
> 
> 
> 
> 
> 
> _______________________________________________
> 
> Advanced Graphics
> http://community.qnx.com/sf/go/post83129






_______________________________________________

Advanced...