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.

DM365 change V4L2 format

Dear all:

My device is DM365+sensor.

Sensor has two mode(2592x1944 & 720P).

I must change V4L2 format(VIDIOC_S_FMT)

My change process :  VIDIOC_STREAMOFF -> close V4L2 -> open V4L2 ->  set VIDIOC_CROPCAP -> set VIDIOC_ENUMINPUT -> set VIDIOC_S_INPUT -> set VIDIOC_S_FMT - > set VIDIOC_S_CROP ->  set VIDIOC_REQBUFS - > set VIDIOC_QBUF -> VIDIOC_STREAMON

Sometimes, I change the format from(2592x1944) to change ( 720P).

System will down.

So, how to solve the problem.

Thanks.

  • Lin,

    Lin Marsic said:
    System will down.

    What do you mean? Share more logs..

  • Dear Renjith

    The error message is :

    BUG: Bad page map in process DDST-UI pte:00a500e0 pmd:87fb5031
    addr:4e803000 vm_flags:400844ff anon_vma:(null) mapping:c8233918 index:8dd4e
    vma->vm_file->f_op->mmap: mmap+0x0/0x110 [cmemk]
    Backtrace:
    [<c0041054>] (dump_backtrace+0x0/0x114) from [<c030c660>] (dump_stack+0x18/0x1c)
    r7:4e803000 r6:c7f40c60 r5:00000000 r4:c0428368
    [<c030c648>] (dump_stack+0x0/0x1c) from [<c00a1454>] (print_bad_pte+0x1a0/0x1d0)
    [<c00a12b4>] (print_bad_pte+0x0/0x1d0) from [<c00a38ac>] (unmap_vmas+0x400/0x650)
    [<c00a34ac>] (unmap_vmas+0x0/0x650) from [<c00a6694>] (exit_mmap+0xd4/0x1e8)
    [<c00a65c0>] (exit_mmap+0x0/0x1e8) from [<c0059068>] (mmput+0x40/0xf4)
    r8:c7f47000 r7:c8554480 r6:c8554480 r5:00000000 r4:c8554480
    [<c0059028>] (mmput+0x0/0xf4) from [<c00bbb10>] (flush_old_exec+0x4c8/0x800)
    r5:c8554c00 r4:00000000
    [<c00bb648>] (flush_old_exec+0x0/0x800) from [<c00f2614>] (load_elf_binary+0x328/0x11e0)
    [<c00f22ec>] (load_elf_binary+0x0/0x11e0) from [<c00bb310>] (search_binary_handler+0x114/0x318)
    [<c00bb1fc>] (search_binary_handler+0x0/0x318) from [<c00bc698>] (do_execve+0x170/0x280)
    [<c00bc528>] (do_execve+0x0/0x280) from [<c00403d0>] (sys_execve+0x3c/0x5c)
    [<c0040394>] (sys_execve+0x0/0x5c) from [<c003cea0>] (ret_fast_syscall+0x0/0x28)
    r7:0000000b r6:40301000 r5:00000000 r4:40301e40
    BUG: Bad page map in process DDST-UI pte:11a311de pmd:87fb5031
    addr:4e805000 vm_flags:400844ff anon_vma:(null) mapping:c8233918 index:8dd50
    vma->vm_file->f_op->mmap: mmap+0x0/0x110 [cmemk]

    thanks