The errors you have mentioned ("invalid modules") are because of
mismatch in your Linux kernel and cmemk.ko and dm350mmap.ko module
files. It is not because of your demo apps.

If you have modified your kernel; you need to re-build these modules
(cmemk.ko and dm350mmap.ko) as well. These modules can be built in a
similar fashion as demo apps (i.e. by using "make" command in their
respecting directories).

 

If you change the files in demo apps but do not change their names, then
you can use the same method (using the "make" command) but if you want
to change the name of the files or want to add some new file to the
project, then you have to modify a file called "Makefile" in that
directory (the directory where you are making these changes) to
accommodate these new changes. I'd suggest reading "GNU Make"
documentation in that case.

 

 

 

Thanks,

Arif
Software Manager

Asia Pacific Tech Labs 
AwoX Pte Ltd 
1 International Business Park 
The Synergy, #02-01A 
Tel : +65 6896 6727 (ext 118) 
Fax : +65 6896 6723
Email : [EMAIL PROTECTED] 
Website : www.awox.com

________________________________

From: Pepe Sanchez [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 27, 2008 7:42 PM
To: Mohammad Arif
Cc: [email protected]
Subject: Re: Encode with DM355

 

Hello,

I have used "make" command in "demos" directory. The result is a folder
called 'dvsdk' into my environment.

Then, I have followed instructions from 'encode.txt'. When I type
'./loadmodules.sh' the output is:

                    insmod: error inserting 'cmemk.ko': -1 Invalid
module format
                    ./mapdmaq: 1: Syntax error: word unexpected
(expecting ")")
                    insmod: error inserting 'dm350mmap.ko': -1 Invalid
module format

I don't know what is the problem...

On the other hand, if I want to change the main.c file, How could I
compile the new project? Must I repeat the same steps? Make command?

Thanks




2008/2/27, Mohammad Arif <[EMAIL PROTECTED]>:

Hello,

 

You should use "make" command in "demos" directory. But before that
please make sure that you have modified ~/dvsdk_1_30_00_23/Rules.mk file
to match your environment.

 

If the ~/dvsdk_1_30_00_23/Rules.mk file is correctly matching your
environment, the "make" command should be able to build demo apps
(encode and decode) for you by compiling various files.

 

 

Thanks,

Arif
Software Manager

Asia Pacific Tech Labs 
AwoX Pte Ltd 
Website : www.awox.com

________________________________

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Pepe Sanchez
Sent: Wednesday, February 27, 2008 5:14 PM
To: [email protected]
Subject: Encode with DM355

 

Hello
 
I am trying to compile TI's examples with my DVEVM355.
 
I haven't any problem when I make
 
 
arm_v5t_le-gcc hello.c -o hello
 
and I can see 
 
Buongiorno DaVinci!.
 
 
However, when I try change and compile the example from
'~/dvsdk_1_30_00_23/demos/encode', I obtain some mistakes 
 
I key : arm_v5t_le-gcc main.c -o test
 
 
and the output is:
 
________________________________________________________________________
_____
main.c:26:27: video/dm355fb.h: No existe el fichero  directorio
main.c:29:21: xdc/std.h: No existe el fichero  directorio
main.c:30:32: ti/sdo/ce/trace/gt.h: No existe el fichero  directorio
main.c:31:33: ti/sdo/ce/CERuntime.h: No existe el fichero  directorio
main.c:32:45: ti/sdo/ce/utils/trace/TraceUtil.h: No existe el fichero
directorio
main.c:35:24: rendezvous.h: No existe el fichero  directorio
main.c:36:22: fifoutil.h: No existe el fichero  directorio
main.c:37:19: pause.h: No existe el fichero  directorio
In file included from main.c:39:
display.h:32: error: error de decodificacin antes de "Rendezvous_Handle"
display.h:32: aviso: no hay punto y coma al final del struct o union
display.h:33: aviso: la definicin de datos no tiene tipo o clase de
almacenamiento
display.h:34: error: error de decodificacin antes de "hRendezvousPrime"
display.h:34: aviso: la definicin de datos no tiene tipo o clase de
almacenamiento
display.h:35: error: error de decodificacin antes de "hPause"
display.h:35: aviso: la definicin de datos no tiene tipo o clase de
almacenamiento
display.h:36: error: error de decodificacin antes de "outFifo"
display.h:36: aviso: la definicin de datos no tiene tipo o clase de
almacenamiento
display.h:37: error: error de decodificacin antes de "inFifo"
display.h:37: aviso: la definicin de datos no tiene tipo o clase de
almacenamiento
display.h:38: aviso: la definicin de datos no tiene tipo o clase de
almacenamiento
 
How I can add files like  dm355fb.h, xdc/std.h ... to my proyect?
 
If i compile 'main.c' I'll obtain the binary file to load in the target?
or I may compile all files in the encode folder?
 
Thank you very much for your answer.

 

_______________________________________________
Davinci-linux-open-source mailing list
[email protected]
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to