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.

firmware_loader error on DM814X custom board

Hi,

on our custom board while trying to load the vpss module, iam getting following error

oot@dm814x-evm:~# firmware_loader 2 /usr/share/ti/ti-media-controller-utils/dm814x_hdvpss.xem3 start

FIRMWARE: I2cInit will be done by M3

FIRMWARE: Memory map bin file not passed Usage : firmware_loader <Processor Id> <Location of Firmware> <start|stop> [-mmap <memory_map_file>] [-i2c <0|1>] ===Mandatory arguments===

<Processor Id>         0: DSP, 1: Video-M3, 2: Vpss-M3

<Location of Firmware> firmware binary file

<start|stop>           to start/stop the firmware

===OptAssertion at Line no: 273 in /swcoe/sdk/cm/netra/arago-tmp/work/dm814x-evm-none-linux-gnueabi/ti-syslink-2_20_02_20-r1j/syslink_2_20_02_20/packages/tid

ional arguments=Assertion at Line no: 299 in /swcoe/sdk/cm/netra/arago-tmp/work/dm814x-evm-none-linux-gnueabi/ti-syslink-2_20_02_20-r1j/syslink_2_20_02_20/pd

==

-mmap      Unable to handle kernel NULL pointer dereference at virtual address 00000000

            inpupgd = d5d28000

t memory map bin[00000000] *pgd=95ff9031 file name

-i2, *pte=00000000c               , *ppte=00000000    0: i2c init

not done by M3, Internal error: Oops: 17 [#1] last sysfs file: /sys/kernel/uevent_seqnum Modules linked in: syslink

CPU: 0    Not tainted  (2.6.37 #1)

PC is at dload_dynamic_segment+0x3a4/0x4b4 [syslink] LR is at ElfLoaderFile_read+0xf4/0x128 [syslink]

pc : [<bf013eb4>]    lr : [<bf012e68>]    psr: 00000013

sp : d5873ce8  ip : 00000000  fp : d5873d2c

r10: 011fddbc  r9 : d5873cfc  r8 : de5c0000

r7 : 011fdb70  r6 : 00000000  r5 : de5c3000  r4 : d5873cf8

r3 : 00000000  r2 : de5cc000  r1 : 00060000  r0 : 00000000

Flags: nzcv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user

Control: 10c5387d  Table: 95d28019  DAC: 00000015 Process firmware_loader (pid: 1215, stack limit = 0xd58722e8)

Stack: (0xd5873ce8 to 0xd5874000)

3ce0:                   d5873d0c de5b0000 000000ed 00000001 e2843064 e2435064

3d00: d5873d2c 00000001 03046000 de461000 beffbb38 de5b0000 d5873ec0 00000001

3d20: d5873d9c d5873d30 bf014dc4 bf013b1c d5879800 d5873db4 de5c0000 d5873d48

3d40: c00ca71c c03de040 00000000 d5873d58 c00d5820 d5879800 de5c0000 de5bd000

3d60: d5873d9c d5873d70 bf034aa4 de5c3000 00000000 de467000 03046000 de461000

3d80: beffbb38 00000001 d5873ec0 00000001 d5873de4 d5873da0 bf012150 bf014d44

3da0: de5bd000 00000001 beffbb38 00000000 bf034d88 de5c0000 d5873df4 de461000

3dc0: 00000001 beffbb38 de5bd000 d5873ec0 de5bd000 00000000 d5873e1c d5873de8

3de0: bf002c10 bf011ee8 00000000 d5873ec0 beffbb38 00000000 d72fb000 00000001

3e00: de473000 beffbb38 00000000 d5873ec0 d5873e5c d5873e20 bf007104 bf002b30

3e20: 00000000 d5873ec0 beffbb38 00000000 0000003b 00000000 d5d08e80 de5bd000

3e40: beffbaa8 bf0feba8 d5872000 00000000 d5873ef4 d5873e60 bf0090a8 bf006ef0

3e60: 00000000 d5873ec0 00000000 00000000 0000003d 00000000 d5823480 000000f4

3e80: c00b2184 c01d5100 d5fd6e18 d5823480 d5873eac d5873ea0 00000200 d5873fb0

3ea0: d5fbcdc0 0485f000 de473000 beffbeba 0000003b 00000001 beffbb38 00000000

3ec0: 00000000 c008b1a4 c00bcdf0 c00ba9b0 d5fd63e4 00000000 d5d08e80 00000008

3ee0: 00000008 beffbaa8 d5873f04 d5873ef8 c00d6640 bf008538 d5873f74 d5873f08

3f00: c00d6d50 c00d6624 000000fb 000000fb 40e01000 d5c54300 d5823480 00040000

3f20: 00000040 00040400 d5873f74 d5873f38 c00bd1ac c00bcb34 000000fb 00040400

3f40: d5872000 d5c54300 d5fbcdc0 00000000 beffbaa8 c020e0a2 00000008 d5d08e80

3f60: d5872000 00000000 d5873fa4 d5873f78 c00d6de8 c00d685c 00000001 00000001

3f80: 00000003 00046ee8 00000000 00008e20 00000036 c0046fe8 00000000 d5873fa8

3fa0: c0046e40 c00d6d9c 00046ee8 00000000 00000008 c020e0a2 beffbaa8 00000008

3fc0: 00046ee8 00000000 00008e20 00000036 00000000 00000000 40061000 beffba84

3fe0: 00000000 beffba60 00040108 4017eaec 60000010 00000008 00000000 00000000

Backtrace:

[<bf013b10>] (dload_dynamic_segment+0x0/0x4b4 [syslink]) from [<bf014dc4>] (DLOAD_load+0x8c/0xa58 [syslink]) [<bf014d38>] (DLOAD_load+0x0/0xa58 [syslink]) from [<bf012150>] (ElfLoader_load+0x274/0x37c [syslink]) [<bf011edc>] (ElfLoader_load+0x0/0x37c [syslink]) from [<bf002c10>] (Loader_load+0xec/0x164 [syslink]) [<bf002b24>] (Loader_load+0x0/0x164 [syslink]) from [<bf007104>] (ProcMgr_load+0x220/0x2fc [syslink]) [<bf006ee4>] (ProcMgr_load+0x0/0x2fc [syslink]) from [<bf0090a8>] (ProcMgrDrv_ioctl+0xb7c/0x1b74 [syslink]) [<bf00852c>] (ProcMgrDrv_ioctl+0x0/0x1b74 [syslink]) from [<c00d6640>] (vfs_ioctl+0x28/0x44)

 r8:beffbaa8 r7:00000008 r6:00000008 r5:d5d08e80 r4:00000000 [<c00d6618>] (vfs_ioctl+0x0/0x44) from [<c00d6d50>] (do_vfs_ioctl+0x500/0x540) [<c00d6850>] (do_vfs_ioctl+0x0/0x540) from [<c00d6de8>] (sys_ioctl+0x58/0x7c) [<c00d6d90>] (sys_ioctl+0x0/0x7c) from [<c0046e40>] (ret_fast_syscall+0x0/0x30)

 r8:c0046fe8 r7:00000036 r6:00008e20 r5:00000000 r4:00046ee8

Code: e3a00000 ea000005 e5953050 e5952044 (e7931200)

1(default): i2c ---[ end trace 264f972237d97f1a ]--- init done by M3

FIRMWARE: isI2cInitRequiredOnM3: 1

FIRMWARE: Default memory configuration is used Firmware Loader debugging not configured Default FL_DEBUG: warning Allowed FL_DEBUG levels: error, warning, info, debug, log

MemCfg: DCMM (Dynamically Configurable Memory Map) Version :  2.1.2.1

iam passing the following as bootargs

console=ttyO0,115200n8 rootwait root=/dev/mmcblk0p2 rw rootfstype=ext3 mem=364M@0x80000000 mem=320M@0x9FC00000 vmalloc=500M earlyprintk notifyk.vpssm3_sva=0xBF900000 vram=100M

Any suggestions to resolve the problem are welcome

  • Hello,

    What is the software release that you are using here?

    Could you try with the this bootargs:

    setenv bootargs 'console=ttyO0,115200n8 rootwait root=/dev/mmcblk0p2 rw mem=256M earlyprintk notifyk.vpssm3_sva=0xBF900000 vram=50M vmalloc=500M ti814xfb.vram=0:16M,1:16M,2:6M ip=off noinitrd'

    Also could you check the loaded .ko file. Could you provide more details about what change are made? Did you make some memory map changes? Could you rebuild syslink module and load it?

    Let me know the result.

    BR

    Margarita

  • Hi Margarita,

    1. We are currently using ezsdk 5.05.02.

    2. We have tried the bootargs as given by you. We are getting the below dump

    root@dm814x-evm:/usr/share/ti/ti-media-controller-utils# firmware_loader 1 /usr/
    share/ti/ti-media-controller-utils/dm814x_hdvicp.xem3 start -mmap /usr/share/ti/
    ti-media-controller-utils/mm_dm81xxbm.bin
    FIRMWARE: I2cInit will be done by M3
    FIRMWARE: memory map bin file: /usr/share/ti/ti-media-controller-utils/mm_dm81xxbm.bin
    FIRMWARE: isI2cInitRequiredOnM3: 1
    Firmware Loader debugging not configured
    Default FL_DEBUG: warning
    Allowed FL_DEBUG levels: error, warning, info, debug, log
    MemCfg: DCMM (Dynamically Configurable Memory Map) Version :  2.1.2.1
    thttpd invoked oom-killer: gfp_mask=0x201da, order=0, oom_adj=0, oom_score_adj=0
    Backtrace:
    [<c004ac10>] (dump_backtrace+0x0/0x110) from [<c03dd0f0>] (dump_stack+0x18/0x1c)
     r7:00000000 r6:00000000 r5:cbc40000 r4:000201da
    [<c03dd0d8>] (dump_stack+0x0/0x1c) from [<c00a5060>] (dump_header+0x60/0x138)
    [<c00a5000>] (dump_header+0x0/0x138) from [<c00a53bc>] (oom_kill_process+0x50/0x1f8)
     r8:cbd6e000 r7:00000001 r6:00000000 r5:cbc40000 r4:000201da
    [<c00a536c>] (oom_kill_process+0x0/0x1f8) from [<c00a57c8>] (out_of_memory+0x264/0x2e0)
    [<c00a5564>] (out_of_memory+0x0/0x2e0) from [<c00a89ec>] (__alloc_pages_nodemask+0x430/0x51c)
    [<c00a85bc>] (__alloc_pages_nodemask+0x0/0x51c) from [<c00aa36c>] (__do_page_cache_readahead+0x9c/0x1e8)
    [<c00aa2d0>] (__do_page_cache_readahead+0x0/0x1e8) from [<c00aa4e4>] (ra_submit+0x2c/0x34)
    [<c00aa4b8>] (ra_submit+0x0/0x34) from [<c00a3318>] (filemap_fault+0x170/0x3b0)
    [<c00a31a8>] (filemap_fault+0x0/0x3b0) from [<c00b6854>] (__do_fault+0x58/0x3dc)
    [<c00b67fc>] (__do_fault+0x0/0x3dc) from [<c00b72f0>] (handle_mm_fault+0x318/0xaa0)
    [<c00b6fd8>] (handle_mm_fault+0x0/0xaa0) from [<c03e1038>] (do_page_fault+0x114/0x20c)
    [<c03e0f24>] (do_page_fault+0x0/0x20c) from [<c003c208>] (do_PrefetchAbort+0x3c/0x9c)
    [<c003c1cc>] (do_PrefetchAbort+0x0/0x9c) from [<c03df564>] (ret_from_exception+0x0/0x10)
    Exception stack(0xcbd6ffb0 to 0xcbd6fff8)
    ffa0:                                     00000000 00000001 00001383 402b9000
    ffc0: 00000001 00001383 00026000 000000a8 00022070 00000000 beb52c7c 00022070
    ffe0: 000030ec beb4e378 000136cc 4024cc34 60000010 ffffffff
     r8:00022070 r7:000000a8 r6:00026000 r5:00001383 r4:ffffffff
    Mem-info:
    Normal per-cpu:
    CPU    0: hi:   90, btch:  15 usd:   0
    active_anon:367 inactive_anon:32 isolated_anon:0
     active_file:0 inactive_file:0 isolated_file:17
     unevictable:0 dirty:0 writeback:0 unstable:0
     free:457 slab_reclaimable:287 slab_unreclaimable:656
     mapped:16 shmem:37 pagetables:49 bounce:0
    Normal free:1828kB min:1828kB low:2284kB high:2740kB active_anon:1468kB inactive_anon:128kB active_file:0kB inactive_file:0kB unevictable:0kB isolated(anon)o
    lowmem_reserve[]: 0 0 0
    Normal: 401*4kB 2*8kB 3*16kB 1*32kB 2*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 1828kB
    54 total pagecache pages
    65536 pages of RAM
    546 free pages
    14781 reserved pages
    863 slab pages
    50 pages shared
    0 pages swap cached
    [ pid ]   uid  tgid total_vm      rss cpu oom_adj oom_score_adj name
    [   73]     0    73      489       45   0     -17         -1000 udevd
    [ 1146]    42  1146      831       41   0       0             0 dbus-daemon
    [ 1161]     0  1161      734       15   0       0             0 telnetd
    [ 1168]     0  1168      631       25   0       0             0 netserver
    [ 1173]     0  1173      750       31   0       0             0 syslogd
    [ 1175]     0  1175      734       18   0       0             0 klogd
    [ 1182]     0  1182      543       56   0       0             0 thttpd
    [ 1209]     0  1209      629       40   0       0             0 login
    [ 1210]     0  1210      492       18   0       0             0 getty
    [ 1212]     0  1212      782       27   0       0             0 sh
    [ 1222]     0  1222     3050       46   0       0             0 firmware_loader
    Out of memory: Kill process 1146 (dbus-daemon) score 1 or sacrifice child
    Killed process 1146 (dbus-daemon) total-vm:3324kB, anon-rss:164kB, file-rss:0kB

    firmware_loader: page allocation failure. order:0, mode:0xd2
    Backtrace:
    [<c004ac10>] (dump_backtrace+0x0/0x110) from [<c03dd0f0>] (dump_stack+0x18/0x1c)
     r7:bf036eb0 r6:000000d2 r5:003fffff r4:00000000
    [<c03dd0d8>] (dump_stack+0x0/0x1c) from [<c00a8a84>] (__alloc_pages_nodemask+0x4c8/0x51c)
    [<c00a85bc>] (__alloc_pages_nodemask+0x0/0x51c) from [<c00c13b8>] (__vmalloc_area_node+0xc4/0x124)
    [<c00c12f4>] (__vmalloc_area_node+0x0/0x124) from [<c00c14ac>] (__vmalloc_node+0x94/0xac)
    [<c00c1418>] (__vmalloc_node+0x0/0xac) from [<c00c163c>] (vmalloc+0x30/0x3c)
     r7:bee1cac8 r6:080eb040 r5:00000000 r4:080eb040
    [<c00c160c>] (vmalloc+0x0/0x3c) from [<bf036eb0>] (MemoryOS_alloc+0xcc/0x1b4 [syslink])
    [<bf036de4>] (MemoryOS_alloc+0x0/0x1b4 [syslink]) from [<bf02b798>] (Memory_alloc+0x74/0x160 [syslink])
     r5:00000000 r4:00000000
    [<bf02b724>] (Memory_alloc+0x0/0x160 [syslink]) from [<bf012d54>] (ElfLoaderMem_alloc+0x74/0x94 [syslink])
     r6:d4bcd000 r5:d4c42000 r4:080eb040
    [<bf012ce0>] (ElfLoaderMem_alloc+0x0/0x94 [syslink]) from [<bf0167b4>] (DLIF_malloc+0x18/0x1c [syslink])
     r4:00000000
    [<bf01679c>] (DLIF_malloc+0x0/0x1c [syslink]) from [<bf015e58>] (DLSYM_copy_globals+0x4c/0x10c [syslink])
    [<bf015e0c>] (DLSYM_copy_globals+0x0/0x10c [syslink]) from [<bf0142a8>] (initialize_loaded_module+0xbc/0x1a0 [syslink])
     r9:cbcddec0 r8:d4bba000 r7:bee1cac8 r6:d4bcd000 r5:d4c42000
    r4:d4bba000
    [<bf0141ec>] (initialize_loaded_module+0x0/0x1a0 [syslink]) from [<bf014e08>] (DLOAD_load+0xd0/0xa58 [syslink])
    [<bf014d38>] (DLOAD_load+0x0/0xa58 [syslink]) from [<bf012150>] (ElfLoader_load+0x274/0x37c [syslink])
    [<bf011edc>] (ElfLoader_load+0x0/0x37c [syslink]) from [<bf002c10>] (Loader_load+0xec/0x164 [syslink])
    [<bf002b24>] (Loader_load+0x0/0x164 [syslink]) from [<bf007104>] (ProcMgr_load+0x220/0x2fc [syslink])
    [<bf006ee4>] (ProcMgr_load+0x0/0x2fc [syslink]) from [<bf0090a8>] (ProcMgrDrv_ioctl+0xb7c/0x1b74 [syslink])
    [<bf00852c>] (ProcMgrDrv_ioctl+0x0/0x1b74 [syslink]) from [<c00d6640>] (vfs_ioctl+0x28/0x44)
     r8:bee1ca38 r7:00000008 r6:00000008 r5:cb7c7c80 r4:00000000
    [<c00d6618>] (vfs_ioctl+0x0/0x44) from [<c00d6d50>] (do_vfs_ioctl+0x500/0x540)
    [<c00d6850>] (do_vfs_ioctl+0x0/0x540) from [<c00d6de8>] (sys_ioctl+0x58/0x7c)
    [<c00d6d90>] (sys_ioctl+0x0/0x7c) from [<c0046e40>] (ret_fast_syscall+0x0/0x30)
     r8:c0046fe8 r7:00000036 r6:00008e20 r5:00000000 r4:00046ee8
    Mem-info:
    Normal per-cpu:
    CPU    0: hi:   90, btch:  15 usd:   5
    active_anon:326 inactive_anon:32 isolated_anon:0
     active_file:17 inactive_file:0 isolated_file:0
     unevictable:0 dirty:0 writeback:0 unstable:0
     free:0 slab_reclaimable:287 slab_unreclaimable:656
     mapped:16 shmem:37 pagetables:46 bounce:0
    Normal free:0kB min:1828kB low:2284kB high:2740kB active_anon:1304kB inactive_anon:128kB active_file:68kB inactive_file:0kB unevictable:0kB isolated(anon):0s
    lowmem_reserve[]: 0 0 0
    Normal: 0*4kB 0*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 0kB
    54 total pagecache pages
    65536 pages of RAM
    90 free pages
    14781 reserved pages
    863 slab pages
    33 pages shared
    0 pages swap cached
    Unable to handle kernel NULL pointer dereference at virtual address 00000000
    pgd = cbf00000
    [00000000] *pgd=8b77f031, *pte=00000000, *ppte=00000000
    Internal error: Oops: 817 [#1]
    last sysfs file: /sys/kernel/uevent_seqnum
    Modules linked in: cmemk syslink
    CPU: 0    Not tainted  (2.6.37 #1)
    PC is at DLSYM_copy_globals+0xf8/0x10c [syslink]
    LR is at 0x280078a0
    pc : [<bf015f04>]    lr : [<280078a0>]    psr: 80000113
    sp : cbcddcb0  ip : 00000000  fp : cbcddcd4
    r10: 00000001  r9 : cbcddec0  r8 : 0080eb04
    r7 : 00000010  r6 : d4bcd000  r5 : d4c42000  r4 : 00000000
    r3 : d0807000  r2 : 00000000  r1 : d4bd6000  r0 : 00000000
    Flags: Nzcv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
    Control: 10c5387d  Table: 8bf00019  DAC: 00000015
    Process firmware_loader (pid: 1222, stack limit = 0xcbcdc2e8)
    Stack: (0xcbcddcb0 to 0xcbcde000)
    dca0:                                     d4bba000 d4c42000 d4bcd000 bee1cac8
    dcc0: d4bba000 cbcddec0 cbcddd2c cbcddcd8 bf0142a8 bf015e18 cbcddd04 cbcddce8
    dce0: bf012f04 bf033f54 d4bca000 d4bca000 d4bcd000 d4bca000 cbcddd14 cbcddd08
    dd00: bf016820 bf012ea8 00000001 03046000 d4a40000 bee1cac8 d4bba000 00000001
    dd20: cbcddd9c cbcddd30 bf014e08 bf0141f8 cb7c7e80 cbcdddb4 d4bca000 cbcddd48
    dd40: c00ca71c c03de040 00000000 cbcddd58 c00d5820 cb7c7e80 d4bca000 d4bc7000
    dd60: cbcddd9c cbcddd70 bf034aa4 d4bcd000 00000000 d4a46000 03046000 d4a40000
    dd80: bee1cac8 00000001 cbcddec0 00000001 cbcddde4 cbcddda0 bf012150 bf014d44
    dda0: d4bc7000 00000001 bee1cac8 00000000 bf034d88 d4bca000 cbcdddf4 d4a40000
    ddc0: 00000001 bee1cac8 d4bc7000 cbcddec0 d4bc7000 00000000 cbcdde1c cbcddde8
    dde0: bf002c10 bf011ee8 00000000 cbcddec0 bee1cac8 00000000 d0afb000 00000001
    de00: d4a52000 bee1cac8 00000000 cbcddec0 cbcdde5c cbcdde20 bf007104 bf002b30
    de20: 00000000 cbcddec0 bee1cac8 00000000 0000003b 00000000 cb7c7c80 d4bc7000
    de40: bee1ca38 bf0feba8 cbcdc000 00000000 cbcddef4 cbcdde60 bf0090a8 bf006ef0
    de60: 00000000 cbcddec0 00000000 00000000 0000003d 00000000 cbc16600 000000f4
    de80: c00b2184 c01d5100 cb7bc000 cbc16600 cbcddeac cbcddea0 00000200 cbcddfb0
    dea0: cbcce840 0485f000 d4a52000 bee1ce4d 0000003b 00000001 bee1cac8 00000000
    dec0: 00000000 c008b1a4 c00bcdf0 c00ba9b0 cb7bc22c 00000000 cb7c7c80 00000008
    dee0: 00000008 bee1ca38 cbcddf04 cbcddef8 c00d6640 bf008538 cbcddf74 cbcddf08
    df00: c00d6d50 c00d6624 000000fb 000000fb 40afe000 cb7c7380 cbc16600 00040000
    df20: 00000040 00040400 cbcddf74 cbcddf38 c00bd1ac c00bcb34 000000fb 00040400
    df40: cbcdc000 cb7c7380 cbcce840 00000000 bee1ca38 c020e0a2 00000008 cb7c7c80
    df60: cbcdc000 00000000 cbcddfa4 cbcddf78 c00d6de8 c00d685c 00000001 00000001
    df80: 00000003 00046ee8 00000000 00008e20 00000036 c0046fe8 00000000 cbcddfa8
    dfa0: c0046e40 c00d6d9c 00046ee8 00000000 00000008 c020e0a2 bee1ca38 00000008
    dfc0: 00046ee8 00000000 00008e20 00000036 00000000 00000000 400ef000 bee1ca14
    dfe0: 00000000 bee1c9f0 00040108 401dfaec 60000010 00000008 096b69e1 5b83594b
    Backtrace:
    [<bf015e0c>] (DLSYM_copy_globals+0x0/0x10c [syslink]) from [<bf0142a8>] (initialize_loaded_module+0xbc/0x1a0 [syslink])
     r9:cbcddec0 r8:d4bba000 r7:bee1cac8 r6:d4bcd000 r5:d4c42000
    r4:d4bba000
    [<bf0141ec>] (initialize_loaded_module+0x0/0x1a0 [syslink]) from [<bf014e08>] (DLOAD_load+0xd0/0xa58 [syslink])
    [<bf014d38>] (DLOAD_load+0x0/0xa58 [syslink]) from [<bf012150>] (ElfLoader_load+0x274/0x37c [syslink])
    [<bf011edc>] (ElfLoader_load+0x0/0x37c [syslink]) from [<bf002c10>] (Loader_load+0xec/0x164 [syslink])
    [<bf002b24>] (Loader_load+0x0/0x164 [syslink]) from [<bf007104>] (ProcMgr_load+0x220/0x2fc [syslink])
    [<bf006ee4>] (ProcMgr_load+0x0/0x2fc [syslink]) from [<bf0090a8>] (ProcMgrDrv_ioctl+0xb7c/0x1b74 [syslink])
    [<bf00852c>] (ProcMgrDrv_ioctl+0x0/0x1b74 [syslink]) from [<c00d6640>] (vfs_ioctl+0x28/0x44)
     r8:bee1ca38 r7:00000008 r6:00000008 r5:cb7c7c80 r4:00000000
    [<c00d6618>] (vfs_ioctl+0x0/0x44) from [<c00d6d50>] (do_vfs_ioctl+0x500/0x540)
    [<c00d6850>] (do_vfs_ioctl+0x0/0x540) from [<c00d6de8>] (sys_ioctl+0x58/0x7c)
    [<c00d6d90>] (sys_ioctl+0x0/0x7c) from [<c0046e40>] (ret_fast_syscall+0x0/0x30)
     r8:c0046fe8 r7:00000036 r6:00008e20 r5:00000000 r4:00046ee8
    Code: e5953018 e0612002 e06c2002 e0833002 (e7803204)
    ---[ end trace 310c72e75286d5f0 ]---

    3. We dint do any memory changes, We have followed the EZSDK porting guide from the below link.

    http://processors.wiki.ti.com/index.php/EZSDK_Memory_Map#Modifying_Memory_Map

    We have used the below bootargs,

    setenv bootargs 'console=ttyO0,115200n8 rootwait root=/dev/mmcblk0p2 rw rootfstype=ext3 mem=364M@0x80000000 vmalloc=500M earlyprintk notifyk.vpssm3_sva=0xBF900000 vram=50M ip=off noinitrd'

    With these args, we are able to load the cmemk module, and we are getting the similar error as posted in our earlier post.

    Kindly let me know what changes in syslink will help us get out of this issue.

  • Hi Margarita,

    when we are specifying 2 blocks of memory for the kernel in the boot parameters

    setenv bootargs 'console=ttyO0,115200n8 rootwait root=/dev/mmcblk0p2 rw rootfstype=ext3 mem=364M@0x80000000 mem=320M@0x9FC00000 vmalloc=500M earlyprintk notifyk.vpssm3_sva=0xBF900000 vram=20M'

    then if we are trying to load cmemk.ko then it is giving the following error.

    root@dm814x-evm:~# insmod /media/mmcblk0p2/lib/modules/2.6.37/kernel/drivers/dsp
    /cmemk.ko phys_start=0x96C00000 phys_end=0x98000000 pools=20x4096
    CMEMK module: built on Dec 26 2012 at 18:48:48
      Reference Linux version 2.6.37
      File /swcoe/sdk/cm/netra/arago-tmp/work/dm814x-evm-none-linux-gnueabi/ti-linuxutils-1_3_22_00_02-r1d/linuxutils_3_22_00_02/packages/ti/sdo/linuxutils/cmemc
    CMEMK Error: CMEM phys_start (0x96c00000) overlaps kernel (0x80000000 -> 0xa9800000)
    insmod: error inserting '/media/mmcblk0p2/lib/modules/2.6.37/kernel/drivers/dsp/cmemk.ko': -1 Invalid parameters

    Here kernel is taking continuous memory so we are not able to load the cmemk module.

    kindly help us in resolving this issue.



  • Hello,

    I did not understand how you modify the memory map is it for 512MB, 1G and etc board?

    BR

    Margarita

  • Hi Margarita,

    We have configured for 1GB only.

  • Hi Kiran,

    kiran TG1 said:
    on our custom board while trying to load the vpss module, iam getting following error

    Why are you trying to load the vpss module manually? I mean we have a script which is loading the vpss module and firmware automatically during the boot process. Have a look in the {ROOTFS}/etc/init.d/load-hd-firmware.sh script.

    Are you booting your custom board from SD card? If yes, please use the below approach to make an EZSDK 5.05.02.00 bootable SD card:

    ti-ezsdk_dm814x-evm_5_05_02_00/docs/DM814x_EZ_Software_Developers_Guide.pdf, section 6.6 How to create an SD card

    BR
    Pavel

  • Hi Kiran,

    Reduce your Linux memory to 176MB,

    setenv bootargs 'console=ttyO0,115200n8 rootwait root=/dev/mmcblk0p2 rw mem=176M earlyprintk notifyk.vpssm3_sva=0xBF900000 vram=50M vmalloc=500M ti814xfb.vram=0:16M,1:16M,2:6M ip=off noinitrd'


    You should be able to insert cmemk

    Ram