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.

DM8127 IPNC insmod ti81xxvo.ko showing error

Hi,

I working on DM8127 IPNC i try to create /dev/video* node

my bootargs

setenv bootargs 'root=/dev/nfs console=ttyO0,115200n8 mem=80M rw vram=50M notifyk.vpssm3_sva=0xBFD00000 nfsroot=192.168.1.5:/home/sesha/Projects/install_IPNC_new/Source/ipnc_rdk/target/filesys,nolock,tcp ip=192.168.1.168 eth=00:0C:0C:02:39:1B cmemk.phys_start=0x85000000 cmemk.phys_end=0x89000000 cmemk.allowOverlap=1 earlyprintk';saveenv

when i insert ti81xxvo.ko it showing

root@DM8127_IPNC:/opt/ipnc/kermod# dmesg -c
t81xx_vidout t81xx_vidout: VIDOUT0: buf0: va: 0xc1800000 pa: 0x81800000 size 0x400000
t81xx_vidout t81xx_vidout: VIDOUT0: buf1: va: 0xc1400000 pa: 0x81400000 size 0x400000
t81xx_vidout t81xx_vidout: VIDOUT0: buf2: va: 0xc1000000 pa: 0x81000000 size 0x400000
PM: Adding info for No Bus:video1
t81xx_vidout t81xx_vidout: VIDOUT0: init video
t81xx_vidout t81xx_vidout: VIDOUT0: data format 1
t81xx_vidout t81xx_vidout: VIDOUT0: enable=0 width=1920
 height=1080 color_mode=1
pos=0x0 out_width=1920 out_height=1080 screen_width=3840 crop=0
t81xx_vidout t81xx_vidout: VIDOUT1: buf0: va: 0xc0c00000 pa: 0x80c00000 size 0x400000
t81xx_vidout t81xx_vidout: VIDOUT1: buf1: va: 0xc0800000 pa: 0x80800000 size 0x400000
insmod: page allocation failure. order:10, mode:0xd1
Backtrace:
[<c0046ba0>] (dump_backtrace+0x0/0x110) from [<c0356468>] (dump_stack+0x18/0x1c)
 r7:00000000 r6:000000d1 r5:00000001 r4:00000000
[<c0356450>] (dump_stack+0x0/0x1c) from [<c00a2740>] (__alloc_pages_nodemask+0x4c8/0x51c)
[<c00a2278>] (__alloc_pages_nodemask+0x0/0x51c) from [<c00a27ac>] (__get_free_pages+0x18/0x30)
[<c00a2794>] (__get_free_pages+0x0/0x30) from [<bf19cf88>] (ti81xx_vidout_alloc_buffer+0x40/0xac [ti81xxvo])
[<bf19cf48>] (ti81xx_vidout_alloc_buffer+0x0/0xac [ti81xxvo]) from [<bf19f0f0>] (ti81xx_vidout_probe+0x35c/0x52c [ti81xxvo])
 r5:c24a4000 r4:c24a4008
[<bf19ed94>] (ti81xx_vidout_probe+0x0/0x52c [ti81xxvo]) from [<c020f21c>] (platform_drv_probe+0x20/0x24)
[<c020f1fc>] (platform_drv_probe+0x0/0x24) from [<c020e188>] (driver_probe_device+0xd0/0x190)
[<c020e0b8>] (driver_probe_device+0x0/0x190) from [<c020e2b0>] (__driver_attach+0x68/0x8c)
 r7:c3c43f00 r6:bf1a0450 r5:c0484bb4 r4:c0484b80
[<c020e248>] (__driver_attach+0x0/0x8c) from [<c020d934>] (bus_for_each_dev+0x50/0x84)
 r7:c3c43f00 r6:bf1a0450 r5:c020e248 r4:00000000
[<c020d8e4>] (bus_for_each_dev+0x0/0x84) from [<c020dfac>] (driver_attach+0x20/0x28)
 r6:bf1a0450 r5:bf1a04b4 r4:00000000
[<c020df8c>] (driver_attach+0x0/0x28) from [<c020d20c>] (bus_add_driver+0xb4/0x234)
[<c020d158>] (bus_add_driver+0x0/0x234) from [<c020e5e8>] (driver_register+0xb0/0x13c)
[<c020e538>] (driver_register+0x0/0x13c) from [<c020f6c0>] (platform_driver_register+0x4c/0x60)
 r9:c376a000 r8:bf1a4000 r7:00012018 r6:00012008 r5:bf1a04b4
r4:00000000
[<c020f674>] (platform_driver_register+0x0/0x60) from [<bf1a4014>] (ti81xx_vidout_init+0x14/0x34 [ti81xxvo])
[<bf1a4000>] (ti81xx_vidout_init+0x0/0x34 [ti81xxvo]) from [<c003842c>] (do_one_initcall+0xd0/0x1a4)
[<c003835c>] (do_one_initcall+0x0/0x1a4) from [<c009515c>] (sys_init_module+0x9c/0x1bc)
[<c00950c0>] (sys_init_module+0x0/0x1bc) from [<c0042e00>] (ret_fast_syscall+0x0/0x30)
 r7:00000080 r6:00012018 r5:00010000 r4:00000000
Mem-info:
Normal per-cpu:
CPU    0: hi:   18, btch:   3 usd:   0
active_anon:326 inactive_anon:19 isolated_anon:0
 active_file:1340 inactive_file:4825 isolated_file:32
 unevictable:0 dirty:0 writeback:0 unstable:0
 free:3010 slab_reclaimable:515 slab_unreclaimable:796
 mapped:294 shmem:29 pagetables:48 bounce:0
Normal free:12040kB min:1120kB low:1400kB high:1680kB active_anon:1304kB inactive_anon:76kB active_file:5360kB inactive_file:19300kB unevictable:0kB isolated(anon):0kB isolated(file):128kB present:78848kB mlocked:0kB dirty:0kB writeback:0kB mapped:1176kB shmem:116kB slab_reclaimable:2060kB slab_unreclaimable:3184kB kernel_stack:392kB pagetables:192kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no
lowmem_reserve[]: 0 0 0
Normal: 128*4kB 47*8kB 25*16kB 12*32kB 4*64kB 7*128kB 4*256kB 4*512kB 2*1024kB 2*2048kB 0*4096kB = 12040kB
6202 total pagecache pages
32768 pages of RAM
3128 free pages
19418 reserved pages
1121 slab pages
1571 pages shared
0 pages swap cached
t81xx_vidout: probe of t81xx_vidout failed with error -12
Unable to handle kernel paging request at virtual address 41007479
pgd = c3718000
[41007479] *pgd=00000000
Internal error: Oops: 5 [#1]
last sysfs file: /sys/devices/platform/t81xx_vidout/video4linux/video1/index
Modules linked in: ti81xxvo ti81xxfb ti81xxhdmi vpss osa_kermod g_file_storage sbull syslink [last unloaded: sbull]
CPU: 0    Not tainted  (2.6.37_DM8127_IPNC_3.00.00 #1)
PC is at sysfs_open_file+0x74/0x234
LR is at sysfs_open_file+0x5c/0x234
pc : [<c0106698>]    lr : [<c0106680>]    psr: 20000013
sp : c376bdf8  ip : 00000000  fp : c376be1c
r10: c4618f80  r9 : 00000024  r8 : c3c43580
r7 : c3745ba0  r6 : c44de250  r5 : c36c5610  r4 : c04d44cc
r3 : 41007475  r2 : 00000000  r1 : c3745ba4  r0 : c3745ba0
Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
Control: 10c5387d  Table: 83718019  DAC: 00000015
Process udevd (pid: 1314, stack limit = 0xc376a2e8)
Stack: (0xc376bdf8 to 0xc376c000)
bde0:                                                       c3c43580 c44de250
be00: 00000000 c0106624 c4ba3f00 c4618f80 c376be44 c376be20 c00c1f28 c0106630
be20: c3c43580 c376bed0 00000000 c3c43000 00000000 00020000 c376be6c c376be48
be40: c00c2124 c00c1de4 c3c43000 c00cbadc c376bed0 00000000 00000000 c376bf30
be60: c376bea4 c376be70 c00cd644 c00c20dc c376bea4 c376be80 c00c4a8c 00000003
be80: c4b5c000 00020000 00000000 00020000 c376a000 00000024 c376bf64 c376bea8
bea0: c00cf150 c00cd210 00000000 c4b5c000 00000000 c4b5c000 ffffff9c 00000000
bec0: 00020001 00000000 00000000 c376a000 c4ba3f00 c4618f80 11ddb73d 00000005
bee0: c4b5c036 c4b45380 c44b2780 00000101 00000000 00000000 5187cba9 202fbf00
bf00: 5187cba9 202fbf00 00002865 00000000 00000001 bef72320 00000003 00020001
bf20: 00000000 c3c43580 c3c180c4 c376a000 c4ba3f00 c4618f80 c00d80a4 00000003
bf40: c4b5c000 00020000 00000000 ffffff9c c376a000 00000000 c376bf94 c376bf68
bf60: c00c1d3c c00cefe8 00000000 202fbf00 5187cba9 00000000 00000000 bef71d20
bf80: 00000005 c0042fa8 c376bfa4 c376bf98 c00c1db8 c00c1ce4 00000000 c376bfa8
bfa0: c0042e00 c00c1da0 00000000 00000000 bef71d20 00020000 00000000 000030ec
bfc0: 00000000 00000000 bef71d20 00000005 00000000 000338f8 0002e9b6 00027220
bfe0: 000261c0 bef70ce8 00013f40 402bb400 60000010 bef71d20 00000000 00000000
Backtrace:
[<c0106624>] (sysfs_open_file+0x0/0x234) from [<c00c1f28>] (__dentry_open+0x150/0x268)
[<c00c1dd8>] (__dentry_open+0x0/0x268) from [<c00c2124>] (nameidata_to_filp+0x54/0x64)
[<c00c20d0>] (nameidata_to_filp+0x0/0x64) from [<c00cd644>] (do_last+0x440/0x588)
 r7:c376bf30 r6:00000000 r5:00000000 r4:c376bed0
[<c00cd204>] (do_last+0x0/0x588) from [<c00cf150>] (do_filp_open+0x174/0x4d0)
[<c00cefdc>] (do_filp_open+0x0/0x4d0) from [<c00c1d3c>] (do_sys_open+0x64/0xa8)
[<c00c1cd8>] (do_sys_open+0x0/0xa8) from [<c00c1db8>] (sys_open+0x24/0x28)
 r8:c0042fa8 r7:00000005 r6:bef71d20 r5:00000000 r4:00000000
[<c00c1d94>] (sys_open+0x0/0x28) from [<c0042e00>] (ret_fast_syscall+0x0/0x30)
Code: 0a00006a e5953014 e3530000 0a000006 (e5934004)
---[ end trace 05e5470e8487f464 ]---

Thanks and Regards

    RAJ M

  • Hello Raj,

    I am not familiar with IPNC.

    RAJ M said:
    insmod: page allocation failure. order:10, mode:0xd1

    It seems to me  like you have an out of memory condition, or at least an out of enough contiguous memory for the  driver condition. You could try by increasing the amount of memory you give to Linux, it looks like you are running with a mem=80M kernel boot option which seems to me a bit smaller.

    Hope this help,

    Best Regards,

    Margarita

  • Hi Margarita,

    Thank you for your suggestion now i set  mem=126M it creates /dev/video1 /dev/video2 /dev/video3 but video1,2,3 are the display drivers for capturing i need /dev/video0?

    i don't no how to do? kindly help us

    Thanks and Regards

         RAJ M

  • Hello Raj,

    As I said I am not familiar with IPNC.

    Are you want to use v4l2 for capture?

    I am not sure is this support in IPNC.

    I will try to evolve someone to help here.

    I would suggest you to contact your FAE for IPNC support.

    Best Regards,

    Margarita

  • Hello,

    V4L2 is not suppported in IPNC RDK codebase, please refer to documetns and guide for more details on the system architecture and code details

    The video drivers like capture, encode run on M3 co-processors and not on A8

    Regards,

    Raghu

  • Hi Raghu,

    I have ported opencv to the IPNCAM8127j3. I want to run the canny edge detection algorithm inside the Camera. But I don't know how to capture the input from the camera directly from the minicom terminal. Kindly help me with the procedure to capture the camera image directly using the camera driver.

    Thanks and Regards

        RAJ M

  • Hi RAJ,

     

    It looks like it could not allocate memory get_free_pages API. Typically, get_free_pages is used for allocating small amount of memory, could you check how much it is trying to allocate? If it is in terms of MB, it will not be able to allocate. You probably may require to use vram to allocate memory.

     

    Regards,

    Brijesh

  • Hi ,

    i insert the module(ti81xxfb.ko) in my DM8127 ipnc. it creates /dev/fb0. i capture image using IE and save into sdcard. my question is how to display the image(snap.jpg) on HDMI output through /dev /fb0.please help us to do this work.

    I already tried saFbDisplay.c sample application it displays RGB values on my HDMI output.

    Thanks and Regards

         RAJ M