Problem runnning demo_console.
hi
linux version: linux-2.6.12
gateway : 3.3
I built the root file system, set it up and thought i could test the gateway by running the demo_console program.
I am not able to run the demo_console program. The DSP is getting configured properly, but when i hit './demo_console' , the system hangs (no output). I am attaching the output message i got when i did 'dspctl start demo_console.out' and mblog output just after the configuration.
I am sending two cases
1)icrmask set
2) icrmask disabled.(does not configure at all)
case 1) icrmask set
I tried to comment some lines in the arm side code (i am yet not comfortable with the compilation of DSP code). The problem occurs when the read and write commands are run. (No problems with device open and close)
case 2) icrmask disabled --> does not configure at all
Can someone can tell me about the public linux dsp tools and where i can get them from, i would write some more codes and try to debug. (i googled but no use )
thx & regs
Karthikeyan.S
---------------------------------
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.
ICRMASK ENABLED
----------------
# dspctl start demo_console.out
loading demo_console.out...
dspgw_task : adr = 0x00c4d4, size= 36
dspgw_version : adr = 0x000000, size= 8 ... ignored.
SARAM_seq : adr = 0x010000, size= 8 ... initialized.
DARAM_seq : adr = 0x000100, size= 8 ... initialized.
SDRAM_seq : adr = 0xfffd00, size= 8 ... initialized.
SDRAM_system_data : adr = 0xfffd08, size= 136 ... initialized.
sleep_code : adr = 0x000108, size= 242 ... initialized.
.vers : adr = 0x000000, size= 120 ... ignored.
.sysstack : adr = 0x0001fc, size= 512 ... initialized.
.clk : adr = 0x0003fc, size= 8 ... initialized.
.prd : adr = 0x000404, size= 48 ... initialized.
.swi : adr = 0x000434, size= 80 ... initialized.
.tsk : adr = 0x000484, size= 264 ... initialized.
.idl : adr = 0x00058c, size= 8 ... initialized.
.hwi_disp_sec : adr = 0x000594, size= 384 ... initialized.
.bss : adr = 0x000714, size= 2792 ... initialized.
.far : adr = 0x000100, size= 0
.sysdata : adr = 0x0011fc, size= 316 ... initialized.
.mem : adr = 0x0001fa, size= 2 ... initialized.
.cio : adr = 0x000100, size= 0
.sysregs : adr = 0x000100, size= 0
.sem : adr = 0x001338, size= 132 ... initialized.
.dsm : adr = 0x000100, size= 0
.data : adr = 0x0013bc, size= 4 ... initialized.
.gio : adr = 0x000100, size= 0
.sys : adr = 0x0013c0, size= 16 ... initialized.
.TSK_idle$stk : adr = 0x0013d0, size= 2560 ... initialized.
.TSK_sleep$stk : adr = 0x001dd0, size= 2560 ... initialized.
.TSK_super$stk : adr = 0x0027d0, size= 2560 ... initialized.
.const : adr = 0x0031d0, size= 1814 ... initialized.
.printf : adr = 0x0038e6, size= 236 ... ignored.
.args : adr = 0x0038e8, size= 16 ... initialized.
.LOG_system$buf : adr = 0x003900, size= 128 ... initialized.
.trace : adr = 0x003980, size= 1024 ... initialized.
.stack : adr = 0x003d80, size= 2048 ... initialized.
.hst : adr = 0x000100, size= 0
.log omapdsp: IPBUF configuration
1 words * 1 lines at 0xe000c4f8.
: adr = 0x004580, size= 20omapdsp: found 1 task(s)
... initialized.
.pip omapdsp: task 0: name demo_console
: adr = 0x000100, size= 0omapdsp: taskdev demo_console enabled..sts : adr = 0x004594, size= 64 ... initialized. .DARAM$heap : adr = 0x0045d4, size=32512 frt : adr = 0x010000, size= 0 .bios : adr = 0x010008, size=10215 ... initialized. .text : adr = 0x0127f0, size=20642 ... initialized. .switch : adr = 0x010000, size= 0 .sysinit : adr = 0x017892, size= 437 ... initialized. .trcdata : adr = 0x017a48, size= 6 ... initialized. .pinit : adr = 0x010000, size= 0 .gblinit : adr = 0x017a4e, size= 74 ... initialized. .hwi : adr = 0x010000, size= 0 .SARAM$heap : adr = 0x017a98, size= 16 .hwi_vec : adr = 0xffff00, size= 256 ... initialized. ipbuf : adr = 0x00c4f8, size= 14 ... initialized. dbgbuf : adr = 0x00c506, size= 4096 ... initialized.
warning: found zero-sized cinit entry at 0x9f2
.cinit : adr = 0x010000, size= 2548 ... .bss variables are initialize
d.
setting DSP reset vector to 0x017968
releasing DSP reset
DSP configuration ... succeeded
symlink: File exists
# cat /sys/devices/platform/dsp/mblog
log count:10 / ARM->DSP:5, DSP->ARM:5
ARM -> DSP ARM <- DSP
jiffies q cmd data q cmd data
fffff319 0 7000 0000 DSPCFG:REQ
fffff319 0 7070 0019 DSPCFG:PROTREV
fffff319 1 f028 007f DSPCFG:SYSADRH
fffff319 0 70a9 fe88 DSPCFG:SYSADRL
fffff319 1 a300 0000 BKYLD
fffff31a 0 6000 0000 TCFG:task 0
fffff31a 0 6000 0000 TCFG:task 0
fffff31b 1 b000 0000 TCTL:task 0
fffff31b 0 7500 ffff SETVAR:ICRMASK
fffff37f 1 d200 0002 PM:DISABLE
# ./demo_consoleIt hangs here.
ICRMASK DISABLED
--------------
# echo 0 > /sys/devices/platform/dsp/icrmask # cat /sys/devices/platform/dsp/icrmask 0x0000 # dspctl start demo_console.out loading demo_console.out... dspgw_task : adr = 0x00c4d4, size= 36 dspgw_version : adr = 0x000000, size= 8 ... ignored. SARAM_seq : adr = 0x010000, size= 8 ... initialized. DARAM_seq : adr = 0x000100, size= 8 ... initialized. SDRAM_seq : adr = 0xfffd00, size= 8 ... initialized. SDRAM_system_data : adr = 0xfffd08, size= 136 ... initialized. sleep_code : adr = 0x000108, size= 242 ... initialized. .vers : adr = 0x000000, size= 120 ... ignored. .sysstack : adr = 0x0001fc, size= 512 ... initialized. .clk : adr = 0x0003fc, size= 8 ... initialized. .prd : adr = 0x000404, size= 48 ... initialized. .swi : adr = 0x000434, size= 80 ... initialized. .tsk : adr = 0x000484, size= 264 ... initialized. .idl : adr = 0x00058c, size= 8 ... initialized. .hwi_disp_sec : adr = 0x000594, size= 384 ... initialized. .bss : adr = 0x000714, size= 2792 ... initialized. .far : adr = 0x000100, size= 0 .sysdata : adr = 0x0011fc, size= 316 ... initialized. .mem : adr = 0x0001fa, size= 2 ... initialized. .cio : adr = 0x000100, size= 0 .sysregs : adr = 0x000100, size= 0 .sem : adr = 0x001338, size= 132 ... initialized. .dsm : adr = 0x000100, size= 0 .data : adr = 0x0013bc, size= 4 ... initialized. .gio : adr = 0x000100, size= 0 .sys : adr = 0x0013c0, size= 16 ... initialized. .TSK_idle$stk : adr = 0x0013d0, size= 2560 ... initialized. .TSK_sleep$stk : adr = 0x001dd0, size= 2560 ... initialized. .TSK_super$stk : adr = 0x0027d0, size= 2560 ... initialized. .const : adr = 0x0031d0, size= 1814 ... initialized. .printf : adr = 0x0038e6, size= 236 ... ignored. .args : adr = 0x0038e8, size= 16 ... initialized. .LOG_system$buf : adr = 0x003900, size= 128 ... initialized. .trace : adr = 0x003980, size= 1024 ... initialized. .stack : adr = 0x003d80, size= 2048 ... initialized. .hst : adr = 0x000100, size= 0 .log : adr = 0x004580, size= 20 ... initialized. .pip : adr = 0x000100, size= 0 .sts : adr = 0x004594, size= 64 ... initialized. .DARAM$heap : adr = 0x0045d4, size=32512 frt : adr = 0x010000, size= 0 .bios : adr = 0x010008, size=10215 ... initialized. .text : adr = 0x0127f0, size=20642 ... initialized. .switch : adr = 0x010000, size= 0 .sysinit : adr = 0x017892, size= 437 ... initialized. .trcdata : adr = 0x017a48, size= 6 ... initialized. .pinit : adr = 0x010000, size= 0 .gblinit : adr = 0x017a4e, size= 74 ... initialized. .hwi : adr = 0x010000, size= 0 .SARAM$heap : adr = 0x017a98, size= 16 .hwi_vec : adr = 0xffff00, size= 256 ... initialized. ipbuf : adr = 0x00c4f8, size= 14 ... initialized. dbgbuf : adr = 0x00c506, size= 4096 ... initialized. warning: found zero-sized cinit entry at 0x9f2 .cinit : adr = 0x010000, size= 2548 ... .bss variables are initialize d. setting DSP reset vector to 0x017968 releasing DSP resetDSP MMU interrupt! TLB miss fault address = PROGRAM: 0x000000 Resetting DSP...
scheduling while atomic: dspctl/0x00010003/29
Hangs here