Failed to run dsplink sample

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Failed to run dsplink sample

周威廷
Hi all,

    I am trying to run the dsplink sample program (loop) on DM6446
platform.  I followed the steps
from "TMS320DM6446 DVEVM v2.0 Getting Started Guide", but it seemed
something  wrong.

I haven't found anything useful to solve the problem.

Could anyone help me to solve this problem?

My development environment : Ubuntu 9.04

Here is the package I used :

* bios_setuplinux_5_33_03.bin
* dvsdk_setuplinux_2_00_00_22.bin (include dsplink-1_61_03-prebuilt package)
* TI-C6x-CGT-v6.0.21.1.bin
* mvl_5_0_0801921_demo_sys_setuplinux.bin
* mvl_5_0_0_demo_lsp_setuplinux_02_00_00_140.bin

This is the message I got :

root@192.168.1.14:/opt/test# ./loopgpp /opt/test/loop.out 1024 1000 0
=============== Sample Application : LOOP ==========
==== Executing sample for DSP processor Id 0 ====
Entered LOOP_Create ()
Entered PROC_setup ()
        linkCfg [0x0]
Entered DRV_Initialize ()
        drvObj  [0x2fad0]
        arg     [0x0]
Leaving DRV_Initialize ()       status [0x80008008]

Failure: Status:[0x80008008] File:[0x200] Line:[238]
Leaving PROC_setup ()   status [0x80008008]
PROC_setup failed. Status =  [0x80008008]
Leaving LOOP_Create ()
Entered LOOP_Delete ()
Entered CHNL_freeBuffer ()
        procId  [0x0]
        chnlId  [0x0]
        bufArray        [0x2f718]
        numBufs [0x1]
Entered DRV_Invoke ()
        drvObj  [0x0]
        cmdId   [0x6d06]
        arg1    [0xbe8e3c14]
        arg2    [0x0]
Leaving DRV_Invoke ()   status [0x80008002]

Failure: Status:[0x80008002] File:[0x201] Line:[300]
Leaving CHNL_freeBuffer ()      status [0x80008002]
CHNL_freeBuffer () failed (output). Status = [0x80008002]
Entered CHNL_delete ()
        procId  [0x0]
        chnlId  [0x1]
Entered DRV_Invoke ()
        drvObj  [0x0]
        cmdId   [0x6d02]
        arg1    [0xbe8e3c14]
        arg2    [0x0]
Leaving DRV_Invoke ()   status [0x80008002]

Failure: Status:[0x80008002] File:[0x201] Line:[188]
Leaving CHNL_delete ()  status [0x80008002]
CHNL_delete () failed (input). Status = [0x80008002]
Entered CHNL_delete ()
        procId  [0x0]
        chnlId  [0x0]
Entered DRV_Invoke ()
        drvObj  [0x0]
        cmdId   [0x6d02]
        arg1    [0xbe8e3c14]
        arg2    [0x0]
Leaving DRV_Invoke ()   status [0x80008002]

Failure: Status:[0x80008002] File:[0x201] Line:[188]
Leaving CHNL_delete ()  status [0x80008002]
CHNL_delete () failed (output). Status = [0x80008002]
Entered PROC_stop ()
        procId  [0x0]

Failure: Status:[0x80008002] File:[0x200] Line:[1175]
Leaving PROC_stop ()    status [0x80008002]
Entered POOL_close ()
        poolId  [0x0]
Leaving POOL_close ()   status [0x80008000]
Entered PROC_detach ()
        procId  [0x0]

Failure: Status:[0x80008000] File:[0x200] Line:[670]
Leaving PROC_detach ()  status [0x80008000]
Entered PROC_destroy ()

Failure: Status:[0x80008000] File:[0x200] Line:[351]

Failure: Status:[0x80008000] File:[0x200] Line:[435]
Leaving PROC_destroy ()         status [0x80008000]
Leaving LOOP_Delete ()
====================================================


Many thanks,
Wei-Ting

Reply | Threaded
Open this post in threaded view
|

Failed to run dsplink sample

Richard Williams
richard,

Most packages that I have seen end in .deb or something similar, rather than .bin.

Where did you find the .bin archive packages?

BTW:
according to the data you supplied, the first indication of a problem is
in the DRV_initialize function at line 238.
To me, this means the function failed to initialize a device.
Is your development system DM6446 connected to the computer?
Is your setup correctly identifying the 6446 DSP?
Is your connection to the PC from the DM6446 correctly identified in the setup?

R. Williams

---------- Original Message -----------
From: ?P???? <[hidden email]>
To: [hidden email]
Sent: Sun, 1 Nov 2009 20:10:13 +0800
Subject: Failed to run dsplink sample

> Hi all,
>
> ? ?I am trying to run the dsplink sample program (loop) on DM6446
> platform. ?I followed the steps
> from "TMS320DM6446 DVEVM v2.0 Getting Started Guide", but it seemed
> something ?wrong.
>
> I haven't found anything useful to solve the problem.
>
> Could anyone help me to solve this problem?
>
> My development environment : Ubuntu 9.04
>
> Here is the package I used :
>
> * bios_setuplinux_5_33_03.bin
> * dvsdk_setuplinux_2_00_00_22.bin (include dsplink-1_61_03-prebuilt package)
> * TI-C6x-CGT-v6.0.21.1.bin
> * mvl_5_0_0801921_demo_sys_setuplinux.bin
> * mvl_5_0_0_demo_lsp_setuplinux_02_00_00_140.bin
>
> This is the message I got :
>
> root@192.168.1.14:/opt/test# ./loopgpp /opt/test/loop.out 1024 1000 0
> =============== Sample Application : LOOP ==========
> ==== Executing sample for DSP processor Id 0 ====
> Entered LOOP_Create ()
> Entered PROC_setup ()
> ? ? ? ?linkCfg [0x0]
> Entered DRV_Initialize ()
> ? ? ? ?drvObj ?[0x2fad0]
> ? ? ? ?arg ? ? [0x0]
> Leaving DRV_Initialize () ? ? ? status [0x80008008]
>
> Failure: Status:[0x80008008] File:[0x200] Line:[238]
> Leaving PROC_setup () ? status [0x80008008]
> PROC_setup failed. Status = ?[0x80008008]
> Leaving LOOP_Create ()
> Entered LOOP_Delete ()
> Entered CHNL_freeBuffer ()
> ? ? ? ?procId ?[0x0]
> ? ? ? ?chnlId ?[0x0]
> ? ? ? ?bufArray ? ? ? ?[0x2f718]
> ? ? ? ?numBufs [0x1]
> Entered DRV_Invoke ()
> ? ? ? ?drvObj ?[0x0]
> ? ? ? ?cmdId ? [0x6d06]
> ? ? ? ?arg1 ? ?[0xbe8e3c14]
> ? ? ? ?arg2 ? ?[0x0]
> Leaving DRV_Invoke () ? status [0x80008002]
>
> Failure: Status:[0x80008002] File:[0x201] Line:[300]
> Leaving CHNL_freeBuffer () ? ? ?status [0x80008002]
> CHNL_freeBuffer () failed (output). Status = [0x80008002]
> Entered CHNL_delete ()
> ? ? ? ?procId ?[0x0]
> ? ? ? ?chnlId ?[0x1]
> Entered DRV_Invoke ()
> ? ? ? ?drvObj ?[0x0]
> ? ? ? ?cmdId ? [0x6d02]
> ? ? ? ?arg1 ? ?[0xbe8e3c14]
> ? ? ? ?arg2 ? ?[0x0]
> Leaving DRV_Invoke () ? status [0x80008002]
>
> Failure: Status:[0x80008002] File:[0x201] Line:[188]
> Leaving CHNL_delete () ?status [0x80008002]
> CHNL_delete () failed (input). Status = [0x80008002]
> Entered CHNL_delete ()
> ? ? ? ?procId ?[0x0]
> ? ? ? ?chnlId ?[0x0]
> Entered DRV_Invoke ()
> ? ? ? ?drvObj ?[0x0]
> ? ? ? ?cmdId ? [0x6d02]
> ? ? ? ?arg1 ? ?[0xbe8e3c14]
> ? ? ? ?arg2 ? ?[0x0]
> Leaving DRV_Invoke () ? status [0x80008002]
>
> Failure: Status:[0x80008002] File:[0x201] Line:[188]
> Leaving CHNL_delete () ?status [0x80008002]
> CHNL_delete () failed (output). Status = [0x80008002]
> Entered PROC_stop ()
> ? ? ? ?procId ?[0x0]
>
> Failure: Status:[0x80008002] File:[0x200] Line:[1175]
> Leaving PROC_stop () ? ?status [0x80008002]
> Entered POOL_close ()
> ? ? ? ?poolId ?[0x0]
> Leaving POOL_close () ? status [0x80008000]
> Entered PROC_detach ()
> ? ? ? ?procId ?[0x0]
>
> Failure: Status:[0x80008000] File:[0x200] Line:[670]
> Leaving PROC_detach () ?status [0x80008000]
> Entered PROC_destroy ()
>
> Failure: Status:[0x80008000] File:[0x200] Line:[351]
>
> Failure: Status:[0x80008000] File:[0x200] Line:[435]
> Leaving PROC_destroy () ? ? ? ? status [0x80008000]
> Leaving LOOP_Delete ()
> ====================================================
>
> Many thanks,
> Wei-Ting
>
> _______________________________________________
> Davinci-linux-open-source mailing list
> [hidden email]
> http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source 
------- End of Original Message -------
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://linux.omap.com/pipermail/davinci-linux-open-source/attachments/20091101/c441a3a4/attachment.htm
Reply | Threaded
Open this post in threaded view
|

Failed to run dsplink sample

周威廷
Hi,

I found the packages from TI's website :
http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/dvsdk/DVSDK_2_00/latest/index_FDS.html

So where could I get the .deb archive packages?

Is your development system DM6446 connected to the computer?
Yes, I booted the system DM6446 via TFTP and used NFS file system.

Is your setup correctly identifying the 6446 DSP?
I followed the guide to setup system.
It can be specified platform to DM6446 when building a new linux
kernel and rebuilding the DVSDK. I specified it
in these two steps.


I also tried rebuild dsplink module. This is my configure option :

$ perl dsplinkcfg.pl --platform=DAVINCI --nodsp=1
--dspcfg_0=DM6446GEMSHMEM --dspos_0=DSPBIOS5XX  --gppos=MVL5G
--comps=ponslrmc --legacy=1 --trace=1 --DspTskMode=1 --dspdma=1

Is your connection to the PC from the DM6446 correctly identified in the setup?
Yes, the NFS worked.

BTW:
When I executed the "loadmodules.sh" on DM6446. I got the message like this :

==================================================================
root@192.168.1.14:/opt/dvsdk/dm6446# ./loadmodules.sh
CMEMK Error: CMEM phys_start (0x87600000) overlaps kernel (0x80000000
-> 0x87800000)
insmod: error inserting 'cmemk.ko': -1 Invalid parameters
dsplinkk: no version for "struct_module" found: kernel tainted.
DSPLINK Module (1.61.03) created on Date: Apr 16 2009 Time: 18:22:23
==================================================================

It seems that CMEM module is loaded to the wrong position, but if I
change the starting address of
load CMEM module to the address 0x87800000, it still does not work.
Here is the message :

==================================================================
ioremap_nocache(0x87800000, 8388608)=0xc9000000
CMEMK Error: Failed to find a big enough free block
CMEMK Error: alloc_pool failed to get contiguous area of size 1245184
CMEMK Error: Failed to alloc pool of size 1244160 and number of buffers 2
insmod: error inserting 'cmemk.ko': -1 Cannot allocate memory
==================================================================

and what is the meaning of the message "dsplinkk: no version for
"struct_module" found: kernel tainted.".
Is there something wrong with my dsplink module?

Thanks,
Wei-Ting

2009/11/2 Richard Williams <[hidden email]>:

> richard,
>
> Most packages that I have seen end in .deb or something similar, rather than
> .bin.
>
> Where did you find the .bin archive packages?
>
> BTW:
> according to the data you supplied, the first indication of a problem is
> in the DRV_initialize function at line 238.
> To me, this means the function failed to initialize a device.
> Is your development system DM6446 connected to the computer?
> Is your setup correctly identifying the 6446 DSP?
> Is your connection to the PC from the DM6446 correctly identified in the
> setup?
>
>
> R. Williams
>
>
>
> ---------- Original Message -----------
> From: ?P???? <[hidden email]>
> To: [hidden email]
> Sent: Sun, 1 Nov 2009 20:10:13 +0800
> Subject: Failed to run dsplink sample
>
>> Hi all,
>>
>> ? ?I am trying to run the dsplink sample program (loop) on DM6446
>> platform. ?I followed the steps
>> from "TMS320DM6446 DVEVM v2.0 Getting Started Guide", but it seemed
>> something ?wrong.
>>
>> I haven't found anything useful to solve the problem.
>>
>> Could anyone help me to solve this problem?
>>
>> My development environment : Ubuntu 9.04
>>
>> Here is the package I used :
>>
>> * bios_setuplinux_5_33_03.bin
>> * dvsdk_setuplinux_2_00_00_22.bin (include dsplink-1_61_03-prebuilt
>> package)
>> * TI-C6x-CGT-v6.0.21.1.bin
>> * mvl_5_0_0801921_demo_sys_setuplinux.bin
>> * mvl_5_0_0_demo_lsp_setuplinux_02_00_00_140.bin
>>
>> This is the message I got :
>>
>> root@192.168.1.14:/opt/test# ./loopgpp /opt/test/loop.out 1024 1000 0
>> =============== Sample Application : LOOP ==========
>> ==== Executing sample for DSP processor Id 0 ====
>> Entered LOOP_Create ()
>> Entered PROC_setup ()
>> ? ? ? ?linkCfg [0x0]
>> Entered DRV_Initialize ()
>> ? ? ? ?drvObj ?[0x2fad0]
>> ? ? ? ?arg ? ? [0x0]
>> Leaving DRV_Initialize () ? ? ? status [0x80008008]
>>
>> Failure: Status:[0x80008008] File:[0x200] Line:[238]
>> Leaving PROC_setup () ? status [0x80008008]
>> PROC_setup failed. Status = ?[0x80008008]
>> Leaving LOOP_Create ()
>> Entered LOOP_Delete ()
>> Entered CHNL_freeBuffer ()
>> ? ? ? ?procId ?[0x0]
>> ? ? ? ?chnlId ?[0x0]
>> ? ? ? ?bufArray ? ? ? ?[0x2f718]
>> ? ? ? ?numBufs [0x1]
>> Entered DRV_Invoke ()
>> ? ? ? ?drvObj ?[0x0]
>> ? ? ? ?cmdId ? [0x6d06]
>> ? ? ? ?arg1 ? ?[0xbe8e3c14]
>> ? ? ? ?arg2 ? ?[0x0]
>> Leaving DRV_Invoke () ? status [0x80008002]
>>
>> Failure: Status:[0x80008002] File:[0x201] Line:[300]
>> Leaving CHNL_freeBuffer () ? ? ?status [0x80008002]
>> CHNL_freeBuffer () failed (output). Status = [0x80008002]
>> Entered CHNL_delete ()
>> ? ? ? ?procId ?[0x0]
>> ? ? ? ?chnlId ?[0x1]
>> Entered DRV_Invoke ()
>> ? ? ? ?drvObj ?[0x0]
>> ? ? ? ?cmdId ? [0x6d02]
>> ? ? ? ?arg1 ? ?[0xbe8e3c14]
>> ? ? ? ?arg2 ? ?[0x0]
>> Leaving DRV_Invoke () ? status [0x80008002]
>>
>> Failure: Status:[0x80008002] File:[0x201] Line:[188]
>> Leaving CHNL_delete () ?status [0x80008002]
>> CHNL_delete () failed (input). Status = [0x80008002]
>> Entered CHNL_delete ()
>> ? ? ? ?procId ?[0x0]
>> ? ? ? ?chnlId ?[0x0]
>> Entered DRV_Invoke ()
>> ? ? ? ?drvObj ?[0x0]
>> ? ? ? ?cmdId ? [0x6d02]
>> ? ? ? ?arg1 ? ?[0xbe8e3c14]
>> ? ? ? ?arg2 ? ?[0x0]
>> Leaving DRV_Invoke () ? status [0x80008002]
>>
>> Failure: Status:[0x80008002] File:[0x201] Line:[188]
>> Leaving CHNL_delete () ?status [0x80008002]
>> CHNL_delete () failed (output). Status = [0x80008002]
>> Entered PROC_stop ()
>> ? ? ? ?procId ?[0x0]
>>
>> Failure: Status:[0x80008002] File:[0x200] Line:[1175]
>> Leaving PROC_stop () ? ?status [0x80008002]
>> Entered POOL_close ()
>> ? ? ? ?poolId ?[0x0]
>> Leaving POOL_close () ? status [0x80008000]
>> Entered PROC_detach ()
>> ? ? ? ?procId ?[0x0]
>>
>> Failure: Status:[0x80008000] File:[0x200] Line:[670]
>> Leaving PROC_detach () ?status [0x80008000]
>> Entered PROC_destroy ()
>>
>> Failure: Status:[0x80008000] File:[0x200] Line:[351]
>>
>> Failure: Status:[0x80008000] File:[0x200] Line:[435]
>> Leaving PROC_destroy () ? ? ? ? status [0x80008000]
>> Leaving LOOP_Delete ()
>> ====================================================
>>
>> Many thanks,
>> Wei-Ting
>>
>> _______________________________________________
>> Davinci-linux-open-source mailing list
>> [hidden email]
>> http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
> ------- End of Original Message -------
>

Reply | Threaded
Open this post in threaded view
|

Failed to run dsplink sample

Uppal, Deepali
Wei-Ting:



Please have a look at http://wiki.davincidsp.com/index.php/Changing_DSPLink_Memory_Map Have you set mem variable at bootargs?



Also, there is no problem with inserting the DSPLink module. The warning is coming because DSPLink is not using kernel build system to generate kernel module.



Thanks and Regards,

Deepali Uppal

DSP/BIOS Link

Platform Support Products



-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of ???
Sent: Monday, November 02, 2009 11:05 AM
To: Richard Williams
Cc: [hidden email]
Subject: Re: Failed to run dsplink sample



Hi,



I found the packages from TI's website :

http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/dvsdk/DVSDK_2_00/latest/index_FDS.html



So where could I get the .deb archive packages?



Is your development system DM6446 connected to the computer?

Yes, I booted the system DM6446 via TFTP and used NFS file system.



Is your setup correctly identifying the 6446 DSP?

I followed the guide to setup system.

It can be specified platform to DM6446 when building a new linux

kernel and rebuilding the DVSDK. I specified it

in these two steps.





I also tried rebuild dsplink module. This is my configure option :



$ perl dsplinkcfg.pl --platform=DAVINCI --nodsp=1

--dspcfg_0=DM6446GEMSHMEM --dspos_0=DSPBIOS5XX  --gppos=MVL5G

--comps=ponslrmc --legacy=1 --trace=1 --DspTskMode=1 --dspdma=1



Is your connection to the PC from the DM6446 correctly identified in the setup?

Yes, the NFS worked.



BTW:

When I executed the "loadmodules.sh" on DM6446. I got the message like this :



==================================================================

root@192.168.1.14:/opt/dvsdk/dm6446# ./loadmodules.sh

CMEMK Error: CMEM phys_start (0x87600000) overlaps kernel (0x80000000

-> 0x87800000)

insmod: error inserting 'cmemk.ko': -1 Invalid parameters

dsplinkk: no version for "struct_module" found: kernel tainted.

DSPLINK Module (1.61.03) created on Date: Apr 16 2009 Time: 18:22:23

==================================================================



It seems that CMEM module is loaded to the wrong position, but if I

change the starting address of

load CMEM module to the address 0x87800000, it still does not work.

Here is the message :



==================================================================

ioremap_nocache(0x87800000, 8388608)=0xc9000000

CMEMK Error: Failed to find a big enough free block

CMEMK Error: alloc_pool failed to get contiguous area of size 1245184

CMEMK Error: Failed to alloc pool of size 1244160 and number of buffers 2

insmod: error inserting 'cmemk.ko': -1 Cannot allocate memory

==================================================================



and what is the meaning of the message "dsplinkk: no version for

"struct_module" found: kernel tainted.".

Is there something wrong with my dsplink module?



Thanks,

Wei-Ting



2009/11/2 Richard Williams <[hidden email]>:

> richard,

>

> Most packages that I have seen end in .deb or something similar, rather than

> .bin.

>

> Where did you find the .bin archive packages?

>

> BTW:

> according to the data you supplied, the first indication of a problem is

> in the DRV_initialize function at line 238.

> To me, this means the function failed to initialize a device.

> Is your development system DM6446 connected to the computer?

> Is your setup correctly identifying the 6446 DSP?

> Is your connection to the PC from the DM6446 correctly identified in the

> setup?

>

>

> R. Williams

>

>

>

> ---------- Original Message -----------

> From: ?P???? <[hidden email]>

> To: [hidden email]

> Sent: Sun, 1 Nov 2009 20:10:13 +0800

> Subject: Failed to run dsplink sample

>

>> Hi all,

>>

>>    I am trying to run the dsplink sample program (loop) on DM6446

>> platform.  I followed the steps

>> from "TMS320DM6446 DVEVM v2.0 Getting Started Guide", but it seemed

>> something  wrong.

>>

>> I haven't found anything useful to solve the problem.

>>

>> Could anyone help me to solve this problem?

>>

>> My development environment : Ubuntu 9.04

>>

>> Here is the package I used :

>>

>> * bios_setuplinux_5_33_03.bin

>> * dvsdk_setuplinux_2_00_00_22.bin (include dsplink-1_61_03-prebuilt

>> package)

>> * TI-C6x-CGT-v6.0.21.1.bin

>> * mvl_5_0_0801921_demo_sys_setuplinux.bin

>> * mvl_5_0_0_demo_lsp_setuplinux_02_00_00_140.bin

>>

>> This is the message I got :

>>

>> root@192.168.1.14:/opt/test# ./loopgpp /opt/test/loop.out 1024 1000 0

>> =============== Sample Application : LOOP ==========

>> ==== Executing sample for DSP processor Id 0 ====

>> Entered LOOP_Create ()

>> Entered PROC_setup ()

>>        linkCfg [0x0]

>> Entered DRV_Initialize ()

>>        drvObj  [0x2fad0]

>>        arg     [0x0]

>> Leaving DRV_Initialize ()       status [0x80008008]

>>

>> Failure: Status:[0x80008008] File:[0x200] Line:[238]

>> Leaving PROC_setup ()   status [0x80008008]

>> PROC_setup failed. Status =  [0x80008008]

>> Leaving LOOP_Create ()

>> Entered LOOP_Delete ()

>> Entered CHNL_freeBuffer ()

>>        procId  [0x0]

>>        chnlId  [0x0]

>>        bufArray        [0x2f718]

>>        numBufs [0x1]

>> Entered DRV_Invoke ()

>>        drvObj  [0x0]

>>        cmdId   [0x6d06]

>>        arg1    [0xbe8e3c14]

>>        arg2    [0x0]

>> Leaving DRV_Invoke ()   status [0x80008002]

>>

>> Failure: Status:[0x80008002] File:[0x201] Line:[300]

>> Leaving CHNL_freeBuffer ()      status [0x80008002]

>> CHNL_freeBuffer () failed (output). Status = [0x80008002]

>> Entered CHNL_delete ()

>>        procId  [0x0]

>>        chnlId  [0x1]

>> Entered DRV_Invoke ()

>>        drvObj  [0x0]

>>        cmdId   [0x6d02]

>>        arg1    [0xbe8e3c14]

>>        arg2    [0x0]

>> Leaving DRV_Invoke ()   status [0x80008002]

>>

>> Failure: Status:[0x80008002] File:[0x201] Line:[188]

>> Leaving CHNL_delete ()  status [0x80008002]

>> CHNL_delete () failed (input). Status = [0x80008002]

>> Entered CHNL_delete ()

>>        procId  [0x0]

>>        chnlId  [0x0]

>> Entered DRV_Invoke ()

>>        drvObj  [0x0]

>>        cmdId   [0x6d02]

>>        arg1    [0xbe8e3c14]

>>        arg2    [0x0]

>> Leaving DRV_Invoke ()   status [0x80008002]

>>

>> Failure: Status:[0x80008002] File:[0x201] Line:[188]

>> Leaving CHNL_delete ()  status [0x80008002]

>> CHNL_delete () failed (output). Status = [0x80008002]

>> Entered PROC_stop ()

>>        procId  [0x0]

>>

>> Failure: Status:[0x80008002] File:[0x200] Line:[1175]

>> Leaving PROC_stop ()    status [0x80008002]

>> Entered POOL_close ()

>>        poolId  [0x0]

>> Leaving POOL_close ()   status [0x80008000]

>> Entered PROC_detach ()

>>        procId  [0x0]

>>

>> Failure: Status:[0x80008000] File:[0x200] Line:[670]

>> Leaving PROC_detach ()  status [0x80008000]

>> Entered PROC_destroy ()

>>

>> Failure: Status:[0x80008000] File:[0x200] Line:[351]

>>

>> Failure: Status:[0x80008000] File:[0x200] Line:[435]

>> Leaving PROC_destroy ()         status [0x80008000]

>> Leaving LOOP_Delete ()

>> ====================================================

>>

>> Many thanks,

>> Wei-Ting

>>

>> _______________________________________________

>> Davinci-linux-open-source mailing list

>> [hidden email]

>> http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

> ------- End of Original Message -------

>



_______________________________________________

Davinci-linux-open-source mailing list

[hidden email]

http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://linux.omap.com/pipermail/davinci-linux-open-source/attachments/20091102/b1658cee/attachment-0001.htm
Reply | Threaded
Open this post in threaded view
|

Failed to run dsplink sample

Richard Williams
In reply to this post by 周威廷
richard,

Your description indicates that the kernel and/or the dsplink is corrupt.

A careful, complete rebuild seems to be required.

Watch for error messages during the rebuilds.

R. Williams

---------- Original Message -----------
From: [UTF-8?]????????? <[hidden email]>
To: Richard Williams <[hidden email]>
Cc: [hidden email]
Sent: Mon, 2 Nov 2009 13:35:25 +0800
Subject: Re: Failed to run dsplink sample

> Hi,
>
> I found the packages from TI's website :
> http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/dvsdk/DVSDK_2_00/latest/index_FDS.html 
>
> So where could I get the .deb archive [UTF-8?]packages???
>
> Is your development system DM6446 connected to the computer?
> Yes, I booted the system DM6446 via TFTP and used NFS file system.
>
> Is your setup correctly identifying the 6446 DSP?
> I followed the guide to setup system.
> It can be specified platform to DM6446 when building a new linux
> kernel and rebuilding the DVSDK. I specified it
> in these two steps.
>
> I also tried rebuild dsplink module. This is my configure option :
>
> $ perl dsplinkcfg.pl --platform=DAVINCI --nodsp=1
> --dspcfg_0=DM6446GEMSHMEM --dspos_0=DSPBIOS5XX ?--gppos=MVL5G
> --comps=ponslrmc --legacy=1 --trace=1 --DspTskMode=1 --dspdma=1
>
> Is your connection to the PC from the DM6446 correctly identified in the setup?
> Yes, the NFS worked.
>
> BTW:
> When I executed the "loadmodules.sh" on DM6446. I got the message like this :
>
> ==================================================================
> root@192.168.1.14:/opt/dvsdk/dm6446# ./loadmodules.sh
> CMEMK Error: CMEM phys_start (0x87600000) overlaps kernel (0x80000000
> -> 0x87800000)
> insmod: error inserting 'cmemk.ko': -1 Invalid parameters
> dsplinkk: no version for "struct_module" found: kernel tainted.
> DSPLINK Module (1.61.03) created on Date: Apr 16 2009 Time: 18:22:23
> ==================================================================
>
> It seems that CMEM module is loaded to the wrong position, but if I
> change the starting address of
> load CMEM module to the address 0x87800000, it still does not work.
> Here is the message :
>
> ==================================================================
> ioremap_nocache(0x87800000, 8388608)=0xc9000000
> CMEMK Error: Failed to find a big enough free block
> CMEMK Error: alloc_pool failed to get contiguous area of size 1245184
> CMEMK Error: Failed to alloc pool of size 1244160 and number of buffers 2
> insmod: error inserting 'cmemk.ko': -1 Cannot allocate memory
> ==================================================================
>
> and what is the meaning of the message "dsplinkk: no version for
> "struct_module" found: kernel tainted.".
> Is there something wrong with my dsplink module?
>
> Thanks,
> Wei-Ting
>
> 2009/11/2 Richard Williams <[hidden email]>:
> > richard,
> >
> > Most packages that I have seen end in .deb or something similar, rather than
> > .bin.
> >
> > Where did you find the .bin archive packages?
> >
> > BTW:
> > according to the data you supplied, the first indication of a problem is
> > in the DRV_initialize function at line 238.
> > To me, this means the function failed to initialize a device.
> > Is your development system DM6446 connected to the computer?
> > Is your setup correctly identifying the 6446 DSP?
> > Is your connection to the PC from the DM6446 correctly identified in the
> > setup?
> >
> >
> > R. Williams
> >
> >
> >
> > ---------- Original Message -----------
> > From: ?P???? <[hidden email]>
> > To: [hidden email]
> > Sent: Sun, 1 Nov 2009 20:10:13 +0800
> > Subject: Failed to run dsplink sample
> >
> >> Hi all,
> >>
> >> ? ?I am trying to run the dsplink sample program (loop) on DM6446
> >> platform. ?I followed the steps
> >> from "TMS320DM6446 DVEVM v2.0 Getting Started Guide", but it seemed
> >> something ?wrong.
> >>
> >> I haven't found anything useful to solve the problem.
> >>
> >> Could anyone help me to solve this problem?
> >>
> >> My development environment : Ubuntu 9.04
> >>
> >> Here is the package I used :
> >>
> >> * bios_setuplinux_5_33_03.bin
> >> * dvsdk_setuplinux_2_00_00_22.bin (include dsplink-1_61_03-prebuilt
> >> package)
> >> * TI-C6x-CGT-v6.0.21.1.bin
> >> * mvl_5_0_0801921_demo_sys_setuplinux.bin
> >> * mvl_5_0_0_demo_lsp_setuplinux_02_00_00_140.bin
> >>
> >> This is the message I got :
> >>
> >> root@192.168.1.14:/opt/test# ./loopgpp /opt/test/loop.out 1024 1000 0
> >> =============== Sample Application : LOOP ==========
> >> ==== Executing sample for DSP processor Id 0 ====
> >> Entered LOOP_Create ()
> >> Entered PROC_setup ()
> >> ? ? ? ?linkCfg [0x0]
> >> Entered DRV_Initialize ()
> >> ? ? ? ?drvObj ?[0x2fad0]
> >> ? ? ? ?arg ? ? [0x0]
> >> Leaving DRV_Initialize () ? ? ? status [0x80008008]
> >>
> >> Failure: Status:[0x80008008] File:[0x200] Line:[238]
> >> Leaving PROC_setup () ? status [0x80008008]
> >> PROC_setup failed. Status = ?[0x80008008]
> >> Leaving LOOP_Create ()
> >> Entered LOOP_Delete ()
> >> Entered CHNL_freeBuffer ()
> >> ? ? ? ?procId ?[0x0]
> >> ? ? ? ?chnlId ?[0x0]
> >> ? ? ? ?bufArray ? ? ? ?[0x2f718]
> >> ? ? ? ?numBufs [0x1]
> >> Entered DRV_Invoke ()
> >> ? ? ? ?drvObj ?[0x0]
> >> ? ? ? ?cmdId ? [0x6d06]
> >> ? ? ? ?arg1 ? ?[0xbe8e3c14]
> >> ? ? ? ?arg2 ? ?[0x0]
> >> Leaving DRV_Invoke () ? status [0x80008002]
> >>
> >> Failure: Status:[0x80008002] File:[0x201] Line:[300]
> >> Leaving CHNL_freeBuffer () ? ? ?status [0x80008002]
> >> CHNL_freeBuffer () failed (output). Status = [0x80008002]
> >> Entered CHNL_delete ()
> >> ? ? ? ?procId ?[0x0]
> >> ? ? ? ?chnlId ?[0x1]
> >> Entered DRV_Invoke ()
> >> ? ? ? ?drvObj ?[0x0]
> >> ? ? ? ?cmdId ? [0x6d02]
> >> ? ? ? ?arg1 ? ?[0xbe8e3c14]
> >> ? ? ? ?arg2 ? ?[0x0]
> >> Leaving DRV_Invoke () ? status [0x80008002]
> >>
> >> Failure: Status:[0x80008002] File:[0x201] Line:[188]
> >> Leaving CHNL_delete () ?status [0x80008002]
> >> CHNL_delete () failed (input). Status = [0x80008002]
> >> Entered CHNL_delete ()
> >> ? ? ? ?procId ?[0x0]
> >> ? ? ? ?chnlId ?[0x0]
> >> Entered DRV_Invoke ()
> >> ? ? ? ?drvObj ?[0x0]
> >> ? ? ? ?cmdId ? [0x6d02]
> >> ? ? ? ?arg1 ? ?[0xbe8e3c14]
> >> ? ? ? ?arg2 ? ?[0x0]
> >> Leaving DRV_Invoke () ? status [0x80008002]
> >>
> >> Failure: Status:[0x80008002] File:[0x201] Line:[188]
> >> Leaving CHNL_delete () ?status [0x80008002]
> >> CHNL_delete () failed (output). Status = [0x80008002]
> >> Entered PROC_stop ()
> >> ? ? ? ?procId ?[0x0]
> >>
> >> Failure: Status:[0x80008002] File:[0x200] Line:[1175]
> >> Leaving PROC_stop () ? ?status [0x80008002]
> >> Entered POOL_close ()
> >> ? ? ? ?poolId ?[0x0]
> >> Leaving POOL_close () ? status [0x80008000]
> >> Entered PROC_detach ()
> >> ? ? ? ?procId ?[0x0]
> >>
> >> Failure: Status:[0x80008000] File:[0x200] Line:[670]
> >> Leaving PROC_detach () ?status [0x80008000]
> >> Entered PROC_destroy ()
> >>
> >> Failure: Status:[0x80008000] File:[0x200] Line:[351]
> >>
> >> Failure: Status:[0x80008000] File:[0x200] Line:[435]
> >> Leaving PROC_destroy () ? ? ? ? status [0x80008000]
> >> Leaving LOOP_Delete ()
> >> ====================================================
> >>
> >> Many thanks,
> >> Wei-Ting
> >>
> >> _______________________________________________
> >> Davinci-linux-open-source mailing list
> >> [hidden email]
> >> http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source 
> > ------- End of Original Message -------
> >
------- End of Original Message -------
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://linux.omap.com/pipermail/davinci-linux-open-source/attachments/20091102/55e6054a/attachment.htm
Reply | Threaded
Open this post in threaded view
|

Failed to run dsplink sample

Tivy, Robert
In reply to this post by 周威廷
 
See below...

Regards,

- Rob

> -----Original Message-----
> From: [hidden email]
> [mailto:[hidden email]
> ] On Behalf Of ???
> Sent: Sunday, November 01, 2009 9:35 PM
> To: Richard Williams
> Cc: [hidden email]
> Subject: Re: Failed to run dsplink sample
>
>
> BTW:
> When I executed the "loadmodules.sh" on DM6446. I got the
> message like this :
>
> ==================================================================
> root@192.168.1.14:/opt/dvsdk/dm6446# ./loadmodules.sh CMEMK
> Error: CMEM phys_start (0x87600000) overlaps kernel (0x80000000
> -> 0x87800000)
> insmod: error inserting 'cmemk.ko': -1 Invalid parameters
> dsplinkk: no version for "struct_module" found: kernel tainted.
> DSPLINK Module (1.61.03) created on Date: Apr 16 2009 Time:
> 18:22:23
> ==================================================================
>
> It seems that CMEM module is loaded to the wrong position,
> but if I change the starting address of load CMEM module to
> the address 0x87800000, it still does not work.
> Here is the message :
>
> ==================================================================
> ioremap_nocache(0x87800000, 8388608)=0xc9000000 CMEMK Error:
> Failed to find a big enough free block CMEMK Error:
> alloc_pool failed to get contiguous area of size 1245184
> CMEMK Error: Failed to alloc pool of size 1244160 and number
> of buffers 2
> insmod: error inserting 'cmemk.ko': -1 Cannot allocate memory
> ==================================================================

Since I don't know your CMEM insmod parameters I can't say for sure, but the above message indicates that you don't have enough phys memory granted to CMEM to satisfy your pool geometry.  You can either:
        - change the u-boot 'bootargs' parameter mem=120M to mem=118M, which will avoid the "overlaps w/ kernel" messages since the kernel will then end at 0x87600000.
        - change your CMEM insmod params geometry to fit the 8 MB given to CMEM when you specify phys_start=0x87800000.  When doing so, realize that each buffer gets rounded up to the nearest 0x1000 in size.

>
> and what is the meaning of the message "dsplinkk: no version
> for "struct_module" found: kernel tainted.".
> Is there something wrong with my dsplink module?
>
> Thanks,
> Wei-Ting
>
> 2009/11/2 Richard Williams <[hidden email]>:
> > richard,
> >
> > Most packages that I have seen end in .deb or something similar,
> > rather than .bin.
> >
> > Where did you find the .bin archive packages?
> >
> > BTW:
> > according to the data you supplied, the first indication of
> a problem
> > is in the DRV_initialize function at line 238.
> > To me, this means the function failed to initialize a device.
> > Is your development system DM6446 connected to the computer?
> > Is your setup correctly identifying the 6446 DSP?
> > Is your connection to the PC from the DM6446 correctly
> identified in
> > the setup?
> >
> >
> > R. Williams
> >
> >
> >
> > ---------- Original Message -----------
> > From: ?P???? <[hidden email]>
> > To: [hidden email]
> > Sent: Sun, 1 Nov 2009 20:10:13 +0800
> > Subject: Failed to run dsplink sample
> >
> >> Hi all,
> >>
> >> ? ?I am trying to run the dsplink sample program (loop) on DM6446
> >> platform. ?I followed the steps from "TMS320DM6446 DVEVM
> v2.0 Getting
> >> Started Guide", but it seemed something ?wrong.
> >>
> >> I haven't found anything useful to solve the problem.
> >>
> >> Could anyone help me to solve this problem?
> >>
> >> My development environment : Ubuntu 9.04
> >>
> >> Here is the package I used :
> >>
> >> * bios_setuplinux_5_33_03.bin
> >> * dvsdk_setuplinux_2_00_00_22.bin (include dsplink-1_61_03-prebuilt
> >> package)
> >> * TI-C6x-CGT-v6.0.21.1.bin
> >> * mvl_5_0_0801921_demo_sys_setuplinux.bin
> >> * mvl_5_0_0_demo_lsp_setuplinux_02_00_00_140.bin
> >>
> >> This is the message I got :
> >>
> >> root@192.168.1.14:/opt/test# ./loopgpp /opt/test/loop.out
> 1024 1000 0
> >> =============== Sample Application : LOOP ========== ====
> Executing
> >> sample for DSP processor Id 0 ==== Entered LOOP_Create () Entered
> >> PROC_setup ()
> >> ? ? ? ?linkCfg [0x0]
> >> Entered DRV_Initialize ()
> >> ? ? ? ?drvObj ?[0x2fad0]
> >> ? ? ? ?arg ? ? [0x0]
> >> Leaving DRV_Initialize () ? ? ? status [0x80008008]
> >>
> >> Failure: Status:[0x80008008] File:[0x200] Line:[238] Leaving
> >> PROC_setup () ? status [0x80008008] PROC_setup failed. Status = ?
> >> [0x80008008] Leaving LOOP_Create () Entered LOOP_Delete () Entered
> >> CHNL_freeBuffer ()
> >> ? ? ? ?procId ?[0x0]
> >> ? ? ? ?chnlId ?[0x0]
> >> ? ? ? ?bufArray ? ? ? ?[0x2f718]
> >> ? ? ? ?numBufs [0x1]
> >> Entered DRV_Invoke ()
> >> ? ? ? ?drvObj ?[0x0]
> >> ? ? ? ?cmdId ? [0x6d06]
> >> ? ? ? ?arg1 ? ?[0xbe8e3c14]
> >> ? ? ? ?arg2 ? ?[0x0]
> >> Leaving DRV_Invoke () ? status [0x80008002]
> >>
> >> Failure: Status:[0x80008002] File:[0x201] Line:[300] Leaving
> >> CHNL_freeBuffer () ? ? ?status [0x80008002]
> CHNL_freeBuffer () failed
> >> (output). Status = [0x80008002] Entered CHNL_delete ()
> >> ? ? ? ?procId ?[0x0]
> >> ? ? ? ?chnlId ?[0x1]
> >> Entered DRV_Invoke ()
> >> ? ? ? ?drvObj ?[0x0]
> >> ? ? ? ?cmdId ? [0x6d02]
> >> ? ? ? ?arg1 ? ?[0xbe8e3c14]
> >> ? ? ? ?arg2 ? ?[0x0]
> >> Leaving DRV_Invoke () ? status [0x80008002]
> >>
> >> Failure: Status:[0x80008002] File:[0x201] Line:[188] Leaving
> >> CHNL_delete () ?status [0x80008002] CHNL_delete () failed (input).
> >> Status = [0x80008002] Entered CHNL_delete ()
> >> ? ? ? ?procId ?[0x0]
> >> ? ? ? ?chnlId ?[0x0]
> >> Entered DRV_Invoke ()
> >> ? ? ? ?drvObj ?[0x0]
> >> ? ? ? ?cmdId ? [0x6d02]
> >> ? ? ? ?arg1 ? ?[0xbe8e3c14]
> >> ? ? ? ?arg2 ? ?[0x0]
> >> Leaving DRV_Invoke () ? status [0x80008002]
> >>
> >> Failure: Status:[0x80008002] File:[0x201] Line:[188] Leaving
> >> CHNL_delete () ?status [0x80008002] CHNL_delete () failed
> (output).
> >> Status = [0x80008002] Entered PROC_stop ()
> >> ? ? ? ?procId ?[0x0]
> >>
> >> Failure: Status:[0x80008002] File:[0x200] Line:[1175] Leaving
> >> PROC_stop () ? ?status [0x80008002] Entered POOL_close ()
> >> ? ? ? ?poolId ?[0x0]
> >> Leaving POOL_close () ? status [0x80008000] Entered PROC_detach ()
> >> ? ? ? ?procId ?[0x0]
> >>
> >> Failure: Status:[0x80008000] File:[0x200] Line:[670] Leaving
> >> PROC_detach () ?status [0x80008000] Entered PROC_destroy ()
> >>
> >> Failure: Status:[0x80008000] File:[0x200] Line:[351]
> >>
> >> Failure: Status:[0x80008000] File:[0x200] Line:[435] Leaving
> >> PROC_destroy () ? ? ? ? status [0x80008000] Leaving LOOP_Delete ()
> >> ====================================================
> >>
> >> Many thanks,
> >> Wei-Ting
> >>
> >> _______________________________________________
> >> Davinci-linux-open-source mailing list
> >> [hidden email]
> >>
> http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-sourc
> >> e
> > ------- End of Original Message -------
> >
>
> _______________________________________________
> Davinci-linux-open-source mailing list
> [hidden email]
> http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
>