Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - io-graphics returns errno 5: (9 Items)
   
io-graphics returns errno 5  
Hi all,

I am trying to set up a QNX system with a GUI. When I try to start up io-graphics during the boot process, I get the 
following error message using sloginfo:
Feb 25 08:06:42    1     8     0 phfont.so: init...
Feb 25 08:06:46    1     8     0 phfont.so: initialized.
Feb 25 08:06:47    1     8     0 phfont.so: '/dev/phfont[<32|64>]' server installed.
Feb 25 08:06:47    6     8     0 devg-imx35: 2D HW accel: 1
Feb 25 08:06:48    2     8     0 io-graphics: gf_dev_attach('/dev/io-display/0000,0000,0'): gf errno 5

io-graphics: gf_dev_attach('/dev/io-display/0000,0000,0'): gf errno 5
The file does exist:
# ls -l /dev/io-display/
total 0
crw-rw----  1 root      display      0,   1 Feb 25 08:06 0000,0000,0

but no /dev/phfont* files exist

I have repeated this with DL_DEBUG set to 1, but there seems to be no useful information around the error message :
----8<-------8<------------------
debug: Looking up symbol fwrite
debug: Symbol fwrite bound to definition in libc.so.3
debug: Looking up symbol _Fwprep
debug: Symbol _Fwprep bound to definition in libc.so.3
debug: Looking up symbol write
debug: Symbol write bound to definition in libc.so.3
io-graphics: gf_dev_attach('/dev/io-display/0000,0000,0'): gf errno 5debug: Looking up symbol fputc
debug: Symbol fputc bound to definition in libc.so.3

debug: Looking up symbol vslogf
debug: Symbol vslogf bound to definition in libphrender.so.2
debug: Looking up symbol __stackavail
debug: Symbol __stackavail bound to definition in libc.so.3
debug: Looking up symbol vsnprintf
debug: Symbol vsnprintf bound to definition in libc.so.3
debug: Looking up symbol pthread_once
----8<-------8<------------------


I get errno 5 when I call io-graphics for the first time after reboot. If I call it a second (or more) times, I always 
get
crw-rw----  1 root      display      0,   1 Feb 25 08:06 0000,0000,0
#  io-graphics -vvv -c /etc/system/config/display.conf
io-graphics: gf_dev_attach('/dev/io-display/0000,0000,0'): gf errno 2
from now on. But /dev/io-display/0000,0000,0 is still there, with the access rights unchanged.

The way I try to start the GUI is:
io-display -c /etc/system/config/display.conf -v -dvid=0,did=0
waitfor /dev/io-display 10
Photon
waitfor /dev/photon
io-graphics -vvv -c /etc/system/config/display.conf

Any ideas?

Thanks
  Bernd
RE: io-graphics returns errno 5  
Are you sure the file system is consistent at the time your are first trying to start io-graphics, or some script is not
 trying to mistakenly start io-graphics twice?
What do the contents of your display.conf look like?  How are you starting io-display?

-----Original Message-----
From: Bernd Mohr [mailto:community-noreply@qnx.com] 
Sent: February-25-13 4:01 AM
To: photon-graphics
Cc: bernd.mohr@mechatronic.de
Subject: io-graphics returns errno 5

Hi all,

I am trying to set up a QNX system with a GUI. When I try to start up io-graphics during the boot process, I get the 
following error message using sloginfo:
Feb 25 08:06:42    1     8     0 phfont.so: init...
Feb 25 08:06:46    1     8     0 phfont.so: initialized.
Feb 25 08:06:47    1     8     0 phfont.so: '/dev/phfont[<32|64>]' server installed.
Feb 25 08:06:47    6     8     0 devg-imx35: 2D HW accel: 1
Feb 25 08:06:48    2     8     0 io-graphics: gf_dev_attach('/dev/io-display/0000,0000,0'): gf errno 5

io-graphics: gf_dev_attach('/dev/io-display/0000,0000,0'): gf errno 5 The file does exist:
# ls -l /dev/io-display/
total 0
crw-rw----  1 root      display      0,   1 Feb 25 08:06 0000,0000,0

but no /dev/phfont* files exist

I have repeated this with DL_DEBUG set to 1, but there seems to be no useful information around the error message :
----8<-------8<------------------
debug: Looking up symbol fwrite
debug: Symbol fwrite bound to definition in libc.so.3
debug: Looking up symbol _Fwprep
debug: Symbol _Fwprep bound to definition in libc.so.3
debug: Looking up symbol write
debug: Symbol write bound to definition in libc.so.3
io-graphics: gf_dev_attach('/dev/io-display/0000,0000,0'): gf errno 5debug: Looking up symbol fputc
debug: Symbol fputc bound to definition in libc.so.3

debug: Looking up symbol vslogf
debug: Symbol vslogf bound to definition in libphrender.so.2
debug: Looking up symbol __stackavail
debug: Symbol __stackavail bound to definition in libc.so.3
debug: Looking up symbol vsnprintf
debug: Symbol vsnprintf bound to definition in libc.so.3
debug: Looking up symbol pthread_once
----8<-------8<------------------


I get errno 5 when I call io-graphics for the first time after reboot. If I call it a second (or more) times, I always 
get
crw-rw----  1 root      display      0,   1 Feb 25 08:06 0000,0000,0
#  io-graphics -vvv -c /etc/system/config/display.conf
io-graphics: gf_dev_attach('/dev/io-display/0000,0000,0'): gf errno 2 from now on. But /dev/io-display/0000,0000,0 is 
still there, with the access rights unchanged.

The way I try to start the GUI is:
io-display -c /etc/system/config/display.conf -v -dvid=0,did=0 waitfor /dev/io-display 10 Photon waitfor /dev/photon io-
graphics -vvv -c /etc/system/config/display.conf

Any ideas?

Thanks
  Bernd



_______________________________________________

Photon microGUI
http://community.qnx.com/sf/go/post99498
To cancel your subscription to this discussion, please e-mail photon-graphics-unsubscribe@community.qnx.com
Re: RE: io-graphics returns errno 5  
Hi,

my first attempt to get the GUI running was to enter commands which I mentionend in my original post from the command 
line of the console. Since it did not work, I tried to put them into the startup script (*.bsh file of the system 
builder project), but the result was the same.
When I boot without the GUI commands in the startup script, there is no process called io-display shown by pidin. There 
are no other startup scripts.

Is there a way to check the file system is consistent besides waiting for some seconds before starting the drivers 
manually and checking that there are no error messages displayed by sloginfo?
BTW, I start several other drivers like network, I2C, audio and USB earlier in the *.bsh script; they work without any 
issues.

The content of display.conf is
# cat /etc/system/config/display.conf
device {
drivername=imx35
vid=0
did=0
modeopts=/etc/system/config/imx35.conf
display {
xres=800
yres=600
refresh=60
pixel_format=rgb565
}
}

I start io-display using
io-display -c /etc/system/config/display.conf -v -dvid=0,did=0


Bernd
RE: RE: io-graphics returns errno 5  
OK, I missed the point about starting from the command line.  If starting from the command line does not work, then 
there is most likely another problem.

Let us forget Photon for now, and concentrate on GF.

Start io-display.

Then try to just run egl-gears, do you see anything, or get an error?

-----Original Message-----
From: Bernd Mohr [mailto:community-noreply@qnx.com] 
Sent: February-25-13 10:18 AM
To: photon-graphics
Subject: Re: RE: io-graphics returns errno 5

Hi,

my first attempt to get the GUI running was to enter commands which I mentionend in my original post from the command 
line of the console. Since it did not work, I tried to put them into the startup script (*.bsh file of the system 
builder project), but the result was the same.
When I boot without the GUI commands in the startup script, there is no process called io-display shown by pidin. There 
are no other startup scripts.

Is there a way to check the file system is consistent besides waiting for some seconds before starting the drivers 
manually and checking that there are no error messages displayed by sloginfo?
BTW, I start several other drivers like network, I2C, audio and USB earlier in the *.bsh script; they work without any 
issues.

The content of display.conf is
# cat /etc/system/config/display.conf
device {
drivername=imx35
vid=0
did=0
modeopts=/etc/system/config/imx35.conf
display {
xres=800
yres=600
refresh=60
pixel_format=rgb565
}
}

I start io-display using
io-display -c /etc/system/config/display.conf -v -dvid=0,did=0


Bernd



_______________________________________________

Photon microGUI
http://community.qnx.com/sf/go/post99509
To cancel your subscription to this discussion, please e-mail photon-graphics-unsubscribe@community.qnx.com
Re: RE: RE: io-graphics returns errno 5  
It seems to run:
# egl-gears
gf_dev_attach(): No error
but there is no change on the display.


> OK, I missed the point about starting from the command line.  If starting from
>  the command line does not work, then there is most likely another problem.
> 
> Let us forget Photon for now, and concentrate on GF.
> 
> Start io-display.
> 
> Then try to just run egl-gears, do you see anything, or get an error?
> 
> -----Original Message-----
> From: Bernd Mohr [mailto:community-noreply@qnx.com] 
> Sent: February-25-13 10:18 AM
> To: photon-graphics
> Subject: Re: RE: io-graphics returns errno 5
> 
> Hi,
> 
> my first attempt to get the GUI running was to enter commands which I 
> mentionend in my original post from the command line of the console. Since it 
> did not work, I tried to put them into the startup script (*.bsh file of the 
> system builder project), but the result was the same.
> When I boot without the GUI commands in the startup script, there is no 
> process called io-display shown by pidin. There are no other startup scripts.
> 
> Is there a way to check the file system is consistent besides waiting for some
>  seconds before starting the drivers manually and checking that there are no 
> error messages displayed by sloginfo?
> BTW, I start several other drivers like network, I2C, audio and USB earlier in
>  the *.bsh script; they work without any issues.
> 
> The content of display.conf is
> # cat /etc/system/config/display.conf
> device {
> drivername=imx35
> vid=0
> did=0
> modeopts=/etc/system/config/imx35.conf
> display {
> xres=800
> yres=600
> refresh=60
> pixel_format=rgb565
> }
> }
> 
> I start io-display using
> io-display -c /etc/system/config/display.conf -v -dvid=0,did=0
> 
> 
> Bernd
> 
> 
> 
> _______________________________________________
> 
> Photon microGUI
> http://community.qnx.com/sf/go/post99509
> To cancel your subscription to this discussion, please e-mail photon-graphics-
> unsubscribe@community.qnx.com


RE: RE: RE: io-graphics returns errno 5  
Did it actually print:

gf_dev_attach():No error    ?


Run it in the background, egl-gers &, then type:

pidin > out.txt

slay egl-gears

post out.txt

get the output of 'sloginfo':

sloginfo > slog.txt

post slog.txt

-----Original Message-----
From: Bernd Mohr [mailto:community-noreply@qnx.com] 
Sent: February-25-13 10:30 AM
To: photon-graphics
Subject: Re: RE: RE: io-graphics returns errno 5

It seems to run:
# egl-gears
gf_dev_attach(): No error
but there is no change on the display.


> OK, I missed the point about starting from the command line.  If 
> starting from  the command line does not work, then there is most likely another problem.
> 
> Let us forget Photon for now, and concentrate on GF.
> 
> Start io-display.
> 
> Then try to just run egl-gears, do you see anything, or get an error?
> 
> -----Original Message-----
> From: Bernd Mohr [mailto:community-noreply@qnx.com]
> Sent: February-25-13 10:18 AM
> To: photon-graphics
> Subject: Re: RE: io-graphics returns errno 5
> 
> Hi,
> 
> my first attempt to get the GUI running was to enter commands which I 
> mentionend in my original post from the command line of the console. 
> Since it did not work, I tried to put them into the startup script 
> (*.bsh file of the system builder project), but the result was the same.
> When I boot without the GUI commands in the startup script, there is 
> no process called io-display shown by pidin. There are no other startup scripts.
> 
> Is there a way to check the file system is consistent besides waiting 
> for some  seconds before starting the drivers manually and checking 
> that there are no error messages displayed by sloginfo?
> BTW, I start several other drivers like network, I2C, audio and USB 
> earlier in  the *.bsh script; they work without any issues.
> 
> The content of display.conf is
> # cat /etc/system/config/display.conf
> device {
> drivername=imx35
> vid=0
> did=0
> modeopts=/etc/system/config/imx35.conf
> display {
> xres=800
> yres=600
> refresh=60
> pixel_format=rgb565
> }
> }
> 
> I start io-display using
> io-display -c /etc/system/config/display.conf -v -dvid=0,did=0
> 
> 
> Bernd
> 
> 
> 
> _______________________________________________
> 
> Photon microGUI
> http://community.qnx.com/sf/go/post99509
> To cancel your subscription to this discussion, please e-mail 
> photon-graphics- unsubscribe@community.qnx.com






_______________________________________________

Photon microGUI
http://community.qnx.com/sf/go/post99511
To cancel your subscription to this discussion, please e-mail photon-graphics-unsubscribe@community.qnx.com
Re: RE: RE: RE: io-graphics returns errno 5  
Yes, I  have pasted the output from the console to my posting. egl-gers returns immedeately, there is no way for me the 
start pidin while it is running:
# time egl-gears
gf_dev_attach(): No error
    0.03s real     0.01s user     0.00s system

But I get
Feb 25 16:34:35    6     8     0 devg-imx35: 2D HW accel: 1
with sloginfo when it has run.

> Did it actually print:
> 
> gf_dev_attach():No error    ?
> 
> 
> Run it in the background, egl-gers &, then type:
> 
> pidin > out.txt
> 
> slay egl-gears
> 
> post out.txt
> 
> get the output of 'sloginfo':
> 
> sloginfo > slog.txt
> 
> post slog.txt
> 
> -----Original Message-----
> From: Bernd Mohr [mailto:community-noreply@qnx.com] 
> Sent: February-25-13 10:30 AM
> To: photon-graphics
> Subject: Re: RE: RE: io-graphics returns errno 5
> 
> It seems to run:
> # egl-gears
> gf_dev_attach(): No error
> but there is no change on the display.
> 
> 
> > OK, I missed the point about starting from the command line.  If 
> > starting from  the command line does not work, then there is most likely 
> another problem.
> > 
> > Let us forget Photon for now, and concentrate on GF.
> > 
> > Start io-display.
> > 
> > Then try to just run egl-gears, do you see anything, or get an error?
> > 
> > -----Original Message-----
> > From: Bernd Mohr [mailto:community-noreply@qnx.com]
> > Sent: February-25-13 10:18 AM
> > To: photon-graphics
> > Subject: Re: RE: io-graphics returns errno 5
> > 
> > Hi,
> > 
> > my first attempt to get the GUI running was to enter commands which I 
> > mentionend in my original post from the command line of the console. 
> > Since it did not work, I tried to put them into the startup script 
> > (*.bsh file of the system builder project), but the result was the same.
> > When I boot without the GUI commands in the startup script, there is 
> > no process called io-display shown by pidin. There are no other startup 
> scripts.
> > 
> > Is there a way to check the file system is consistent besides waiting 
> > for some  seconds before starting the drivers manually and checking 
> > that there are no error messages displayed by sloginfo?
> > BTW, I start several other drivers like network, I2C, audio and USB 
> > earlier in  the *.bsh script; they work without any issues.
> > 
> > The content of display.conf is
> > # cat /etc/system/config/display.conf
> > device {
> > drivername=imx35
> > vid=0
> > did=0
> > modeopts=/etc/system/config/imx35.conf
> > display {
> > xres=800
> > yres=600
> > refresh=60
> > pixel_format=rgb565
> > }
> > }
> > 
> > I start io-display using
> > io-display -c /etc/system/config/display.conf -v -dvid=0,did=0
> > 
> > 
> > Bernd
> > 
> > 
> > 
> > _______________________________________________
> > 
> > Photon microGUI
> > http://community.qnx.com/sf/go/post99509
> > To cancel your subscription to this discussion, please e-mail 
> > photon-graphics- unsubscribe@community.qnx.com
> 
> 
> 
> 
> 
> 
> _______________________________________________
> 
> Photon microGUI
> http://community.qnx.com/sf/go/post99511
> To cancel your subscription to this discussion, please e-mail photon-graphics-
> unsubscribe@community.qnx.com


RE: RE: RE: RE: io-graphics returns errno 5  
If you run egl-gears as:

egl-gears > /dev/null &


then you can get the pidin output.  If you are not seeing something on the display, then this points to something being wrong with the GF setup/driver.

-----Original Message-----
From: Bernd Mohr [mailto:community-noreply@qnx.com] 
Sent: February-25-13 10:40 AM
To: photon-graphics
Subject: Re: RE: RE: RE: io-graphics returns errno 5

Yes, I  have pasted the output from the console to my posting. egl-gers returns immedeately, there is no way for me the start pidin while it is running:
# time egl-gears
gf_dev_attach(): No error
    0.03s real     0.01s user     0.00s system

But I get
Feb 25 16:34:35    6     8     0 devg-imx35: 2D HW accel: 1
with sloginfo when it has run.

> Did it actually print:
> 
> gf_dev_attach():No error    ?
> 
> 
> Run it in the background, egl-gers &, then type:
> 
> pidin > out.txt
> 
> slay egl-gears
> 
> post out.txt
> 
> get the output of 'sloginfo':
> 
> sloginfo > slog.txt
> 
> post slog.txt
> 
> -----Original Message-----
> From: Bernd Mohr [mailto:community-noreply@qnx.com]
> Sent: February-25-13 10:30 AM
> To: photon-graphics
> Subject: Re: RE: RE: io-graphics returns errno 5
> 
> It seems to run:
> # egl-gears
> gf_dev_attach(): No error
> but there is no change on the display.
> 
> 
> > OK, I missed the point about starting from the command line.  If 
> > starting from  the command line does not work, then there is most 
> > likely
> another problem.
> > 
> > Let us forget Photon for now, and concentrate on GF.
> > 
> > Start io-display.
> > 
> > Then try to just run egl-gears, do you see anything, or get an error?
> > 
> > -----Original Message-----
> > From: Bernd Mohr [mailto:community-noreply@qnx.com]
> > Sent: February-25-13 10:18 AM
> > To: photon-graphics
> > Subject: Re: RE: io-graphics returns errno 5
> > 
> > Hi,
> > 
> > my first attempt to get the GUI running was to enter commands which 
> > I mentionend in my original post from the command line of the console.
> > Since it did not work, I tried to put them into the startup script 
> > (*.bsh file of the system builder project), but the result was the same.
> > When I boot without the GUI commands in the startup script, there is 
> > no process called io-display shown by pidin. There are no other 
> > startup
> scripts.
> > 
> > Is there a way to check the file system is consistent besides 
> > waiting for some  seconds before starting the drivers manually and 
> > checking that there are no error messages displayed by sloginfo?
> > BTW, I start several other drivers like network, I2C, audio and USB 
> > earlier in  the *.bsh script; they work without any issues.
> > 
> > The content of display.conf is
> > # cat /etc/system/config/display.conf device {
> > drivername=imx35
> > vid=0
> > did=0
> > modeopts=/etc/system/config/imx35.conf
> > display {
> > xres=800
> > yres=600
> > refresh=60
> > pixel_format=rgb565
> > }
> > }
> > 
> > I start io-display using
> > io-display -c /etc/system/config/display.conf -v -dvid=0,did=0
> > 
> > 
> > Bernd
> > 
> > 
> > 
> > _______________________________________________
> > 
> > Photon microGUI
> > http://community.qnx.com/sf/go/post99509
> > To cancel your subscription to this discussion, please e-mail
> > photon-graphics- unsubscribe@community.qnx.com
> 
> 
> 
> 
> 
> 
> _______________________________________________
> 
> Photon...
Re: RE: RE: RE: RE: io-graphics returns errno 5  
The output of pidin is 

     pid tid name               prio STATE       Blocked
       1   1 oc/boot/procnto-v6   0f READY
       1   2 oc/boot/procnto-v6 255r RECEIVE     1
       1   3 oc/boot/procnto-v6 255r RECEIVE     1
       1   5 oc/boot/procnto-v6 255r RECEIVE     1
       1   6 oc/boot/procnto-v6  10r RECEIVE     1
       1   7 oc/boot/procnto-v6  10r RUNNING
       1   8 oc/boot/procnto-v6  10r RECEIVE     1
       1   9 oc/boot/procnto-v6  11r RECEIVE     1
       1  10 oc/boot/procnto-v6  10r RECEIVE     1
       1  11 oc/boot/procnto-v6  10r RECEIVE     1
       1  12 oc/boot/procnto-v6  10r RECEIVE     1
       1  13 oc/boot/procnto-v6  10r RECEIVE     1
       2   1 c/boot/devc-sermx1  10r RECEIVE     1
       3   1 proc/boot/slogger   10r RECEIVE     1
       4   1 proc/boot/pipe      10r SIGWAITINFO
       4   2 proc/boot/pipe      10r RECEIVE     1
       4   3 proc/boot/pipe      10r RECEIVE     1
       5   1 proc/boot/i2c-mx35  10r RECEIVE     1
       6   1 proc/boot/i2c-mx35  10r RECEIVE     1
    4103   1 roc/boot/io-pkt-v4  21r SIGWAITINFO
    4103   2 roc/boot/io-pkt-v4  21r RECEIVE     1
    4103   3 roc/boot/io-pkt-v4  10r RECEIVE     14
    8200   1 proc/boot/devc-pty  20r RECEIVE     1
    8201   1 proc/boot/qconn     10r SIGWAITINFO
    8201   2 proc/boot/qconn     10r CONDVAR     (0x1210f0)
    8201   3 proc/boot/qconn     10r RECEIVE     1
    8201   4 proc/boot/qconn     10r RECEIVE     3
    8202   1 /boot/devf-generic  10r SIGWAITINFO
    8202   2 /boot/devf-generic  10r RECEIVE     1
    8203   1 etfs-phycore_imx35  10r RECEIVE     1
    8203   2 etfs-phycore_imx35   8r NANOSLEEP
    8204   1 proc/boot/io-usb    10r SIGWAITINFO
    8204   2 proc/boot/io-usb    21r RECEIVE     4
    8204   3 proc/boot/io-usb    21r RECEIVE     7
    8204   4 proc/boot/io-usb    21r RECEIVE     1
    8204   5 proc/boot/io-usb    10r RECEIVE     10
    8204   6 proc/boot/io-usb    10r NANOSLEEP
    8204   7 proc/boot/io-usb    10r RECEIVE     10
    8205   1 /boot/dev-can-mx35  10r RECEIVE     1
    8206   1 t/devb-mmcsd-imx35  10r SIGWAITINFO
    8206   2 t/devb-mmcsd-imx35  10r RECEIVE     1
    8206   3 t/devb-mmcsd-imx35  21r RECEIVE     4
    8207   1 oc/boot/io-display  10r SIGWAITINFO
    8207   2 oc/boot/io-display  10r RECEIVE     1
    8207   3 oc/boot/io-display  10r RECEIVE     1
    8207   4 oc/boot/io-display  10r RECEIVE     3
    8207   5 oc/boot/io-display  10r RECEIVE     1
    8208   1 proc/boot/ksh       10r SIGSUSPEND
  204817   1 proc/boot/pidin     10r REPLY       1


but I am not sure if egl-gears actually ran for more than a couple of milliseconds after I entered the command, as I get
 the "no error" message immedeately.
I still have a pattern on my display which looks lilke random bits at power on.


> If you run egl-gears as:
> 
> egl-gears > /dev/null &
> 
> 
> then you can get the pidin output.  If you are not seeing something on the 
> display, then this points to something being wrong with the GF setup/driver.
> 
> -----Original Message-----
> From: Bernd Mohr [mailto:community-noreply@qnx.com] 
> Sent: February-25-13 10:40 AM
> To: photon-graphics
> Subject: Re: RE: RE: RE: io-graphics returns errno 5
> 
> Yes, I  have pasted the output from the console to my posting. egl-gers 
> returns immedeately, there is no way for me the start pidin while it is 
> running:
> # time egl-gears
> gf_dev_attach(): No error
>     0.03s real     0.01s user     0.00s system
> 
> But I get
> Feb 25 16:34:35    6     8     0 devg-imx35: 2D HW accel: 1
> with sloginfo when it has run.
> 
> > Did it actually print:
> > 
> > gf_dev_attach():No error    ?
> > 
> > 
> > Run it in the background, egl-gers &, then type:
> > 
> > pidin > out.txt
> > 
> > slay egl-gears
>...
View Full Message