Project

General

Profile

Syslink configuration for 256Mb memory

Added by Andri Haryono about 3 years ago

Hello,

can you give an example on the following step from wiki link?

https://support.criticallink.com/redmine/projects/arm9-platforms/wiki/SysLink_Configuration

U-Boot > editenv bootargs
edit: XXXX mem=32M@0xc0000000 mem=64M@0xc4000000 XXXX
U-Boot > saveenv

I am using 256MB DDR memory and plan to split the memory as follow
ARM : 96M
DSP : 160M

Cache = xdc.useModule('ti.sysbios.family.c64p.Cache');
Cache.MAR192_223 = 0x00008000;

i set mine as the following

bootargs=mem=96M@0xc0000000 console=ttyS1,115200n8 mtdparts=nand:128M(rootfs),-(userfs) root=/dev/mtdblock0 rw noatime rootfstype=jffs2

and got this result when running the helloworld

root@mityomapl138:~/ex01_helloworld/debug# ./run.sh
+ ./slaveloader startup DSP server_dsp.xe674
Attached to slave procId 0.
Loading procId 0.
------------[ cut here ]------------
WARNING: at arch/arm/mm/ioremap.c:207 _arm_ioremap_pfn_caller+0x48/0x15c()
Modules linked in: syslink(O)
[<c000d518>] (unwind_backtrace+0x0/0xe0) from [<c001cd48>] (warn_slowpath_common+0x4c/0x64)
[<c001cd48>] (warn_slowpath_common+0x4c/0x64) from [<c001cd78>] (warn_slowpath_null+0x18/0x1c)
[<c001cd78>] (warn_slowpath_null+0x18/0x1c) from [<c000f204>] (
_arm_ioremap_pfn_caller+0x48/0x15c)
[<c000f204>] (_arm_ioremap_pfn_caller+0x48/0x15c) from [<c000f378>] (_arm_ioremap_caller+0x50/0x54)
[<c000f378>] (_arm_ioremap_caller+0x50/0x54) from [<bf024710>] (MemoryOS_map+0x1ec/0x3ac [syslink])
[<bf024710>] (MemoryOS_map+0x1ec/0x3ac [syslink]) from [<bf006748>] (_ProcMgr_map+0x1e8/0x520 [syslink])
[<bf006748>] (_ProcMgr_map+0x1e8/0x520 [syslink]) from [<bf00b844>] (ElfLoaderTrgWrite_copy+0x154/0x3f4 [syslink])
[<bf00b844>] (ElfLoaderTrgWrite_copy+0x154/0x3f4 [syslink]) from [<bf00ff24>] (DLIF_copy+0x8/0x14 [syslink])
[<bf00ff24>] (DLIF_copy+0x8/0x14 [syslink]) from [<bf00e8e4>] (DLOAD_load+0x71c/0xa38 [syslink])
[<bf00e8e4>] (DLOAD_load+0x71c/0xa38 [syslink]) from [<bf00aec8>] (ElfLoader_load+0x268/0x3a8 [syslink])
[<bf00aec8>] (ElfLoader_load+0x268/0x3a8 [syslink]) from [<bf0024b8>] (Loader_load+0xe8/0x164 [syslink])
[<bf0024b8>] (Loader_load+0xe8/0x164 [syslink]) from [<bf004a48>] (ProcMgr_load+0x21c/0x318 [syslink])
[<bf004a48>] (ProcMgr_load+0x21c/0x318 [syslink]) from [<bf009158>] (ProcMgrDrv_ioctl+0xa8c/0x1a14 [syslink])
[<bf009158>] (ProcMgrDrv_ioctl+0xa8c/0x1a14 [syslink]) from [<c0091018>] (do_vfs_ioctl+0x500/0x584)
[<c0091018>] (do_vfs_ioctl+0x500/0x584) from [<c00910d0>] (sys_ioctl+0x34/0x54)
[<c00910d0>] (sys_ioctl+0x34/0x54) from [<c00093a0>] (ret_fast_syscall+0x0/0x2c)
---[ end trace f031d267df7b5391 ]---
Assertion at Line no: 356 in /opt/ti/syslink_2_21_03_11/packages/ti/syslink/utils/hlos/knl/Linux/../../../../../../ti/syslink/utils/hlos/knl/osal/Linux/OsalKfile.c: ((bytesRead / size) == (UInt32) count) : failed
------------[ cut here ]------------
WARNING: at arch/arm/mm/ioremap.c:207 __arm_ioremap_pfn_caller+0x48/0x15c()
Modules linked in: syslink(O)
[<c000d518>] (unwind_backtrace+0x0/0xe0) from [<c001cd48>] (warn_slowpath_common+0x4c/0x64)
[<c001cd48>] (warn_slowpath_common+0x4c/0x64) from [<c001cd78>] (warn_slowpath_null+0x18/0x1c)
[<c001cd78>] (warn_slowpath_null+0x18/0x1c) from [<c000f204>] (
_arm_ioremap_pfn_caller+0x48/0x15c)
[<c000f204>] (_arm_ioremap_pfn_caller+0x48/0x15c) from [<c000f378>] (_arm_ioremap_caller+0x50/0x54)
[<c000f378>] (__arm_ioremap_caller+0x50/0x54) from [<bf024710>] (MemoryOS_map+0x1ec/0x3ac [syslink])
[<bf024710>] (MemoryOS_map+0x1ec/0x3ac [syslink]) from [<bf006748>] (_ProcMgr_map+0x1e8/0x520 [syslink])
[<bf006748>] (_ProcMgr_map+0x1e8/0x520 [syslink]) from [<bf00b844>] (ElfLoaderTrgWrite_copy+0x154/0x3f4 [syslink])
[<bf00b844>] (ElfLoaderTrgWrite_copy+0x154/0x3f4 [syslink]) from [<bf00ff24>] (DLIF_copy+0x8/0x14 [syslink])
[<bf00ff24>] (DLIF_copy+0x8/0x14 [syslink]) from [<bf00e8e4>] (DLOAD_load+0x71c/0xa38 [syslink])
[<bf00e8e4>] (DLOAD_load+0x71c/0xa38 [syslink]) from [<bf00aec8>] (ElfLoader_load+0x268/0x3a8 [syslink])
[<bf00aec8>] (ElfLoader_load+0x268/0x3a8 [syslink]) from [<bf0024b8>] (Loader_load+0xe8/0x164 [syslink])
[<bf0024b8>] (Loader_load+0xe8/0x164 [syslink]) from [<bf004a48>] (ProcMgr_load+0x21c/0x318 [syslink])
[<bf004a48>] (ProcMgr_load+0x21c/0x318 [syslink]) from [<bf009158>] (ProcMgrDrv_ioctl+0xa8c/0x1a14 [syslink])
[<bf009158>] (ProcMgrDrv_ioctl+0xa8c/0x1a14 [syslink]) from [<c0091018>] (do_vfs_ioctl+0x500/0x584)
[<c0091018>] (do_vfs_ioctl+0x500/0x584) from [<c00910d0>] (sys_ioctl+0x34/0x54)
[<c00910d0>] (sys_ioctl+0x34/0x54) from [<c00093a0>] (ret_fast_syscall+0x0/0x2c)
---[ end trace f031d267df7b5392 ]---
Unable to handle kernel paging request at virtual address ffffffff
pgd = c52a4000
[ffffffff] *pgd=c5ffe831, *pte=00000000, *ppte=00000000
Internal error: Oops: 817 [#1] PREEMPT
Modules linked in: syslink(O)
CPU: 0 Tainted: G W O (3.2.0+ #3)
PC is at memset+0xd8/0xe0
LR is at ElfLoaderTrgWrite_copy+0x1a4/0x3f4 [syslink]
pc : [<c014bdf8>] lr : [<bf00b894>] psr: 20000013
sp : c455fd20 ip : 00000000 fp : 0000000b
r10: 00000002 r9 : c6fda000 r8 : ffffffff
r7 : c6fa3000 r6 : 00006828 r5 : 06a85000 r4 : c455fda8
r3 : 00000003 r2 : 00000000 r1 : 00006824 r0 : ffffffff
Flags: nzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
Control: 0005317f Table: c52a4000 DAC: 00000015
Process slaveloader (pid: 2390, stack limit = 0xc455e270)
Stack: (0xc455fd20 to 0xc4560000)
fd20: c301ae20 fffffff2 0001ae20 00000001 00000080 ffffffff 00000001 c301ae20
fd40: c301ae20 00000001 00006828 bf010000 c700c000 00000001 fffffff2 c301ae20
fd60: 00000000 c6fcf000 00000001 c6fda000 c6ff2030 c6fdc000 c6fda000 00000002
fd80: 0000000b bf00ff24 00000002 bf00e8e4 00000000 ffffffff 00000000 00000000
fda0: 00000002 c6fcf01c c6fda000 c6ff6000 ffffffff 00000001 0001ae60 00000000
fdc0: 00000002 00000008 c6fdc000 c6fdc000 03046000 03046000 c6fa3000 00000000
fde0: c6f9f000 00000000 00000000 00000000 c455ff00 bf00aec8 c6fd8000 00000000
fe00: 00000000 00000000 c302f940 c6fda000 c6ae3000 c6f9f000 00000000 00000000
fe20: c6fd8000 00000000 c6fd8000 c455ff00 00000000 bf0024b8 00000000 c455ff00
fe40: 00000000 00000000 00000000 c6fa9000 00000000 00000000 00000000 c455ff00
fe60: 00000000 bf004a48 00000000 c455ff00 00000000 00000000 c6fd8000 be8c1b88
fe80: 00000000 c455e000 c6fd8000 c0009524 c455e000 00000000 be8c1b64 bf009158
fea0: 00000000 c455ff00 c512936c 0000000a c5129000 c5129c11 c455e000 c5129c00
fec0: a0000013 c0189f2c c51290cc c00363f8 c5129000 00000000 00000000 60000013
fee0: c455e000 0485f000 c6fa9000 be8c1ea3 00000011 00000000 00000000 00000000
ff00: 00000000 c00216fc a0000093 c5129000 c45be420 be8c1b88 be8c1b88 c4656d58
ff20: c0009524 c0091018 c5158560 00000000 00000000 00000000 00000000 00000012
ff40: c5322aa8 00000002 c5a60cb8 00000000 c455e000 00000000 00000001 c45be420
ff60: 00000000 c5819440 c455ff8c c45be420 be8c1b88 c020e0a2 00000008 c0009524
ff80: c455e000 c00910d0 00000008 00000001 be8c1b88 be8c1e97 00000000 be8c1bd4
ffa0: 00000036 c00093a0 be8c1e97 00000000 00000008 c020e0a2 be8c1b88 00000008
ffc0: be8c1e97 00000000 be8c1bd4 00000036 00000000 be8c1ea3 097d2000 be8c1b64
ffe0: 00000000 be8c1b40 00046928 4030b19c 60000010 00000008 08000200 80220821
Code: ba00001d e3530002 b4c02001 d4c02001 (e4c02001)
---[ end trace f031d267df7b5393 ]---

Dsp.cfg (7.51 KB)


Replies (1)

RE: Syslink configuration for 256Mb memory - Added by Gregory Gluszek about 3 years ago

Hi Andri,

We have not currently released an MDK that supports SysLink. Please follow instead the DSP Link Configuration steps: https://support.criticallink.com/redmine/projects/arm9-platforms/wiki/DSP_Link_Configuration

Sorry for the confusion.

Please let us know if you run into any issues.

Thanks,
\Greg

    (1-1/1)
    Add picture from clipboard (Maximum size: 500 MB)