This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Slaveloader crashes

Other Parts Discussed in Thread: OMAPL138

I'm using the slaveloader app on an OMAPl138 and it keeps crashing with the error below (note that I'm not even trying to load a DSP image, just perform a shutdown in this case).

# slaveloader shutdown DSP
Assertion at Line no: 95 in /syslink/syslink_2_21_01_05/packages/ti/syslink/utils/hlos/knl/Linux/../../../../../../ti/syslink/family/hlos/knl/omapl1xx/omapl1xxdsp/omapl1xx_hal_reset.c: (halObj != NULL) : failed
Unable to handle kernel NULL pointer dereference at virtual address 00000000
pgd = c79c4000
[00000000] *pgd=c642f031, *pte=00000000, *ppte=00000000
Internal error: Oops: 17 [#1] PREEMPT
last sysfs file: /sys/devices/system/cpu/online
Modules linked in: syslink
CPU: 0    Not tainted  (2.6.37 #2)
PC is at OMAPL1XX_halResetCtrl+0x84/0x138 [syslink]
LR is at schedule+0x3a4/0x3e4
pc : [<bf0141cc>]    lr : [<c02ea24c>]    psr: 80000013
sp : c7833dd8  ip : c7832010  fp : c7833df4
r10: 00000000  r9 : c7832000  r8 : c0029024
r7 : bf0e2824  r6 : 00000000  r5 : 00000000  r4 : 00000000
r3 : 00000002  r2 : c7832000  r1 : 40000000  r0 : 000000fa
Flags: Nzcv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
Control: 0005317f  Table: c79c4000  DAC: 00000015
Process slaveloader (pid: 617, stack limit = 0xc7832270)
Stack: (0xc7833dd8 to 0xc7834000)
3dc0:                                                       00000000 00000000
3de0: c94a7000 c94aa000 c7833e14 c7833df8 bf014f98 bf014158 c008bd58 c8d90000
3e00: c94a7000 c8d90000 c7833e34 c7833e18 bf00317c bf014e8c c7833e44 c7833e28
3e20: c94bc000 c8d90000 c7833e5c c7833e38 bf00538c bf003118 c7833e6c c008e0a6
3e40: c7832000 bed85bf0 c008e0a6 00000000 c7833ef4 c7833e60 bf00965c bf00529c
3e60: c008e0a6 bed85bf0 c00371e4 00000060 c94bc000 60000013 c7833e9c c7833e88
3e80: c0181efc c0037138 c7a77cc0 00044058 c7833eac c7833ea0 c005cacc c0181e5c
3ea0: c7833ee4 c7833eb0 c002e4b8 c005cacc 00000060 c7833ec0 c005cacc 80000005
3ec0: c03d40ac 00044058 c7833fb0 00000000 00000000 bed85bf0 c796ce00 c7451c98
3ee0: 00000008 c0029024 c7833f04 c7833ef8 c00b2ecc bf00899c c7833f7c c7833f08
3f00: c00b39c8 c00b2eb0 c00371e4 c00b1fe0 00000000 c00371e4 c7833f3c c7833f28
3f20: c00371e4 c002acfc 000ffff8 00000001 c7833f5c c7833f40 00000001 c796ce00
3f40: 00000000 c79bc6c0 c7833f84 c0029024 c7833f7c c7833f60 c796ce00 bed85bf0
3f60: c008e0a6 00000008 c0029024 c7832000 c7833fa4 c7833f80 c00b3a60 c00b34a8
3f80: c00b28cc 00000001 00008dc4 00000000 402a4000 00000036 00000000 c7833fa8
3fa0: c0028ea0 c00b3a30 00008dc4 00000000 00000008 c008e0a6 bed85bf0 00000008
3fc0: 00008dc4 00000000 402a4000 00000036 00000000 00000000 400f4000 bed85bdc
3fe0: 00069814 bed85bb4 00046908 4022ebdc 60000010 00000008 00400010 00000000
Backtrace:
[<bf014148>] (OMAPL1XX_halResetCtrl+0x0/0x138 [syslink]) from [<bf014f98>] (OMAPL1XXPROC_stop+0x11c/0x1dc [syslink])
 r5:c94aa000 r4:c94a7000
[<bf014e7c>] (OMAPL1XXPROC_stop+0x0/0x1dc [syslink]) from [<bf00317c>] (Processor_stop+0x74/0x104 [syslink])
 r5:c8d90000 r4:c94a7000
[<bf003108>] (Processor_stop+0x0/0x104 [syslink]) from [<bf00538c>] (ProcMgr_stop+0x100/0x1cc [syslink])
 r5:c8d90000 r4:c94bc000
[<bf00528c>] (ProcMgr_stop+0x0/0x1cc [syslink]) from [<bf00965c>] (ProcMgrDrv_ioctl+0xcd0/0x1988 [syslink])
 r6:00000000 r5:c008e0a6 r4:bed85bf0
[<bf00898c>] (ProcMgrDrv_ioctl+0x0/0x1988 [syslink]) from [<c00b2ecc>] (vfs_ioctl+0x2c/0x48)
 r8:c0029024 r7:00000008 r6:c7451c98 r5:c796ce00 r4:bed85bf0
[<c00b2ea0>] (vfs_ioctl+0x0/0x48) from [<c00b39c8>] (do_vfs_ioctl+0x530/0x588)
[<c00b3498>] (do_vfs_ioctl+0x0/0x588) from [<c00b3a60>] (sys_ioctl+0x40/0x64)
 r9:c7832000 r8:c0029024 r7:00000008 r6:c008e0a6 r5:bed85bf0
r4:c796ce00
[<c00b3a20>] (sys_ioctl+0x0/0x64) from [<c0028ea0>] (ret_fast_syscall+0x0/0x2c)
 r7:00000036 r6:402a4000 r5:00000000 r4:00008dc4
Code: 3a000002 e3550002 1a00000d ea000017 (e5941000)
---[ end trace bcc2def81a960398 ]---

  • Hi Colin,

    Did you do a startup on the DSP prior to shutting it down (e.g. ./slaveloader startup DSP server_dsp.xe674)? slaveloader is not designed to shutdown a core it has not started.

    Did the Syslink-provided examples work for you when you run 'run.sh' in the examples?

    Best regards,

    Vincent

  • Hi Vincent,

    thanks that may well have been the problem - I was using a shell script that performed a shutdown before a startup to change the DSP image dynamically.  Startup on its own seems to work fine.

    Colin.