Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Deploying and running MME suite on QNX neutrino target: Page 1 of 2 (50 Items)
   
Deploying and running MME suite on QNX neutrino target  
Hi,

I am able to compile the MME source code, but confused how to run on the target.

I looked at the quick-start guide, it details the procedure to run on the desktop target. I want to actually run this on
 the iMX-35 target.
I compiled iMX-35 BSP and able to run the example application on the target. Now I want to run the MME suite (that I 
built) on the iMX-35 target. How do I proceed from now?


my override file (used for MME build) is below
qconf-override.mk
********
USE_INSTALL_ROOT=1
INSTALL_ROOT_nto=D:/home/patnaik/qnx/multimedia/stage
VERSION_REL=6.4.0


Regards,
Venkat
Re: Deploying and running MME suite on QNX neutrino target  
On Wed, 15 Apr 2009, Venkatarao Patnaik Balivada wrote:

>Hi,
>
>I am able to compile the MME source code, but confused how to run on the
>target.
>
>I looked at the quick-start guide, it details the procedure to run on the
>desktop target. I want to actually run this on the iMX-35 target. I
>compiled iMX-35 BSP and able to run the example application on the target.
>Now I want to run the MME suite (that I built) on the iMX-35 target. How
>do I proceed from now?

The elements that you build D:/home/patnaik/qnx/multimedia/stage need to be
included/accessable to your iMX-35 target system.

The steps in the quick start guide should still be relevant then. Can you
provide more details on what you've tried and what you haven't been able to
get working when trying to setup the target?

Thanks,

Peter

>
>
>my override file (used for MME build) is below
>qconf-override.mk
>********
>USE_INSTALL_ROOT=1
>INSTALL_ROOT_nto=D:/home/patnaik/qnx/multimedia/stage
>VERSION_REL=6.4.0
>
>
>Regards,
>Venkat
>
>_______________________________________________
>General
>http://community.qnx.com/sf/go/post27056
>
>
Re: Deploying and running MME suite on QNX neutrino target  
I have not trying anything yet, because it was not clear to me.

Do you mean to say, whole directory tree under xxx/stage should be included in OS image?
Can you suggest how to include this? I am using coomandline to build OS image

BTW, in the quick start guide, there is installer mentioned, mmedia-core-1.1.0-nnnnnnnnnnn-nto.sh. Does it copy files 
from Host to target?
Where to download this from, I couldn't find this in multimedia project downloads.

Regards,
Venkat
Re: Deploying and running MME suite on QNX neutrino target  
On Wed, 15 Apr 2009, Venkatarao Patnaik Balivada wrote:

>I have not trying anything yet, because it was not clear to me.
>
>Do you mean to say, whole directory tree under xxx/stage should be
>included in OS image? Can you suggest how to include this? I am using
>coomandline to build OS image

A start would be that you'll need parts of stage/armle made available to
the target as well as some of the config files, sql file, etc...

>
>BTW, in the quick start guide, there is installer mentioned,
>mmedia-core-1.1.0-nnnnnnnnnnn-nto.sh. Does it copy files from Host to
>target? Where to download this from, I couldn't find this in multimedia
>project downloads.

The quick start guide was written for the installers in mind. What is
posted on the down load site is similar but not wrapped.

 patch-630SP2-0315-mmedia-03-11-1854.tar (in the latest posting) would
correspond to the mmedia-core-1.1.0-nnnnnnnnnnn-nto.sh in this case.

Peter

>
>Regards,
>Venkat
>
>_______________________________________________
>General
>http://community.qnx.com/sf/go/post27071
>
>
Re: Deploying and running MME suite on QNX neutrino target  
Thanks Peter.

What is the procedure to include them in the OS image? If not to be included in the OS image, how should I make them 
available to the target?
Is there any other easier way to install them onto the target? 
Re: Deploying and running MME suite on QNX neutrino target  
Hi Peter,

Should I update the binaries in the Host target (build machine), and include them in the OS image build?
Please suggest the procedure how to get them onto the target?
Re: Deploying and running MME suite on QNX neutrino target  
I will try the procedure that is used to install the patch*.tar. Get back if there are any issues.
Re: Deploying and running MME suite on QNX neutrino target  
On Thu, 16 Apr 2009, Venkatarao Patnaik Balivada wrote:

>Thanks Peter.
>
>What is the procedure to include them in the OS image? If not to be
>included in the OS image, how should I make them available to the target?
>Is there any other easier way to install them onto the target?

You could have your target nfs mount the files from your host system and
initially get things running.


Essentially you'll need the following on your target and any of the
required libs

io-fs-media: required for tmpfs and any media file systems
-> number of lib/dll/iofs* pieces associated with this as well

qdb
-> would need the base sql definitions as well
-> look at qdb.cfg as this file will set expectations on path on where to
find the *.sql files and where the database should be kept. If backup are
to be used, you'll need to have directories for that as well

io-media-generic
-> libs from lib/dll/mmedia

mme-generic
-> dynamically linked so it will need some of the dll's from <cpu>/usr/lib
as well

qdbc and mmecli are useful sample applications to have on your target to
determine if you have things setup up correctly and to try various simple
commands.


This is assuming that you have your target setup with appropriate usb and
audio support which should be outlined in the BSP documentation that you're
working with.

I raised a PR to get a target quick start guide created as well that will
outline the min set of files to add to a std bsp to get simple media
services running.

Inclusion and set of the above should allow you to start performing simple
playback and get on your way.

Hope this helps some.

Peter

>
>_______________________________________________
>General
>http://community.qnx.com/sf/go/post27165
>
>
Re: Deploying and running MME suite on QNX neutrino target  
Hi Peter,

Now my problem is to create directories, it doesn't allow me to create directories in root directory "/". I tried with "
su", chmod etc, it gives error with every command saying "Function not implemented".  I have included all these binaries
 in the image and available on the target. What is the minimum OS configuration required to do all this MME setup to 
work?

I am finding it difficult to include each utility manually in the image.Is there any easy way to select minimum OS 
configuration required to load? OR suggest me what all I need to do to create directories etc and all the procedure 
given in the "quick-start" guide to work?
Re: Deploying and running MME suite on QNX neutrino target  
Hi Peter,

I am able to access xxx/stage  files by CIFS mount, It is able to access binaries after specifying the paths in PATH and
 LD_LIBRARY_PATH.
Now, my problem is not able to create directories on the target's root("/"), for example
mkdir  /db gives following error

mkdir: /db: Function not implemented

Then I tried to modify directory permissions by
chmod 775 /    this again gives following error

chmod: changing permission of / : Function not implemented

How to proceed?
Re: Deploying and running MME suite on QNX neutrino target  
On Fri, 17 Apr 2009, Venkatarao Patnaik Balivada wrote:

>Hi Peter,
>
>I am able to access xxx/stage files by CIFS mount, It is able to access
>binaries after specifying the paths in PATH and LD_LIBRARY_PATH. Now, my
>problem is not able to create directories on the target's root("/"), for
>example mkdir /db gives following error
>
>mkdir: /db: Function not implemented
>
>Then I tried to modify directory permissions by
>chmod 775 /    this again gives following error
>
>chmod: changing permission of / : Function not implemented
>
>How to proceed?

Hello Venkatarao,

See my last reply about establishing a read/write access for your target.

Peter
Re: Deploying and running MME suite on QNX neutrino target  
On Fri, 17 Apr 2009, Venkatarao Patnaik Balivada wrote:

>Hi Peter,
>
>Now my problem is to create directories, it doesn't allow me to create
>directories in root directory "/". I tried with "su", chmod etc, it gives
>error with every command saying "Function not implemented".  I have
>included all these binaries in the image and available on the target. What
>is the minimum OS configuration required to do all this MME setup to work?

The root directory on your target may only be a presentation of the image
filesystem (ie a view of the contents of what you put in the image) so that
it would be read only.

In order to create that you'll need to present a read/write file system
which could be provided by someline like devf (flash based), devb (io-blk
based) for persistent of io-fs/tmpfs for a ram based file system.

>
>I am finding it difficult to include each utility manually in the image.Is
>there any easy way to select minimum OS configuration required to load? OR
>suggest me what all I need to do to create directories etc and all the
>procedure given in the "quick-start" guide to work?

We're working on a better document to solve the second half of your
question.

Peter

>
>_______________________________________________
>General
>http://community.qnx.com/sf/go/post27321
>
>
Re: Deploying and running MME suite on QNX neutrino target  
Hi Peter,

It is really big task for me how to do all this. Can you specify how to replace the image file system with R/W RAM or 
flash file system?
Re: Deploying and running MME suite on QNX neutrino target  
On Fri, 17 Apr 2009, Venkatarao Patnaik Balivada wrote:

>Hi Peter,
>
>It is really big task for me how to do all this. Can you specify how to
>replace the image file system with R/W RAM or flash file system?

THe image filesystem is  something that you'll build on.

For example:

io-fs-media -dtmpfs

Will create /fs/tmpfs which will be read write for you.

If you had a block device you can have it mount a / which would allow you
to read/write to /

Thanks,

Peter

>
>
>_______________________________________________
>General
>http://community.qnx.com/sf/go/post27332
>
>
Re: Deploying and running MME suite on QNX neutrino target  
Hi Peter,

I am using iMX-35 board. This has nand flash, I can mount this in "/"?

"/" already exists in IFS, it will not give error? I will try this

Sorry for troubling you with basic questions

Regards,
Venkat
Re: Deploying and running MME suite on QNX neutrino target  
Hi Peter,

Thanks for your help. I am able to mount Nand flash in the "/" and able to create directories.
Now I will follow the quick start guide to try MME.
Re: Deploying and running MME suite on QNX neutrino target  
On Fri, 17 Apr 2009, Venkatarao Patnaik Balivada wrote:

>Hi Peter,
>
>Thanks for your help. I am able to mount Nand flash in the "/" and able to
>create directories. Now I will follow the quick start guide to try MME.

Okay. Let us know if you have any further questions and we can try and
clear things up.

Thanks,

Peter

>
>_______________________________________________
>General
>http://community.qnx.com/sf/go/post27342
>
>
Re: Deploying and running MME suite on QNX neutrino target  
Hi Peter,

I was able to start all commands mentioned in the quick-start guide.
I have put some mp3 files in /media/drive. If I run QDB query, it doesn't find

qdbc -d/dev/qdb/mme "select fid,msid,filename from library;"
Empty result set

Re: Deploying and running MME suite on QNX neutrino target  
On Fri, 17 Apr 2009, Venkatarao Patnaik Balivada wrote:

>Hi Peter,
>
>I was able to start all commands mentioned in the quick-start guide.
>I have put some mp3 files in /media/drive. If I run QDB query, it doesn't find
>
>qdbc -d/dev/qdb/mme "select fid,msid,filename from library;"
>Empty result set


qdbc -dmme "select * from mediastores"

-> does this show that you have mediastores that were found?

mcd needs to be running on the target to inform the mme of mediastores that
it is interested in.

There is a mcd.conf file that will list the paths/items that it should be
aware of.

The paths in that files, have to be aligned with the entries in the slots
table from sql/mme_data.sql

If you're not running mcd, then the target won't get notifications that the
desired mediastores are available for watching and sync'ing.

If you do have a msid value in the mediastores table for /media/drive then,
if you copied the files in after starting the mme, you might need to force
a resync on the mediastore to see the changed content.

mmecli resync_mediastore <msid # for /media/drive> 7

and then retry your query.

Peter

>
>
>
>_______________________________________________
>General
>http://community.qnx.com/sf/go/post27356
>
>
[Exception in:/common/jsp/associations_post.jsp] An unexpected system error has occurred
Re: Deploying and running MME suite on QNX neutrino target  
Hi Peter,

I have created a directory "/media/drive" and copied some files. It is not actual hard drive, Is that a problem?
If I want to forcifully  play some file in the file system, how to do that?
Re: Deploying and running MME suite on QNX neutrino target  
On Fri, 17 Apr 2009, Venkatarao Patnaik Balivada wrote:

>Hi Peter,
>

>I have created a directory "/media/drive" and copied some files. It is not
>actual hard drive, Is that a problem?

No, its just a matching pathname that it is looking for.


>If I want to forcifully play some file in the file system, how to do that?

For the mme to play anything it has to be sync'd first.

You can use the wave utility to playback a *.wav file to see that audio is
setup properly on your target. This is independent of the aviage software
(but you'd have to make it avaiable from your host system to the target)

ie:

media5200-1# wave /media/drive/wav/test.wav
SampleRate = 22050, Channels = 2, SampleBits = 8
Format A-Law
Frag Size 1024
Rate 22050
Mixer Pcm Group [PCM Subchannel]
media5200-1#

Can you include the output of the commands that you're trying and perhaps
the output of sloginfo to provide more information about what is failing on
your target?



also qdbc -dmme "select * from mediastores" to see that something was found
that could provide media to you.

Thanks,

Peter


>
>_______________________________________________
>General
>http://community.qnx.com/sf/go/post27365
>
>
Re: Deploying and running MME suite on QNX neutrino target  
On Fri, 17 Apr 2009, Venkatarao Patnaik Balivada wrote:

>Hi Peter,
>
>I have created a directory "/media/drive" and copied some files. It is not
>actual hard drive, Is that a problem? If I want to forcifully play some
>file in the file system, how to do that?

Another method that you can use to try and see that you have all the
required pieces in place is to try playback without sync using the explore
interface.

mmexplore is a sample application that lets you serach an attached
mediastore and locate a track that you want to play. ie:

imx31ads-2# mmexplore

MME Media Store eXplorer Example
h               Show this information.
m <n>           Select media store ID <n>.
e <n>           Explore item indexed as <n>.
f "none|pass|block [<regex>]" Filter; pass or block matching regular
expression.
n <path>        Explore item named <path>.
b               Go up to parent item.
o <file>        Output display file; 'none', 'stdout' or custom (default
stdout).
p [<n>]         Play folder or file index <n>.
r               Redisplay current view.
s <sort>        Sort items 'none' (default), 'filename', 'name' (requires
metadata).
d <type>        Set metaData type 'all', 'none' or 'name' (default).
g 0|1|2         Get flags; 1 means resolve playlists directly, 2 means
don't resolve or character convert.
q               Quit.
w <n>           Set window size.


Media Stores:
Rows: 1  Cols: 3
Names:  +msid+name+mountpath+
00000:  |1|USB|/fs/usb0|

m 1
Exploring media store ID 1.
Item '' has 9 child items.
  1 D  <unknown>                                /xxx_delete_xxx
  2 D  <unknown>                                /M4A
  3 D  <unknown>                                /Artwork
  4 D  <unknown>                                /wav
  5 P  <unknown>                                /root_srm_playlist.m3u
  6 D  <unknown>                                /wma
  7 D  <unknown>                                /srm_playlist
  8 D  <unknown>                                /mp3
  9 D  <unknown>                                /Benchmark
Collected 9 items in   0.020 seconds.
e 4
Entering item "/wav" (offset 4).
Item '/wav' has 29 child items.
Display range (x,y) or all (a) or none (n)?
0,5
Displaying all items from start to item 5.
  1 F  <unknown>
/wav/CBR_NBIT_128_MONO_22050.wav
  2 F  <unknown>                                /wav/test.wav
  3 F  <unknown>
/wav/THX_16bit_mono_signed.wav
  4 F  <unknown>
/wav/THX_16bit_stereo_signed.wav
  5 F  <unknown>
/wav/THX_8bit_mono_unsigned.wav
Collected 5 items in   0.055 seconds.
p 2
Playing folder "/wav" item 2.


Check the documentation for additional information on this sample
application.

This all relies on the fact that the earlier attempt to play the wav file
directly thru the wave utility worked an io-audio has been correctly
configured on your target board.

Peter

>
>_______________________________________________
>General
>http://community.qnx.com/sf/go/post27365
>
>
Re: Deploying and running MME suite on QNX neutrino target  
Hi Peter,

It is not able to find any sound files. I have some files in, /media/drive
# ls /media/drive/
BA_MW_D.264        Fools.wav          sine_1000.mp3
#
Please note that /media/drive is created by me, it is not any hard drive mounted.

Please see the "mmexplore" output, it doesn't come out


#mmexplore

------------

e <n>           Explore item indexed as <n>.
f "none|pass|block [<regex>]" Filter; pass or block matching regular expression.

n <path>        Explore item named <path>.
b               Go up to parent item.
o <file>        Output display file; 'none', 'stdout' or custom (default stdout)
.
p [<n>]         Play folder or file index <n>.
r               Redisplay current view.
s <sort>        Sort items 'none' (default), 'filename', 'name' (requires metada
ta).
d <type>        Set metaData type 'all', 'none' or 'name' (default).
g 0|1|2         Get flags; 1 means resolve playlists directly, 2 means don't res
olve or character convert.
q               Quit.
w <n>           Set window size.


Media Stores:
Rows: 1  Cols: 3
Names:  +msid+name+mountpath+
00000:  |1|HardDrive|/media/drive|



Re: Deploying and running MME suite on QNX neutrino target  
Hi Peter,

I am not able to play WAV files also. I have started audio drivers.

# wave /tmp/Fools.wav
device open: No such file or directory

See the pidin output also

# pidin

     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  10r 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                           
       4   4 proc/boot/pipe      10r RECEIVE     1                           
       5   1 proc/boot/i2c-mx35  21r RECEIVE     1                           
       6   1 /boot/io-pkt-v4-hc  21r SIGWAITINFO                             
       6   2 /boot/io-pkt-v4-hc  21r RECEIVE     1                           
       6   3 /boot/io-pkt-v4-hc  21r RECEIVE     16                          
    4103   1 proc/boot/fs-cifs   10r RECEIVE     1                           
    4103   2 proc/boot/fs-cifs   10r RECEIVE     1                           
    4103   3 proc/boot/fs-cifs   10r RECEIVE     1                           
    4103   4 proc/boot/fs-cifs   10r RECEIVE     1                           
   20488   1 -etfs-3dsmx35_2048  10r RECEIVE     1                           
   20488   2 -etfs-3dsmx35_2048   8r NANOSLEEP                               
   20489   1 proc/boot/io-audio  10r SIGWAITINFO                             
   20489   2 proc/boot/io-audio  10r RECEIVE     1                           
   20489   3 proc/boot/io-audio  10r RECEIVE     1                           
   20489   4 proc/boot/io-audio  10r RECEIVE     1                           
   20490   1 proc/boot/io-audio  10r SIGWAITINFO                             
   20490   2 proc/boot/io-audio  10r RECEIVE     1                           
   20490   3 proc/boot/io-audio  10r RECEIVE     1                           
   20490   4 proc/boot/io-audio  10r RECEIVE     1                           
   20491   1 proc/boot/ksh       10r SIGSUSPEND                              
   77836   1 r/sbin/io-fs-media  24r RECEIVE     1                           
   81933   1 armle/usr/sbin/qdb  10r SIGWAITINFO                             
   81933   2 armle/usr/sbin/qdb  24r RECEIVE     1                           
   81933   3 armle/usr/sbin/qdb  10r RECEIVE     1                           
   81933   4 armle/usr/sbin/qdb  10r RECEIVE     1                           
   81933   5 armle/usr/sbin/qdb  10r RECEIVE     1                           
   81933   6 armle/usr/sbin/qdb  10r RECEIVE     1                           
   81933   7 armle/usr/sbin/qdb  24r RECEIVE     1                           
   81933   8 armle/usr/sbin/qdb  10r RECEIVE     1                           
  118798   1 r/sbin/mme-generic  10r RECEIVE     7                           
  118798   2...
View Full Message
Re: Deploying and running MME suite on QNX neutrino target  
On Mon, 20 Apr 2009, Venkatarao Patnaik Balivada wrote:

>Hi Peter,
>
>I am not able to play WAV files also. I have started audio drivers.
>
># wave /tmp/Fools.wav
>device open: No such file or directory

pidin -p io-audio mem
-> this will show what libraries and drivers were loaded

ls -l /dev/snd
-> show the interfaces that have been created.

Playing via the mme won't work with a std configuration until you can get
the audio driver working.

Thanks,

Peter