Skip navigation.
Home
The QNX Community Portal

View topic - Photon

Photon

Read-only archive of qnx.bsp (Discuss building an image, flashing a board or using a BSP) at inn.qnx.com

Photon

Postby ramyssysix » Fri Oct 28, 2005 10:10 pm

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
ramyssysix
Active Member
 
Posts: 10
Joined: Wed Oct 26, 2005 6:03 pm

Re: Photon

Postby kwschumm » Sat Oct 29, 2005 1:50 am

"ramyssysix" <wsaleem@fma.fujitsu-dot-com.no-spam.invalid> wrote in message
news:djudr6$8r6$1@inn.qnx.com...
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.
kwschumm
Senior Member
 
Posts: 306
Joined: Fri Sep 17, 2004 12:46 pm

Re: Photon

Postby kwschumm » Sat Oct 29, 2005 1:52 am

"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.
kwschumm
Senior Member
 
Posts: 306
Joined: Fri Sep 17, 2004 12:46 pm

Re: Photon

Postby Colin Burgess » Sat Oct 29, 2005 2:19 am

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

http://www.qnx.com/developers/docs/6.3. ... embed.html

Ken Schumm wrote:
"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
Colin Burgess
 

Re: Photon

Postby kwschumm » Sat Oct 29, 2005 6:26 pm

"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. ... 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.
kwschumm
Senior Member
 
Posts: 306
Joined: Fri Sep 17, 2004 12:46 pm

Re: Photon

Postby Colin Burgess » Sat Oct 29, 2005 6:32 pm

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

Ken Schumm wrote:
"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. ... 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
Colin Burgess
 

Re: Photon

Postby Thunderblade » Tue Nov 08, 2005 10:26 am

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...
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

Attachments
Lite5200_photon_63.build.gz
(2.48 KiB) Downloaded 257 times
Thunderblade
Senior Member
 
Posts: 487
Joined: Thu Apr 07, 2005 11:52 am

re:Photon

Postby ramyssysix » Wed Nov 09, 2005 7:10 pm

Hello Thunderblade,

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

Regards
ramyssysix
Active Member
 
Posts: 10
Joined: Wed Oct 26, 2005 6:03 pm

Re: re:Photon

Postby Thunderblade » Thu Nov 10, 2005 3:16 pm

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
Thunderblade
Senior Member
 
Posts: 487
Joined: Thu Apr 07, 2005 11:52 am

re:Photon

Postby ramyssysix » Thu Nov 10, 2005 7:19 pm

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
ramyssysix
Active Member
 
Posts: 10
Joined: Wed Oct 26, 2005 6:03 pm

devf-mgt5200

Postby glansberry » Thu Jul 06, 2006 5:18 pm

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
glansberry
Active Member
 
Posts: 13
Joined: Wed Feb 04, 2004 1:41 pm

Re: devf-mgt5200

Postby Jay Greig » Mon Jul 10, 2006 10:36 pm

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:
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
Jay Greig
 


Return to qnx.bsp

Who is online

Users browsing this forum: No registered users and 1 guest

cron