It can be tricky to bring Photon onto an Embedded System. The doc chapter
‘Photon in Embedded Systems’ is currently improved. To make your life
easier, I am attaching a build file I created for the Lite5200 with Coral-P
that includes a minimal Photon. It hopefully helps you to get Photon running
on your Total 5200, as the principle is the same and the systems are
similar.
Cheers,
Malte
“Daniel Götz” <tflc-gonzo@gmx.de> schrieb im Newsbeitrag
news:d336en$dli$1@inn.qnx.com…
Hi Malte,
thanks a lot! Now I know my problem! I’m a student and working on my
diploma thesis. My goal is to get photon running on my Total5200 and after
this, creating a GUI to control a radio over MSCAN. It is a non commercial
project. We don’t work together with the industry.
thx
Daniel
Malte Mundt wrote:
Hi Daniel,
mkdir has nothing to do with the flash driver, but of course you need a
writeable file system to do an mkdir. > ![:wink: :wink:](/images/emoji/twitter/wink.png?v=9)
Without a flash driver, you only have the IFS (image file system) which
is a
non-writeable RAM filesystem provided by the kernel (procnto) to allow
access to all the stuff in the boot image.
The kernel also provides a little “RAM disk” kind of thing, which you
will
find under /dev/shmem. There, you can put files, but it doesn’t support
directories. However, there is “devb-ram” I think, which provides a
block
device simulated in RAM, where you could create directories, too.
I don’t have the Total5200, but the Lite5200 here. It has a connector
for a
hard disk. Does the Total have one, too? Or CF maybe? If you , you could
insert a CF card and start devb-mpc5200 (or devb-eide-mpc5200, don’t
remember the name) in your boot image. Then you have access to your
HD/CF
and can do what you want.
To have the flash driver, you need the “Embedding and Flash TDK” (TDK is
short for “Technology Development Kit”) which is available seperately.
What is your goal? Are you evaluating QNX Neutrino on the Total5200 for
a
potential commercial project?
Cheers,
Malte
“Daniel Götz” <> tflc-gonzo@gmx.de> > schrieb im Newsbeitrag
news:d32jti$8o$> 1@inn.qnx.com> …
Thanks a lot Malte,
with download Photon I mean to copy it from my PC to the Total5200 > ![:slight_smile: :slight_smile:](/images/emoji/twitter/slight_smile.png?v=9)
But that’s my problem. After I have burned my image into the Flash,
I’m
able to see my target(Total5200) in the FileSystem Navigator in the
QNX
IDE, but I’m not able to create a new folder or copy files from my PC
to
the target.
I tried to create a new Folder with mkdir, but it won’t work. Do I
need to
install the Flash driver (devf-mgt5200)? Or has the Flash driver
nothing
to deal with the mkdir command?
Here is my .bsh file
procmgr_symlink …/…/proc/boot/libc.so.2 /usr/lib/ldqnx.so.2
#######################################################################
SERIAL driver
#######################################################################
#######################################################################
TOTAL 5200 SDP
#######################################################################
display_msg Welcome to QNX Neutrino 6.3 on the Motorola TOTAL5200 SDP
devc-serpsc -c 132000000 -u 3 -e -F -S -b115200 0xf0002400,67
waitfor /dev/ser3
reopen /dev/ser3
slogger
pipe
#######################################################################
PCI server
#######################################################################
pci-mgt5200
waitfor /dev/pci 4
#######################################################################
NETWORK driver
- Bestcomm DMA utility and library are required by NETWORK driver
- substitute your IP address for 1.2.3.4 and mac for 001122334444
#######################################################################
display_msg Starting on-board ethernet with large stack and cache…
bestcomm5200
io-net -c1 -ptcpip cache=1 -dmpc5200 mac=00049F00135B
waitfor /dev/io-net/en0 4
ifconfig en0 100.0.0.3
qconn
#######################################################################
These env variables are inherited by all the programs which follow
#######################################################################
SYSNAME=nto
TERM=qansi
HOME=/
PATH=:/proc/boot:/bin:/usr/bin:/opt/bin
LD_LIBRARY_PATH=:/proc/boot:/lib:/usr/lib:/lib/dll:/opt/lib
[+session] ksh &
Did I forgot something to load?
Greeting
Daniel
Malte Mundt wrote:
I have the Total5200. Is it necessary to download Photon to the
Total5200
to use the display. Or is Photon only responsible for the
touch-screen?
Photon is the graphical user interface of QNX. It is a complete GUI
that
includes support for fonts, all kinds of picture formats, widgets,
menus,
scrollbars etc. etc. etc. You can even run a browser on it. So yes,
it
is
necessary. But I don’t understand what you mean by “download
Photon”.
You
put it into the onboard flash, that’s it.
My next problem is, how can I show some output on the screen? I
have
installed the GRAPHICS driver…
io-graphics -ds1d13806 xres=640,yres=480,bitpp=16,photon -pphoton
Now I need a sample C/C++ programm.
Photon comes with several example applications like phcalc, pfm, pv
etc.,
all are available for PPC too and are included with Momentics. You
should
take a look at Photon running on a Neutrino-based PC. All you see
there
can
be done on the Total5200, too.
Cheers,
Malte
\
begin 666 Lite5200_photon_63.build
M"EMI;6%G93TP>#(P,# P70I;=FER=‘5A;#UP<&-B92QS<F5C("MC;VUP<F5S
M<UT@+F)O;W1S=’)A<" ](‘L*“7-T87)T=7 M;6=T-3(P,” (" @(%!!5$@]
M+W!R;V,O8F]O="!P<F]C;G1O+38P, I]"@I;W-C<FEP=%T@+G-C<FEP=" ]
M('L"2,@4’)O9W)A;7,@<F5Q=6ER92!T:&4@<G5N=&EM92!L:6YK97(@&QD
M<6YX+G-O2!T;R!B92!A="!A(&9I>&5D(&QO8V%T:6]N"@EP<F]C;6=R7W-Y
M;6QI;FL@+BXO+BXO<’)O8R]B;V]T+VQI8F,N<V\N,B O=7-R+VQI8B]L9’%N
M>“YS;RXR”@H)9&ES<&QA>5]M<V<@5V5L8V]M92!T;R!.975T<FEN;R!O;B!T
M:&4@3&ET934R,# @0F]A<F0"@ES;&]G9V5R"@H@(" @(R,@4$-)(&1R:79E
M<@H@(" @<&-I+6UG=#4R,# “7=A:71F;W(@+V1E=B]P8VD@- H)”@DC"B @
M(" C(R!397)I86P@9’)I=F5R(&9O<B!-;W1O<F]L82!,:71E-3(P,"!%5D(@
M5F5R<VEO;B R+C @“B @(”!D979C+7-E<G!S8R M8R Q,S(P,# P,# @+74@
M,2 M92 M1B M4R M8B Q,34R,# @,'AF,# P,C P,“PV-2 F”@EW86ET9F]R
M("]D978O<V5R,0H@(" @<F5O<&5N("]D978O<V5R,0H"2,@<&AO=&]N(&5N
M=B!V87(“4Q$7TQ)0E)!4EE?4$%42#TO<’)O8R]B;V]T.B]L:6(Z+VQI8B]D
M;&PZ+VQI8B]D;&PO9F]N= H)4$%42#TO<’)O8R]B;V]T”@E02$]43TX]+V1E
M=B]P:&]T;VX"5!(3U1/3E]0051(/2]P<F]C+V)O;W0*"5!(3U1/3C)?4$%4
M2#TO<’)O8R]B;V]T"@H)(R!4:&5S92!E;G8@=F%R:6%B;&5S(&EN:&5R:71E
M9"!B>2!A;&P@=&AE(’!R;V=R86US(’=H:6-H(&9O;&QO=PH@(" @4UE33D%-
M13UN=&*(" @(%1%4DT]<6YX"B @("!(3TU%/2]R;V]T"@H)<&EP90H*(" @
M(",C($YE=’=O<FL@9’)I=F5R"B @(" C(R!3971U<"!“97-T($-O;6T@$1-
M02D@9F]R(&]N+6)O87)D(&5T:&5R;F5T(&1R:79E<@H@(" @“B @(”!D:7-P
M;&%Y7VUS9R!3=&%R=&EN9R!U<"!O;BUB;V%R9"!E=&AE<FYE="!W:71H($QA
M<F=E(’-T86-K(&%N9"!C86-H90H@(" @8F5S=&-O;6TU,C P"B @("!I;RUN
M970@+6,Q(“UP=&-P:7 @8V%C:&4],2 M9&UP8S4R,# @;6%C/3 P,3$R,C,S
M-#0T- H)=V%I=&9O<B O9&5V+VEO+6YE=”]E;C @- H):69C;VYF:6<@96XP
M(#$Y,BXQ-C@N-3$N,30Q"@H"61I<W!L87E?;7-G(%-T87)T:6YG(%530B!3
M=&%C:R H3TA#22D@86YD($UO=7-E($1R:79E<@H@(” @:6\M=7-B(“UD;VAC
M:2UM9W0U,C P(&EO<&]R=#TP>&8P,# Q,# P+&ER<3TW, H@(” @=V%I=&9O
M<B O9&5V+VEO+75S8B]I;RUU<V(@- H)9&5V=2UM;W5S90H*(" @(",C($9L
M87-H(&1R:79E<@HC(" @9&ES<&QA>5]M<V<@4W1A<G1I;F<@1FQA<V@@9’)I
M=F5R"B,@("!D979F+6UG=#4R,# @+7,P>&9F,# P,# P+#$V30H*“0H)(R!S
M=&%R=”!0:&]T;VX@8FEN87)I97,N"@H)<V5T8V]N9B!?0U-?3$E"4$%42" O
M<’)O8R]B;V]T.B]L:6(Z+VQI8B]D;&P*"@ED:7-P;&%Y7VUS9R!3=&%R=&EN
M9R!0:&]T;VX*“5!H;W1O;B F”@EW86ET9F]R("]D978O<&AO=&]N"@EP:&9O
M;G0@+60@+W!R;V,O8F]O=" M6" F"@EW86ET9F]R("]D978O<&AF;VYT"@H)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]?
M<F%I<V4@/2 P"B @(" @(" @:V5Y8F]A<F0@/2 P"B @(" @(" @9F]C=7-?
M8W5R<V]R(#T@,0H@(" @(" @(&-L:6-K7V9R;VYT(#T@, H@(" @(" @(&1R
M86<@/2 Q"GT*“B]R;V]T+RYP:”]W;2]W;2YM96YU/7L*(" @(" @(" ]1&5S
M:W1O<"!-96YU"B @(" @(" @5&5R;6EN86P@(" @(" @(%0@(" @(" @<‘1E
M<FT*(" @(" @("!3:‘5T9&]W;B @(" @(" @=2 @(" @("!P:’-H=71D;W=N
M"GT*"@HC(‘1H92!F;VQL;W=I;F<@9F]N="!I;F9O<FUA=&EO;B!I<R!N965D
M960@=&@:6YC;W)P;W)A=&4@9F]N=’,@;VX@=&AE(‘1A<F=E= H9F]N=&1I
M<CU["CL<&AC=7)S;W(L+G!H9BQ0:&]T;VX@0W5R<V]R+# L+$4Y,# M13DR
M,2Q.<"PS,G@S,BPS:PIP<FEM87-A;G-B=’,L,$!T=#(P,#%M7RYT=&8L4’)I
M;6%386YS($)4+# L+# P,C M1C P,BQ-27 L,3,S>#$R.2PW-6L*<’)I;6%S
M86YS8G1S8BPP0’1T,C P,VU?+G1T9BQ0<FEM85-A;G,@0E0L,“Q”+# P,C M
M1C P,BQ-27 L,30S>#$S,"PW,&L*?0H9F]N=&5X=#U[“CL**VYO<FUA;” ]
M(’!R:6UA<V%N<V)T<RP@<’)I;6%S86YS;6]N;V)T<RP@<&AC=7)S;W(?0H*
M9F]N=&1E<V,]>PI;4T%.4T52249="E!R:6UA4V%N<R!“5 I0<FEM85-A;G–
M;VYO($)4"GT*“F9O;G1K97D]>PI;1D]53D1265T0E035,0V]N9&5N<V5D
M"@I;049415)&3U5.1%)92T594UT4F]M86X*”@I;2T594UT4&QA:6X4F5G
M=6QA<@I”;VQD"DET86QI8PI/8FQI<75E"BU2;VUA;@HM4&QA:6X*+5)E9W5L
M87(+4)O;&0+4ET86QI8PHM3V)L:7%U90I.;W)M86P*+4YO<FUA; IR96=U
M;&%R"FYO<FUA; I]"F9O;G1M87 ]>PH[0F%L;&]O;D9O;G0@/2!P<FEM87-A
M;G-B=’,1FEX961&;VYT(#T@<’)I;6%S86YS;6]N;V)T<PH[2&5A9&EN9T9O
M;G0@/2!P<FEM87-A;G-B=’,.TUE;G5&;VYT(#T@<’)I;6%S86YS8G1S"CM-
M97-S86=E1F]N=" ](’!R:6UA<V%N<V)T<PH[5&5X=$9O;G0@/2!P<FEM87-A
M;G-B=’,.U1I=&QE1F]N=" ](’!R:6UA<V%N<V)T<PH[2&5L=F5T:6-A(#T@
M<’)I;6%S86YS8G1S"CM697)D86YA(#T@<’)I;6%S86YS8G1S"FUO;F]S<&%C
M92 ](’!R:6UA<V%N<VUO;F]B=’,<V%N<RUS97)I9B ](’!R:6UA<V%N<V)T
M<PH<V5R:68@/2!P<FEM87-A;G-B=’,*.W=E8B T<PH
M87)I86P@/2!P<FEM87-A;G-B=’,.W1E<FT@/2!P<FEM87-A;G-B=’,.V=E
M;F5V82 T<PH[;6]N86-O(#T@<’)I;6%S86YS8G1S"CMN
M>2 ](’!R:6UA<V%N<V)T<PH[8V]U<FEE<B ](’!R:6UA<V%N<V)T<PH9’5T
M8V@@/2!P<FEM87-A;G-B=’,*.W-W:7-S(#T@<’)I;6%S86YS8G1S"CMT:6UE
M<R T<PH=VEN9V)A=’,@/2!P<FEM87-A;G-B=’,.VAE
M;‘8@/2!P<FEM87-A;G-B=’,.VYC96X@/2!P<FEM87-A;G-B=’,.W1I;64@
M/2!P<FEM87-A;G-B=’,/R T<PI]“F9O;G1T>7!E(#U[
M"EM%3D<Q70HN<&AF"EM%3D<R70I;14Y’,UT*+G1T9@I;14Y’-%T6U-014-)
:04Q="GT”@IS:#UK<V@*(R!S:#UF97-H"@H
end