Getting error when capturing image

Hi,

I am using 18 Mp mipi camera interfaced to tegra k1 board.

I am using full resolution (4912x3684) to capture images.

If I try to capture using yavta utility, I am getting the following error from yavta utility.

Video format: SRGGB10 (30314752) 4912x3684 (stride 9824) field none buffer size 36191616
Unable to request buffers: Cannot allocate memory (12).

Similarly I am getting following error in dmesg.

[ 151.586204] v4l2_dev name: vi vi.0<4>[ 151.653473] vmap allocation for size 36196352 failed: use vmalloc= to increase size.
[ 151.657343] vi vi.0: dma_alloc_coherent of size 36192256 failed

Any workaround for the same problem.

I changed the size of CONFIG_CMA_SIZE_MBYTES to 64.

Still I am getting the error.

Thanks in advance.

You need to add a boot option to grub* to increase vmalloc size

https://www.mythtv.org/wiki/Common_Problem:_vmalloc_too_small#grub2

Hi,

Thanks for your reply.

I tried to increase the vmalloc to 512 MB in device Tree file. But it is not working.

Any other way to do the same.

thanks & regards,
kotteeswaran.E