OpenQNX :: The QNX Community Portal

Oct 06, 2008 - 07:21 PM
Google
  Web openqnx.com   
     Create an account Home · Submit News · QNX Forums · QNX Download · Search   
_
Main Menu
Who's Online
There are 34 unlogged users and 2 registered users online.

You can log-in or register for a user account here.

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
ramyssysix
Post subject: Photon  PostPosted: Oct 28, 2005 - 10:10 PM
Active Member


Joined: Oct 26, 2005
Posts: 10

Hello,

I have a question about getting photon up and running. I have a Total5200 system. What library and binary files do I need to accomplish that? I tried those recommended in the BSP build file, but I still get the following errors (form sloginfo):

26 09:06:38 3 8 0 Unable to open "/etc/system/config/crtc-settings"
26 09:06:38 2 8 0 Unable to open font DLL

Any help will be appreciated.

Thanks
 
 View user's profile Send private message  
Reply with quote Back to top
kwschumm
Post subject: Re: Photon  PostPosted: Oct 29, 2005 - 01:50 AM
Senior Member


Joined: Sep 17, 2004
Posts: 251

"ramyssysix" <wsaleem@fma.fujitsu-dot-com.no-spam.invalid> wrote in message
news:djudr6$8r6$1@inn.qnx.com...
Quote:
Hello,

I have a question about getting photon up and running. I have a
Total5200 system. What library and binary files do I need to
accomplish that? I tried those recommended in the BSP build file, but
I still get the following errors (form sloginfo):

26 09:06:38 3 8 0 Unable to open
"/etc/system/config/crtc-settings"
26 09:06:38 2 8 0 Unable to open font DLL

I'm working on this on a pxa270 as well. It's not well documented.

The crtc-settings error can be ignored. That's pretty much just for a pc.

I copied over all the dll's, fonts and config files from my desktop to the
target and photon came up. It will have to be trimmed down to fit on the
final target. I still haven't been able to get phditto/phindows working on
the target.
 
 View user's profile Send private message  
Reply with quote Back to top
kwschumm
Post subject: Re: Photon  PostPosted: Oct 29, 2005 - 01:52 AM
Senior Member


Joined: Sep 17, 2004
Posts: 251

"Ken Schumm" <kwschumm@qsolv.com> wrote in message
news:djuk59$cur$1@inn.qnx.com...
[...]

Quote:
I copied over all the dll's, fonts and config files from my desktop to the
target and photon came up.

Clarification, I copied all the photon dlls for the pxa270 processor to the
target, not the x86 dlls from the pc.
 
 View user's profile Send private message  
Reply with quote Back to top
Colin Burgess
Post subject: Re: Photon  PostPosted: Oct 29, 2005 - 02:19 AM
Guest





There's an appendix in the Photon Programmer's Guide on embedding photon.

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

Ken Schumm wrote:
Quote:
"Ken Schumm" <kwschumm@qsolv.com> wrote in message
news:djuk59$cur$1@inn.qnx.com...
[...]


I copied over all the dll's, fonts and config files from my desktop to the
target and photon came up.


Clarification, I copied all the photon dlls for the pxa270 processor to the
target, not the x86 dlls from the pc.



--
cburgess@qnx.com
 
   
Reply with quote Back to top
kwschumm
Post subject: Re: Photon  PostPosted: Oct 29, 2005 - 06:26 PM
Senior Member


Joined: Sep 17, 2004
Posts: 251

"Colin Burgess" <cburgess@qnx.com> wrote in message
news:djulv2$5u7$1@inn.qnx.com...
Quote:
There's an appendix in the Photon Programmer's Guide on embedding photon.

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

That document gives a good overview but it doesn't answer some key questions
when someone is actually trying to get it working.

For example, how to configure fonts for the embeded target on a windows
hosted system (answer - you can't).

Or, that the crtc-settings error in the system error log should be ignored.

Or, exactly what is required to use phditto or phindows on your target.
Still don't have that working.

I encountered many problems and questions following that guide. I should
have documented them for you guys and provided feedback, sorry.
 
 View user's profile Send private message  
Reply with quote Back to top
Colin Burgess
Post subject: Re: Photon  PostPosted: Oct 29, 2005 - 06:32 PM
Guest





Thanks Ken. I've forwarded this comment to the appropriate people! :v)

Ken Schumm wrote:
Quote:
"Colin Burgess" <cburgess@qnx.com> wrote in message
news:djulv2$5u7$1@inn.qnx.com...

There's an appendix in the Photon Programmer's Guide on embedding photon.

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


That document gives a good overview but it doesn't answer some key questions
when someone is actually trying to get it working.

For example, how to configure fonts for the embeded target on a windows
hosted system (answer - you can't).

Or, that the crtc-settings error in the system error log should be ignored.

Or, exactly what is required to use phditto or phindows on your target.
Still don't have that working.

I encountered many problems and questions following that guide. I should
have documented them for you guys and provided feedback, sorry.



--
cburgess@qnx.com
 
   
Reply with quote Back to top
Thunderblade
Post subject: Re: Photon  PostPosted: Nov 08, 2005 - 10:26 AM
Senior Member


Joined: Apr 07, 2005
Posts: 259

I've done a complete Photon build file for the Lite5200 with Coral-P, for
QNX 6.3 SP1. It gives a good hint on what is actually needed.

See attached.

Cheers,


Malte

"ramyssysix" <wsaleem@fma.fujitsu-dot-com.no-spam.invalid> schrieb im
Newsbeitrag news:djudr6$8r6$1@inn.qnx.com...
Quote:
Hello,

I have a question about getting photon up and running. I have a
Total5200 system. What library and binary files do I need to
accomplish that? I tried those recommended in the BSP build file, but
I still get the following errors (form sloginfo):

26 09:06:38 3 8 0 Unable to open
"/etc/system/config/crtc-settings"
26 09:06:38 2 8 0 Unable to open font DLL


Any help will be appreciated.

Thanks




Lite5200_photon_63.build.gz
 Description:

Download
 Filename:  Lite5200_photon_63.build.gz
 Filesize:  2.48 KB
 Downloaded:  32 Time(s)

 
 View user's profile Send private message  
Reply with quote Back to top
ramyssysix
Post subject: re:Photon  PostPosted: Nov 09, 2005 - 07:10 PM
Active Member


Joined: Oct 26, 2005
Posts: 10

Hello Thunderblade,

The build file you posted is notr readable. Can you post it again?

Regards
 
 View user's profile Send private message  
Reply with quote Back to top
Thunderblade
Post subject: Re: re:Photon  PostPosted: Nov 10, 2005 - 03:16 PM
Senior Member


Joined: Apr 07, 2005
Posts: 259

It's readable here... how do you access the newsgroups? I will paste the
contents of the build file into this message.

[image=0x20000]
[virtual=ppcbe,srec +compress] .bootstrap = {
startup-mgt5200
PATH=/proc/boot LD_LIBRARY_PATH=/proc/boot procnto-600
}
[+script] .script = {
# Programs require the runtime linker (ldqnx.so) to be at a fixed location
procmgr_symlink ../../proc/boot/libc.so.2 /usr/lib/ldqnx.so.2
display_msg Welcome to Neutrino on the Lite5200 Board
slogger
## PCI driver
pci-mgt5200
waitfor /dev/pci 4
## Serial driver for Motorola Lite5200 EVB Version 2.0
devc-serpsc -c 132000000 -u 1 -e -F -S -b 115200 0xf0002000,65 &
waitfor /dev/ser1
reopen /dev/ser1
# photon env var
PATH=/proc/boot:/bin:/sbin:/usr/bin/:/usr/sbin/:/usr/photon/bin
LD_LIBRARY_PATH=/proc/boot:/lib:/lib/dll
PHOTON=/dev/photon
PHOTON_PATH=/proc/boot
PHOTON2_PATH=/proc/boot
# These env variables inherited by all the programs which follow
SYSNAME=nto
TERM=qnx
HOME=/root
pipe
## Network driver
## Setup Best Comm (DMA) for on-board ethernet driver
display_msg Starting up on-board ethernet with Large stack and cache
bestcomm5200
io-net -c1 -ptcpip cache=1 -dmpc5200 mac=001122334444
waitfor /dev/io-net/en0 4
ifconfig en0 192.168.10.2

#display_msg Starting USB Stack (OHCI) and Mouse Driver
io-usb -dohci-mgt5200 ioport=0xf0001000,irq=70
waitfor /dev/io-usb/io-usb 4
devu-mouse
## Flash driver
# display_msg Starting Flash driver
# devf-mgt5200 -s0xff000000,16M
# start Photon binaries.
setconf _CS_LIBPATH /proc/boot:/lib:/lib/dll
display_msg Starting Photon
Photon &
waitfor /dev/photon
phfont -d /proc/boot -X &
waitfor /dev/phfont
display_msg Starting Graphics Driver
# Start of Coral-P graphics driver
io-graphics -dldevg-coral.so -d0x10cf,0x2019 -g640x480x15 -amode=/coral.conf
&
# sleep 1
display_msg Starting Photon Input Driver with USB Mouse
waitfor /dev/usbmouse0
devi-hirun msoft fd -d/dev/usbmouse0
display_msg Starting Window Manager and Example Application
pwm &
phcalc_sm &
# voyager &

# mount application directory
#fs-nfs2 192.168.51.143:/tmp /laptop

devc-pty
waitfor /dev/ptyp0 4
qconn
#
# Start the main shell
#
[+session] sh &
}
#
# Redirect console messages
#
[type=link] /dev/console=/dev/ser1
[type=link] /usr/lib/ldqnx.so.2=/proc/boot/libc.so
[type=link] /tmp=/dev/shmem
[type=link] /proc/boot/font_repository=/proc/boot
devg-coral.so
/coral.conf=${QNX_TARGET}/ppcbe/usr/photon/config/coral.conf
#devg-smi5xx.so
#/smi5xx.conf=${QNX_TARGET}/ppcbe/usr/photon/config/smi5xx.conf
libusbdi.so.2
libc.so
libm.so
libsocket.so
npm-tcpip.so=npm-tcpip-v4.so
libdma-bestcomm5200.so
devn-mpc5200.so
#include the photon libs
libAp.so
libph.so
libphexlib.so
libffb.so
libdisputil.so
libphrender.so
libgri.so
gri-photon.so
libPtWeb.so
/lib/dll/font=${QNX_TARGET}/ppcbe/lib/dll/font
/lib/dll/phfont.so=phfont.so
/lib/libblkcache.so=libblkcache.so
/lib/libFF-T2K-cache.so=libFF-T2K-cache.so
/lib/libFF-T2K-fm.so=libFF-T2K-fm.so
/lib/libFF-T2K.so=libFF-T2K.so
/lib/libfont.so=libfont.so
/lib/libfontharnessutils.so=libfontharnessutils.so
/lib/libfontutils.so=libfontutils.so


#
# Executables
#
[data=c]
devc-serpsc
bestcomm5200
pci-mgt5200
io-usb
devu-ohci-mgt5200.so
devu-mouse
#devh-usb.so
devi-hirun
pipe
pidin
ls
ifconfig
uname
sleep
ls
io-net
pci
ping
cat
qconn
devc-pty
# devf-mgt5200
# flashctl
fs-nfs2
slogger
sloginfo
slay
getconf
setconf
#include photon binaries
Photon
io-graphics
phfont

# make sure the phab stuff isn't stripped by compress
[+raw perms=775] phcalc_sm
[+raw perms=775] pwm
#[+raw perms=775] voyager
#[+raw perms=775] vserver

#needs these files for keyboard & fonts
/proc/boot/keyboard/en_US_101.kbd =
${QNX_TARGET}/usr/photon/keyboard/en_US_101.kbd
${QNX_TARGET}/usr/photon/font_repository/phcursor.phf
${QNX_TARGET}/usr/photon/font_repository/tt2001m_.ttf
${QNX_TARGET}/usr/photon/font_repository/tt2003m_.ttf


# the following user info and wm configuration files are needed to use pwm.
# most of the rest of the file are in-line configuration stuff
/etc/group={
root:x:0:root
}
/etc/system/trap/calib.localhost={
}


/etc/passwd={
root::0:0:Superuser:/root/bin/sh
}
/root/.ph/wm/wm.cfg={
[wm config]
fore_color = 0xD8D8D8
active_color = 0x5C8BDF
title_color = 0x65
inactive_color = 0xB1C1D9
base_color = 0xBDBDAA
border_active = 0
placement = 4
text_align = 2
auto_raise = 0
keyboard = 0
focus_cursor = 1
click_front = 0
drag = 1
}
/root/.ph/wm/wm.menu={
=Desktop Menu
Terminal T pterm
Shutdown u phshutdown
}

# the following font information is needed to incorporate fonts on the
target
fontdir={
;
phcursor,.phf,Photon Cursor,0,,E900-E921,Np,32x32,3k
primasansbts,0@tt2001m_.ttf,PrimaSans BT,0,,0020-F002,MIp,133x129,75k
primasansbtsb,0@tt2003m_.ttf,PrimaSans BT,0,B,0020-F002,MIp,143x130,70k
}
fontext={
;
+normal = primasansbts, primasansmonobts, phcursor
}
fontdesc={
[SANSERIF]
PrimaSans BT
PrimaSansMono BT
}
fontkey={
[FOUNDRY]
BT
MS
Condensed
[AFTERFOUNDRYKEYS]
Roman

[KEYS]
Plain
Regular
Bold
Italic
Oblique
-Roman
-Plain
-Regular
-Bold
-Italic
-Oblique
Normal
-Normal
regular
normal
}
fontmap={
;BalloonFont = primasansbts
FixedFont = primasansmonobts
;HeadingFont = primasansbts
;MenuFont = primasansbts
;MessageFont = primasansbts
;TextFont = primasansbts
;TitleFont = primasansbts
;Helvetica = primasansbts
;Verdana = primasansbts
monospace = primasansmonobts
sans-serif = primasansbts
;serif = primasansbts
;web = primasansbts
;arial = primasansbts
;term = primasansbts
;geneva = primasansbts
;monaco = primasansbts
;ny = primasansbts
;courier = primasansbts
;dutch = primasansbts
;swiss = primasansbts
;times = primasansbts
;wingbats = primasansbts
;helv = primasansbts
;ncen = primasansbts
;time = primasansbts
? = primasansbts
}
fonttype ={
[ENG1]
..phf
[ENG2]
[ENG3]
..ttf
[ENG4]
[SPECIAL]
}

sh=ksh
# sh=fesh
 
 View user's profile Send private message  
Reply with quote Back to top
ramyssysix
Post subject: re:Photon  PostPosted: Nov 10, 2005 - 07:19 PM
Active Member


Joined: Oct 26, 2005
Posts: 10

Thanks Thunderblade. I can see it now. I access it using the regular browser, through openqnx.com.

Currently, I am trying to run Photon on Total5200 instead. I noticed that you have used inline files for fontdesc, fontdir etc. I am not following that approach and keeping these files in /usr/photon/font_repository instead. But for some reason, I always get this error "FontDesc is Null" when I run a graphics application. Can you or anyone suggest a solution?

Best Regards
 
 View user's profile Send private message  
Reply with quote Back to top
glansberry
Post subject: devf-mgt5200  PostPosted: Jul 06, 2006 - 05:18 PM
Active Member


Joined: Feb 04, 2004
Posts: 13

I see that devf-mgt5200 is commented out, I am trying to find that file. It is included with the bsp for 6.2.1 but I don't see it in the bsp for 6.3, any hints as to where I can find it? I am using the lite5200, or ICE Cube as some people call it.

Thanks
 
 View user's profile Send private message  
Reply with quote Back to top
Jay Greig
Post subject: Re: devf-mgt5200  PostPosted: Jul 10, 2006 - 10:36 PM
Guest





For 6.3 BSPs, you require the "Flash Filesystem and Embedding TDK".
This will give you the devf-mgt5200 binary, as well as the header files
and libraries required to compile the driver from source.

Please contact your Sales rep for more information on it.

Thanks,
-Jay.

glansberry wrote:
Quote:
I see that devf-mgt5200 is commented out, I am trying to find that
file. It is included with the bsp for 6.2.1 but I don't see it in
the bsp for 6.3, any hints as to where I can find it? I am using the
lite5200, or ICE Cube as some people call it.

Thanks
 
   
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2007 The PNphpBB Group
Credits
All logos and trademarks in this site are property of their respective owners. The comments are property of their posters.
Powered by OpenQNX: The QNX Community Portal Site
QNX and the QNX logo are registered trademarks of QNX Software Systems.